Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
9,128 additions
and
0 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
# insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
# trim_trailing_whitespace = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"/home/ohmree/code/js/sveltesse-webext/src/auto-imports.d.ts":"1","/home/ohmree/code/js/sveltesse-webext/src/background/contentScriptHMR.ts":"2","/home/ohmree/code/js/sveltesse-webext/src/background/main.ts":"3","/home/ohmree/code/js/sveltesse-webext/src/components/Logo.svelte":"4","/home/ohmree/code/js/sveltesse-webext/src/contentScripts/index.ts":"5","/home/ohmree/code/js/sveltesse-webext/src/contentScripts/views/App.svelte":"6","/home/ohmree/code/js/sveltesse-webext/src/env.ts":"7","/home/ohmree/code/js/sveltesse-webext/src/global.d.ts":"8","/home/ohmree/code/js/sveltesse-webext/src/logic/index.ts":"9","/home/ohmree/code/js/sveltesse-webext/src/logic/storage.ts":"10","/home/ohmree/code/js/sveltesse-webext/src/options/Options.svelte":"11","/home/ohmree/code/js/sveltesse-webext/src/options/main.ts":"12","/home/ohmree/code/js/sveltesse-webext/src/popup/Popup.svelte":"13","/home/ohmree/code/js/sveltesse-webext/src/popup/main.ts":"14","/home/ohmree/code/js/sveltesse-webext/src/stores/toggle.ts":"15","/home/ohmree/code/js/sveltesse-webext/src/styles/index.ts":"16"},{"size":3482,"mtime":1649812118514,"results":"17","hashOfConfig":"18"},{"size":567,"mtime":1649810575337,"results":"19","hashOfConfig":"18"},{"size":1186,"mtime":1649811493179,"results":"20","hashOfConfig":"18"},{"size":238,"mtime":1649706634181,"results":"21","hashOfConfig":"18"},{"size":1306,"mtime":1649812118501,"results":"22","hashOfConfig":"18"},{"size":743,"mtime":1649812060470,"results":"23","hashOfConfig":"18"},{"size":358,"mtime":1646563475000,"results":"24","hashOfConfig":"18"},{"size":387,"mtime":1649706549046,"results":"25","hashOfConfig":"18"},{"size":26,"mtime":1646563475000,"results":"26","hashOfConfig":"18"},{"size":195,"mtime":1649770524975,"results":"27","hashOfConfig":"18"},{"size":565,"mtime":1649706846602,"results":"28","hashOfConfig":"18"},{"size":251,"mtime":1649809264558,"results":"29","hashOfConfig":"18"},{"size":575,"mtime":1649706997951,"results":"30","hashOfConfig":"18"},{"size":247,"mtime":1649812774133,"results":"31","hashOfConfig":"18"},{"size":382,"mtime":1649705000344,"results":"32","hashOfConfig":"18"},{"size":47,"mtime":1646563475000,"results":"33","hashOfConfig":"18"},{"filePath":"34","messages":"35","suppressedMessages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1bciw1b",{"filePath":"37","messages":"38","suppressedMessages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","suppressedMessages":"42","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","suppressedMessages":"45","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","suppressedMessages":"48","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"49","messages":"50","suppressedMessages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","suppressedMessages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","suppressedMessages":"57","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","suppressedMessages":"60","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"61","messages":"62","suppressedMessages":"63","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","suppressedMessages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"67","messages":"68","suppressedMessages":"69","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","suppressedMessages":"72","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","suppressedMessages":"75","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","suppressedMessages":"78","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"79","messages":"80","suppressedMessages":"81","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/ohmree/code/js/sveltesse-webext/src/auto-imports.d.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/background/contentScriptHMR.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/background/main.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/components/Logo.svelte",[],[],"/home/ohmree/code/js/sveltesse-webext/src/contentScripts/index.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/contentScripts/views/App.svelte",[],[],"/home/ohmree/code/js/sveltesse-webext/src/env.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/global.d.ts",[],["82","83"],"/home/ohmree/code/js/sveltesse-webext/src/logic/index.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/logic/storage.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/options/Options.svelte",[],[],"/home/ohmree/code/js/sveltesse-webext/src/options/main.ts",[],["84"],"/home/ohmree/code/js/sveltesse-webext/src/popup/Popup.svelte",[],[],"/home/ohmree/code/js/sveltesse-webext/src/popup/main.ts",[],["85"],"/home/ohmree/code/js/sveltesse-webext/src/stores/toggle.ts",[],[],"/home/ohmree/code/js/sveltesse-webext/src/styles/index.ts",[],[],{"ruleId":"86","severity":2,"message":"87","line":8,"column":15,"nodeType":"88","messageId":"89","endLine":8,"endColumn":29,"fix":"90","suppressions":"91"},{"ruleId":"92","severity":1,"message":"93","line":8,"column":30,"nodeType":"88","messageId":"94","endLine":8,"endColumn":31,"suppressions":"95"},{"ruleId":"96","severity":1,"message":"97","line":5,"column":16,"nodeType":"98","messageId":"99","endLine":5,"endColumn":47,"suppressions":"100"},{"ruleId":"96","severity":1,"message":"97","line":5,"column":16,"nodeType":"98","messageId":"99","endLine":5,"endColumn":47,"suppressions":"101"},"@typescript-eslint/no-empty-interface","An interface declaring no members is equivalent to its supertype.","Identifier","noEmptyWithSuper",{"range":"102","text":"103"},["104"],"@typescript-eslint/no-unused-vars","'T' is defined but never used.","unusedVar",["105"],"@typescript-eslint/no-non-null-assertion","Forbidden non-null assertion.","TSNonNullExpression","noNonNull",["106"],["107"],[285,345],"type HTMLAttributes<T> = AttributifyAttributes",{"kind":"108","justification":"109"},{"kind":"108","justification":"109"},{"kind":"108","justification":"109"},{"kind":"108","justification":"109"},"directive",""] |
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 @@ | ||
dist | ||
node_modules | ||
public |
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 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
plugins: ['svelte3', '@typescript-eslint'], | ||
ignorePatterns: ['*.cjs'], | ||
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], | ||
settings: { | ||
'svelte3/typescript': () => require('typescript'), | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true, | ||
}, | ||
rules: { | ||
camelcase: 'error', | ||
}, | ||
}; |
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,15 @@ | ||
.DS_Store | ||
.idea/ | ||
.vite-ssg-dist | ||
.vite-ssg-temp | ||
*.crx | ||
*.local | ||
*.log | ||
*.pem | ||
*.xpi | ||
*.zip | ||
dist | ||
dist-ssr | ||
node_modules | ||
src/auto-imports.d.ts | ||
src/components.d.ts |
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 @@ | ||
_ |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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 @@ | ||
shamefully-hoist=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
node_modules | ||
public | ||
pnpm-lock.yaml |
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 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"singleQuote": true, | ||
"semi": true, | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"arrowParens": "always", | ||
"quoteProps": "consistent" | ||
} |
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,9 @@ | ||
{ | ||
"recommendations": [ | ||
"johnsoncodehk.volar", | ||
"antfu.iconify", | ||
"dbaeumer.vscode-eslint", | ||
"voorjaar.windicss-intellisense", | ||
"csstools.postcss" | ||
] | ||
} |
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,13 @@ | ||
{ | ||
"cSpell.words": ["Vitesse"], | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"volar.tsPlugin": true, | ||
"volar.tsPluginStatus": false, | ||
"vite.autoStart": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
}, | ||
"files.associations": { | ||
"*.css": "postcss", | ||
}, | ||
} |
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,92 @@ | ||
{ | ||
"name": "cratehub", | ||
"displayName": "cratehub", | ||
"version": "0.0.1", | ||
"description": "github rust cargo project crates info", | ||
"private": true, | ||
"scripts": { | ||
"dev": "npm run clear && cross-env NODE_ENV=development TARGET_BROWSER=firefox run-p dev:*", | ||
"dev:prepare": "esno scripts/prepare.ts", | ||
"dev:web": "vite", | ||
"dev:js": "vite build --config vite.config.content.ts", | ||
"build": "cross-env NODE_ENV=production run-s clear build:web build:prepare", | ||
"build:prepare": "esno scripts/prepare.ts", | ||
"build:web": "vite build", | ||
"pack": "cross-env NODE_ENV=production run-p pack:*", | ||
"pack:zip": "rimraf extension.zip && jszip-cli add extension/* -o ./extension.zip", | ||
"pack:crx": "crx pack extension -o ./extension.crx", | ||
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest", | ||
"release:firefox": "cross-env TARGET_BROWSER=firefox run-s build pack:xpi", | ||
"release:chromium": "cross-env TARGET_BROWSER=chrome run-s build pack:crx", | ||
"start:chromium": "web-ext run --source-dir ./extension --target=chromium", | ||
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop", | ||
"start:firefoxdev": "web-ext run --source-dir ./dist --target=firefox-desktop --firefox=firefoxdeveloperedition", | ||
"clear": "rimraf extension/dist extension/manifest.json extension.*", | ||
"check": "svelte-check --tsconfig=./tsconfig.json", | ||
"lint": "prettier --check . && eslint --cache \"src/**/*.{json,ts,js,svelte}\"", | ||
"format": "prettier --write .", | ||
"lint:fix": "npm run format && eslint --cache --fix \"src/**/*.{json,ts,js,svelte}\"" | ||
}, | ||
"devDependencies": { | ||
"@ffflorian/jszip-cli": "^3.1.6", | ||
"@iconify/json": "^2.1.55", | ||
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.47", | ||
"@tsconfig/svelte": "^3.0.0", | ||
"@types/chrome": "^0.0.181", | ||
"@types/download": "^8.0.1", | ||
"@types/eslint": "^8.4.2", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/node": "^17.0.38", | ||
"@types/webextension-polyfill": "^0.8.3", | ||
"@typescript-eslint/eslint-plugin": "^5.27.0", | ||
"@typescript-eslint/parser": "^5.27.0", | ||
"body-parser": "1.19.1", | ||
"chokidar": "^3.5.3", | ||
"cross-env": "^7.0.3", | ||
"crx": "^5.0.1", | ||
"download": "^8.0.0", | ||
"eslint": "^8.17.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-svelte3": "^3.4.1", | ||
"esno": "^0.14.1", | ||
"express": "4.17.2", | ||
"fs-extra": "^10.1.0", | ||
"husky": "^7.0.4", | ||
"kolorist": "^1.5.1", | ||
"lint-staged": "^12.5.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.6.2", | ||
"prettier-plugin-svelte": "^2.7.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.75.5", | ||
"safe-compare": "^1.1.4", | ||
"svelte": "^3.48.0", | ||
"svelte-check": "^2.7.1", | ||
"svelte-preprocess": "^4.10.6", | ||
"svelte-webext-stores": "^0.0.12", | ||
"typescript": "^4.7.3", | ||
"typescript-svelte-plugin": "^0.3.3", | ||
"unplugin-auto-import": "^0.7.2", | ||
"unplugin-icons": "^0.14.3", | ||
"vite": "^2.9.9", | ||
"vite-plugin-web-extension": "^1.3.2", | ||
"vite-plugin-windicss": "^1.8.4", | ||
"web-ext": "^6.8.0", | ||
"webext-bridge": "^5.0.4", | ||
"webextension-polyfill": "^0.9.0", | ||
"windicss": "^3.5.4" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,svelte}": [ | ||
"eslint --cache --fix", | ||
"prettier --ignore-unknown --write" | ||
], | ||
"*.svelte": "svelte-check" | ||
}, | ||
"dependencies": { | ||
"doma": "^3.0.1", | ||
"element-ready": "^6.2.1", | ||
"mem": "^9.0.2", | ||
"toml": "^3.0.0" | ||
} | ||
} |
Oops, something went wrong.