Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(new features): adds features, read pr for details #9

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3d8ebe4
bad code
sadan4 Aug 15, 2024
e1f9400
create draft commit
sadan4 Aug 18, 2024
50b6dae
add formatter
sadan4 Aug 19, 2024
940e9a3
add module diffing
sadan4 Aug 20, 2024
add041a
start work on webview
sadan4 Aug 21, 2024
d824542
non-ui part of client side reporter done
sadan4 Aug 21, 2024
0a850d1
delete unneeded files
sadan4 Aug 21, 2024
e74de09
things
sadan4 Aug 21, 2024
6b41f9a
webview works
sadan4 Aug 22, 2024
cf9be30
oops
sadan4 Aug 22, 2024
17c8e54
start working on webview commands
sadan4 Aug 24, 2024
d22471f
Add the stuff
cheesesamwich Aug 26, 2024
2f880f0
remove dummy data
sadan4 Aug 26, 2024
d46a10f
Merge pull request #1 from cheesesamwich/main
sadan4 Aug 26, 2024
e6e4cb9
add types to webview, fix csp, fix some bad logic, change a bit of th…
sadan4 Aug 27, 2024
8363424
add broken finds to it
sadan4 Aug 27, 2024
39482a6
how in gods name did this get comitted
sadan4 Aug 27, 2024
afd1195
guh
sadan4 Aug 28, 2024
22eeab1
guh
sadan4 Aug 28, 2024
7e6c5d3
guh guh
sadan4 Aug 30, 2024
dbcfe59
remove setting
sadan4 Aug 30, 2024
cf88029
guh
sadan4 Aug 30, 2024
141e94e
use esbuild for webview
sadan4 Aug 30, 2024
01491be
i love esbuild
sadan4 Aug 30, 2024
9d71423
oops
sadan4 Aug 30, 2024
8a3870f
general cleanup
sadan4 Aug 30, 2024
f22d11c
update gitingorte
sadan4 Aug 30, 2024
3ad7c5a
add postinstall script
sadan4 Aug 30, 2024
2965f29
cleanup build for webview fix the hide button
sadan4 Aug 31, 2024
36f4d21
add/update eslint
sadan4 Sep 2, 2024
9eb99c1
update eslint
sadan4 Sep 2, 2024
b0939bd
add LSP for webpack modules
sadan4 Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist
src/webview/dist
node_modules
.vscode-test/
*.vsix
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"connor4312.esbuild-problem-matchers"
]
}
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ src/**
pnpm-lock.yaml
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
eslint.config.mjs
**/*.map
**/*.ts
scripts/**
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
# 0.1.3

- Now also supports plugin definitions stored in variables, like `const p: PluginDef = { ... }`

# 0.2.0

TODO: write notes
82 changes: 82 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// @ts-check

import stylistic from "@stylistic/eslint-plugin";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import tseslint from "typescript-eslint";

export default tseslint.config(
{ ignores: ["dist", "src/webview"] },
{
files: ["src/**/*.{tsx,ts,mts,mjs,js,jsx}", "eslint.config.mjs"],
plugins: {
"@stylistic": stylistic,
"@typescript-eslint": tseslint.plugin,
"simple-import-sort": simpleImportSort,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
tsconfigRootDir: import.meta.dirname
}
},
rules: {

// Style Rules
"@stylistic/jsx-quotes": ["error", "prefer-double"],
"@stylistic/quotes": ["error", "double", { "avoidEscape": true }],
"@stylistic/no-mixed-spaces-and-tabs": "error",
"@stylistic/arrow-parens": ["error", "as-needed"],
"@stylistic/eol-last": ["error", "always"],
"@stylistic/no-multi-spaces": "error",
"@stylistic/no-trailing-spaces": "error",
"@stylistic/no-whitespace-before-property": "error",
"@stylistic/semi": ["error", "always"],
"@stylistic/semi-style": ["error", "last"],
"@stylistic/space-in-parens": ["error", "never"],
"@stylistic/block-spacing": ["error", "always"],
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/spaced-comment": ["error", "always", { "markers": ["!"] }],
"@stylistic/no-extra-semi": "error",

// TS Rules
"@stylistic/func-call-spacing": ["error", "never"],

// ESLint Rules
"yoda": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"prefer-destructuring": ["error", {
"VariableDeclarator": { "array": false, "object": true },
"AssignmentExpression": { "array": false, "object": false }
}],
"operator-assignment": ["error", "always"],
"no-useless-computed-key": "error",
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"no-invalid-regexp": "error",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-duplicate-imports": "error",
"dot-notation": "error",
"no-fallthrough": "error",
"for-direction": "error",
"no-async-promise-executor": "error",
"no-cond-assign": "error",
"no-dupe-else-if": "error",
"no-duplicate-case": "error",
"no-irregular-whitespace": "error",
"no-loss-of-precision": "error",
"no-misleading-character-class": "error",
"no-prototype-builtins": "error",
"no-regex-spaces": "error",
"no-shadow-restricted-names": "error",
"no-unexpected-multiline": "error",
"no-unsafe-optional-chaining": "error",
"no-useless-backreference": "error",
"use-isnan": "error",
"prefer-const": "error",
"prefer-spread": "error",

// Plugin Rules
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
}
}
);
53 changes: 44 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,47 @@
},
"license": "GPL-3.0",
"author": "Vendicated <[email protected]>",
"contributors": [
{
"name": "sadan",
"url": "https://sadan.zip"
}
],
"publisher": "Vendicated",
"main": "./dist/extension.js",
"scripts": {
"compile": "esbuild ./src/extension.ts --platform=node --external:vscode --bundle --sourcemap --log-level=info --outfile=./dist/extension.js",
"lint": "eslint src --ext ts && pnpm typecheck",
"build": "node ./scripts/build.mjs",
"watch": "node ./scripts/watch.mjs",
"lint": "eslint && pnpm typecheck",
"package": "vsce package --no-dependencies",
"vscode:prepublish": "pnpm compile --minify && pnpm lint",
"vscode:prepublish": "pnpm build && pnpm lint",
"publish": "vsce publish --no-dependencies",
"watch": "pnpm compile --watch",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"postinstall": "(cd src/webview && pnpm i)"
},
"contributes": {
"commands": [
{
"command": "vencord-companion.runReporter",
"title": "Run Reporter"
},
{
"command": "vencord-companion.diffModuleSearch",
"title": "Diff Module Search"
},
{
"command": "vencord-companion.diffModule",
"title": "Diff Module"
},
{
"command": "vencord-companion.extract",
"title": "Extract"
},
{
"command": "vencord-companion.extractSearch",
"title": "Extract With Search"
}
],
"snippets": [
{
"language": "typescript",
Expand All @@ -52,18 +81,23 @@
"onLanguage:typescriptreact"
],
"dependencies": {
"prettier": "^3.3.3",
"tsutils": "^3.21.0",
"typescript": "^4.9.5",
"ws": "^8.12.1"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.7.2",
"@types/node": "16.x",
"@types/vscode": "^1.70.0",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@vscode/vsce": "^2.18.0",
"esbuild": "^0.17.19",
"eslint": "^8.34.0"
"esbuild": "^0.23.1",
"eslint": "^9.9.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"typescript-eslint": "^8.3.0"
},
"engines": {
"vscode": "^1.70.0"
Expand All @@ -79,5 +113,6 @@
"sponsor": {
"url": "https://github.com/sponsors/Vendicated"
},
"homepage": "https://github.com/Vencord/Companion"
}
"homepage": "https://github.com/Vencord/Companion",
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
}
Loading