This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus-website.git
The following commit(s) were added to refs/heads/master by this push:
new 11bca290 Use local js/css instead of CDN (#24)
11bca290 is described below
commit 11bca29008a1bde036252feaddd4626053712cbb
Author: Yingchun Lai <[email protected]>
AuthorDate: Thu Nov 2 14:31:20 2023 +0800
Use local js/css instead of CDN (#24)
Fix issues reported from: https://whimsy.apache.org/pods/project/pegasus
```
Found 7 external resources: {"cdn.bootcdn.net"=>2, "cdn.jsdelivr.net"=>1,
"cdn.bootcss.com"=>1, "fonts.googleapis.com"=>3}
```
---
_includes/algolia.html | 2 +-
_includes/head.html | 8 ++++----
assets/css/docsearch.min.css | 2 ++
assets/css/utilities.min.css | 1 +
assets/js/all.min.js | 5 +++++
assets/js/docsearch.min.js | 7 +++++++
assets/js/jquery.min.js | 2 ++
7 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/_includes/algolia.html b/_includes/algolia.html
index bc39503d..e5874bc5 100644
--- a/_includes/algolia.html
+++ b/_includes/algolia.html
@@ -1,4 +1,4 @@
-<script
src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
+<script src="/assets/js/docsearch.min.js"></script>
<script>
docsearch({
diff --git a/_includes/head.html b/_includes/head.html
index d27bdeb6..be5c83b6 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -4,10 +4,10 @@
<title>{{ site.title }} | {{ page.title }}</title>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
<link rel="shortcut icon" href="{{ site.baseurl
}}/assets/images/favicon.ico">
- <link
href="https://cdn.bootcdn.net/ajax/libs/tailwindcss/1.8.10/utilities.min.css"
rel="stylesheet">
- <link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
- <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
- <script
src="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.13.0/js/all.min.js"></script>
+ <link rel="stylesheet" href="/asset/css/utilities.min.css">
+ <link rel="stylesheet" href="/asset/css/docsearch.min.css" />
+ <script src="/asset/js/jquery.min.js"></script>
+ <script src="/asset/js/all.min.js"></script>
{% seo %}
{%- if site.google_analytics -%}
{%- include google-analytics.html -%}
diff --git a/assets/css/docsearch.min.css b/assets/css/docsearch.min.css
new file mode 100644
index 00000000..6fa98e31
--- /dev/null
+++ b/assets/css/docsearch.min.css
@@ -0,0 +1,2 @@
+@charset "UTF-8";
+/*! docsearch 2.0.0 | © Algolia | github.com/algolia/docsearch
*/.ds-dropdown-menu{background-color:#fff;border:1px solid
#333;border-radius:4px;font-size:16px;margin:6px 0
0;padding:4px;text-align:left}.algolia-docsearch-suggestion{color:#333;cursor:pointer;overflow:hidden}.algolia-docsearch-suggestion__secondary{border-top:1px
solid
#3a3a3a}.algolia-docsearch-suggestion--category-header{display:none;background:#3c4658;color:#fff;font-weight:600;padding:5px
10px;text-align:left}.algolia [...]
\ No newline at end of file
diff --git a/assets/css/utilities.min.css b/assets/css/utilities.min.css
new file mode 100644
index 00000000..4a360df9
--- /dev/null
+++ b/assets/css/utilities.min.css
@@ -0,0 +1 @@
+.space-y-0>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(0px
* calc(1 - var(--space-y-reverse)));margin-bottom:calc(0px *
var(--space-y-reverse))}.space-x-0>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(0px
* var(--space-x-reverse));margin-left:calc(0px * calc(1 -
var(--space-x-reverse)))}.space-y-1>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(.25rem
* calc(1 - var(--space-y-reverse)));margin-bottom:calc(.25rem * var(--space-
[...]
\ No newline at end of file
diff --git a/assets/js/all.min.js b/assets/js/all.min.js
new file mode 100644
index 00000000..3f7a8230
--- /dev/null
+++ b/assets/js/all.min.js
@@ -0,0 +1,5 @@
+/*!
+ * Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts:
SIL OFL 1.1, Code: MIT License)
+ */
+!function(){"use strict";var c={},l={};try{"undefined"!=typeof
window&&(c=window),"undefined"!=typeof document&&(l=document)}catch(c){}var
h=(c.navigator||{}).userAgent,z=void
0===h?"":h,v=c,a=l,m=(v.document,!!a.documentElement&&!!a.head&&"function"==typeof
a.addEventListener&&a.createElement,~z.indexOf("MSIE")||z.indexOf("Trident/"),"___FONT_AWESOME___"),s=function(){try{return!0}catch(c){return!1}}();var
e=v||{};e[m]||(e[m]={}),e[m].styles||(e[m].styles={}),e[m].hooks||(e[m].hooks={})
[...]
\ No newline at end of file
diff --git a/assets/js/docsearch.min.js b/assets/js/docsearch.min.js
new file mode 100644
index 00000000..3e79d608
--- /dev/null
+++ b/assets/js/docsearch.min.js
@@ -0,0 +1,7 @@
+/*! docsearch 2.0.0 | © Algolia | github.com/algolia/docsearch */
+!function(t,e){"object"==typeof exports&&"object"==typeof
module?module.exports=e():"function"==typeof
define&&define.amd?define([],e):"object"==typeof
exports?exports.docsearch=e():t.docsearch=e()}(this,function(){return
function(t){function e(r){if(n[r])return n[r].exports;var
i=n[r]={exports:{},id:r,loaded:!1};return
t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return
e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use
strict";t.exports=n(1)},function(t,e,n){"use stric [...]
+var o=t.length;if(o===+o)for(var s=0;o>s;s++)e.call(i,t[s],s,t);else for(var a
in t)n.call(t,a)&&e.call(i,t[a],a,t)}},function(t,e,n){var
r=n(14);t.exports=function i(t){var
e=Array.prototype.slice.call(arguments);return r(e,function(e){for(var n in
e)e.hasOwnProperty(n)&&("object"==typeof t[n]&&"object"==typeof
e[n]?t[n]=i({},t[n],e[n]):void
0!==e[n]&&(t[n]=e[n]))}),t}},function(t,e){t.exports=function(t,e){function
n(){return r||(console.log(e),r=!0),t.apply(this,arguments)}var r=!1;re [...]
+tr:N.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:K,th:K,"*":N.createElement("div")},z=/complete|loaded|interactive/,J=/^[\w-]*$/,Q={},Z=Q.toString,G={},X=N.createElement("div"),W={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Y=Array.isArray||function(t){return
t insta [...]
+return new
i(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return
new
i(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=f
[...]
+var
d=e(n),m=y[d]||(y[d]=[]);i.split(/\s/).forEach(function(e){if("ready"==e)return
t(document).ready(a);var i=r(e);i.fn=a,i.sel=l,i.e in w&&(a=function(e){var
n=e.relatedTarget;return!n||n!==this&&!t.contains(this,n)?i.fn.apply(this,arguments):void
0}),i.del=f;var
d=f||a;i.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var
e=d.apply(n,t._args==h?[t]:[t].concat(t._args));return
e===!1&&(t.preventDefault(),t.stopPropagation()),e}},i.i=m.length,m.push(i),"addEvent
[...]
+//# sourceMappingURL=dist/cdn/docsearch.min.js.map
\ No newline at end of file
diff --git a/assets/js/jquery.min.js b/assets/js/jquery.min.js
new file mode 100644
index 00000000..a1c07fd8
--- /dev/null
+++ b/assets/js/jquery.min.js
@@ -0,0 +1,2 @@
+/*! jQuery v3.4.1 | (c) JS Foundation and other contributors |
jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof
module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw
new Error("jQuery requires a window with a document");return
t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use
strict";var
t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof
e& [...]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]