From 0cdf2c80b9619aaacb462199dc5db580feca0484 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Thu, 6 Apr 2023 14:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style(eslint):=20=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=AC=A1=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit camecase 回头在部分文件 ignore 掉,不然不兼容之前的版本及外部接口 (cherry picked from commit 740b4698e916ce0f7911f5eac934183a94288e61) --- src/App.vue | 54 +-- src/assets/css/anno-parser.css | 68 +-- src/assets/css/post-parser.css | 128 +++--- src/assets/fonts/index.css | 14 +- src/assets/index.css | 28 +- src/components/t-backTop.vue | 44 +- src/components/t-calendar.vue | 126 +++--- src/components/t-confirm.vue | 124 +++--- src/components/t-loading.vue | 111 +++-- src/components/t-pool.vue | 173 ++++---- src/components/t-position.vue | 116 +++--- src/components/t-sidebar.vue | 214 +++++----- src/pages/Achievements.vue | 333 +++++++-------- src/pages/Announcements.vue | 230 +++++----- src/pages/Config.vue | 278 ++++++------- src/pages/GCG.vue | 266 ++++++------ src/pages/Home.vue | 4 +- src/plugins/Genshin/request/announcements.ts | 2 +- src/plugins/Mys/interface/utils.ts | 2 +- src/plugins/Mys/request/news.ts | 8 +- src/plugins/Mys/utils/parser.ts | 12 +- src/views/t-anno-json.vue | 40 +- src/views/t-anno.vue | 28 +- src/views/t-lottery.vue | 178 ++++---- src/views/t-news.vue | 416 ++++++++++--------- src/views/t-post-json.vue | 18 +- src/views/t-post.vue | 14 +- 27 files changed, 1527 insertions(+), 1502 deletions(-) diff --git a/src/App.vue b/src/App.vue index c87b20d5..c1726af2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,27 +1,27 @@ diff --git a/src/assets/css/anno-parser.css b/src/assets/css/anno-parser.css index 9f0b690c..9da276f7 100644 --- a/src/assets/css/anno-parser.css +++ b/src/assets/css/anno-parser.css @@ -4,74 +4,74 @@ */ .anno-body { - margin: 20px auto; - width: 800px; - font-family: "Genshin-Light", serif; + margin: 20px auto; + width: 800px; + font-family: "Genshin-Light", serif; } .anno-title { - font-family: Genshin, serif; - color: #5b738f; - font-size: 24px; - font-weight: 500; - margin-bottom: 8px; + font-family: Genshin, serif; + color: #5b738f; + font-size: 24px; + font-weight: 500; + margin-bottom: 8px; } .anno-subtitle { - font-size: 16px; - color: #a1aeb6; - margin-bottom: 16px; + font-size: 16px; + color: #a1aeb6; + margin-bottom: 16px; } .anno-img { - max-width: 100%; - width: 800px; - height: auto; - border-radius: 10px; - margin-bottom: 10px; + max-width: 100%; + width: 800px; + height: auto; + border-radius: 10px; + margin-bottom: 10px; } .anno-content { - line-height: 2; + line-height: 2; } .anno-link-icon { - width: 18px; - height: 18px; - color: #00c3ff; + width: 18px; + height: 18px; + color: #00c3ff; } .anno-content :deep(a) { - color: #00c3ff; - text-decoration: none; + color: #00c3ff; + text-decoration: none; } .anno-content :deep(p) { - line-height: 2; - color: #4b5366; + line-height: 2; + color: #4b5366; } .anno-content :deep(details) { - border: #35acce 2px solid; - padding: 10px; - border-radius: 10px; - margin: 10px; + border: #35acce 2px solid; + padding: 10px; + border-radius: 10px; + margin: 10px; } .anno-content :deep(details) div { - margin-left: 10px; + margin-left: 10px; } .anno-content :deep(details) ::marker { - color: #35acce; - content: "✧"; + color: #35acce; + content: "✧"; } .anno-content :deep(ol) { - list-style: "✧"; + list-style: "✧"; } .anno-content :deep(td) { - line-height: 2; - padding-left: 10px; + line-height: 2; + padding-left: 10px; } diff --git a/src/assets/css/post-parser.css b/src/assets/css/post-parser.css index 3e1afde4..6cade073 100644 --- a/src/assets/css/post-parser.css +++ b/src/assets/css/post-parser.css @@ -4,122 +4,122 @@ */ /* todo scoped 不生效 */ .mys-post-body { - margin: 20px auto; - width: 800px; - font-family: "Genshin-Light", serif; + margin: 20px auto; + width: 800px; + font-family: "Genshin-Light", serif; } :deep(.mys-post-div) { - margin: 20px auto; + margin: 20px auto; } :deep(.mys-post-span) { - line-height: 2; + line-height: 2; } :deep(.mys-post-link) { - color: #00c3ff; - text-decoration: none; + color: #00c3ff; + text-decoration: none; } :deep(.mys-post-details) { - border: #35acce 2px solid; - padding: 10px; - border-radius: 10px; + border: #35acce 2px solid; + padding: 10px; + border-radius: 10px; } :deep(.mys-post-details) ::marker { - color: #35acce; - content: "✧"; + color: #35acce; + content: "✧"; } :deep(.mys-post-divider) { - margin: 20px auto; + margin: 20px auto; } :deep(.mys-post-divider) img { - width: 800px; - height: auto; + width: 800px; + height: auto; } :deep(.mys-post-img) { - max-width: 100%; - width: 800px; - height: auto; - border-radius: 10px; + max-width: 100%; + width: 800px; + height: auto; + border-radius: 10px; } :deep(.mys-post-vod) { - width: 800px; - height: 450px; - border-radius: 10px; + width: 800px; + height: 450px; + border-radius: 10px; } :deep(.mys-post-iframe) { - width: 800px; - height: 450px; - overflow: hidden; - border: 0; - border-radius: 10px; + width: 800px; + height: 450px; + overflow: hidden; + border: 0; + border-radius: 10px; } :deep(.mys-post-link-card) { - width: 800px; - height: 200px; - padding: 10px; - border-radius: 10px; - display: flex; - background: #faf7e8; + width: 800px; + height: 200px; + padding: 10px; + border-radius: 10px; + display: flex; + background: #faf7e8; } :deep(.mys-post-unknown) { - width: 800px; - background: #5b738f; - color: #faf7e8; - font-family: Consolas, monospace; - border-radius: 10px; - padding: 10px; - margin: 10px auto; - border: 2px solid #485466; + width: 800px; + background: #5b738f; + color: #faf7e8; + font-family: Consolas, monospace; + border-radius: 10px; + padding: 10px; + margin: 10px auto; + border: 2px solid #485466; } :deep(.mys-post-link-card-cover) { - width: auto; - height: 180px; - border-radius: 10px; + width: auto; + height: 180px; + border-radius: 10px; } :deep(.mys-post-link-card-cover) img { - max-width: 400px; - width: auto; - height: 180px; - border-radius: 10px; + max-width: 400px; + width: auto; + height: 180px; + border-radius: 10px; } :deep(.mys-post-link-card-content) { - width: 100%; - padding-left: 20px; - height: 180px; + width: 100%; + padding-left: 20px; + height: 180px; } :deep(.mys-post-link-card-title) { - font-size: 20px; - font-family: Genshin, serif; - color: #546d8b; - height: 150px; + font-size: 20px; + font-family: Genshin, serif; + color: #546d8b; + height: 150px; } :deep(.mys-post-link-card-price) { - font-size: 20px; - font-weight: bold; - color: #ff6d6d; - display: inline-block; + font-size: 20px; + font-weight: bold; + color: #ff6d6d; + display: inline-block; } :deep(.mys-post-link-card-btn) { - display: inline-block; - float: right; - color: #00c3ff; - margin-right: 20px; - text-decoration: none; + display: inline-block; + float: right; + color: #00c3ff; + margin-right: 20px; + text-decoration: none; } diff --git a/src/assets/fonts/index.css b/src/assets/fonts/index.css index 74471c7b..13f5f66b 100644 --- a/src/assets/fonts/index.css +++ b/src/assets/fonts/index.css @@ -1,17 +1,17 @@ /* 设置全局字体 */ @font-face { - font-family: "Genshin"; - src: url("./汉仪文黑-85W.ttf") format("truetype"); + font-family: "Genshin"; + src: url("./汉仪文黑-85W.ttf") format("truetype"); } @font-face { - font-family: "Genshin-Light"; - src: url("./汉仪文黑-55W.ttf") format("truetype"); + font-family: "Genshin-Light"; + src: url("./汉仪文黑-55W.ttf") format("truetype"); } @font-face { - font-family: "Consolas"; - src: url("./consolas.ttf") format("truetype"); + font-family: "Consolas"; + src: url("./consolas.ttf") format("truetype"); } /* 全局字体样式 */ .global-font { - font-family: "Genshin", sans-serif; + font-family: "Genshin", sans-serif; } diff --git a/src/assets/index.css b/src/assets/index.css index 0cc31965..43cdb4c0 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -5,31 +5,31 @@ * @since Alpha v0.1.1 */ .dev-json { - padding: 20px; - border-radius: 20px; - font-family: Consolas, serif; + padding: 20px; + border-radius: 20px; + font-family: Consolas, serif; } /* card action 内的按钮 */ .card-btn { - background: #4a5366; - color: #ece5d8; - border-radius: 50px; - margin-left: 5px; + background: #4a5366; + color: #ece5d8; + border-radius: 50px; + margin-left: 5px; } .card-btn img { - width: 20px; - height: 20px; - margin: 5px; + width: 20px; + height: 20px; + margin: 5px; } .card-dev-btn { - background: #546d8b; - color: #faf7e8; + background: #546d8b; + color: #faf7e8; } .card-dev-btn img { - width: 18px; - height: 18px; + width: 18px; + height: 18px; } diff --git a/src/components/t-backTop.vue b/src/components/t-backTop.vue index 4d17e5ed..ef5ae5c7 100644 --- a/src/components/t-backTop.vue +++ b/src/components/t-backTop.vue @@ -1,9 +1,9 @@ diff --git a/src/components/t-confirm.vue b/src/components/t-confirm.vue index dcb24194..4607fe00 100644 --- a/src/components/t-confirm.vue +++ b/src/components/t-confirm.vue @@ -1,27 +1,27 @@ diff --git a/src/components/t-pool.vue b/src/components/t-pool.vue index 06df2285..5dce3097 100644 --- a/src/components/t-pool.vue +++ b/src/components/t-pool.vue @@ -1,45 +1,49 @@ @@ -378,102 +381,102 @@ async function exportJson () { diff --git a/src/pages/Announcements.vue b/src/pages/Announcements.vue index 9610dbf5..33833b6b 100644 --- a/src/pages/Announcements.vue +++ b/src/pages/Announcements.vue @@ -1,90 +1,90 @@ diff --git a/src/pages/Home.vue b/src/pages/Home.vue index db35cc60..3c223ac9 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -1,6 +1,6 @@ diff --git a/src/views/t-anno.vue b/src/views/t-anno.vue index 0770b141..089f1522 100644 --- a/src/views/t-anno.vue +++ b/src/views/t-anno.vue @@ -1,18 +1,18 @@ diff --git a/src/views/t-news.vue b/src/views/t-news.vue index d7204c8c..ff2b34c6 100644 --- a/src/views/t-news.vue +++ b/src/views/t-news.vue @@ -1,143 +1,143 @@