This is an automated email from the ASF dual-hosted git repository.

okumin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hive-site.git


The following commit(s) were added to refs/heads/main by this push:
     new da7ea79  HIVE-28777: Content Security Policy breaks hive-site (#42)
da7ea79 is described below

commit da7ea79e64b2f6807e293739f19c504cb454e57d
Author: Shohei Okumiya <[email protected]>
AuthorDate: Thu Feb 27 17:58:50 2025 +0900

    HIVE-28777: Content Security Policy breaks hive-site (#42)
---
 themes/hive/layouts/partials/footer.html             |   2 +-
 themes/hive/layouts/partials/head.html               |   8 ++++----
 themes/hive/static/css/bootstrap.min.css             |   7 +++++++
 themes/hive/static/css/font-awesome.all.min.css      |   9 +++++++++
 themes/hive/static/js/bootstrap.bundle.min.js        |   7 +++++++
 themes/hive/static/webfonts/fa-brands-400.ttf        | Bin 0 -> 187208 bytes
 themes/hive/static/webfonts/fa-brands-400.woff2      | Bin 0 -> 108020 bytes
 themes/hive/static/webfonts/fa-regular-400.ttf       | Bin 0 -> 63952 bytes
 themes/hive/static/webfonts/fa-regular-400.woff2     | Bin 0 -> 24948 bytes
 themes/hive/static/webfonts/fa-solid-900.ttf         | Bin 0 -> 394628 bytes
 themes/hive/static/webfonts/fa-solid-900.woff2       | Bin 0 -> 150124 bytes
 themes/hive/static/webfonts/fa-v4compatibility.ttf   | Bin 0 -> 10172 bytes
 themes/hive/static/webfonts/fa-v4compatibility.woff2 | Bin 0 -> 4564 bytes
 13 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/themes/hive/layouts/partials/footer.html 
b/themes/hive/layouts/partials/footer.html
index 58832f2..0e3f315 100644
--- a/themes/hive/layouts/partials/footer.html
+++ b/themes/hive/layouts/partials/footer.html
@@ -52,4 +52,4 @@
     </div>
 
 </footer>
-<script 
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js";
 
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
 crossorigin="anonymous"></script>
+<script src="{{ .Site.BaseURL }}/js/bootstrap.bundle.min.js"></script>
diff --git a/themes/hive/layouts/partials/head.html 
b/themes/hive/layouts/partials/head.html
index cb65c9e..613e870 100644
--- a/themes/hive/layouts/partials/head.html
+++ b/themes/hive/layouts/partials/head.html
@@ -26,10 +26,10 @@
         <meta name="author" content="">
         <title>{{ .Title }}</title>
         <link rel="icon" href="/images/hive.svg" sizes="any" 
type="image/svg+xml">
-        <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/hive-theme.css" />
-        <link rel="stylesheet" 
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css";>
-        <link 
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"; 
rel="stylesheet" 
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
 crossorigin="anonymous">
-        <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/termynal.css" />
+        <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/hive-theme.css">
+        <link rel="stylesheet" href="{{ .Site.BaseURL 
}}/css/font-awesome.all.min.css">
+        <link rel="stylesheet" href="{{ .Site.BaseURL 
}}/css/bootstrap.min.css">
+        <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/termynal.css">
         <link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL 
}}/images/apple-touch-icon.png">
         <link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL 
}}/images/favicon-32x32.png">
         <link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL 
}}/images/favicon-16x16.png">
diff --git a/themes/hive/static/css/bootstrap.min.css 
b/themes/hive/static/css/bootstrap.min.css
new file mode 100644
index 0000000..edfbbb0
--- /dev/null
+++ b/themes/hive/static/css/bootstrap.min.css
@@ -0,0 +1,7 @@
+@charset "UTF-8";/*!
+ * Bootstrap v5.0.2 (https://getbootstrap.com/)
+ * Copyright 2011-2021 The Bootstrap Authors
+ * Copyright 2011-2021 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ 
*/:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-font-sans-serif:system-ui,-apple-system,"Segoe
 UI",Roboto,"Helvetica Neu [...]
+/*# sourceMappingURL=bootstrap.min.css.map */
\ No newline at end of file
diff --git a/themes/hive/static/css/font-awesome.all.min.css 
b/themes/hive/static/css/font-awesome.all.min.css
new file mode 100644
index 0000000..1f367c1
--- /dev/null
+++ b/themes/hive/static/css/font-awesome.all.min.css
@@ -0,0 +1,9 @@
+/*!
+ * Font Awesome Free 6.4.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)
+ * Copyright 2023 Fonticons, Inc.
+ */
+.fa{font-family:var(--fa-style-family,"Font Awesome 6 
Free");font-weight:var(--fa-style,900)}.fa,.fa-brands,.fa-classic,.fa-regular,.fa-sharp,.fa-solid,.fab,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display,inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-classic,.fa-regular,.fa-solid,.far,.fas{font-family:"Font
 Awesome 6 Free"}.fa-brands,.fab{font-family:"Font Awesome 6 
Brands"}.fa-1x{font-siz [...]
+
+.fa-0:before{content:"\30"}.fa-1:before{content:"\31"}.fa-2:before{content:"\32"}.fa-3:before{content:"\33"}.fa-4:before{content:"\34"}.fa-5:before{content:"\35"}.fa-6:before{content:"\36"}.fa-7:before{content:"\37"}.fa-8:before{content:"\38"}.fa-9:before{content:"\39"}.fa-fill-drip:before{content:"\f576"}.fa-arrows-to-circle:before{content:"\e4bd"}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:"\f138"}.fa-at:before{content:"\40"}.fa-trash-alt:before,.fa-trash-ca
 [...]
+.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host,:root{--fa-style-family-brands:"Font
 Awesome 6 Brands";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 
Brands"}@font-face{font-family:"Font Awesome 6 
Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.woff2)
 format("woff2"), [...]
\ No newline at end of file
diff --git a/themes/hive/static/js/bootstrap.bundle.min.js 
b/themes/hive/static/js/bootstrap.bundle.min.js
new file mode 100644
index 0000000..68acb7a
--- /dev/null
+++ b/themes/hive/static/js/bootstrap.bundle.min.js
@@ -0,0 +1,7 @@
+/*!
+  * Bootstrap v5.0.2 (https://getbootstrap.com/)
+  * Copyright 2011-2021 The Bootstrap Authors 
(https://github.com/twbs/bootstrap/graphs/contributors)
+  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+  */
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof 
module?module.exports=e():"function"==typeof 
define&&define.amd?define(e):(t="undefined"!=typeof 
globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use 
strict";const 
t={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parent
 [...]
+//# sourceMappingURL=bootstrap.bundle.min.js.map
\ No newline at end of file
diff --git a/themes/hive/static/webfonts/fa-brands-400.ttf 
b/themes/hive/static/webfonts/fa-brands-400.ttf
new file mode 100644
index 0000000..774d51a
Binary files /dev/null and b/themes/hive/static/webfonts/fa-brands-400.ttf 
differ
diff --git a/themes/hive/static/webfonts/fa-brands-400.woff2 
b/themes/hive/static/webfonts/fa-brands-400.woff2
new file mode 100644
index 0000000..71e3185
Binary files /dev/null and b/themes/hive/static/webfonts/fa-brands-400.woff2 
differ
diff --git a/themes/hive/static/webfonts/fa-regular-400.ttf 
b/themes/hive/static/webfonts/fa-regular-400.ttf
new file mode 100644
index 0000000..8a9d634
Binary files /dev/null and b/themes/hive/static/webfonts/fa-regular-400.ttf 
differ
diff --git a/themes/hive/static/webfonts/fa-regular-400.woff2 
b/themes/hive/static/webfonts/fa-regular-400.woff2
new file mode 100644
index 0000000..7f02168
Binary files /dev/null and b/themes/hive/static/webfonts/fa-regular-400.woff2 
differ
diff --git a/themes/hive/static/webfonts/fa-solid-900.ttf 
b/themes/hive/static/webfonts/fa-solid-900.ttf
new file mode 100644
index 0000000..993dbe1
Binary files /dev/null and b/themes/hive/static/webfonts/fa-solid-900.ttf differ
diff --git a/themes/hive/static/webfonts/fa-solid-900.woff2 
b/themes/hive/static/webfonts/fa-solid-900.woff2
new file mode 100644
index 0000000..5c16cd3
Binary files /dev/null and b/themes/hive/static/webfonts/fa-solid-900.woff2 
differ
diff --git a/themes/hive/static/webfonts/fa-v4compatibility.ttf 
b/themes/hive/static/webfonts/fa-v4compatibility.ttf
new file mode 100644
index 0000000..ab6ae22
Binary files /dev/null and b/themes/hive/static/webfonts/fa-v4compatibility.ttf 
differ
diff --git a/themes/hive/static/webfonts/fa-v4compatibility.woff2 
b/themes/hive/static/webfonts/fa-v4compatibility.woff2
new file mode 100644
index 0000000..9027e38
Binary files /dev/null and 
b/themes/hive/static/webfonts/fa-v4compatibility.woff2 differ

Reply via email to