diff --git a/code/ts/后端辅助工具/.eslintrc.js b/code/ts/后端辅助工具/.eslintrc.js index 162d188..3f23819 100644 --- a/code/ts/后端辅助工具/.eslintrc.js +++ b/code/ts/后端辅助工具/.eslintrc.js @@ -32,7 +32,7 @@ module.exports = { "plugin:@typescript-eslint/recommended", ], rules: { - "no-console": "warn", + "no-console": "off", "quote-props": ["warn", "as-needed",], quotes: ["warn", "double", { allowTemplateLiterals: true, },], indent: ["warn", 4,], @@ -56,5 +56,6 @@ module.exports = { "prefer-const": "warn", "@typescript-eslint/no-extra-semi": "off", "@typescript-eslint/no-inferrable-types": "off", + "@typescript-eslint/no-unused-vars": "off", }, }; diff --git a/code/ts/后端辅助工具/src/DataType/DataType.ts b/code/ts/后端辅助工具/src/DataType/DataType.ts index 87941a8..507bb97 100644 --- a/code/ts/后端辅助工具/src/DataType/DataType.ts +++ b/code/ts/后端辅助工具/src/DataType/DataType.ts @@ -70,4 +70,4 @@ function dataTypes() } -export { dataTypes }; \ No newline at end of file +export default dataTypes; \ No newline at end of file diff --git a/code/ts/后端辅助工具/src/DataType/Function.ts b/code/ts/后端辅助工具/src/DataType/Function.ts index 2b67dc5..6e6086d 100644 --- a/code/ts/后端辅助工具/src/DataType/Function.ts +++ b/code/ts/后端辅助工具/src/DataType/Function.ts @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2023-02-13 23:08:34 * @LastEditors: Kane - * @LastEditTime: 2023-02-13 23:56:11 + * @LastEditTime: 2023-02-16 22:43:22 * @FilePath: /后端辅助工具/src/DataType/Function.ts * @Description: * @@ -20,7 +20,11 @@ const func: { version: string, } = f; -function func_this(this: { name: string; }, x: number, y: number): void +function func_this_void(this: void, arg1: number): number { + return arg1; +} -} \ No newline at end of file +let constructor: { + new(x: string, y: string): object; +}; \ No newline at end of file diff --git a/code/ts/后端辅助工具/src/main.ts b/code/ts/后端辅助工具/src/main.ts index a655e4e..2d1c476 100644 --- a/code/ts/后端辅助工具/src/main.ts +++ b/code/ts/后端辅助工具/src/main.ts @@ -2,14 +2,14 @@ * @Author: Kane * @Date: 2023-02-09 22:14:30 * @LastEditors: Kane - * @LastEditTime: 2023-02-14 00:09:39 + * @LastEditTime: 2023-02-14 22:36:54 * @FilePath: /后端辅助工具/src/main.ts * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ -import { dataTypes } from "./DataType/DataType"; +import dataTypes from "./DataType/DataType"; import { pakoTest } from "./gzip/PakoTest"; const greetings = "hello, this is kane's typescript!"; diff --git a/code/web/IT工具综合平台/.eslintrc.js b/code/web/IT工具综合平台/.eslintrc.js index 53a2266..9251437 100644 --- a/code/web/IT工具综合平台/.eslintrc.js +++ b/code/web/IT工具综合平台/.eslintrc.js @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2022-12-14 15:12:46 * @LastEditors: Kane - * @LastEditTime: 2023-02-06 00:36:26 + * @LastEditTime: 2023-02-14 23:10:53 * @FilePath: /IT工具综合平台/.eslintrc.js * @Description: * @@ -25,7 +25,7 @@ module.exports = { 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', "no-unused-vars": "warn", "semi": ["error", "always",],//控制行尾部分号 - "comma-dangle": ["error", { + "comma-dangle": ["warn", { "arrays": "always", "objects": "always", "imports": "never", diff --git a/code/web/IT工具综合平台/src/main.js b/code/web/IT工具综合平台/src/main.js index ebac3db..0fe268d 100644 --- a/code/web/IT工具综合平台/src/main.js +++ b/code/web/IT工具综合平台/src/main.js @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2022-12-14 15:12:46 * @LastEditors: Kane - * @LastEditTime: 2023-02-15 09:45:56 + * @LastEditTime: 2023-02-17 13:11:43 * @FilePath: /IT工具综合平台/src/main.js * @Description: * @@ -39,5 +39,5 @@ for (const [key, component,] of Object.entries(ElementPlusIconsVue)) app.use(ElementPlus); app.use(store); app.use(router); -app.use( global ); +app.use(global); app.mount('#app'); \ No newline at end of file diff --git a/code/web/IT工具综合平台/src/router/index.js b/code/web/IT工具综合平台/src/router/index.js index 036dcf0..900737e 100644 --- a/code/web/IT工具综合平台/src/router/index.js +++ b/code/web/IT工具综合平台/src/router/index.js @@ -19,10 +19,10 @@ const routes = [ hidden: true, }, { - path:"/error-page", + path: "/error-page", name: "ErrorPage", hidden: true, - component: ()=> import("@/views/ErrorPage.vue"), + component: () => import("@/views/ErrorPage.vue"), }, { path: "/login", @@ -35,7 +35,7 @@ const routes = [ name: "Home", hidden: true, meta: { - title: "控制台" + title: "控制台", }, component: () => import("../layout/Index.vue"), }, @@ -152,14 +152,14 @@ const routes = [ icon: "switch", }, component: () => import("../views/network/switch/SwitchManager.vue"), - } + }, ], }, ]; const router = createRouter({ history: createWebHashHistory(), - routes + routes, }); //前置路由守卫 diff --git a/code/web/IT工具综合平台/src/store/index.js b/code/web/IT工具综合平台/src/store/index.js index 6b03204..ea3191c 100644 --- a/code/web/IT工具综合平台/src/store/index.js +++ b/code/web/IT工具综合平台/src/store/index.js @@ -16,7 +16,7 @@ const store = createStore({ modules: { app, requirement, - } + }, }); export default store; \ No newline at end of file diff --git a/code/web/IT工具综合平台/src/store/modules/app.js b/code/web/IT工具综合平台/src/store/modules/app.js index 3d0455e..e762dc0 100644 --- a/code/web/IT工具综合平台/src/store/modules/app.js +++ b/code/web/IT工具综合平台/src/store/modules/app.js @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2023-01-07 22:25:43 * @LastEditors: Kane - * @LastEditTime: 2023-02-05 10:47:28 + * @LastEditTime: 2023-02-14 23:10:22 * @FilePath: /IT工具综合平台/src/store/modules/app.js * @Description: vuex中存放全局数据的模块 * @@ -29,7 +29,7 @@ const mutations = { SET_USERINFO(state, userInfo) { state.userInfo = userInfo; - } + }, }; const actions = {}; diff --git a/code/web/错误页面/img/skull.png b/code/web/错误页面/img/skull.png new file mode 100644 index 0000000..db3a126 Binary files /dev/null and b/code/web/错误页面/img/skull.png differ diff --git a/code/web/错误页面/index.html b/code/web/错误页面/index.html new file mode 100644 index 0000000..4020496 --- /dev/null +++ b/code/web/错误页面/index.html @@ -0,0 +1,63 @@ + + + + + + + + Document + + + + +
+ + 妖秀啊 +
+ +