From 9f0f484a64d6d32bc6c1b8f98c7e73518b286427 Mon Sep 17 00:00:00 2001 From: DraftMan Date: Wed, 5 Apr 2023 13:13:47 +0200 Subject: [PATCH 1/4] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20Refactor?= =?UTF-8?q?=20of=20project=20with=20nuxt3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 29 +- .gitignore | 93 +- .npmrc | 2 + .nvmrc | 1 - .prettierrc.json | 7 - assets/css/reset.css | 2 - components/Footer.vue | 1 + components/Header.vue | 59 +- components/doc/API.vue | 32 +- components/doc/Node.vue | 38 +- components/doc/Packagist.vue | 29 +- components/doc/PyPi.vue | 8 +- components/home/Hero.vue | 109 +- components/home/Informations.vue | 73 +- components/home/Selector.vue | 204 +- components/login/Loader.vue | 1 + jsconfig.json | 12 - layouts/default.vue | 2 +- nuxt.config.js | 260 - nuxt.config.ts | 31 + package.json | 73 +- pages/account.vue | 102 +- pages/index.vue | 9 +- public/favicon.ico | Bin 0 -> 4286 bytes {static => public}/logo.png | Bin {static => public}/sitemap.xml | 2 +- renovate.json | 30 +- store/documentation.ts | 13 + store/index.js | 9 - stylelint.config.js | 14 +- tsconfig.json | 4 + yarn.lock | 11206 ++++++++++------------------- 32 files changed, 4221 insertions(+), 8234 deletions(-) create mode 100644 .npmrc delete mode 100644 .nvmrc delete mode 100644 .prettierrc.json delete mode 100644 jsconfig.json delete mode 100644 nuxt.config.js create mode 100644 nuxt.config.ts create mode 100644 public/favicon.ico rename {static => public}/logo.png (100%) rename {static => public}/sitemap.xml (86%) create mode 100644 store/documentation.ts delete mode 100644 store/index.js create mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json index 56e4e83..8bb2599 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,31 +1,6 @@ { - "root": true, - "env": { - "browser": true, - "node": true - }, - "parserOptions": { - "parser": "@babel/eslint-parser", - "requireConfigFile": false - }, - "extends": ["@nuxtjs", "plugin:nuxt/recommended", "prettier"], - "plugins": ["prettier"], + "extends": ["@nuxtjs/eslint-config-typescript"], "rules": { - "vue/no-v-html": "off", - "curly": [2, "multi-line"], - "vue/attribute-hyphenation": ["error", "never"], - "unicorn/number-literal-case": "off", - "no-console": "warn", - "no-debugger": "warn", - "prettier/prettier": [ - 2, - { - "singleQuote": true, - "semi": false, - "tabWidth": 2, - "endOfLine": "lf", - "printWidth": 120 - } - ] + "vue/multi-word-component-names": "off" } } diff --git a/.gitignore b/.gitignore index e8f682b..90e126d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,90 +1,9 @@ -# Created by .ignore support plugin (hsz.mobi) -### Node template -# Logs -/logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output +node_modules +*.log* .nuxt - -# Nuxt generate +.nitro +.cache +.output +.env dist - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless - -# IDE / Editor -.idea - -# Service worker -sw.* - -# macOS .DS_Store - -# Vim swap files -*.swp diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..cf04042 --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +shamefully-hoist=true +strict-peer-dependencies=false diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 431076a..0000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -16.16.0 diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 524f335..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "singleQuote": true, - "semi": false, - "tabWidth": 2, - "endOfLine": "lf", - "printWidth": 120 -} diff --git a/assets/css/reset.css b/assets/css/reset.css index f5e0b49..90761a3 100644 --- a/assets/css/reset.css +++ b/assets/css/reset.css @@ -134,8 +134,6 @@ table { /* apply a natural box layout model to all elements */ *, *::before, -*::after, -*::before, *::after { box-sizing: border-box; } diff --git a/components/Footer.vue b/components/Footer.vue index f9c88ae..dcc2d37 100644 --- a/components/Footer.vue +++ b/components/Footer.vue @@ -40,6 +40,7 @@ footer { .separator { margin: 0 8px; } + @media screen and (max-width: 720px) { flex-direction: column; diff --git a/components/Header.vue b/components/Header.vue index 4715984..d77b530 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -1,14 +1,16 @@ -