mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +00:00
1. csp 允许执行google analytics代码
2. 更换首页图片 3. 调整页面颜色
This commit is contained in:
parent
fe0db0c17b
commit
641ab6bbbe
@ -16,6 +16,7 @@
|
|||||||
<meta name="darkreader-lock">
|
<meta name="darkreader-lock">
|
||||||
<meta name="color-scheme" content="only light">
|
<meta name="color-scheme" content="only light">
|
||||||
|
|
||||||
|
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png">
|
<link rel="icon" href="%sveltekit.assets%/favicon.png">
|
||||||
<!-- Google tag (gtag.js) -->
|
<!-- Google tag (gtag.js) -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9LGPCDJK2R"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9LGPCDJK2R"></script>
|
||||||
@ -26,6 +27,7 @@
|
|||||||
|
|
||||||
gtag('config', 'G-9LGPCDJK2R');
|
gtag('config', 'G-9LGPCDJK2R');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/icons/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/icons/apple-touch-icon.png">
|
||||||
<link type="application/activity+json" href="" />
|
<link type="application/activity+json" href="" />
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@
|
|||||||
<style>
|
<style>
|
||||||
:global(:root) {
|
:global(:root) {
|
||||||
--primary: #ffffff;
|
--primary: #ffffff;
|
||||||
--secondary: #000000;
|
--secondary: #82b52d;
|
||||||
|
|
||||||
--white: #ffffff;
|
--white: #ffffff;
|
||||||
--gray: #75757e;
|
--gray: #75757e;
|
||||||
@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
--dialog-backdrop: rgba(255, 255, 255, 0.3);
|
--dialog-backdrop: rgba(255, 255, 255, 0.3);
|
||||||
|
|
||||||
--sidebar-bg: #000000;
|
--sidebar-bg: #82b52d;
|
||||||
--sidebar-highlight: #ffffff;
|
--sidebar-highlight: #ffffff;
|
||||||
--sidebar-hover: rgba(255, 255, 255, 0.1);
|
--sidebar-hover: rgba(255, 255, 255, 0.1);
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 253 KiB |
@ -63,19 +63,24 @@ const config = {
|
|||||||
"object-src": ["none"],
|
"object-src": ["none"],
|
||||||
"frame-src": [
|
"frame-src": [
|
||||||
"self",
|
"self",
|
||||||
"challenges.cloudflare.com"
|
"challenges.cloudflare.com",
|
||||||
|
"www.googletagmanager.com",
|
||||||
|
"www.google-analytics.com"
|
||||||
],
|
],
|
||||||
|
|
||||||
"script-src": [
|
"script-src": [
|
||||||
"self",
|
"self",
|
||||||
"wasm-unsafe-eval",
|
"wasm-unsafe-eval",
|
||||||
"challenges.cloudflare.com",
|
"challenges.cloudflare.com",
|
||||||
|
"www.googletagmanager.com",
|
||||||
|
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
process.env.WEB_PLAUSIBLE_HOST ? process.env.WEB_PLAUSIBLE_HOST : "",
|
process.env.WEB_PLAUSIBLE_HOST ? process.env.WEB_PLAUSIBLE_HOST : "",
|
||||||
|
|
||||||
// hash of the theme preloader in app.html
|
// hash of the theme preloader in app.html
|
||||||
"sha256-g67gIjM3G8yMbjbxyc3QUoVsKhdxgcQzCmSKXiZZo6s=",
|
"sha256-g67gIjM3G8yMbjbxyc3QUoVsKhdxgcQzCmSKXiZZo6s=",
|
||||||
|
"sha256-oQHnOU77SR8E/F28VTyS5XSYOYZVgdVbOb/tEkoMvfs="
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
"frame-ancestors": ["none"]
|
"frame-ancestors": ["none"]
|
||||||
|
Loading…
Reference in New Issue
Block a user