You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/05/29 14:10:12 UTC
[dolphinscheduler-website] branch master updated: [chore] Change local js resource path (#793)
This is an automated email from the ASF dual-hosted git repository.
zhongjiajie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new ddb5a7a32 [chore] Change local js resource path (#793)
ddb5a7a32 is described below
commit ddb5a7a320de7b4900ddfad7fb5562c18ef2f1c5
Author: Jiajie Zhong <zh...@gmail.com>
AuthorDate: Sun May 29 22:10:07 2022 +0800
[chore] Change local js resource path (#793)
---
{js => asset/js}/npm/js.cookie.min.js | 0
{js => asset/js}/react/react-dom.min.js | 0
{js => asset/js}/react/react-with-addons.min.js | 0
redirect.ejs | 2 +-
template.ejs | 4 ++--
5 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/js/npm/js.cookie.min.js b/asset/js/npm/js.cookie.min.js
similarity index 100%
rename from js/npm/js.cookie.min.js
rename to asset/js/npm/js.cookie.min.js
diff --git a/js/react/react-dom.min.js b/asset/js/react/react-dom.min.js
similarity index 100%
rename from js/react/react-dom.min.js
rename to asset/js/react/react-dom.min.js
diff --git a/js/react/react-with-addons.min.js b/asset/js/react/react-with-addons.min.js
similarity index 100%
rename from js/react/react-with-addons.min.js
rename to asset/js/react/react-with-addons.min.js
diff --git a/redirect.ejs b/redirect.ejs
index 9450a853c..219f2c635 100644
--- a/redirect.ejs
+++ b/redirect.ejs
@@ -8,7 +8,7 @@
<link rel="shortcut icon" href="<%= rootPath %>/img/favicon.ico">
</head>
<body>
- <script src="/js/npm/js.cookie.min.js"></script>
+ <script src="/asset/js/npm/js.cookie.min.js"></script>
<script>
window.rootPath = '<%= rootPath %>';
window.defaultLanguage = '<%= defaultLanguage %>';
diff --git a/template.ejs b/template.ejs
index 5b054852f..f81c031d8 100644
--- a/template.ejs
+++ b/template.ejs
@@ -16,8 +16,8 @@
</head>
<body>
<div id="root"><%- __html %></div>
- <script src="/js/react/react-with-addons.min.js"></script>
- <script src="/js/react/react-dom.min.js"></script>
+ <script src="/asset/js/react/react-with-addons.min.js"></script>
+ <script src="/asset/js/react/react-dom.min.js"></script>
<script>window.rootPath = '<%= rootPath %>';</script>
<%_ if (vendorJsPath) { _%>
<script src="<%= rootPath %>/build/<%= vendorJsPath %>"></script>