Browse Source

👣 重构底层

master
wangxiang 3 years ago
parent
commit
967edf1a57
  1. 2
      kicc-ui/package.json
  2. 6
      kicc-ui/src/components/Menu/src/components/BasicSubMenuItem.vue
  3. 2
      kicc-ui/src/hooks/setting/index.ts
  4. 2
      kicc-ui/src/hooks/web/usePermission.ts
  5. 4
      kicc-ui/src/locales/lang/en/sys.ts
  6. 2
      kicc-ui/src/locales/lang/zh-CN/sys.ts
  7. 2
      kicc-ui/src/utils/env.ts
  8. 16
      kicc-ui/src/views/dashboard/workbench/components/data.ts
  9. 2
      kicc-ui/src/views/system/client/index.vue

2
kicc-ui/package.json

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
"log": "conventional-changelog -p angular -i CHANGELOG.md -s",
"delete:lib": "rimraf node_modules",
"delete:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
"lint:eslint": "eslint --cache --max-warnings 0 \"src/**/*.{vue,ts,tsx}\" --fix",
"gen:icon": "esno ./build/generate/icon/index.ts"
},
"dependencies": {

6
kicc-ui/src/components/Menu/src/components/BasicSubMenuItem.vue

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<template>
<BasicMenuItem v-if="!menuHasChildren(item) && getShowMenu" v-bind="$props" />
<BasicMenuItem v-if="!menuHasChildren(item) && getShowMenu" v-bind="$props"/>
<SubMenu
v-if="menuHasChildren(item) && getShowMenu"
:key="`submenu-${item.path}`"
@ -7,11 +7,11 @@ @@ -7,11 +7,11 @@
popupClassName="app-top-menu-popup"
>
<template #title>
<MenuItemContent v-bind="$props" :item="item" />
<MenuItemContent v-bind="$props" :item="item"/>
</template>
<template v-for="childrenItem in item.children || []" :key="childrenItem.path">
<BasicSubMenuItem v-bind="$props" :item="childrenItem" />
<BasicSubMenuItem v-bind="$props" :item="childrenItem"/>
</template>
</SubMenu>
</template>

2
kicc-ui/src/hooks/setting/index.ts

@ -22,7 +22,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => { @@ -22,7 +22,7 @@ export const useGlobSetting = (): Readonly<GlobConfig> => {
} = getAppEnvConfig();
if (!/[a-zA-Z\_]*/.test(VITE_GLOB_APP_SHORT_NAME)) {
warn(`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`);
warn('VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.');
}
// 采取全局配置

2
kicc-ui/src/hooks/web/usePermission.ts

@ -12,7 +12,7 @@ import { router, resetRouter } from '/@/router'; @@ -12,7 +12,7 @@ import { router, resetRouter } from '/@/router';
import { intersection } from 'lodash-es';
import { isArray } from '/@/utils/is';
import { useMultipleTabStore } from '/@/store/modules/multipleTab';
import { useUserStoreWithOut } from "/@/store/modules/user";
import { useUserStoreWithOut } from '/@/store/modules/user';
// 用户权限相关操作
export function usePermission() {

4
kicc-ui/src/locales/lang/en/sys.ts

@ -52,7 +52,7 @@ export default { @@ -52,7 +52,7 @@ export default {
exception: {
backLogin: 'Back Login',
backHome: 'Back Home',
subTitle403: "Sorry, you don't have access to this page.",
subTitle403: 'Sorry, you don\'t have access to this page.',
subTitle404: 'Sorry, the page you visited does not exist.',
subTitle500: 'Sorry, the server is reporting an error.',
noDataTitle: 'No data on the current page.',
@ -78,7 +78,7 @@ export default { @@ -78,7 +78,7 @@ export default {
signInTitle: 'Kanglai Bio-Intelligent Cold Chain Platform',
signInDesc: 'Focus on the intelligent cold chain service of the Internet of Things monitoring specimen box in the medical industry, and strive to become the best intelligent cold chain Internet of Things platform for the medical industry in China',
policy: 'I agree to the xxx Privacy Policy',
scanSign: `scanning the code to complete the login`,
scanSign: 'scanning the code to complete the login',
loginButton: 'Sign in',
registerButton: 'Sign up',

2
kicc-ui/src/locales/lang/zh-CN/sys.ts

@ -73,7 +73,7 @@ export default { @@ -73,7 +73,7 @@ export default {
signInTitle: '康来生物智慧冷链物联网平台',
signInDesc: '专注于医疗行业的物联网监控标本箱智慧冷链服务,努力做成中国最好的医疗行业智慧冷链物联网平台',
policy: '我同意xxx隐私政策',
scanSign: `扫码后点击"确认",即可完成登录`,
scanSign: '扫码后点击"确认",即可完成登录',
loginButton: '登录',
registerButton: '注册',

2
kicc-ui/src/utils/env.ts

@ -41,7 +41,7 @@ export function getAppEnvConfig() { @@ -41,7 +41,7 @@ export function getAppEnvConfig() {
if (!/^[a-zA-Z\_]*$/.test(VITE_GLOB_APP_SHORT_NAME)) {
warn(
`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`
'VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.'
);
}

16
kicc-ui/src/views/dashboard/workbench/components/data.ts

@ -58,49 +58,49 @@ export const dynamicInfoItems: DynamicInfoItem[] = [ @@ -58,49 +58,49 @@ export const dynamicInfoItems: DynamicInfoItem[] = [
avatar: 'dynamic-avatar-1|svg',
name: '威廉',
date: '刚刚',
desc: `在 <a>开源组</a> 创建了项目 <a>Vue</a>`,
desc: '在 <a>开源组</a> 创建了项目 <a>Vue</a>',
},
{
avatar: 'dynamic-avatar-2|svg',
name: '艾文',
date: '1个小时前',
desc: `关注了 <a>威廉</a> `,
desc: '关注了 <a>威廉</a> ',
},
{
avatar: 'dynamic-avatar-3|svg',
name: '克里斯',
date: '1天前',
desc: `发布了 <a>个人动态</a> `,
desc: '发布了 <a>个人动态</a> ',
},
{
avatar: 'dynamic-avatar-4|svg',
name: 'Vben',
date: '2天前',
desc: `发表文章 <a>如何编写一个Vite插件</a> `,
desc: '发表文章 <a>如何编写一个Vite插件</a> ',
},
{
avatar: 'dynamic-avatar-5|svg',
name: '皮特',
date: '3天前',
desc: `回复了 <a>杰克</a> 的问题 <a>如何进行项目优化?</a>`,
desc: '回复了 <a>杰克</a> 的问题 <a>如何进行项目优化?</a>',
},
{
avatar: 'dynamic-avatar-6|svg',
name: '杰克',
date: '1周前',
desc: `关闭了问题 <a>如何运行项目</a> `,
desc: '关闭了问题 <a>如何运行项目</a> ',
},
{
avatar: 'dynamic-avatar-1|svg',
name: '威廉',
date: '1周前',
desc: `发布了 <a>个人动态</a> `,
desc: '发布了 <a>个人动态</a> ',
},
{
avatar: 'dynamic-avatar-1|svg',
name: '威廉',
date: '2021-04-01 20:00',
desc: `推送了代码到 <a>Github</a>`,
desc: '推送了代码到 <a>Github</a>',
},
];

2
kicc-ui/src/views/system/client/index.vue

@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
/>
</template>
</BasicTable>
<ClientDrawer @register="registerDrawer" @success="handleSuccess" />
<ClientDrawer @register="registerDrawer" @success="handleSuccess"/>
</PageWrapper>
</template>
<script lang="ts" setup>

Loading…
Cancel
Save