From b3a1db080d51818b20b6bd0870497655797331e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:41:45 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/Index.vue | 582 -------------------------------------- 1 file changed, 582 deletions(-) delete mode 100644 src/views/board/Index.vue diff --git a/src/views/board/Index.vue b/src/views/board/Index.vue deleted file mode 100644 index 2642447..0000000 --- a/src/views/board/Index.vue +++ /dev/null @@ -1,582 +0,0 @@ - - - From 8b4470c10fa3338f75b0b96fe7f8c004c9ea9363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:42:00 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/index.vue | 582 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 582 insertions(+) create mode 100644 src/views/board/index.vue diff --git a/src/views/board/index.vue b/src/views/board/index.vue new file mode 100644 index 0000000..2642447 --- /dev/null +++ b/src/views/board/index.vue @@ -0,0 +1,582 @@ + + + From 4574d2451dd5543dbd7b53ad9792c0b7cea39bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:44:13 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/Index1.vue | 566 ------------------------------------- 1 file changed, 566 deletions(-) delete mode 100644 src/views/board/Index1.vue diff --git a/src/views/board/Index1.vue b/src/views/board/Index1.vue deleted file mode 100644 index feba29c..0000000 --- a/src/views/board/Index1.vue +++ /dev/null @@ -1,566 +0,0 @@ - - - From 6ef44f8ddc588f8d3b9a9d06bc672d0877e06c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:44:25 +0800 Subject: [PATCH 04/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/index1.vue | 566 +++++++++++++++++++++++++++++++++++++ 1 file changed, 566 insertions(+) create mode 100644 src/views/board/index1.vue diff --git a/src/views/board/index1.vue b/src/views/board/index1.vue new file mode 100644 index 0000000..feba29c --- /dev/null +++ b/src/views/board/index1.vue @@ -0,0 +1,566 @@ + + + From 6e75a64cc2665471abdef28e42932faef48d6efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:46:40 +0800 Subject: [PATCH 05/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/error/403.vue | 8 - src/views/error/404.vue | 7 - src/views/error/500.vue | 7 - src/views/home/Index copy.vue | 381 ---------- src/views/home/Index2.vue | 319 --------- src/views/home/Indexbark.vue | 653 ------------------ src/views/home/echarts-data.ts | 181 ----- src/views/home/index.vue | 227 ------ src/views/home/types.ts | 55 -- src/views/login/components/LoginForm.vue | 287 -------- src/views/login/components/LoginFormTitle.vue | 26 - src/views/login/components/MobileForm.vue | 225 ------ src/views/login/components/QrCodeForm.vue | 30 - src/views/login/components/RegisterForm.vue | 142 ---- src/views/login/components/SSOLogin.vue | 199 ------ src/views/login/components/index.ts | 8 - src/views/login/components/useLogin.ts | 42 -- src/views/login/login.vue | 111 --- src/views/profile/components/BasicInfo.vue | 92 --- src/views/profile/components/ProfileUser.vue | 99 --- src/views/profile/components/ResetPwd.vue | 73 -- src/views/profile/components/UserAvatar.vue | 39 -- src/views/profile/components/UserSocial.vue | 94 --- src/views/profile/components/index.ts | 7 - src/views/profile/index.vue | 64 -- src/views/redirect/redirect.vue | 28 - 26 files changed, 3404 deletions(-) delete mode 100644 src/views/error/403.vue delete mode 100644 src/views/error/404.vue delete mode 100644 src/views/error/500.vue delete mode 100644 src/views/home/Index copy.vue delete mode 100644 src/views/home/Index2.vue delete mode 100644 src/views/home/Indexbark.vue delete mode 100644 src/views/home/echarts-data.ts delete mode 100644 src/views/home/index.vue delete mode 100644 src/views/home/types.ts delete mode 100644 src/views/login/components/LoginForm.vue delete mode 100644 src/views/login/components/LoginFormTitle.vue delete mode 100644 src/views/login/components/MobileForm.vue delete mode 100644 src/views/login/components/QrCodeForm.vue delete mode 100644 src/views/login/components/RegisterForm.vue delete mode 100644 src/views/login/components/SSOLogin.vue delete mode 100644 src/views/login/components/index.ts delete mode 100644 src/views/login/components/useLogin.ts delete mode 100644 src/views/login/login.vue delete mode 100644 src/views/profile/components/BasicInfo.vue delete mode 100644 src/views/profile/components/ProfileUser.vue delete mode 100644 src/views/profile/components/ResetPwd.vue delete mode 100644 src/views/profile/components/UserAvatar.vue delete mode 100644 src/views/profile/components/UserSocial.vue delete mode 100644 src/views/profile/components/index.ts delete mode 100644 src/views/profile/index.vue delete mode 100644 src/views/redirect/redirect.vue diff --git a/src/views/error/403.vue b/src/views/error/403.vue deleted file mode 100644 index a3ec487..0000000 --- a/src/views/error/403.vue +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/src/views/error/404.vue b/src/views/error/404.vue deleted file mode 100644 index f6a08de..0000000 --- a/src/views/error/404.vue +++ /dev/null @@ -1,7 +0,0 @@ - - diff --git a/src/views/error/500.vue b/src/views/error/500.vue deleted file mode 100644 index 998487d..0000000 --- a/src/views/error/500.vue +++ /dev/null @@ -1,7 +0,0 @@ - - diff --git a/src/views/home/Index copy.vue b/src/views/home/Index copy.vue deleted file mode 100644 index 121ec6a..0000000 --- a/src/views/home/Index copy.vue +++ /dev/null @@ -1,381 +0,0 @@ - - diff --git a/src/views/home/Index2.vue b/src/views/home/Index2.vue deleted file mode 100644 index c9429ab..0000000 --- a/src/views/home/Index2.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - diff --git a/src/views/home/Indexbark.vue b/src/views/home/Indexbark.vue deleted file mode 100644 index 2627b64..0000000 --- a/src/views/home/Indexbark.vue +++ /dev/null @@ -1,653 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/home/echarts-data.ts b/src/views/home/echarts-data.ts deleted file mode 100644 index 0f39f4e..0000000 --- a/src/views/home/echarts-data.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { EChartsOption } from 'echarts' - -const { t } = useI18n() - -export const lineOptions: EChartsOption = { - title: { - text: t('analysis.monthlySales'), - left: 'center' - }, - xAxis: { - data: [ - ], - boundaryGap: false, - axisTick: { - show: false - } - }, - grid: { - left: 20, - right: 20, - bottom: 20, - top: 80, - containLabel: true - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross' - }, - padding: [5, 10] - }, - yAxis: { - axisTick: { - show: false - } - }, - legend: { - data: [], - top: 50 - }, - series: [ - { - name: "", - smooth: true, - type: 'line', - data: [], - animationDuration: 2800, - animationEasing: 'cubicInOut' - }, - { - name: t('analysis.actual'), - smooth: true, - type: 'line', - itemStyle: {}, - data: [], - animationDuration: 2800, - animationEasing: 'quadraticOut' - } - ] -} - -export const pieOptions: EChartsOption = { - title: { - text: "", - left: 'center' - }, - tooltip: { - trigger: 'item', - formatter: '{a}
{b} : {c} ({d}%)' - }, - legend: { - orient: 'vertical', - left: 'left', - data: [ - ] - }, - series: [ - { - name: "", - type: 'pie', - radius: '55%', - center: ['50%', '60%'], - data: [ - ] - } - ] -} - -export const barOptions: EChartsOption = { - title: { - text: "", - left: 'center' - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - grid: { - left: 50, - right: 20, - bottom: 20 - }, - xAxis: { - type: 'category', - data: [ - ], - axisTick: { - alignWithLabel: true - } - }, - yAxis: { - type: 'value' - }, - series: [ - { - name: "", - data: [], - type: 'bar' - } - ] -} - -export const radarOption: EChartsOption = { - legend: { - data: [] - }, - radar: { - // shape: 'circle', - indicator: [ - - ] - }, - series: [ - { - name: "", - type: 'radar', - data: [ - - ] - } - ] -} - -export const wordOptions = { - series: [ - { - type: 'wordCloud', - gridSize: 2, - sizeRange: [12, 50], - rotationRange: [-90, 90], - shape: 'pentagon', - width: 600, - height: 400, - drawOutOfBound: true, - textStyle: { - color: function () { - return ( - 'rgb(' + - [ - Math.round(Math.random() * 160), - Math.round(Math.random() * 160), - Math.round(Math.random() * 160) - ].join(',') + - ')' - ) - } - }, - emphasis: { - textStyle: { - shadowBlur: 10, - shadowColor: '#333' - } - }, - data: [ - - ] - } - ] -} diff --git a/src/views/home/index.vue b/src/views/home/index.vue deleted file mode 100644 index ad22b79..0000000 --- a/src/views/home/index.vue +++ /dev/null @@ -1,227 +0,0 @@ - - - diff --git a/src/views/home/types.ts b/src/views/home/types.ts deleted file mode 100644 index e6313d3..0000000 --- a/src/views/home/types.ts +++ /dev/null @@ -1,55 +0,0 @@ -export type WorkplaceTotal = { - project: number - access: number - todo: number -} - -export type Project = { - name: string - icon: string - message: string - personal: string - time: Date | number | string -} - -export type Notice = { - title: string - type: string - keys: string[] - date: Date | number | string -} - -export type Shortcut = { - name: string - icon: string - url: string -} - -export type RadarData = { - personal: number - team: number - max: number - name: string -} -export type AnalysisTotalTypes = { - users: number - messages: number - moneys: number - shoppings: number -} - -export type UserAccessSource = { - value: number - name: string -} - -export type WeeklyUserActivity = { - value: number - name: string -} - -export type MonthlySales = { - name: string - estimate: number - actual: number -} diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue deleted file mode 100644 index 740a6fc..0000000 --- a/src/views/login/components/LoginForm.vue +++ /dev/null @@ -1,287 +0,0 @@ - - - - diff --git a/src/views/login/components/LoginFormTitle.vue b/src/views/login/components/LoginFormTitle.vue deleted file mode 100644 index cdf4fac..0000000 --- a/src/views/login/components/LoginFormTitle.vue +++ /dev/null @@ -1,26 +0,0 @@ - - diff --git a/src/views/login/components/MobileForm.vue b/src/views/login/components/MobileForm.vue deleted file mode 100644 index 29f704c..0000000 --- a/src/views/login/components/MobileForm.vue +++ /dev/null @@ -1,225 +0,0 @@ - - - - diff --git a/src/views/login/components/QrCodeForm.vue b/src/views/login/components/QrCodeForm.vue deleted file mode 100644 index 31d2845..0000000 --- a/src/views/login/components/QrCodeForm.vue +++ /dev/null @@ -1,30 +0,0 @@ - - diff --git a/src/views/login/components/RegisterForm.vue b/src/views/login/components/RegisterForm.vue deleted file mode 100644 index 23b3bd4..0000000 --- a/src/views/login/components/RegisterForm.vue +++ /dev/null @@ -1,142 +0,0 @@ - - diff --git a/src/views/login/components/SSOLogin.vue b/src/views/login/components/SSOLogin.vue deleted file mode 100644 index f31ab0e..0000000 --- a/src/views/login/components/SSOLogin.vue +++ /dev/null @@ -1,199 +0,0 @@ - - diff --git a/src/views/login/components/index.ts b/src/views/login/components/index.ts deleted file mode 100644 index 204ad73..0000000 --- a/src/views/login/components/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import LoginForm from './LoginForm.vue' -import MobileForm from './MobileForm.vue' -import LoginFormTitle from './LoginFormTitle.vue' -import RegisterForm from './RegisterForm.vue' -import QrCodeForm from './QrCodeForm.vue' -import SSOLoginVue from './SSOLogin.vue' - -export { LoginForm, MobileForm, LoginFormTitle, RegisterForm, QrCodeForm, SSOLoginVue } diff --git a/src/views/login/components/useLogin.ts b/src/views/login/components/useLogin.ts deleted file mode 100644 index b4a02f8..0000000 --- a/src/views/login/components/useLogin.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Ref } from 'vue' - -export enum LoginStateEnum { - LOGIN, - REGISTER, - RESET_PASSWORD, - MOBILE, - QR_CODE, - SSO -} - -const currentState = ref(LoginStateEnum.LOGIN) - -export function useLoginState() { - function setLoginState(state: LoginStateEnum) { - currentState.value = state - } - const getLoginState = computed(() => currentState.value) - - function handleBackLogin() { - setLoginState(LoginStateEnum.LOGIN) - } - - return { - setLoginState, - getLoginState, - handleBackLogin - } -} - -export function useFormValid(formRef: Ref) { - async function validForm() { - const form = unref(formRef) - if (!form) return - const data = await form.validate() - return data as T - } - - return { - validForm - } -} diff --git a/src/views/login/login.vue b/src/views/login/login.vue deleted file mode 100644 index 48965b7..0000000 --- a/src/views/login/login.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - diff --git a/src/views/profile/components/BasicInfo.vue b/src/views/profile/components/BasicInfo.vue deleted file mode 100644 index e2189b1..0000000 --- a/src/views/profile/components/BasicInfo.vue +++ /dev/null @@ -1,92 +0,0 @@ - - diff --git a/src/views/profile/components/ProfileUser.vue b/src/views/profile/components/ProfileUser.vue deleted file mode 100644 index b493499..0000000 --- a/src/views/profile/components/ProfileUser.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - diff --git a/src/views/profile/components/ResetPwd.vue b/src/views/profile/components/ResetPwd.vue deleted file mode 100644 index 477be91..0000000 --- a/src/views/profile/components/ResetPwd.vue +++ /dev/null @@ -1,73 +0,0 @@ - - diff --git a/src/views/profile/components/UserAvatar.vue b/src/views/profile/components/UserAvatar.vue deleted file mode 100644 index c20168f..0000000 --- a/src/views/profile/components/UserAvatar.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - diff --git a/src/views/profile/components/UserSocial.vue b/src/views/profile/components/UserSocial.vue deleted file mode 100644 index 2f021ab..0000000 --- a/src/views/profile/components/UserSocial.vue +++ /dev/null @@ -1,94 +0,0 @@ - - diff --git a/src/views/profile/components/index.ts b/src/views/profile/components/index.ts deleted file mode 100644 index 9e1883c..0000000 --- a/src/views/profile/components/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import BasicInfo from './BasicInfo.vue' -import ProfileUser from './ProfileUser.vue' -import ResetPwd from './ResetPwd.vue' -import UserAvatarVue from './UserAvatar.vue' -import UserSocial from './UserSocial.vue' - -export { BasicInfo, ProfileUser, ResetPwd, UserAvatarVue, UserSocial } diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue deleted file mode 100644 index e813f04..0000000 --- a/src/views/profile/index.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - diff --git a/src/views/redirect/redirect.vue b/src/views/redirect/redirect.vue deleted file mode 100644 index f7717ce..0000000 --- a/src/views/redirect/redirect.vue +++ /dev/null @@ -1,28 +0,0 @@ - - From 27935cb9b3335a6622ad0713d99197afe397d5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:46:57 +0800 Subject: [PATCH 06/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/error/403.vue | 8 + src/views/error/404.vue | 7 + src/views/error/500.vue | 7 + src/views/home/Index copy.vue | 381 ++++++++++ src/views/home/Index2.vue | 319 +++++++++ src/views/home/Indexbark.vue | 653 ++++++++++++++++++ src/views/home/echarts-data.ts | 181 +++++ src/views/home/index.vue | 227 ++++++ src/views/home/types.ts | 55 ++ src/views/login/components/LoginForm.vue | 287 ++++++++ src/views/login/components/LoginFormTitle.vue | 26 + src/views/login/components/MobileForm.vue | 225 ++++++ src/views/login/components/QrCodeForm.vue | 30 + src/views/login/components/RegisterForm.vue | 142 ++++ src/views/login/components/SSOLogin.vue | 199 ++++++ src/views/login/components/index.ts | 8 + src/views/login/components/useLogin.ts | 42 ++ src/views/login/login.vue | 111 +++ src/views/profile/components/BasicInfo.vue | 92 +++ src/views/profile/components/ProfileUser.vue | 99 +++ src/views/profile/components/ResetPwd.vue | 73 ++ src/views/profile/components/UserAvatar.vue | 39 ++ src/views/profile/components/UserSocial.vue | 94 +++ src/views/profile/components/index.ts | 7 + src/views/profile/index.vue | 64 ++ src/views/redirect/redirect.vue | 28 + 26 files changed, 3404 insertions(+) create mode 100644 src/views/error/403.vue create mode 100644 src/views/error/404.vue create mode 100644 src/views/error/500.vue create mode 100644 src/views/home/Index copy.vue create mode 100644 src/views/home/Index2.vue create mode 100644 src/views/home/Indexbark.vue create mode 100644 src/views/home/echarts-data.ts create mode 100644 src/views/home/index.vue create mode 100644 src/views/home/types.ts create mode 100644 src/views/login/components/LoginForm.vue create mode 100644 src/views/login/components/LoginFormTitle.vue create mode 100644 src/views/login/components/MobileForm.vue create mode 100644 src/views/login/components/QrCodeForm.vue create mode 100644 src/views/login/components/RegisterForm.vue create mode 100644 src/views/login/components/SSOLogin.vue create mode 100644 src/views/login/components/index.ts create mode 100644 src/views/login/components/useLogin.ts create mode 100644 src/views/login/login.vue create mode 100644 src/views/profile/components/BasicInfo.vue create mode 100644 src/views/profile/components/ProfileUser.vue create mode 100644 src/views/profile/components/ResetPwd.vue create mode 100644 src/views/profile/components/UserAvatar.vue create mode 100644 src/views/profile/components/UserSocial.vue create mode 100644 src/views/profile/components/index.ts create mode 100644 src/views/profile/index.vue create mode 100644 src/views/redirect/redirect.vue diff --git a/src/views/error/403.vue b/src/views/error/403.vue new file mode 100644 index 0000000..a3ec487 --- /dev/null +++ b/src/views/error/403.vue @@ -0,0 +1,8 @@ + + diff --git a/src/views/error/404.vue b/src/views/error/404.vue new file mode 100644 index 0000000..f6a08de --- /dev/null +++ b/src/views/error/404.vue @@ -0,0 +1,7 @@ + + diff --git a/src/views/error/500.vue b/src/views/error/500.vue new file mode 100644 index 0000000..998487d --- /dev/null +++ b/src/views/error/500.vue @@ -0,0 +1,7 @@ + + diff --git a/src/views/home/Index copy.vue b/src/views/home/Index copy.vue new file mode 100644 index 0000000..121ec6a --- /dev/null +++ b/src/views/home/Index copy.vue @@ -0,0 +1,381 @@ + + diff --git a/src/views/home/Index2.vue b/src/views/home/Index2.vue new file mode 100644 index 0000000..c9429ab --- /dev/null +++ b/src/views/home/Index2.vue @@ -0,0 +1,319 @@ + + + + diff --git a/src/views/home/Indexbark.vue b/src/views/home/Indexbark.vue new file mode 100644 index 0000000..2627b64 --- /dev/null +++ b/src/views/home/Indexbark.vue @@ -0,0 +1,653 @@ + + + \ No newline at end of file diff --git a/src/views/home/echarts-data.ts b/src/views/home/echarts-data.ts new file mode 100644 index 0000000..0f39f4e --- /dev/null +++ b/src/views/home/echarts-data.ts @@ -0,0 +1,181 @@ +import { EChartsOption } from 'echarts' + +const { t } = useI18n() + +export const lineOptions: EChartsOption = { + title: { + text: t('analysis.monthlySales'), + left: 'center' + }, + xAxis: { + data: [ + ], + boundaryGap: false, + axisTick: { + show: false + } + }, + grid: { + left: 20, + right: 20, + bottom: 20, + top: 80, + containLabel: true + }, + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross' + }, + padding: [5, 10] + }, + yAxis: { + axisTick: { + show: false + } + }, + legend: { + data: [], + top: 50 + }, + series: [ + { + name: "", + smooth: true, + type: 'line', + data: [], + animationDuration: 2800, + animationEasing: 'cubicInOut' + }, + { + name: t('analysis.actual'), + smooth: true, + type: 'line', + itemStyle: {}, + data: [], + animationDuration: 2800, + animationEasing: 'quadraticOut' + } + ] +} + +export const pieOptions: EChartsOption = { + title: { + text: "", + left: 'center' + }, + tooltip: { + trigger: 'item', + formatter: '{a}
{b} : {c} ({d}%)' + }, + legend: { + orient: 'vertical', + left: 'left', + data: [ + ] + }, + series: [ + { + name: "", + type: 'pie', + radius: '55%', + center: ['50%', '60%'], + data: [ + ] + } + ] +} + +export const barOptions: EChartsOption = { + title: { + text: "", + left: 'center' + }, + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + } + }, + grid: { + left: 50, + right: 20, + bottom: 20 + }, + xAxis: { + type: 'category', + data: [ + ], + axisTick: { + alignWithLabel: true + } + }, + yAxis: { + type: 'value' + }, + series: [ + { + name: "", + data: [], + type: 'bar' + } + ] +} + +export const radarOption: EChartsOption = { + legend: { + data: [] + }, + radar: { + // shape: 'circle', + indicator: [ + + ] + }, + series: [ + { + name: "", + type: 'radar', + data: [ + + ] + } + ] +} + +export const wordOptions = { + series: [ + { + type: 'wordCloud', + gridSize: 2, + sizeRange: [12, 50], + rotationRange: [-90, 90], + shape: 'pentagon', + width: 600, + height: 400, + drawOutOfBound: true, + textStyle: { + color: function () { + return ( + 'rgb(' + + [ + Math.round(Math.random() * 160), + Math.round(Math.random() * 160), + Math.round(Math.random() * 160) + ].join(',') + + ')' + ) + } + }, + emphasis: { + textStyle: { + shadowBlur: 10, + shadowColor: '#333' + } + }, + data: [ + + ] + } + ] +} diff --git a/src/views/home/index.vue b/src/views/home/index.vue new file mode 100644 index 0000000..ad22b79 --- /dev/null +++ b/src/views/home/index.vue @@ -0,0 +1,227 @@ + + + diff --git a/src/views/home/types.ts b/src/views/home/types.ts new file mode 100644 index 0000000..e6313d3 --- /dev/null +++ b/src/views/home/types.ts @@ -0,0 +1,55 @@ +export type WorkplaceTotal = { + project: number + access: number + todo: number +} + +export type Project = { + name: string + icon: string + message: string + personal: string + time: Date | number | string +} + +export type Notice = { + title: string + type: string + keys: string[] + date: Date | number | string +} + +export type Shortcut = { + name: string + icon: string + url: string +} + +export type RadarData = { + personal: number + team: number + max: number + name: string +} +export type AnalysisTotalTypes = { + users: number + messages: number + moneys: number + shoppings: number +} + +export type UserAccessSource = { + value: number + name: string +} + +export type WeeklyUserActivity = { + value: number + name: string +} + +export type MonthlySales = { + name: string + estimate: number + actual: number +} diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue new file mode 100644 index 0000000..740a6fc --- /dev/null +++ b/src/views/login/components/LoginForm.vue @@ -0,0 +1,287 @@ + + + + diff --git a/src/views/login/components/LoginFormTitle.vue b/src/views/login/components/LoginFormTitle.vue new file mode 100644 index 0000000..cdf4fac --- /dev/null +++ b/src/views/login/components/LoginFormTitle.vue @@ -0,0 +1,26 @@ + + diff --git a/src/views/login/components/MobileForm.vue b/src/views/login/components/MobileForm.vue new file mode 100644 index 0000000..29f704c --- /dev/null +++ b/src/views/login/components/MobileForm.vue @@ -0,0 +1,225 @@ + + + + diff --git a/src/views/login/components/QrCodeForm.vue b/src/views/login/components/QrCodeForm.vue new file mode 100644 index 0000000..31d2845 --- /dev/null +++ b/src/views/login/components/QrCodeForm.vue @@ -0,0 +1,30 @@ + + diff --git a/src/views/login/components/RegisterForm.vue b/src/views/login/components/RegisterForm.vue new file mode 100644 index 0000000..23b3bd4 --- /dev/null +++ b/src/views/login/components/RegisterForm.vue @@ -0,0 +1,142 @@ + + diff --git a/src/views/login/components/SSOLogin.vue b/src/views/login/components/SSOLogin.vue new file mode 100644 index 0000000..f31ab0e --- /dev/null +++ b/src/views/login/components/SSOLogin.vue @@ -0,0 +1,199 @@ + + diff --git a/src/views/login/components/index.ts b/src/views/login/components/index.ts new file mode 100644 index 0000000..204ad73 --- /dev/null +++ b/src/views/login/components/index.ts @@ -0,0 +1,8 @@ +import LoginForm from './LoginForm.vue' +import MobileForm from './MobileForm.vue' +import LoginFormTitle from './LoginFormTitle.vue' +import RegisterForm from './RegisterForm.vue' +import QrCodeForm from './QrCodeForm.vue' +import SSOLoginVue from './SSOLogin.vue' + +export { LoginForm, MobileForm, LoginFormTitle, RegisterForm, QrCodeForm, SSOLoginVue } diff --git a/src/views/login/components/useLogin.ts b/src/views/login/components/useLogin.ts new file mode 100644 index 0000000..b4a02f8 --- /dev/null +++ b/src/views/login/components/useLogin.ts @@ -0,0 +1,42 @@ +import { Ref } from 'vue' + +export enum LoginStateEnum { + LOGIN, + REGISTER, + RESET_PASSWORD, + MOBILE, + QR_CODE, + SSO +} + +const currentState = ref(LoginStateEnum.LOGIN) + +export function useLoginState() { + function setLoginState(state: LoginStateEnum) { + currentState.value = state + } + const getLoginState = computed(() => currentState.value) + + function handleBackLogin() { + setLoginState(LoginStateEnum.LOGIN) + } + + return { + setLoginState, + getLoginState, + handleBackLogin + } +} + +export function useFormValid(formRef: Ref) { + async function validForm() { + const form = unref(formRef) + if (!form) return + const data = await form.validate() + return data as T + } + + return { + validForm + } +} diff --git a/src/views/login/login.vue b/src/views/login/login.vue new file mode 100644 index 0000000..48965b7 --- /dev/null +++ b/src/views/login/login.vue @@ -0,0 +1,111 @@ + + + + diff --git a/src/views/profile/components/BasicInfo.vue b/src/views/profile/components/BasicInfo.vue new file mode 100644 index 0000000..e2189b1 --- /dev/null +++ b/src/views/profile/components/BasicInfo.vue @@ -0,0 +1,92 @@ + + diff --git a/src/views/profile/components/ProfileUser.vue b/src/views/profile/components/ProfileUser.vue new file mode 100644 index 0000000..b493499 --- /dev/null +++ b/src/views/profile/components/ProfileUser.vue @@ -0,0 +1,99 @@ + + + + diff --git a/src/views/profile/components/ResetPwd.vue b/src/views/profile/components/ResetPwd.vue new file mode 100644 index 0000000..477be91 --- /dev/null +++ b/src/views/profile/components/ResetPwd.vue @@ -0,0 +1,73 @@ + + diff --git a/src/views/profile/components/UserAvatar.vue b/src/views/profile/components/UserAvatar.vue new file mode 100644 index 0000000..c20168f --- /dev/null +++ b/src/views/profile/components/UserAvatar.vue @@ -0,0 +1,39 @@ + + + + diff --git a/src/views/profile/components/UserSocial.vue b/src/views/profile/components/UserSocial.vue new file mode 100644 index 0000000..2f021ab --- /dev/null +++ b/src/views/profile/components/UserSocial.vue @@ -0,0 +1,94 @@ + + diff --git a/src/views/profile/components/index.ts b/src/views/profile/components/index.ts new file mode 100644 index 0000000..9e1883c --- /dev/null +++ b/src/views/profile/components/index.ts @@ -0,0 +1,7 @@ +import BasicInfo from './BasicInfo.vue' +import ProfileUser from './ProfileUser.vue' +import ResetPwd from './ResetPwd.vue' +import UserAvatarVue from './UserAvatar.vue' +import UserSocial from './UserSocial.vue' + +export { BasicInfo, ProfileUser, ResetPwd, UserAvatarVue, UserSocial } diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue new file mode 100644 index 0000000..e813f04 --- /dev/null +++ b/src/views/profile/index.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/views/redirect/redirect.vue b/src/views/redirect/redirect.vue new file mode 100644 index 0000000..f7717ce --- /dev/null +++ b/src/views/redirect/redirect.vue @@ -0,0 +1,28 @@ + + From 879805eeb7c5cf8871751d8a2c0487072ca61cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:47:26 +0800 Subject: [PATCH 07/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/codegen/editTable.vue | 83 --------------------------- 1 file changed, 83 deletions(-) delete mode 100644 src/views/infra/codegen/editTable.vue diff --git a/src/views/infra/codegen/editTable.vue b/src/views/infra/codegen/editTable.vue deleted file mode 100644 index 9c4e765..0000000 --- a/src/views/infra/codegen/editTable.vue +++ /dev/null @@ -1,83 +0,0 @@ - - From 7a3d44b41592a3da6dcc4088689c2d58a833eb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:47:36 +0800 Subject: [PATCH 08/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/codegen/editTable.vue | 83 +++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 src/views/infra/codegen/editTable.vue diff --git a/src/views/infra/codegen/editTable.vue b/src/views/infra/codegen/editTable.vue new file mode 100644 index 0000000..9c4e765 --- /dev/null +++ b/src/views/infra/codegen/editTable.vue @@ -0,0 +1,83 @@ + + From 4bbcdb0d72413c740663944bd7845806a0ff75fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 08:58:33 +0800 Subject: [PATCH 09/11] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/index.vue | 2 +- src/views/board/index1.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/board/index.vue b/src/views/board/index.vue index 2642447..021e95c 100644 --- a/src/views/board/index.vue +++ b/src/views/board/index.vue @@ -110,7 +110,7 @@ import { set } from 'lodash-es' import { EChartsOption } from 'echarts' import * as boardAPI from '@/api/board/index' -import { pieOptions, lineOptions } from '@/views/Home/echarts-data' +import { pieOptions, lineOptions } from '@/views/home/echarts-data' import type { ScrollBoard } from '@kjgl77/datav-vue3/index' const pieOptionsData = reactive(pieOptions) as EChartsOption const lineOptionsData = reactive(lineOptions) as EChartsOption diff --git a/src/views/board/index1.vue b/src/views/board/index1.vue index feba29c..24b2f10 100644 --- a/src/views/board/index1.vue +++ b/src/views/board/index1.vue @@ -110,7 +110,7 @@ import { set } from 'lodash-es' import { EChartsOption } from 'echarts' import * as boardAPI from '@/api/board/index' -import { pieOptions, lineOptions } from '@/views/Home/echarts-data' +import { pieOptions, lineOptions } from '@/views/home/echarts-data' import type { ScrollBoard } from '@kjgl77/datav-vue3/index' const pieOptionsData = reactive(pieOptions) as EChartsOption const lineOptionsData = reactive(lineOptions) as EChartsOption From e6eccde5874af6b11c2d8e15eef04bfe64e0c4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 09:01:06 +0800 Subject: [PATCH 10/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/codegen/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index 4f99ce8..3018fb0 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -156,7 +156,7 @@ import { dateFormatter } from '@/utils/formatTime' import download from '@/utils/download' import * as CodegenApi from '@/api/infra/codegen' import * as DataSourceConfigApi from '@/api/infra/dataSourceConfig' -import ImportTable from './ImportTable.vue' +import ImportTable from './importTable.vue' import PreviewCode from './PreviewCode.vue' defineOptions({ name: 'InfraCodegen' }) From 5893a35c1c0214529c62b47a89f440897537bfb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 6 Feb 2024 09:04:36 +0800 Subject: [PATCH 11/11] =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dingtalk/dingtalkrecords/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dingtalk/dingtalkrecords/index.vue b/src/views/dingtalk/dingtalkrecords/index.vue index 11c88f1..d9acdb4 100644 --- a/src/views/dingtalk/dingtalkrecords/index.vue +++ b/src/views/dingtalk/dingtalkrecords/index.vue @@ -45,7 +45,7 @@