adapt build

master
jfh 2020-09-18 22:43:34 +02:00
parent 909a0634aa
commit 7f3b6ea2b0
21 changed files with 236 additions and 314 deletions

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<link rel="icon" type="image/png" href="images/logo.png"/>
<link rel="stylesheet" href="svg-editor.css"/>
<link rel="stylesheet" href="svgedit.css"/>
<title>Browser does not support SVG | SVG-edit</title>
<style>
body {

View File

@ -16,29 +16,13 @@
<!-- SCRIPTS -->
<!-- As yet no ES6 Module support -->
<!--{if jquery_release}>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!{else}-->
<script src="jquery.min.js"></script>
<!--{endif}-->
<!-- As yet no ES6 Module support -->
<script src="jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
<!-- Lacking browser support -->
<script type="module" src="./redirect-on-lacking-support.js"></script>
<!-- If you do not wish to add extensions by URL, you can add calls
within the following file to svgEditor.setConfig -->
<script type="module" src="index.js"></script>
<!-- FEEDS -->
<link rel="alternate" type="application/atom+xml"
title="SVG-edit General Discussion"
href="https://groups.google.com/group/svg-edit/feed/atom_v1_0_msgs.xml"/>
<link rel="alternate" type="application/atom+xml"
title="SVG-edit Updates (Commits)"
href="https://github.com/SVG-Edit/svgedit/commits/master.atom"/>
<title>SVG-edit</title>
</head>
<body>

109
dist/editor/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,8 @@
import {supportsSvg} from '../common/browser.js';
const supportsSvg = function () {
return Boolean(document.createElementNS && document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect);
};
if (!supportsSvg()) {
window.location = 'browser-not-supported.html';
window.location = './browser-not-supported.html';
}
export {};

View File

@ -1,8 +0,0 @@
// This file should only load if the user's browser doesn't support ESM
// This file will be stripped from the non-modular versions
// We only need to replace the first instance
location.href = location.href
.replace(/(?:xdomain-)?svg-editor-es\.html/, 'svg-editor.html')
.replace('openclipart-es.html', 'openclipart.html')
.replace('imagelib/index-es.html', 'imagelib/index.html');

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<link rel="icon" type="image/png" href="images/logo.png"/>
<link rel="stylesheet" href="svg-editor.css"/>
<link rel="stylesheet" href="svgedit.css"/>
<title>Browser does not support SVG | SVG-edit</title>
<style>
body {

View File

@ -16,16 +16,8 @@
<!-- SCRIPTS -->
<!-- As yet no ES6 Module support -->
<!--{if jquery_release}>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!{else}-->
<script src="jquery.min.js"></script>
<!--{endif}-->
<!-- As yet no ES6 Module support -->
<script src="jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
<!-- Lacking browser support -->
<script type="module" src="./redirect-on-lacking-support.js"></script>
<!-- If you do not wish to add extensions by URL, you can add calls
within the following file to svgEditor.setConfig -->
@ -38,14 +30,6 @@
document.head.appendChild(systemJsLoaderTag);
</script>
<!-- FEEDS -->
<link rel="alternate" type="application/atom+xml"
title="SVG-edit General Discussion"
href="https://groups.google.com/group/svg-edit/feed/atom_v1_0_msgs.xml"/>
<link rel="alternate" type="application/atom+xml"
title="SVG-edit Updates (Commits)"
href="https://github.com/SVG-Edit/svgedit/commits/master.atom"/>
<title>SVG-edit</title>
</head>
<body>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,8 @@
import {supportsSvg} from '../common/browser.js';
const supportsSvg = function () {
return Boolean(document.createElementNS && document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect);
};
if (!supportsSvg()) {
window.location = 'browser-not-supported.html';
window.location = './browser-not-supported.html';
}
export {};

View File

@ -1,8 +0,0 @@
// This file should only load if the user's browser doesn't support ESM
// This file will be stripped from the non-modular versions
// We only need to replace the first instance
location.href = location.href
.replace(/(?:xdomain-)?svg-editor-es\.html/, 'svg-editor.html')
.replace('openclipart-es.html', 'openclipart.html')
.replace('imagelib/index-es.html', 'imagelib/index.html');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -16,29 +16,13 @@
<!-- SCRIPTS -->
<!-- As yet no ES6 Module support -->
<!--{if jquery_release}>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!{else}-->
<script src="jquery.min.js"></script>
<!--{endif}-->
<!-- As yet no ES6 Module support -->
<script src="jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
<!-- Lacking browser support -->
<script type="module" src="./redirect-on-lacking-support.js"></script>
<!-- If you do not wish to add extensions by URL, you can add calls
within the following file to svgEditor.setConfig -->
<script type="module" src="xdomain-index.js"></script>
<!-- FEEDS -->
<link rel="alternate" type="application/atom+xml"
title="SVG-edit General Discussion"
href="https://groups.google.com/group/svg-edit/feed/atom_v1_0_msgs.xml"/>
<link rel="alternate" type="application/atom+xml"
title="SVG-edit Updates (Commits)"
href="https://github.com/SVG-Edit/svgedit/commits/master.atom"/>
<title>SVG-edit</title>
</head>
<body>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -91,15 +91,12 @@ const config = [{
dest: 'dist/editor/system'
},
{src: 'src/editor/images', dest},
{src: 'src/editor/jquery.min.js', dest},
{src: 'src/editor/jquery-ui', dest},
{src: 'src/editor/jgraduate', dest},
{src: 'src/editor/spinbtn', dest},
{src: 'src/editor/embedapi.html', dest},
{src: 'src/editor/embedapi.js', dest},
{src: 'src/editor/browser-not-supported.html', dest},
{src: 'src/editor/redirect-on-lacking-support.js', dest},
{src: 'src/editor/redirect-on-no-module-support.js', dest},
{src: 'src/editor/svgedit.css', dest}
]
}),