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 @@ - -