Commit c9a8022f1f31793571f2298f7c417a7ac0be3475

Authored by 杨泽宇
1 parent efac38e2

change cdn api

src/html/failed.html
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13 <link rel="shortcut icon" href="/cms.ico" /> 13 <link rel="shortcut icon" href="/cms.ico" />
14 <link rel="bookmark" href="/cms.ico" /> 14 <link rel="bookmark" href="/cms.ico" />
15 - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css"> 15 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
16 <style> 16 <style>
17 .status-container { 17 .status-container {
18 margin: 0 auto; 18 margin: 0 auto;
@@ -94,8 +94,8 @@ @@ -94,8 +94,8 @@
94 </div> 94 </div>
95 </div> 95 </div>
96 </div> 96 </div>
97 - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>  
98 - <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> --> 97 + <!-- <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  98 + <script src="https://unpkg.com/element-plus"></script> -->
99 <!-- <script> 99 <!-- <script>
100 const Success = { 100 const Success = {
101 data() { 101 data() {
src/html/index.html
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <link rel="shortcut icon" href="/cms.ico" /> 12 <link rel="shortcut icon" href="/cms.ico" />
13 <link rel="bookmark" href="/cms.ico" /> 13 <link rel="bookmark" href="/cms.ico" />
14 <!-- element 3 plus --> 14 <!-- element 3 plus -->
15 - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css"> 15 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
16 <style> 16 <style>
17 [v-cloak] { 17 [v-cloak] {
18 display: none; 18 display: none;
@@ -26,10 +26,10 @@ @@ -26,10 +26,10 @@
26 </script> 26 </script>
27 <!-- 别人家资源外链 3 --> 27 <!-- 别人家资源外链 3 -->
28 <!-- vue 3 --> 28 <!-- vue 3 -->
29 - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>  
30 - <script src="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12"></script>  
31 - <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script>  
32 - <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script> --> 29 + <!-- <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  30 + <script src="https://unpkg.com/element-plus@1.1.0-beta.12"></script>
  31 + <script src="https://unpkg.com/axios@0.17.1/dist/axios.min.js"></script>
  32 + <script src="https://unpkg.com/qiniu-js@2.5.5/dist/qiniu.min.js"></script> -->
33 33
34 <!-- 本公司资源外链备份 2 --> 34 <!-- 本公司资源外链备份 2 -->
35 <!-- <script type="text/javascript"> 35 <!-- <script type="text/javascript">
src/html/success.html
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13 <link rel="shortcut icon" href="/cms.ico" /> 13 <link rel="shortcut icon" href="/cms.ico" />
14 <link rel="bookmark" href="/cms.ico" /> 14 <link rel="bookmark" href="/cms.ico" />
15 - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css"> 15 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
16 <style> 16 <style>
17 .status-container { 17 .status-container {
18 margin: 0 auto; 18 margin: 0 auto;
@@ -100,8 +100,8 @@ @@ -100,8 +100,8 @@
100 </div> 100 </div>
101 </div> 101 </div>
102 </div> 102 </div>
103 - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>  
104 - <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> --> 103 + <!-- <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  104 + <script src="https://unpkg.com/element-plus"></script> -->
105 <!-- <script> 105 <!-- <script>
106 const Success = { 106 const Success = {
107 data() { 107 data() {
src/html/test.html
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <meta http-equiv="Pragma" CONTENT="no-cache"> 10 <meta http-equiv="Pragma" CONTENT="no-cache">
11 <link rel="shortcut icon" href="/cms.ico" /> 11 <link rel="shortcut icon" href="/cms.ico" />
12 <link rel="bookmark" href="/cms.ico" /> 12 <link rel="bookmark" href="/cms.ico" />
13 - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css"> 13 + <link rel="stylesheet" href="https://unpkg.com/element-plus@1.1.0-beta.12/theme-chalk/index.css">
14 <style> 14 <style>
15 .status-container { 15 .status-container {
16 margin: 0 auto; 16 margin: 0 auto;
@@ -34,8 +34,8 @@ @@ -34,8 +34,8 @@
34 <div id="success" class="page-container"> 34 <div id="success" class="page-container">
35 <iframe src="file:///E:/codes/projects/cms_songs/src/html/success.html" id="tengxi" frameborder="1/0" height="1000" name="征集" scrolling="no" width="900"></iframe> 35 <iframe src="file:///E:/codes/projects/cms_songs/src/html/success.html" id="tengxi" frameborder="1/0" height="1000" name="征集" scrolling="no" width="900"></iframe>
36 </div> 36 </div>
37 - <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script>  
38 - <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> 37 + <script src="https://unpkg.com/vue@3.2.11/dist/vue.global.js"></script>
  38 + <script src="https://unpkg.com/element-plus"></script>
39 <script> 39 <script>
40 const Success = { 40 const Success = {
41 data() { 41 data() {
src/html/v2.html
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <link rel="shortcut icon" href="/cms.ico" /> 14 <link rel="shortcut icon" href="/cms.ico" />
15 <link rel="bookmark" href="/cms.ico" /> 15 <link rel="bookmark" href="/cms.ico" />
16 <!-- element 2 --> 16 <!-- element 2 -->
17 - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/theme-chalk/index.css"> 17 + <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.5/lib/theme-chalk/index.css">
18 <style> 18 <style>
19 [v-cloak] { 19 [v-cloak] {
20 display: none; 20 display: none;
@@ -27,10 +27,10 @@ @@ -27,10 +27,10 @@
27 // parent.postMessage('好的', '*') 27 // parent.postMessage('好的', '*')
28 </script> 28 </script>
29 29
30 - <script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.min.js"></script>  
31 - <script src="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/index.js"></script>  
32 - <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script>  
33 - <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script> 30 + <script src="https://unpkg.com/vue@2.5.2/dist/vue.min.js"></script>
  31 + <script src="https://unpkg.com/element-ui@2.15.5/lib/index.js"></script>
  32 + <script src="https://unpkg.com/axios@0.17.1/dist/axios.min.js"></script>
  33 + <script src="https://unpkg.com/qiniu-js@2.5.5/dist/qiniu.min.js"></script>
34 34
35 <script type="text/javascript"> 35 <script type="text/javascript">
36 if (typeof axios == 'undefined') { 36 if (typeof axios == 'undefined') {
@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 document.write(unescape("%3Cscript src='http://gongongku.cnlive.com/vue.min.js' type='text/javascript'%3E%3C/script%3E")); 40 document.write(unescape("%3Cscript src='http://gongongku.cnlive.com/vue.min.js' type='text/javascript'%3E%3C/script%3E"));
41 } 41 }
42 if (typeof ELEMENT == 'undefined') { 42 if (typeof ELEMENT == 'undefined') {
43 - document.write(unescape("%3Cscript src='https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/index.js' type='text/javascript'%3E%3C/script%3E")); 43 + document.write(unescape("%3Cscript src='https://unpkg.com/element-ui@2.15.5/lib/index.js' type='text/javascript'%3E%3C/script%3E"));
44 } 44 }
45 if(typeof qiniu == 'undefined') { 45 if(typeof qiniu == 'undefined') {
46 document.write(unescape("%3Cscript src='http://gongongku.cnlive.com/qiniu.min.js' type='text/javascript'%3E%3C/script%3E")); 46 document.write(unescape("%3Cscript src='http://gongongku.cnlive.com/qiniu.min.js' type='text/javascript'%3E%3C/script%3E"));
webpack.config.js
@@ -12,7 +12,7 @@ module.exports = { @@ -12,7 +12,7 @@ module.exports = {
12 entry: path.join(__dirname, "src", "/js/audio.js"), //__dirname指的是当前目录,是目录形成绝对路径 12 entry: path.join(__dirname, "src", "/js/audio.js"), //__dirname指的是当前目录,是目录形成绝对路径
13 output: { 13 output: {
14 //输入的文件名 14 //输入的文件名
15 - filename: "version2.js", 15 + filename: "version21.js",
16 // filename: '[name].[hash:7].js', 16 // filename: '[name].[hash:7].js',
17 publicPath: "/", 17 publicPath: "/",
18 //输入的路径 webpack会自动打包生成 18 //输入的路径 webpack会自动打包生成
@@ -27,7 +27,7 @@ module.exports = { @@ -27,7 +27,7 @@ module.exports = {
27 // vue3版本用index.html,vue2版本用v2.html 27 // vue3版本用index.html,vue2版本用v2.html
28 template: path.join(__dirname, "src", "html/v2.html"), 28 template: path.join(__dirname, "src", "html/v2.html"),
29 //打包输出的路径 29 //打包输出的路径
30 - filename: "version2.html", 30 + filename: "version21.html",
31 }), 31 }),
32 new CleanWebpackPlugin(), 32 new CleanWebpackPlugin(),
33 new JavaScriptObfuscator( 33 new JavaScriptObfuscator(