From 55af139dda78df90d62427bf2785fad269dfd693 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 08:44:57 +0300 Subject: [PATCH 1/8] a --- .git-hooks/pre-commit | 8 ++++++++ .husky/pre-commit => .git-hooks/pre-commit1 | 0 package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .git-hooks/pre-commit rename .husky/pre-commit => .git-hooks/pre-commit1 (100%) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit new file mode 100644 index 000000000..b8bbbdac0 --- /dev/null +++ b/.git-hooks/pre-commit @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +<<<<<<< Updated upstream:.husky/pre-commit +. "$(dirname -- "$0")/_/husky.sh" +======= + +>>>>>>> Stashed changes:.git-hooks/pre-commit + +npm run lint-staged diff --git a/.husky/pre-commit b/.git-hooks/pre-commit1 similarity index 100% rename from .husky/pre-commit rename to .git-hooks/pre-commit1 diff --git a/package.json b/package.json index 42d7f0b65..006e5538b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", - "prepare": "husky install", + "prepare": "git config core.hooksPath .git-hooks", "lint-staged": "lint-staged" }, From d43553f9023d74181347187f6a92b06936f4e013 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 08:45:25 +0300 Subject: [PATCH 2/8] a --- .git-hooks/pre-commit | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index b8bbbdac0..4cd742445 100644 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -1,8 +1,3 @@ #!/usr/bin/env sh -<<<<<<< Updated upstream:.husky/pre-commit -. "$(dirname -- "$0")/_/husky.sh" -======= - ->>>>>>> Stashed changes:.git-hooks/pre-commit npm run lint-staged From 1e34447b1eebfe0453a220bb54a46ba2922b6255 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 08:45:49 +0300 Subject: [PATCH 3/8] Update TestHomePage.vue --- src/front/src/views/TestHomePage.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/front/src/views/TestHomePage.vue b/src/front/src/views/TestHomePage.vue index b369b71c4..f51eb2c0a 100644 --- a/src/front/src/views/TestHomePage.vue +++ b/src/front/src/views/TestHomePage.vue @@ -15,6 +15,7 @@ Пройти + From c8c465f5ccdeeb5c1ff0953a352a06033c0bc84f Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 08:46:08 +0300 Subject: [PATCH 4/8] Update TestHomePage.vue --- src/front/src/views/TestHomePage.vue | 151 ++++++++++++++------------- 1 file changed, 76 insertions(+), 75 deletions(-) diff --git a/src/front/src/views/TestHomePage.vue b/src/front/src/views/TestHomePage.vue index f51eb2c0a..230bdc4df 100644 --- a/src/front/src/views/TestHomePage.vue +++ b/src/front/src/views/TestHomePage.vue @@ -1,99 +1,100 @@ \ No newline at end of file + const tabs = computed(() => [ + { value: 0, title: `Назначенные (${currentTest.value})` }, + { value: 1, title: 'Завершенные' }, + { value: 2, title: 'Каталог' }, + ]); + + return { + activeTab, + tabs, + getAllTests, + }; + }, +}; + From 8afb476ba9146809e833faa3d721caa4fcfa1375 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 08:48:02 +0300 Subject: [PATCH 5/8] nohusky --- .git-hooks/pre-commit1 | 4 ---- package-lock.json | 17 ----------------- package.json | 9 ++++----- 3 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 .git-hooks/pre-commit1 diff --git a/.git-hooks/pre-commit1 b/.git-hooks/pre-commit1 deleted file mode 100644 index 7e154687b..000000000 --- a/.git-hooks/pre-commit1 +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm run lint-staged diff --git a/package-lock.json b/package-lock.json index 5ccf209b7..f3fc88870 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-vue": "^9.32.0", "globals": "^15.14.0", - "husky": "^9.1.7", "lint-staged": "^15.4.3", "prettier": "^3.4.2", "vitepress": "^1.6.3" @@ -2718,22 +2717,6 @@ "node": ">=16.17.0" } }, - "node_modules/husky": { - "version": "9.1.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", - "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", - "dev": true, - "license": "MIT", - "bin": { - "husky": "bin.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", diff --git a/package.json b/package.json index 006e5538b..ab1cee7cf 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "prepare": "git config core.hooksPath .git-hooks", "lint-staged": "lint-staged" - }, "devDependencies": { "@eslint/js": "^9.19.0", @@ -15,14 +14,14 @@ "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-vue": "^9.32.0", "globals": "^15.14.0", - "husky": "^8.0.0", "lint-staged": "^15.4.3", "prettier": "^3.4.2", "vitepress": "^1.6.3" }, - "lint-staged": { - "*.{js,ts,vue}": ["prettier --write", + "lint-staged": { + "*.{js,ts,vue}": [ + "prettier --write", "eslint --fix" ] -} + } } From 5fe912e8c4c412650beb001fade691b4d173dc8d Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 5 Feb 2025 09:00:16 +0300 Subject: [PATCH 6/8] q --- eslint.config.mjs | 4 + .../calendar_of_events/BigCalendar.vue | 89 ++++++++----------- 2 files changed, 40 insertions(+), 53 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 79a262bcb..3ba55f9dc 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -9,4 +9,8 @@ export default [ {languageOptions: { globals: {...globals.browser, ...globals.node} }}, pluginJs.configs.recommended, ...pluginVue.configs["flat/essential"], + {rules: { + 'no-console': 'warn', + + }} ]; \ No newline at end of file diff --git a/src/front/src/components/calendar_of_events/BigCalendar.vue b/src/front/src/components/calendar_of_events/BigCalendar.vue index 7826a983f..e3015ba7c 100644 --- a/src/front/src/components/calendar_of_events/BigCalendar.vue +++ b/src/front/src/components/calendar_of_events/BigCalendar.vue @@ -15,7 +15,6 @@ no-resize variant="outlined" /> - - +