From b38ec03cd27afb660eaa7d333d087af24b1a1303 Mon Sep 17 00:00:00 2001 From: plainheart Date: Sun, 17 Mar 2024 00:21:39 +0800 Subject: [PATCH] change staticfile CDN domain --- public/zh/editor.html | 2 +- public/zh/index.html | 2 +- public/zh/view.html | 2 +- src/common/config.js | 6 +++--- src/editor/sandbox/index.js | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/public/zh/editor.html b/public/zh/editor.html index 194c4571..c1f2e694 100644 --- a/public/zh/editor.html +++ b/public/zh/editor.html @@ -27,7 +27,7 @@ href="https://lib.baomitu.com/element-ui/2.15.14/theme-chalk/index.min.css" /> - + diff --git a/public/zh/index.html b/public/zh/index.html index b69b6938..711a7f4b 100644 --- a/public/zh/index.html +++ b/public/zh/index.html @@ -27,7 +27,7 @@ href="https://lib.baomitu.com/element-ui/2.15.14/theme-chalk/index.min.css" /> - + diff --git a/public/zh/view.html b/public/zh/view.html index 7c1f4233..66226516 100644 --- a/public/zh/view.html +++ b/public/zh/view.html @@ -27,7 +27,7 @@ href="https://lib.baomitu.com/element-ui/2.15.14/theme-chalk/index.min.css" /> - + diff --git a/src/common/config.js b/src/common/config.js index 5abdc9b9..4cecae9c 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -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 diff --git a/src/editor/sandbox/index.js b/src/editor/sandbox/index.js index 890036e5..d3613e90 100644 --- a/src/editor/sandbox/index.js +++ b/src/editor/sandbox/index.js @@ -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;