feat: roadmap
This commit is contained in:
parent
8e6c0c7bb7
commit
15cdafd050
20
source/roadmap/index.md
Normal file
20
source/roadmap/index.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
title: 陈不渡 - roadmap
|
||||||
|
layout: roadmap
|
||||||
|
initYear: 2023
|
||||||
|
years:
|
||||||
|
2022:
|
||||||
|
- name: 读书
|
||||||
|
start: 01-01
|
||||||
|
end: 2-31
|
||||||
|
- name: 还是读书
|
||||||
|
start: 02-01
|
||||||
|
end: 05-30
|
||||||
|
2023:
|
||||||
|
- name: 读书22
|
||||||
|
start: 01-01
|
||||||
|
end: 2-31
|
||||||
|
- name: 还是读书222
|
||||||
|
start: 02-01
|
||||||
|
end: 06-30
|
||||||
|
---
|
|
@ -12,6 +12,7 @@ tip-prev-page: Prev Page
|
||||||
tip-next-page: Next Page
|
tip-next-page: Next Page
|
||||||
tip-collapse: Collapse
|
tip-collapse: Collapse
|
||||||
tip-expand: Expand
|
tip-expand: Expand
|
||||||
|
tip-roadmap-today: Positioning to the today
|
||||||
# text
|
# text
|
||||||
text-select: select
|
text-select: select
|
||||||
text-move: movement
|
text-move: movement
|
||||||
|
@ -19,6 +20,7 @@ text-esc: close
|
||||||
text-post-count-prev: Total of
|
text-post-count-prev: Total of
|
||||||
text-post-count-next: Posts
|
text-post-count-next: Posts
|
||||||
text-timeline: Timeline
|
text-timeline: Timeline
|
||||||
|
text-roadmap: Roadmap
|
||||||
text-search: Search...
|
text-search: Search...
|
||||||
text-category: Category
|
text-category: Category
|
||||||
text-author: Author
|
text-author: Author
|
||||||
|
|
|
@ -25,3 +25,5 @@ text-pub-time: Publicado en
|
||||||
text-license: Licencia
|
text-license: Licencia
|
||||||
text-post-link: URL de la Publicación
|
text-post-link: URL de la Publicación
|
||||||
text-catalog: Catálogo
|
text-catalog: Catálogo
|
||||||
|
text-today: Today
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ tip-prev-page: 上一页
|
||||||
tip-next-page: 下一页
|
tip-next-page: 下一页
|
||||||
tip-collapse: 折叠
|
tip-collapse: 折叠
|
||||||
tip-expand: 展开
|
tip-expand: 展开
|
||||||
|
tip-roadmap-today: 定位今天
|
||||||
# text
|
# text
|
||||||
text-select: 选择
|
text-select: 选择
|
||||||
text-move: 移动
|
text-move: 移动
|
||||||
|
@ -19,6 +20,7 @@ text-esc: 关闭
|
||||||
text-post-count-prev: 共
|
text-post-count-prev: 共
|
||||||
text-post-count-next: 篇
|
text-post-count-next: 篇
|
||||||
text-timeline: 时间轴
|
text-timeline: 时间轴
|
||||||
|
text-roadmap: 路线
|
||||||
text-search: 搜索...
|
text-search: 搜索...
|
||||||
text-category: 分类
|
text-category: 分类
|
||||||
text-author: 作者
|
text-author: 作者
|
||||||
|
@ -26,3 +28,4 @@ text-pub-time: 发布于
|
||||||
text-license: 许可
|
text-license: 许可
|
||||||
text-post-link: 本文链接
|
text-post-link: 本文链接
|
||||||
text-catalog: 目录
|
text-catalog: 目录
|
||||||
|
text-today: 今天
|
||||||
|
|
|
@ -77,4 +77,4 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%- js("/js/430dbbd6.js")%>
|
<%- js("/js/c413ebaa.js")%>
|
|
@ -40,4 +40,4 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<%- js("/js/1247bc3e.js")%>
|
<%- js("/js/28c7ec49.js")%>
|
|
@ -63,9 +63,11 @@
|
||||||
"tip-status-todo": "<%- __('tip-status-todo') %>",
|
"tip-status-todo": "<%- __('tip-status-todo') %>",
|
||||||
"tip-status-other": "<%- __('tip-status-other') %>",
|
"tip-status-other": "<%- __('tip-status-other') %>",
|
||||||
"tip-status-default": "<%- __('tip-status-default') %>",
|
"tip-status-default": "<%- __('tip-status-default') %>",
|
||||||
"text-search": "<%- __('text-search') %>"
|
"tip-roadmap-today": "<%- __('tip-roadmap-today') %>",
|
||||||
|
"text-search": "<%- __('text-search') %>",
|
||||||
|
"text-today": "<%- __('text-today') %>"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<%- js("/js/85d1c72e.js")%>
|
<%- js("/js/4804421d.js")%>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -14,6 +14,18 @@
|
||||||
<div class="ellipsis"><%- __('text-timeline') %></div>
|
<div class="ellipsis"><%- __('text-timeline') %></div>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li data-path="roadmap">
|
||||||
|
<a href="/roadmap">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24">
|
||||||
|
<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M10.5 20.4l-6.9-6.9c-.781-.781-.781-2.219 0-3l6.9-6.9c.781-.781 2.219-.781 3 0l6.9 6.9c.781.781.781 2.219 0 3l-6.9 6.9c-.781.781-2.219.781-3 0z"></path>
|
||||||
|
<path d="M9 14v-2c0-.59.414-1 1-1h5"></path>
|
||||||
|
<path d="M13 9l2 2l-2 2"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
<div class="ellipsis"><%- __('text-roadmap') %></div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p><%- __('text-category') %></p>
|
<p><%- __('text-category') %></p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<%- css("/css/afbb98c2.css")%>
|
<%- css("/css/32ae9342.css")%>
|
||||||
|
|
||||||
<div class="post-container">
|
<div class="post-container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
21
themes/hexo-theme-cosy/layout/roadmap.ejs
Normal file
21
themes/hexo-theme-cosy/layout/roadmap.ejs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<%- css("/css/2c8f5fef.css")%>
|
||||||
|
|
||||||
|
<div class="roadmap">
|
||||||
|
<div class="timeline-bar">
|
||||||
|
<div id="segmented-control-container"></div>
|
||||||
|
<section>
|
||||||
|
<button id="year-dropdown"><%= page.initYear %></button>
|
||||||
|
<button id="tody-button" style="display: none;" class="tip left" data-tip="<%- __('tip-roadmap-today') %>"><%- __('text-today') %></button>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div id="gantt-container" class="scrollbar-obtrusive"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.roadmapYears = JSON.parse('<%- road_to_json(page.years) %>')
|
||||||
|
window.initYear = '<%= page.initYear %>'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<%- js("/js/668b438c.js")%>
|
6
themes/hexo-theme-cosy/scripts/road-to-json.js
Normal file
6
themes/hexo-theme-cosy/scripts/road-to-json.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
hexo.extend.helper.register('road_to_json', (roadObj) => {
|
||||||
|
return !roadObj ? 'null' : JSON.stringify(roadObj)
|
||||||
|
.replace(/</g, '\\u003c')
|
||||||
|
.replace(/>/g, '\\u003e')
|
||||||
|
.replace(/&/g, '\\u0026')
|
||||||
|
});
|
1
themes/hexo-theme-cosy/source/css/2c8f5fef.css
Normal file
1
themes/hexo-theme-cosy/source/css/2c8f5fef.css
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#gantt-container{cursor:grab}#gantt-container:before{background:var(--color-border-2);content:"";height:1px;left:0;position:sticky;right:0;top:60px}#gantt-container .timeline-container{position:relative;user-select:none;white-space:nowrap}#gantt-container .timeline-container .days-row,#gantt-container .timeline-container .months-row{height:30px;position:relative}#gantt-container .timeline-container .day,#gantt-container .timeline-container .month{color:var(--color-font-2);height:30px;line-height:30px;position:absolute;text-align:center}#gantt-container .timeline-container .day.today,#gantt-container .timeline-container .month.today{position:relative}#gantt-container .timeline-container .day.today:before,#gantt-container .timeline-container .month.today:before{background-color:var(--color-primary);border-radius:50%;content:"";height:8px;left:50%;position:absolute;top:-4px;transform:translateX(-50%);width:8px}#gantt-container .task-container{flex:1;position:relative}#gantt-container .task-container .task-bar{background:linear-gradient(to right,var(--color-primary-2),var(--color-primary-3));border-radius:var(--radius);cursor:pointer;padding:0 10px;z-index:10}.roadmap{display:flex;flex-direction:column;height:100%}.roadmap .timeline-bar{border-bottom:1px solid var(--color-border-2);height:45px;justify-content:space-between;padding:6px 24px}.roadmap .timeline-bar,.roadmap .timeline-bar section{align-items:center;display:flex}.roadmap .timeline-bar section button{background:var(--color-seg-selected);border:1px solid var(--color-seg-border);border-radius:var(--radius);box-shadow:0 1px 4px rgba(0,0,0,.09);color:var(--color-font);cursor:pointer;margin-left:8px;padding:2px 8px;transition:all .3s}.roadmap .timeline-bar section button:hover{color:var(--color-font-2)}.roadmap .timeline-bar section button:active{color:var(--color-font-3)}.roadmap .timeline-bar section button:first-child{margin-left:0}.roadmap #gantt-container{display:flex;flex:1;flex-direction:column;overflow-x:auto;overflow-y:hidden;position:relative}
|
1
themes/hexo-theme-cosy/source/css/32ae9342.css
Normal file
1
themes/hexo-theme-cosy/source/css/32ae9342.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
(()=>{"use strict";const o="__theme__",r={light:{"--color-primary":"rgb(110, 121, 214)","--color-primary-2":"rgba(110, 121, 214, .1)","--color-font":"rgb(40, 42, 48)","--color-font-2":"rgb(107, 111, 118)","--color-font-3":"rgb(160, 160, 160)","--color-menu-hover":"#f4f2f4","--color-tiny-hover":"rgb(251, 251, 252)","--color-border":"rgb(237, 240, 243)","--color-border-2":"rgba(237, 240, 243, .5)","--color-article-selection":"rgba(33, 96, 219, 0.4)","--color-selection":"rgba(106, 111, 117, 0.2)","--color-bg":"#fff","--color-bg-2":"#fafafa","--color-bg-3":"rgb(239, 239, 239)","--color-bg-4":"rgba(223, 225, 228,.6)","--color-bg-mask":"rgba(255, 255, 255,.6)","--shadow-button":"rgba(0, 0, 0, 0.09) 0px 1px 4px","--shadow-box":"rgb(0 0 0 / 23%) 0px 16px 70px","--border-button":"1px solid rgb(223, 225, 228)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(143, 149, 156, 0.3)","--dropdown-bdf":"blur(12px) saturate(190%) contrast(50%) brightness(130%)","--dropdown-bg":"rgba(255, 255, 255, 0.5)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.09) 0px 3px 12px","--dropdown-border":"1px solid rgb(233, 233, 233)"},dark:{"--color-primary":"rgb(90, 79, 182)","--color-primary-2":"rgba(90, 79, 182, .7)","--color-font":"rgb(215, 213, 207)","--color-font-2":"rgb(148, 155, 167)","--color-font-3":"rgb(107, 111, 118)","--color-menu-hover":"rgb(45, 47, 54)","--color-tiny-hover":"rgb(30, 30, 33)","--color-border":"rgb(68, 65, 62)","--color-border-2":"rgba(68, 65, 62, .7)","--color-article-selection":"rgba(72, 160, 255, 0.6)","--color-selection":"rgba(90, 95, 107, 0.8)","--color-bg":"#1f2023","--color-bg-2":"#27282b","--color-bg-3":"rgb(48, 50, 54)","--color-bg-4":"rgba(48, 50, 54,.6)","--color-bg-mask":"rgba(0, 0, 0, .2)","--shadow-button":"rgba(255, 255, 255, 0.05) 0px -1px 4px","--shadow-box":"rgb(0 0 0 / 77%) 0px -16px 70px","--border-button":"1px solid rgb(32, 35, 40)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(112, 116, 121, 0.7)","--dropdown-bdf":"blur(10px) saturate(190%) contrast(70%) brightness(80%)","--dropdown-bg":"rgba(29, 30, 43, 0.498)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.2) 0px 4px 24px","--dropdown-border":"1px solid rgba(82, 82, 111, 0.44)"}},t=o=>{for(const[r,t]of Object.entries(o))document.documentElement.style.setProperty(r,t)},b=()=>{const r=localStorage.getItem(o);return null!=r?r:"light"},l=b=>{const l=r[b];(r=>{localStorage.setItem(o,r)})(b),t(l)};document.addEventListener("DOMContentLoaded",(function(){const o=document.getElementById("toggle-theme");o&&(o.classList.add("light"===b()?"light":"dark"),o.addEventListener("click",(function(){"light"===b()?(o.classList.remove("light"),o.classList.add("dark"),l("dark")):(o.classList.add("light"),o.classList.remove("dark"),l("light"))})))}))})();
|
|
1
themes/hexo-theme-cosy/source/js/28c7ec49.js
Normal file
1
themes/hexo-theme-cosy/source/js/28c7ec49.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
(()=>{"use strict";const o="__theme__",r={light:{"--color-primary":"rgb(110, 121, 214)","--color-primary-2":"rgba(110, 121, 214, .1)","--color-primary-3":"rgba(110, 121, 214, .03)","--color-font":"rgb(40, 42, 48)","--color-font-2":"rgb(107, 111, 118)","--color-font-3":"rgb(160, 160, 160)","--color-menu-hover":"#f4f2f4","--color-tiny-hover":"rgb(251, 251, 252)","--color-border":"rgb(237, 240, 243)","--color-border-2":"rgba(237, 240, 243, .5)","--color-article-selection":"rgba(33, 96, 219, 0.4)","--color-selection":"rgba(106, 111, 117, 0.2)","--color-bg":"#fff","--color-bg-2":"#fafafa","--color-bg-3":"rgb(239, 239, 239)","--color-bg-4":"rgba(223, 225, 228,.6)","--color-bg-segment":"rgb(244, 245, 248)","--color-seg-selected":"#fff","--color-seg-border":"rgb(223, 225, 228)","--color-bg-mask":"rgba(255, 255, 255,.6)","--shadow-button":"rgba(0, 0, 0, 0.09) 0px 1px 4px","--shadow-box":"rgb(0 0 0 / 23%) 0px 16px 70px","--border-button":"1px solid rgb(223, 225, 228)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(143, 149, 156, 0.3)","--dropdown-bdf":"blur(12px) saturate(190%) contrast(50%) brightness(130%)","--dropdown-bg":"rgba(255, 255, 255, 0.5)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.09) 0px 3px 12px","--dropdown-border":"1px solid rgb(233, 233, 233)"},dark:{"--color-primary":"rgb(90, 79, 182)","--color-primary-2":"rgba(90, 79, 182, .7)","--color-primary-3":"rgba(110, 121, 214, .1)","--color-font":"rgb(215, 213, 207)","--color-font-2":"rgb(148, 155, 167)","--color-font-3":"rgb(107, 111, 118)","--color-menu-hover":"rgb(45, 47, 54)","--color-tiny-hover":"rgb(30, 30, 33)","--color-border":"rgb(68, 65, 62)","--color-border-2":"rgba(68, 65, 62, .7)","--color-article-selection":"rgba(72, 160, 255, 0.6)","--color-selection":"rgba(90, 95, 107, 0.8)","--color-bg":"#1f2023","--color-bg-2":"#27282b","--color-bg-3":"rgb(48, 50, 54)","--color-bg-4":"rgba(48, 50, 54,.6)","--color-bg-segment":"#1f2023","--color-seg-selected":"rgb(57 57 57)","--color-seg-border":"rgb(49, 50, 72)","--color-bg-mask":"rgba(0, 0, 0, .2)","--shadow-button":"rgba(255, 255, 255, 0.05) 0px -1px 4px","--shadow-box":"rgb(0 0 0 / 77%) 0px -16px 70px","--border-button":"1px solid rgb(32, 35, 40)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(112, 116, 121, 0.7)","--dropdown-bdf":"blur(10px) saturate(190%) contrast(70%) brightness(80%)","--dropdown-bg":"rgba(29, 30, 43, 0.498)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.2) 0px 4px 24px","--dropdown-border":"1px solid rgba(82, 82, 111, 0.44)"}},b=o=>{for(const[r,b]of Object.entries(o))document.documentElement.style.setProperty(r,b)},l=()=>{const r=localStorage.getItem(o);return null!=r?r:"light"},t=l=>{const t=r[l];(r=>{localStorage.setItem(o,r)})(l),b(t)};document.addEventListener("DOMContentLoaded",(function(){const o=document.getElementById("toggle-theme");o&&(o.classList.add("light"===l()?"light":"dark"),o.addEventListener("click",(function(){"light"===l()?(o.classList.remove("light"),o.classList.add("dark"),t("dark")):(o.classList.add("light"),o.classList.remove("dark"),t("light"))})))}))})();
|
File diff suppressed because one or more lines are too long
1
themes/hexo-theme-cosy/source/js/4804421d.js
Normal file
1
themes/hexo-theme-cosy/source/js/4804421d.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
(()=>{"use strict";const r="__theme__",o={light:{"--color-primary":"rgb(110, 121, 214)","--color-primary-2":"rgba(110, 121, 214, .1)","--color-primary-3":"rgba(110, 121, 214, .03)","--color-font":"rgb(40, 42, 48)","--color-font-2":"rgb(107, 111, 118)","--color-font-3":"rgb(160, 160, 160)","--color-menu-hover":"#f4f2f4","--color-tiny-hover":"rgb(251, 251, 252)","--color-border":"rgb(237, 240, 243)","--color-border-2":"rgba(237, 240, 243, .5)","--color-article-selection":"rgba(33, 96, 219, 0.4)","--color-selection":"rgba(106, 111, 117, 0.2)","--color-bg":"#fff","--color-bg-2":"#fafafa","--color-bg-3":"rgb(239, 239, 239)","--color-bg-4":"rgba(223, 225, 228,.6)","--color-bg-segment":"rgb(244, 245, 248)","--color-seg-selected":"#fff","--color-seg-border":"rgb(223, 225, 228)","--color-bg-mask":"rgba(255, 255, 255,.6)","--shadow-button":"rgba(0, 0, 0, 0.09) 0px 1px 4px","--shadow-box":"rgb(0 0 0 / 23%) 0px 16px 70px","--border-button":"1px solid rgb(223, 225, 228)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(143, 149, 156, 0.3)","--dropdown-bdf":"blur(12px) saturate(190%) contrast(50%) brightness(130%)","--dropdown-bg":"rgba(255, 255, 255, 0.5)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.09) 0px 3px 12px","--dropdown-border":"1px solid rgb(233, 233, 233)"},dark:{"--color-primary":"rgb(90, 79, 182)","--color-primary-2":"rgba(90, 79, 182, .7)","--color-primary-3":"rgba(110, 121, 214, .1)","--color-font":"rgb(215, 213, 207)","--color-font-2":"rgb(148, 155, 167)","--color-font-3":"rgb(107, 111, 118)","--color-menu-hover":"rgb(45, 47, 54)","--color-tiny-hover":"rgb(30, 30, 33)","--color-border":"rgb(68, 65, 62)","--color-border-2":"rgba(68, 65, 62, .7)","--color-article-selection":"rgba(72, 160, 255, 0.6)","--color-selection":"rgba(90, 95, 107, 0.8)","--color-bg":"#1f2023","--color-bg-2":"#27282b","--color-bg-3":"rgb(48, 50, 54)","--color-bg-4":"rgba(48, 50, 54,.6)","--color-bg-segment":"#1f2023","--color-seg-selected":"rgb(57 57 57)","--color-seg-border":"rgb(49, 50, 72)","--color-bg-mask":"rgba(0, 0, 0, .2)","--shadow-button":"rgba(255, 255, 255, 0.05) 0px -1px 4px","--shadow-box":"rgb(0 0 0 / 77%) 0px -16px 70px","--border-button":"1px solid rgb(32, 35, 40)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(112, 116, 121, 0.7)","--dropdown-bdf":"blur(10px) saturate(190%) contrast(70%) brightness(80%)","--dropdown-bg":"rgba(29, 30, 43, 0.498)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.2) 0px 4px 24px","--dropdown-border":"1px solid rgba(82, 82, 111, 0.44)"}},e=r=>{for(const[o,e]of Object.entries(r))document.documentElement.style.setProperty(o,e)},t=()=>{var t;const l=o[null!==(t=(()=>{const o=localStorage.getItem(r);return null!=o?o:"light"})())&&void 0!==t?t:"light"];e(l)},l='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2"></rect><path d="M9 4v16"></path></g></svg>';document.addEventListener("DOMContentLoaded",(function(){t();const r=document.querySelector(".side-navigation"),o=document.querySelector("#app"),e=document.querySelector("#app >main");r&&o&&r.addEventListener("click",(()=>{o.className.includes("equip")?(o.classList.remove("equip"),r.setAttribute("data-tip",window.i18n["tip-expand"]),r.innerHTML=l):(o.classList.add("equip"),r.setAttribute("data-tip",window.i18n["tip-collapse"]),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2"></rect><path d="M9 4v16"></path><path d="M15 10l-2 2l2 2"></path></g></svg>')})),e&&o&&r&&e.addEventListener("click",(()=>{o.className.includes("equip")&&(o.classList.remove("equip"),r.setAttribute("data-tip",window.i18n["tip-expand"]),r.innerHTML=l)}))}))})();
|
1
themes/hexo-theme-cosy/source/js/668b438c.js
Normal file
1
themes/hexo-theme-cosy/source/js/668b438c.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
(()=>{"use strict";const o="__theme__",r={light:{"--color-primary":"rgb(110, 121, 214)","--color-primary-2":"rgba(110, 121, 214, .1)","--color-font":"rgb(40, 42, 48)","--color-font-2":"rgb(107, 111, 118)","--color-font-3":"rgb(160, 160, 160)","--color-menu-hover":"#f4f2f4","--color-tiny-hover":"rgb(251, 251, 252)","--color-border":"rgb(237, 240, 243)","--color-border-2":"rgba(237, 240, 243, .5)","--color-article-selection":"rgba(33, 96, 219, 0.4)","--color-selection":"rgba(106, 111, 117, 0.2)","--color-bg":"#fff","--color-bg-2":"#fafafa","--color-bg-3":"rgb(239, 239, 239)","--color-bg-4":"rgba(223, 225, 228,.6)","--color-bg-mask":"rgba(255, 255, 255,.6)","--shadow-button":"rgba(0, 0, 0, 0.09) 0px 1px 4px","--shadow-box":"rgb(0 0 0 / 23%) 0px 16px 70px","--border-button":"1px solid rgb(223, 225, 228)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(143, 149, 156, 0.3)","--dropdown-bdf":"blur(12px) saturate(190%) contrast(50%) brightness(130%)","--dropdown-bg":"rgba(255, 255, 255, 0.5)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.09) 0px 3px 12px","--dropdown-border":"1px solid rgb(233, 233, 233)"},dark:{"--color-primary":"rgb(90, 79, 182)","--color-primary-2":"rgba(90, 79, 182, .7)","--color-font":"rgb(215, 213, 207)","--color-font-2":"rgb(148, 155, 167)","--color-font-3":"rgb(107, 111, 118)","--color-menu-hover":"rgb(45, 47, 54)","--color-tiny-hover":"rgb(30, 30, 33)","--color-border":"rgb(68, 65, 62)","--color-border-2":"rgba(68, 65, 62, .7)","--color-article-selection":"rgba(72, 160, 255, 0.6)","--color-selection":"rgba(90, 95, 107, 0.8)","--color-bg":"#1f2023","--color-bg-2":"#27282b","--color-bg-3":"rgb(48, 50, 54)","--color-bg-4":"rgba(48, 50, 54,.6)","--color-bg-mask":"rgba(0, 0, 0, .2)","--shadow-button":"rgba(255, 255, 255, 0.05) 0px -1px 4px","--shadow-box":"rgb(0 0 0 / 77%) 0px -16px 70px","--border-button":"1px solid rgb(32, 35, 40)","--scrollbar-width":"12px","--scrollbar-min-size":"32px","--scrollbar-color":"rgba(112, 116, 121, 0.7)","--dropdown-bdf":"blur(10px) saturate(190%) contrast(70%) brightness(80%)","--dropdown-bg":"rgba(29, 30, 43, 0.498)","--dropdown-boxShadow":"rgba(0, 0, 0, 0.2) 0px 4px 24px","--dropdown-border":"1px solid rgba(82, 82, 111, 0.44)"}},t=o=>{for(const[r,t]of Object.entries(o))document.documentElement.style.setProperty(r,t)},e=()=>{var e;const l=r[null!==(e=(()=>{const r=localStorage.getItem(o);return null!=r?r:"light"})())&&void 0!==e?e:"light"];t(l)},l='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2"></rect><path d="M9 4v16"></path></g></svg>';document.addEventListener("DOMContentLoaded",(function(){e();const o=document.querySelector(".side-navigation"),r=document.querySelector("#app"),t=document.querySelector("#app >main");o&&r&&o.addEventListener("click",(()=>{r.className.includes("equip")?(r.classList.remove("equip"),o.setAttribute("data-tip",window.i18n["tip-expand"]),o.innerHTML=l):(r.classList.add("equip"),o.setAttribute("data-tip",window.i18n["tip-collapse"]),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2"></rect><path d="M9 4v16"></path><path d="M15 10l-2 2l2 2"></path></g></svg>')})),t&&r&&o&&t.addEventListener("click",(()=>{r.className.includes("equip")&&(r.classList.remove("equip"),o.setAttribute("data-tip",window.i18n["tip-expand"]),o.innerHTML=l)}))}))})();
|
|
1
themes/hexo-theme-cosy/source/js/c413ebaa.js
Normal file
1
themes/hexo-theme-cosy/source/js/c413ebaa.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user