forked from blib-la/captain
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic marketplace logic (blib-la#20)
* feat: add basic marketplace logic * feat: adjust downloading to handle multiple files * feat: adjust gpt logic * feat: cleanup code base * chore: remove unused * fix: focus outline on overflow hidden * feat: add lottie to feedback * refactor: consistent use of swr for polling * refactor: move hooks * refactor: move functions, cleanup * fix: add missing translations * fix: handle GPT errors * chore: update dependencies * chore: integrate husky * refactor: remove duplicate i18next config * feat: allow downloading marketplace * feat: improve marketplace download * docs: update readme * refactor: remove unused var * fix: marketplace crash after dataset
- Loading branch information
Showing
115 changed files
with
17,415 additions
and
9,941 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
last 2 android versions | ||
last 2 edge versions | ||
last 2 chrome versions | ||
last 2 firefox versions | ||
last 2 ios versions | ||
last 2 safari version |
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,3 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"] | ||
} |
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,21 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 | ||
max_line_length = 100 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
# trailing spaces in markdown indicate word wrap | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
|
||
[{*.json,*.md,*.yml,.*rc,.*config,*.feature,*.prisma}] | ||
indent_style = space | ||
|
||
[{*.json,*.yml,.*rc,.*config,*.feature,*.prisma}] | ||
indent_size = 2 |
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 @@ | ||
node_modules/ | ||
public/ | ||
traces/ | ||
reports/ | ||
coverage/ | ||
.idea/ | ||
.next/ |
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,113 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"typescript", | ||
"eslint:recommended", | ||
"xo", | ||
"plugin:unicorn/recommended", | ||
"plugin:prettier/recommended", | ||
"next/core-web-vitals" | ||
], | ||
"env": { | ||
"browser": true, | ||
"es2022": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"globals": { | ||
"BufferEncoding": "readonly" | ||
}, | ||
"plugins": ["@typescript-eslint", "unicorn", "unused-imports", "import", "jest", "prettier"], | ||
"ignorePatterns": ["*.d.ts"], | ||
"rules": { | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
}, | ||
"newlines-between": "always" | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
"camelcase": "off", | ||
"no-await-in-loop": "off", | ||
"unicorn/no-null": "off", | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
"@next/next/no-html-link-for-pages": "off", | ||
"@next/next/no-img-element": "off", | ||
"unused-imports/no-unused-vars": [ | ||
"warn", | ||
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" } | ||
], | ||
"curly": "error", | ||
"no-nested-ternary": "error", | ||
"no-multiple-empty-lines": "error", | ||
"object-curly-spacing": ["error", "always"], | ||
"prettier/prettier": "error", | ||
"arrow-body-style": ["error", "as-needed"], | ||
"unicorn/prefer-node-protocol": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"react/jsx-curly-brace-presence": "error", | ||
"react/self-closing-comp": "error", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"paths": [ | ||
{ | ||
"name": "@mui/joy", | ||
"message": "Please use Component from @mui/joy/Component instead." | ||
}, | ||
{ | ||
"name": "@mui/icons-material", | ||
"message": "Please use FooIcon from @mui/icons-material/Foo instead." | ||
} | ||
] | ||
} | ||
], | ||
"func-style": ["error", "declaration"], | ||
"prefer-arrow-callback": "error", | ||
"unicorn/filename-case": [ | ||
"error", | ||
{ | ||
"case": "kebabCase", | ||
"ignore": ["^\\[.*\\]\\.tsx?$"] | ||
} | ||
], | ||
"react/jsx-sort-props": [ | ||
"error", | ||
{ | ||
"callbacksLast": true, | ||
"shorthandFirst": true, | ||
"multiline": "last", | ||
"reservedFirst": true, | ||
"noSortAlphabetically": true | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["sanity.cli.ts", "next-i18next.config.js"], | ||
"rules": { | ||
"unicorn/prefer-module": "off", | ||
"unicorn/no-null": "off" | ||
} | ||
}, | ||
{ | ||
"files": "types.ts", | ||
"rules": { | ||
"no-unused-vars": "off" | ||
} | ||
}, | ||
{ | ||
"files": "cucumber/**/*.ts", | ||
"rules": { | ||
"new-cap": "off" | ||
} | ||
} | ||
] | ||
} |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit $1 |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged && npm run tsc:noEmit |
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,28 @@ | ||
{ | ||
"*.ts": [ | ||
"npx eslint --fix" | ||
], | ||
"*.tsx": [ | ||
"npx eslint --fix" | ||
], | ||
"*.js": [ | ||
"npx eslint --fix" | ||
], | ||
"*.cjs": [ | ||
"npx eslint --fix" | ||
], | ||
"*.mjs": [ | ||
"npx eslint --fix" | ||
], | ||
"package.json": [ | ||
"npx sort-package-json", | ||
"npx prettier --write" | ||
], | ||
"*.md": [ | ||
"npx prettier --write" | ||
], | ||
"README.md": [ | ||
"npx markdown-toc -i", | ||
"npx prettier --write" | ||
] | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"upgrade": true, | ||
"reject": ["@types/node"] | ||
"reject": ["@types/node", "codemirror", "next", "sharp"] | ||
} |
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 @@ | ||
v18.17.1 |
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 @@ | ||
CHANGELOG.md |
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,10 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"semi": true, | ||
"singleQuote": false, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid", | ||
"proseWrap": "always" | ||
} |
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
Oops, something went wrong.