From 54b3d697bfda46f39fa41ea73634f318ea809937 Mon Sep 17 00:00:00 2001 From: yizhankui <2669587581@qq.com> Date: Sun, 19 Feb 2023 13:53:25 +0800 Subject: [PATCH 1/7] =?UTF-8?q?style(ColumnContainer):=20=E4=B8=93?= =?UTF-8?q?=E6=A0=8Fcss=E9=A2=9C=E8=89=B2=E6=8A=BD=E7=A6=BB=E5=92=8C?= =?UTF-8?q?=E6=9A=97=E8=89=B2=E4=B8=BB=E9=A2=98=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/assets/css/main.css | 3 +++ .../ArticlesContent/End/ColumnContainer.vue | 14 +++++++------- frontend/unocss.config.ts | 6 ++++++ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/frontend/assets/css/main.css b/frontend/assets/css/main.css index d517214..f91cebd 100644 --- a/frontend/assets/css/main.css +++ b/frontend/assets/css/main.css @@ -96,6 +96,7 @@ --jjext-color-fill: #3686ff; --jjext-color-more-list: #9aa3ab; --jjext-color-more-list-border: #ddd; + --jjext-color-column-primary-bg: #1d7dfa; --juejin-color-navs-item-after: #ef4444; --juejin-color-types-list: #71777c; --juejin-color-types-list-tag: #8a9aa9; @@ -230,6 +231,7 @@ html { --juejin-search-border:#ebebeb; --juejin-search-text:#5e6369; --juejin-404-bg:#fff; + --juejin-column-container-bg:#f7f8fa; } html.dark { @@ -362,6 +364,7 @@ html.dark { --juejin-search-border:#b9babe59; --juejin-search-text:#fff; --juejin-404-bg:#222323; + --juejin-column-container-bg:#1e1e20; } .page-enter-active, diff --git a/frontend/components/ArticlesContent/End/ColumnContainer.vue b/frontend/components/ArticlesContent/End/ColumnContainer.vue index dec6943..166d158 100644 --- a/frontend/components/ArticlesContent/End/ColumnContainer.vue +++ b/frontend/components/ArticlesContent/End/ColumnContainer.vue @@ -56,10 +56,10 @@ const handleClick = async (i: any) => { diff --git a/frontend/pages/article/[id].vue b/frontend/pages/article/[id].vue index 505e852..2efcc3c 100644 --- a/frontend/pages/article/[id].vue +++ b/frontend/pages/article/[id].vue @@ -79,12 +79,8 @@ onMounted(() => { position: relative; max-width: 100%; box-sizing: border-box; - } -} - -@media (max-width: 960px) { - .suspension-panel { - display: none; + padding-left: 2rem; + padding-right: 2rem; } } From ee5b406bb1d1113d8a37c49c590120df1e3de961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=A5=A5=E6=9F=8F?= <1760399176@qq.com> Date: Sun, 19 Feb 2023 15:33:44 +0800 Subject: [PATCH 3/7] fix: eslint --- frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue b/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue index 9ece1c6..585eec4 100644 --- a/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue +++ b/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue @@ -46,7 +46,7 @@ const currentScrollTop = shallowRef(0) const getInitByScroll = () => { const articleDom = document.getElementById('markdown-body') const headings = articleDom?.querySelectorAll('h1, h2, h3') - headings?.forEach((item: any, i) => { + headings?.forEach((item: any) => { heading.value.push(item) }) From 420ccb0e36b514f4a7ad42d65be53861869ddfc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E7=A5=A5=E6=9F=8F?= <1760399176@qq.com> Date: Sun, 19 Feb 2023 16:18:41 +0800 Subject: [PATCH 4/7] =?UTF-8?q?fix:=20=E8=BE=B9=E8=B7=9D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documentation/documentation/1.0.0/full_documentation.json | 2 +- frontend/components/ArticlesContent/index.vue | 2 +- frontend/pages/article/[id].vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json index ec60958..36bb281 100644 --- a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2023-02-18T15:17:00.843Z" + "x-generation-date": "2023-02-19T08:18:39.372Z" }, "x-strapi-config": { "path": "/documentation", diff --git a/frontend/components/ArticlesContent/index.vue b/frontend/components/ArticlesContent/index.vue index bbcfe90..7d10aab 100644 --- a/frontend/components/ArticlesContent/index.vue +++ b/frontend/components/ArticlesContent/index.vue @@ -63,7 +63,7 @@ const { immerseState } = useImmerse()