adapt build
parent
909a0634aa
commit
7f3b6ea2b0
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
||||||
<link rel="icon" type="image/png" href="images/logo.png"/>
|
<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>
|
<title>Browser does not support SVG | SVG-edit</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -16,29 +16,13 @@
|
||||||
|
|
||||||
<!-- SCRIPTS -->
|
<!-- SCRIPTS -->
|
||||||
|
|
||||||
<!-- As yet no ES6 Module support -->
|
<!-- Lacking browser support -->
|
||||||
<!--{if jquery_release}>
|
<script type="module" src="./redirect-on-lacking-support.js"></script>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||||
within the following file to svgEditor.setConfig -->
|
within the following file to svgEditor.setConfig -->
|
||||||
<script type="module" src="index.js"></script>
|
<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>
|
<title>SVG-edit</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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
File diff suppressed because one or more lines are too long
|
@ -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()) {
|
if (!supportsSvg()) {
|
||||||
window.location = 'browser-not-supported.html';
|
window.location = './browser-not-supported.html';
|
||||||
}
|
}
|
||||||
|
export {};
|
||||||
|
|
|
@ -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');
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
||||||
<link rel="icon" type="image/png" href="images/logo.png"/>
|
<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>
|
<title>Browser does not support SVG | SVG-edit</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -16,16 +16,8 @@
|
||||||
|
|
||||||
<!-- SCRIPTS -->
|
<!-- SCRIPTS -->
|
||||||
|
|
||||||
<!-- As yet no ES6 Module support -->
|
<!-- Lacking browser support -->
|
||||||
<!--{if jquery_release}>
|
<script type="module" src="./redirect-on-lacking-support.js"></script>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||||
within the following file to svgEditor.setConfig -->
|
within the following file to svgEditor.setConfig -->
|
||||||
|
@ -38,14 +30,6 @@
|
||||||
document.head.appendChild(systemJsLoaderTag);
|
document.head.appendChild(systemJsLoaderTag);
|
||||||
</script>
|
</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>
|
<title>SVG-edit</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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
|
@ -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()) {
|
if (!supportsSvg()) {
|
||||||
window.location = 'browser-not-supported.html';
|
window.location = './browser-not-supported.html';
|
||||||
}
|
}
|
||||||
|
export {};
|
||||||
|
|
|
@ -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
|
@ -16,29 +16,13 @@
|
||||||
|
|
||||||
<!-- SCRIPTS -->
|
<!-- SCRIPTS -->
|
||||||
|
|
||||||
<!-- As yet no ES6 Module support -->
|
<!-- Lacking browser support -->
|
||||||
<!--{if jquery_release}>
|
<script type="module" src="./redirect-on-lacking-support.js"></script>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||||
within the following file to svgEditor.setConfig -->
|
within the following file to svgEditor.setConfig -->
|
||||||
<script type="module" src="xdomain-index.js"></script>
|
<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>
|
<title>SVG-edit</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -91,15 +91,12 @@ const config = [{
|
||||||
dest: 'dist/editor/system'
|
dest: 'dist/editor/system'
|
||||||
},
|
},
|
||||||
{src: 'src/editor/images', dest},
|
{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/jgraduate', dest},
|
||||||
{src: 'src/editor/spinbtn', dest},
|
{src: 'src/editor/spinbtn', dest},
|
||||||
{src: 'src/editor/embedapi.html', dest},
|
{src: 'src/editor/embedapi.html', dest},
|
||||||
{src: 'src/editor/embedapi.js', dest},
|
{src: 'src/editor/embedapi.js', dest},
|
||||||
{src: 'src/editor/browser-not-supported.html', dest},
|
{src: 'src/editor/browser-not-supported.html', dest},
|
||||||
{src: 'src/editor/redirect-on-lacking-support.js', 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}
|
{src: 'src/editor/svgedit.css', dest}
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue