Skip to content

Commit

Permalink
change staticfile CDN domain
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Mar 16, 2024
1 parent e470df2 commit b38ec03
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/zh/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
href="https://lib.baomitu.com/element-ui/2.15.14/theme-chalk/index.min.css"
/>
<script src="https://lib.baomitu.com/vue/2.6.14/vue.min.js"></script>
<script src="https://cdn.staticfile.org/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.net/jquery/3.7.1/jquery.min.js"></script>
<script src="https://lib.baomitu.com/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://lib.baomitu.com/element-ui/2.15.14/index.min.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion public/zh/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
href="https://lib.baomitu.com/element-ui/2.15.14/theme-chalk/index.min.css"
/>
<script src="https://lib.baomitu.com/vue/2.6.14/vue.min.js"></script>
<script src="https://cdn.staticfile.org/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.net/jquery/3.7.1/jquery.min.js"></script>
<script src="https://lib.baomitu.com/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://lib.baomitu.com/element-ui/2.15.14/index.min.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion public/zh/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
href="https://lib.baomitu.com/element-ui/2.15.14/theme-chalk/index.min.css"
/>
<script src="https://lib.baomitu.com/vue/2.6.14/vue.min.js"></script>
<script src="https://cdn.staticfile.org/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.net/jquery/3.7.1/jquery.min.js"></script>
<script src="https://lib.baomitu.com/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://lib.baomitu.com/element-ui/2.15.14/index.min.js"></script>
</head>
Expand Down
6 changes: 3 additions & 3 deletions src/common/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ const SCRIPT_URLS_CN = {
echartsStatJS: `${CDN_ROOT_CN_NPM}echarts-stat/latest/files/dist/ecStat.min.js`,
echartsGLJS: `${CDN_ROOT_CN_NPM}echarts-gl/2/files/dist/echarts-gl.min.js`,
datGUIMinJS: `${CDN_ROOT_CN}dat-gui/0.6.5/dat.gui.min.js`,
monacoDir: `https://cdn.staticfile.org/monaco-editor/0.27.0/min/vs`,
monacoDir: `https://cdn.staticfile.net/monaco-editor/0.27.0/min/vs`,
aceDir: `${CDN_ROOT_CN_NPM}ace-builds/1.4.12/files/src-min-noconflict`,
prettierDir: `${CDN_ROOT_CN}prettier/2.3.2`,
highlightjsDir: `${CDN_ROOT_CN_NPM}@highlightjs/cdn-assets/11.8.0/files`,
seedrandomJS: `${CDN_ROOT_CN}seedrandom/3.0.5/seedrandom.min.js`,
jQueryJS: `https://cdn.staticfile.org/jquery/3.7.1/jquery.min.js`,
acornJS: `https://cdn.staticfile.org/acorn/8.7.1/acorn.min.js`,
jQueryJS: `https://cdn.staticfile.net/jquery/3.7.1/jquery.min.js`,
acornJS: `https://cdn.staticfile.net/acorn/8.7.1/acorn.min.js`,

bmapLibJS: SCRIPT_URLS.bmapLibJS,
echartsBMapJS: SCRIPT_URLS.echartsBMapJS
Expand Down
3 changes: 2 additions & 1 deletion src/editor/sandbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export function createSandbox(
'unpkg.zhimg.com',
'npm.elemecdn.com',
'registry.npmmirror.com',
'cdn.staticfile.org'
'cdn.staticfile.org',
'cdn.staticfile.net'
];
store.isPR && domains.push(`echarts-pr-${store.prNumber}.surge.sh`);
return domains;
Expand Down

0 comments on commit b38ec03

Please sign in to comment.