This is an automated email from the ASF dual-hosted git repository.
lidongdai pushed a commit to branch dailidong-patch-1
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/dailidong-patch-1 by this push:
new e7f390c60 [fix]update cdn file to local dir
e7f390c60 is described below
commit e7f390c60a3eea83aa56b5f4498a2de79a966127
Author: lidongdai <[email protected]>
AuthorDate: Sun May 29 16:33:39 2022 +0800
[fix]update cdn file to local dir
---
js/npm/js.cookie.min.js | 8 ++++++++
js/react/react-dom.min.js | 14 ++++++++++++++
js/react/react-with-addons.min.js | 11 +++++++++++
redirect.ejs | 2 +-
template.ejs | 4 ++--
5 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/js/npm/js.cookie.min.js b/js/npm/js.cookie.min.js
new file mode 100644
index 000000000..8d6b9a83d
--- /dev/null
+++ b/js/npm/js.cookie.min.js
@@ -0,0 +1,8 @@
+/**
+ * Minified by jsDelivr using Terser v3.14.1.
+ * Original file: /npm/[email protected]/src/js.cookie.js
+ *
+ * Do NOT use SRI with dynamically generated files! More information:
https://www.jsdelivr.com/using-sri-with-dynamic-files
+ */
+!function(e){var n;if("function"==typeof
define&&define.amd&&(define(e),n=!0),"object"==typeof
exports&&(module.exports=e(),n=!0),!n){var
t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return
window.Cookies=t,o}}}(function(){function e(){for(var
e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in
t)n[o]=t[o]}return n}function n(e){return
e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function t(o){function
r(){}function i(n,t,i){if("undefined"!=typeof [...]
+//#
sourceMappingURL=/sm/b0ce608ffc029736e9ac80a8dd6a7db2da8e1d45d2dcfc92043deb2214aa30d8.map
\ No newline at end of file
diff --git a/js/react/react-dom.min.js b/js/react/react-dom.min.js
new file mode 100644
index 000000000..3181d1b75
--- /dev/null
+++ b/js/react/react-dom.min.js
@@ -0,0 +1,14 @@
+/**
+ * ReactDOM v15.6.2
+ *
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+!function(e){if("object"==typeof exports&&"undefined"!=typeof
module)module.exports=e(require("react"));else if("function"==typeof
define&&define.amd)define(["react"],e);else{var t;t="undefined"!=typeof
window?window:"undefined"!=typeof global?global:"undefined"!=typeof
self?self:this,t.ReactDOM=e(t.React)}}(function(e){return function(t){return
function(){return function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){var
u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)r [...]
+topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selection
[...]
+setOffsets:p?i:s};t.exports=d},{105:105,106:106,124:124}],42:[function(e,t,n){"use
strict";var
r=e(113),o=e(144),a=e(8),i=e(9),s=e(33),u=e(95),l=(e(138),e(119),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(e,t,n,r){var
o=n._idCounter++,a=" react-text: "+o+"
";if(this._domID=o,this._hostParent=t,e.useCreateElement) [...]
+dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,v=null,g=null,y=!1,_=!1,C={eventTypes:h,extractEvents:function(e,t,n,r){if(!_)return
null;var
a=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(p(a)||"true"===a.contentEditable)&&(m=a,v=t,g=null);break;case"topBlur":m=null,v=null,g=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return
y=!1,o(n,r);case"topSelecti [...]
+function g(e){function t(t,n,r,o,a){var s=t[n],u=C(s);if("object"!==u)return
new l("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+r+"`, expected
`object`.");for(var c in e){var p=e[c];if(p){var
d=p(s,c,r,o,a+"."+c,i);if(d)return d}}return null}return c(t)}function
y(t){switch(typeof
t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return
t.every(y);if(null===t||e(t))return!0;var r=n(t);if(!r)return!1;var
o,a=r.call(t);if [...]
\ No newline at end of file
diff --git a/js/react/react-with-addons.min.js
b/js/react/react-with-addons.min.js
new file mode 100644
index 000000000..be0e960e1
--- /dev/null
+++ b/js/react/react-with-addons.min.js
@@ -0,0 +1,11 @@
+/**
+ * React (with addons) v15.6.2
+ *
+ * Copyright (c) 2013-present, Facebook, Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ *
+ */
+!function(e){if("object"==typeof exports&&"undefined"!=typeof
module)module.exports=e();else if("function"==typeof
define&&define.amd)define([],e);else{var t;t="undefined"!=typeof
window?window:"undefined"!=typeof global?global:"undefined"!=typeof
self?self:this,t.React=e()}}(function(){return function e(t,n,r){function
o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof
require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new
Error("Cannot find module '"+a+"'");throw c.cod [...]
+;t.exports=o},{40:40}],45:[function(e,t,n){"use strict";function
r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be
called with null or undefined");return Object(e)}var
o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var
e=new
String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var
t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n; [...]
\ No newline at end of file
diff --git a/redirect.ejs b/redirect.ejs
index 8cfd910db..9450a853c 100644
--- a/redirect.ejs
+++ b/redirect.ejs
@@ -8,7 +8,7 @@
<link rel="shortcut icon" href="<%= rootPath %>/img/favicon.ico">
</head>
<body>
- <script
src="//cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
+ <script src="/js/npm/js.cookie.min.js"></script>
<script>
window.rootPath = '<%= rootPath %>';
window.defaultLanguage = '<%= defaultLanguage %>';
diff --git a/template.ejs b/template.ejs
index 26195ec56..5b054852f 100644
--- a/template.ejs
+++ b/template.ejs
@@ -16,8 +16,8 @@
</head>
<body>
<div id="root"><%- __html %></div>
- <script
src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-with-addons.min.js"></script>
- <script
src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-dom.min.js"></script>
+ <script src="/js/react/react-with-addons.min.js"></script>
+ <script src="/js/react/react-dom.min.js"></script>
<script>window.rootPath = '<%= rootPath %>';</script>
<%_ if (vendorJsPath) { _%>
<script src="<%= rootPath %>/build/<%= vendorJsPath %>"></script>