From 3ece22d8abfb82b50534852739823af42a56966f Mon Sep 17 00:00:00 2001 From: lbw Date: Mon, 20 Nov 2023 14:42:46 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactoring=20code.=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=89=8D=E7=AB=AF=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=9B=B8=E5=85=B3api=20=E6=96=B9=E4=BE=BF=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ChinaArea/index.vue | 11 +- src/components/CodeEditor/index.vue | 170 +++--- src/components/Crontab/index.vue | 66 +- src/components/DictTag/index.vue | 8 +- src/components/Link/custom-link.vue | 36 -- src/components/Link/index.ts | 11 - src/components/Link/index.vue | 92 --- src/components/Link/picker.vue | 75 --- src/components/Link/shop-pages.vue | 100 ---- src/components/PopoverInput/index.vue | 23 +- src/components/Popup/index.vue | 18 +- src/components/QueryTree/i18n/en.ts | 13 +- src/components/QueryTree/i18n/zh-cn.ts | 1 + src/components/RightToolbar/index.vue | 5 +- src/components/Upload/Image.vue | 9 +- src/components/Upload/i18n/en.ts | 2 + src/components/Upload/i18n/zh-cn.ts | 2 + src/components/Upload/index.vue | 33 +- src/components/Websocket/index.vue | 3 +- src/views/admin/file/form.vue | 2 +- src/views/admin/file/i18n/en.ts | 1 + src/views/admin/file/i18n/zh-cn.ts | 1 + src/views/admin/user/personal.vue | 794 +++++++++++-------------- 23 files changed, 564 insertions(+), 912 deletions(-) delete mode 100644 src/components/Link/custom-link.vue delete mode 100644 src/components/Link/index.ts delete mode 100644 src/components/Link/index.vue delete mode 100644 src/components/Link/picker.vue delete mode 100644 src/components/Link/shop-pages.vue diff --git a/src/components/ChinaArea/index.vue b/src/components/ChinaArea/index.vue index 2679b347..be631286 100644 --- a/src/components/ChinaArea/index.vue +++ b/src/components/ChinaArea/index.vue @@ -1,10 +1,10 @@ diff --git a/src/components/Crontab/index.vue b/src/components/Crontab/index.vue index c0f30ac4..32a0adaf 100644 --- a/src/components/Crontab/index.vue +++ b/src/components/Crontab/index.vue @@ -43,10 +43,10 @@ - 任意值 - 范围 - 间隔 - 指定 + 任意值 + 范围 + 间隔 + 指定 @@ -77,10 +77,10 @@ - 任意值 - 范围 - 间隔 - 指定 + 任意值 + 范围 + 间隔 + 指定 @@ -111,10 +111,10 @@ - 任意值 - 范围 - 间隔 - 指定 + 任意值 + 范围 + 间隔 + 指定 @@ -145,12 +145,12 @@ - 任意值 - 范围 - 间隔 - 指定 - 本月最后一天 - 不指定 + 任意值 + 范围 + 间隔 + 指定 + 本月最后一天 + 不指定 @@ -181,10 +181,10 @@ - 任意值 - 范围 - 间隔 - 指定 + 任意值 + 范围 + 间隔 + 指定 @@ -216,12 +216,12 @@ - 任意值 - 范围 - 间隔 - 指定 - 本月最后一周 - 不指定 + 任意值 + 范围 + 间隔 + 指定 + 本月最后一周 + 不指定 @@ -265,11 +265,11 @@ - 忽略 - 任意值 - 范围 - 间隔 - 指定 + 忽略 + 任意值 + 范围 + 间隔 + 指定 diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 5c3d4823..229b6826 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -1,8 +1,10 @@ @@ -325,211 +253,211 @@ defineExpose({ @import '/@/theme/mixins/index.scss'; .personal { - .personal-user { - height: 130px; - display: flex; - align-items: center; + .personal-user { + height: 130px; + display: flex; + align-items: center; - .personal-user-left { - width: 180px; - height: 130px; - border-radius: 3px; + .personal-user-left { + width: 180px; + height: 130px; + border-radius: 3px; - :deep(.el-upload) { - height: 100%; - } + :deep(.el-upload) { + height: 100%; + } - .personal-user-left-upload { - img { - width: 100%; - height: 100%; - border-radius: 3px; - } + .personal-user-left-upload { + img { + width: 100%; + height: 100%; + border-radius: 3px; + } - &:hover { - img { - animation: logoAnimation 0.3s ease-in-out; - } - } - } - } + &:hover { + img { + animation: logoAnimation 0.3s ease-in-out; + } + } + } + } - .personal-user-right { - flex: 1; - padding: 0 15px; + .personal-user-right { + flex: 1; + padding: 0 15px; - .personal-title { - font-size: 18px; - @include text-ellipsis(1); - } + .personal-title { + font-size: 18px; + @include text-ellipsis(1); + } - .personal-item { - display: flex; - align-items: center; - font-size: 13px; + .personal-item { + display: flex; + align-items: center; + font-size: 13px; - .personal-item-label { - color: var(--el-text-color-secondary); - @include text-ellipsis(1); - } + .personal-item-label { + color: var(--el-text-color-secondary); + @include text-ellipsis(1); + } - .personal-item-value { - @include text-ellipsis(1); - } - } - } - } + .personal-item-value { + @include text-ellipsis(1); + } + } + } + } - .personal-info { - .personal-info-more { - float: right; - color: var(--el-text-color-secondary); - font-size: 13px; + .personal-info { + .personal-info-more { + float: right; + color: var(--el-text-color-secondary); + font-size: 13px; - &:hover { - color: var(--el-color-primary); - cursor: pointer; - } - } + &:hover { + color: var(--el-color-primary); + cursor: pointer; + } + } - .personal-info-box { - height: 130px; - overflow: hidden; + .personal-info-box { + height: 130px; + overflow: hidden; - .personal-info-ul { - list-style: none; + .personal-info-ul { + list-style: none; - .personal-info-li { - font-size: 13px; - padding-bottom: 10px; + .personal-info-li { + font-size: 13px; + padding-bottom: 10px; - .personal-info-li-title { - display: inline-block; - @include text-ellipsis(1); - color: var(--el-text-color-secondary); - text-decoration: none; - } + .personal-info-li-title { + display: inline-block; + @include text-ellipsis(1); + color: var(--el-text-color-secondary); + text-decoration: none; + } - & a:hover { - color: var(--el-color-primary); - cursor: pointer; - } - } - } - } - } + & a:hover { + color: var(--el-color-primary); + cursor: pointer; + } + } + } + } + } - .personal-recommend-row { - .personal-recommend-col { - .personal-recommend { - position: relative; - height: 100px; - border-radius: 3px; - overflow: hidden; - cursor: pointer; + .personal-recommend-row { + .personal-recommend-col { + .personal-recommend { + position: relative; + height: 100px; + border-radius: 3px; + overflow: hidden; + cursor: pointer; - &:hover { - i { - right: 0px !important; - bottom: 0px !important; - transition: all ease 0.3s; - } - } + &:hover { + i { + right: 0px !important; + bottom: 0px !important; + transition: all ease 0.3s; + } + } - i { - position: absolute; - right: -10px; - bottom: -10px; - font-size: 70px; - transform: rotate(-30deg); - transition: all ease 0.3s; - } + i { + position: absolute; + right: -10px; + bottom: -10px; + font-size: 70px; + transform: rotate(-30deg); + transition: all ease 0.3s; + } - .personal-recommend-auto { - padding: 15px; - position: absolute; - left: 0; - top: 5%; - color: var(--next-color-white); + .personal-recommend-auto { + padding: 15px; + position: absolute; + left: 0; + top: 5%; + color: var(--next-color-white); - .personal-recommend-msg { - font-size: 12px; - margin-top: 10px; - } - } - } - } - } + .personal-recommend-msg { + font-size: 12px; + margin-top: 10px; + } + } + } + } + } - .personal-edit { - .personal-edit-title { - position: relative; - padding-left: 10px; - color: var(--el-text-color-regular); + .personal-edit { + .personal-edit-title { + position: relative; + padding-left: 10px; + color: var(--el-text-color-regular); - &::after { - content: ''; - width: 2px; - height: 10px; - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - background: var(--el-color-primary); - } - } + &::after { + content: ''; + width: 2px; + height: 10px; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + background: var(--el-color-primary); + } + } - .personal-edit-safe-box { - border-bottom: 1px solid var(--el-border-color-light, #ebeef5); - padding: 15px 0; + .personal-edit-safe-box { + border-bottom: 1px solid var(--el-border-color-light, #ebeef5); + padding: 15px 0; - .personal-edit-safe-item { - width: 100%; - display: flex; - align-items: center; - justify-content: space-between; + .personal-edit-safe-item { + width: 100%; + display: flex; + align-items: center; + justify-content: space-between; - .personal-edit-safe-item-left { - flex: 1; - overflow: hidden; + .personal-edit-safe-item-left { + flex: 1; + overflow: hidden; - .personal-edit-safe-item-left-label { - color: var(--el-text-color-regular); - margin-bottom: 5px; - } + .personal-edit-safe-item-left-label { + color: var(--el-text-color-regular); + margin-bottom: 5px; + } - .personal-edit-safe-item-left-value { - color: var(--el-text-color-secondary); - @include text-ellipsis(1); - margin-right: 15px; - } - } - } + .personal-edit-safe-item-left-value { + color: var(--el-text-color-secondary); + @include text-ellipsis(1); + margin-right: 15px; + } + } + } - &:last-of-type { - padding-bottom: 0; - border-bottom: none; - } - } - } + &:last-of-type { + padding-bottom: 0; + border-bottom: none; + } + } + } } .el-icon.avatar-uploader-icon { - font-size: 28px; - color: #8c939d; - width: 178px; - height: 178px; - text-align: center; + font-size: 28px; + color: #8c939d; + width: 178px; + height: 178px; + text-align: center; } .avatar { - width: 178px; - height: 100%; + width: 178px; + height: 100%; } .item { - display: flex; - flex-direction: column; - justify-content: center; + display: flex; + flex-direction: column; + justify-content: center; }