-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from vincent99/main
Style all the things
- Loading branch information
Showing
50 changed files
with
4,392 additions
and
2,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"eslint.experimental.useFlatConfig": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.detectIndentation": false, | ||
"editor.insertSpaces": true, | ||
"editor.quickSuggestions": { | ||
"strings": true | ||
}, | ||
"editor.tabSize": 2, | ||
"eslint.format.enable": true, | ||
"eslint.run": "onSave", | ||
"eslint.validate": [ | ||
"vue", | ||
"html", | ||
"javascript", | ||
"typescript" | ||
], | ||
"files.associations": { | ||
"*.css": "tailwindcss" | ||
}, | ||
"files.exclude": { | ||
".ackrc": true, | ||
".dockerignore": true, | ||
".drone.yml": true, | ||
".editorconfig": true, | ||
".eslintcache": true, | ||
".eslintignore": true, | ||
".eslintrc.js": true, | ||
".gitignore": true, | ||
".nuxt*": true, | ||
".nyc_output": true, | ||
"babel.config.js": true, | ||
"coverage": true, | ||
"jsconfig.json": true, | ||
"LICENSE": true, | ||
"yarn-error.log": true | ||
}, | ||
"javascript.preferences.importModuleSpecifier": "non-relative", | ||
"prettier.enable": false, | ||
"tailwindCSS.classAttributes": [ | ||
"class", | ||
"className", | ||
"ui" | ||
], | ||
"tailwindCSS.experimental.classRegex": [ | ||
[ | ||
"ui:\\s*{([^)]*)\\s*}", | ||
"[\"'`]([^\"'`]*).*?[\"'`]" | ||
], | ||
[ | ||
"/\\*ui\\*/\\s*{([^;]*)}", | ||
":\\s*[\"'`]([^\"'`]*).*?[\"'`]" | ||
] | ||
], | ||
"tailwindCSS.experimental.configFile": "tailwind.config.ts", | ||
"typescript.preferences.importModuleSpecifier": "non-relative" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
stylistic: { | ||
indent: 2, | ||
quotes: 'single', | ||
semi: false, | ||
}, | ||
|
||
typescript: true, | ||
vue: true, | ||
|
||
rules: { | ||
'array-bracket-spacing': 'error', | ||
'arrow-parens': ['error', 'always'], | ||
'arrow-spacing': ['error', { before: true, after: true }], | ||
'block-spacing': ['error', 'always'], | ||
'brace-style': ['error', '1tbs', { allowSingleLine: false }], | ||
'comma-dangle': ['error', 'only-multiline'], | ||
'comma-spacing': 'error', | ||
'curly': ['error', 'all'], | ||
'func-call-spacing': ['error', 'never'], | ||
'implicit-arrow-linebreak': 'error', | ||
'keyword-spacing': 'error', | ||
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], | ||
'multiline-ternary': ['error', 'never'], | ||
'n/prefer-global/process': 'off', | ||
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 4 }], | ||
'no-caller': 'error', | ||
'no-cond-assign': ['error', 'except-parens'], | ||
'no-console': ['error', { allow: ['debug', 'info', 'error'] }], | ||
'no-debugger': 'error', | ||
'no-eq-null': 'error', | ||
'no-eval': 'error', | ||
'no-trailing-spaces': 'error', | ||
'no-unused-vars': 'error', | ||
'no-whitespace-before-property': 'error', | ||
'object-curly-spacing': ['error', 'always'], | ||
'object-property-newline': 'off', | ||
'object-shorthand': 'error', | ||
'padded-blocks': ['error', 'never'], | ||
'prefer-arrow-callback': 'error', | ||
'prefer-template': 'error', | ||
'quote-props': ['error', 'consistent-as-needed'], | ||
'react/display-name': 'off', | ||
'react/no-unknown-property': 'off', | ||
'rest-spread-spacing': 'error', | ||
'space-before-function-paren': 'off', | ||
'space-in-parens': 'off', | ||
'space-infix-ops': 'error', | ||
'spaced-comment': 'error', | ||
'switch-colon-spacing': 'error', | ||
'template-curly-spacing': ['error', 'always'], | ||
'yield-star-spacing': ['error', 'both'], | ||
|
||
'style/arrow-parens': ['error', 'always'], | ||
'style/brace-style': ['error', '1tbs', { allowSingleLine: false }], | ||
'style/type-annotation-spacing': 'off', | ||
'style/template-curly-spacing': ['error', 'always'], | ||
'style/no-multi-spaces': 'off', | ||
|
||
'style/key-spacing': ['error', { | ||
multiLine: { | ||
beforeColon: false, | ||
afterColon: true, | ||
}, | ||
|
||
align: { | ||
beforeColon: false, | ||
afterColon: true, | ||
mode: 'minimum', | ||
on: 'value', | ||
}, | ||
}], | ||
|
||
'style/object-curly-newline': ['error', { | ||
ObjectExpression: { | ||
multiline: true, | ||
minProperties: 4, | ||
}, | ||
ObjectPattern: { | ||
multiline: true, | ||
minProperties: 4, | ||
}, | ||
ImportDeclaration: { | ||
multiline: true, | ||
minProperties: 5, | ||
}, | ||
ExportDeclaration: { | ||
multiline: true, | ||
minProperties: 3, | ||
}, | ||
}], | ||
|
||
'padding-line-between-statements': [ | ||
'error', | ||
{ | ||
blankLine: 'always', | ||
prev: '*', | ||
next: 'return', | ||
}, | ||
{ | ||
blankLine: 'always', | ||
prev: 'function', | ||
next: 'function', | ||
}, | ||
{ | ||
blankLine: 'always', | ||
prev: ['const', 'let', 'var'], | ||
next: '*', | ||
}, | ||
{ | ||
blankLine: 'any', | ||
prev: ['const', 'let', 'var'], | ||
next: ['const', 'let', 'var'], | ||
}, | ||
], | ||
|
||
'quotes': [ | ||
'error', | ||
'single', | ||
{ | ||
avoidEscape: true, | ||
allowTemplateLiterals: true, | ||
}, | ||
], | ||
|
||
'vue/component-options-name-casing': ['error', 'kebab-case'], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
srcDir: 'src', | ||
devtools: { enabled: true }, | ||
css: ['@/assets/css/main.css'], | ||
components: true, | ||
css: ['@/assets/css/main.scss'], | ||
colorMode: { classSuffix: '' }, | ||
devtools: { enabled: true }, | ||
devServer: { | ||
port: 3000, | ||
https: { | ||
cert: 'src/server/tls/localhost.crt', | ||
key: 'src/server/tls/localhost.key', | ||
}, | ||
}, | ||
modules: [ | ||
'@nuxt/ui', | ||
'@nuxtjs/tailwindcss' | ||
'@nuxtjs/tailwindcss', | ||
], | ||
runtimeConfig: { | ||
databaseUrl: '', // NUXT_DATABASE_URL | ||
parserUrl: '', // NUXT_PARSER_URL | ||
parserUrl: '', // NUXT_PARSER_URL | ||
githubToken: '', // NUXT_GITHUB_TOKEN | ||
}, | ||
srcDir: 'src', | ||
vite: { | ||
build: { | ||
manifest: true, | ||
ssrManifest: true, | ||
sourcemap: true, | ||
rollupOptions: { output: { sourcemap: true } }, | ||
}, | ||
|
||
css: { devSourcemap: true }, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export default defineAppConfig({ | |
primary: 'green', | ||
gray: 'stone', | ||
}, | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
<script lang="ts" setup> | ||
useHead({ | ||
title: 'GPTScript Tools', | ||
meta: [ | ||
{ charset: 'utf-8' }, | ||
{ name: 'apple-mobile-web-app-capable', content: 'yes' }, | ||
{ name: 'format-detection', content: 'telephone=no' }, | ||
{ name: 'viewport', content: `width=device-width` }, | ||
], | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<Navigation class="fixed w-full top-0 z-50"/> | ||
<NuxtPage /> | ||
<UNotifications /> | ||
<div> | ||
<div class="grid grid-rows-[60px,1fr] fixed top-0 right-0 bottom-0 left-0"> | ||
<Navigation class="h-[60px]" /> | ||
<div class="overflow-auto border-t-2 border-transparent"> | ||
<div class="p-5 lg:p-10 max-w-full w-full mx-auto lg:max-w-5xl"> | ||
<NuxtPage /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<UNotifications /> | ||
</div> | ||
</template>:1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import "./poppins/poppins"; | ||
|
||
HTML, BODY { | ||
height: 100%; | ||
overflow: hidden; | ||
font-family: Poppins, sans-serif; | ||
} |
Oops, something went wrong.