forked from Vendicated/Vencord
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from Johannes7k75/main
.
- Loading branch information
Showing
130 changed files
with
5,919 additions
and
2,567 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
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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
strict-peer-dependencies=false | ||
package-manager-strict=false |
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,11 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"eamodio.gitlens", | ||
"EditorConfig.EditorConfig", | ||
"ExodiusStudios.comment-anchors", | ||
"formulahendry.auto-rename-tag", | ||
"GregorBiswanger.json2ts", | ||
"stylelint.vscode-stylelint" | ||
"stylelint.vscode-stylelint", | ||
"Vendicated.vencord-companion" | ||
] | ||
} |
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,7 @@ | ||
{ | ||
"name": "vencord", | ||
"private": "true", | ||
"version": "1.8.1", | ||
"version": "1.8.5", | ||
"description": "The cutest Discord client mod", | ||
"homepage": "https://github.com/Vendicated/Vencord#readme", | ||
"bugs": { | ||
|
@@ -19,16 +19,17 @@ | |
"scripts": { | ||
"build": "node --require=./scripts/suppressExperimentalWarnings.js scripts/build/build.mjs", | ||
"buildWeb": "node --require=./scripts/suppressExperimentalWarnings.js scripts/build/buildWeb.mjs", | ||
"watch": "node --require=./scripts/suppressExperimentalWarnings.js scripts/build/build.mjs --watch", | ||
"generatePluginJson": "tsx scripts/generatePluginList.ts", | ||
"generateTypes": "tspc --emitDeclarationOnly --declaration --outDir packages/vencord-types", | ||
"inject": "node scripts/runInstaller.mjs", | ||
"uninject": "node scripts/runInstaller.mjs", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern src/userplugins", | ||
"lint-styles": "stylelint \"src/**/*.css\" --ignore-pattern src/userplugins", | ||
"lint:fix": "pnpm lint --fix", | ||
"test": "pnpm build && pnpm lint && pnpm lint-styles && pnpm testTsc && pnpm generatePluginJson", | ||
"testWeb": "pnpm lint && pnpm buildWeb && pnpm testTsc", | ||
"testTsc": "tsc --noEmit", | ||
"uninject": "node scripts/runInstaller.mjs", | ||
"watch": "node --require=./scripts/suppressExperimentalWarnings.js scripts/build/build.mjs --watch" | ||
"testTsc": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@sapphi-red/web-noise-suppressor": "0.3.3", | ||
|
@@ -65,13 +66,14 @@ | |
"standalone-electron-types": "^1.0.0", | ||
"stylelint": "^15.6.0", | ||
"stylelint-config-standard": "^33.0.0", | ||
"ts-patch": "^3.1.2", | ||
"tsx": "^3.12.7", | ||
"type-fest": "^3.9.0", | ||
"typescript": "^5.0.4", | ||
"zip-local": "^0.3.5", | ||
"zustand": "^3.7.2" | ||
"typescript": "^5.4.5", | ||
"typescript-transform-paths": "^3.4.7", | ||
"zip-local": "^0.3.5" | ||
}, | ||
"packageManager": "pnpm@8.10.2", | ||
"packageManager": "pnpm@9.1.0", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]", | ||
|
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 @@ | ||
* | ||
!.*ignore | ||
!package.json | ||
!*.md | ||
!prepare.ts | ||
!index.d.ts | ||
!globals.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,4 @@ | ||
node_modules | ||
prepare.ts | ||
.gitignore | ||
HOW2PUB.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,5 @@ | ||
# How to publish | ||
|
||
1. run `pnpm generateTypes` in the project root | ||
2. bump package.json version | ||
3. npm publish |
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,11 @@ | ||
# Vencord Types | ||
|
||
Typings for Vencord's api, published to npm | ||
|
||
```sh | ||
npm i @vencord/types | ||
|
||
yarn add @vencord/types | ||
|
||
pnpm add @vencord/types | ||
``` |
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,24 @@ | ||
/* | ||
* Vencord, a modification for Discord's desktop app | ||
* Copyright (c) 2022 Vendicated and contributors | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
declare global { | ||
export var VencordNative: typeof import("./VencordNative").default; | ||
export var Vencord: typeof import("./Vencord"); | ||
} | ||
|
||
export { }; |
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,5 @@ | ||
/* eslint-disable */ | ||
|
||
/// <reference path="Vencord.d.ts" /> | ||
/// <reference path="globals.d.ts" /> | ||
/// <reference path="modules.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,28 @@ | ||
{ | ||
"name": "@vencord/types", | ||
"private": false, | ||
"version": "0.1.3", | ||
"description": "", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
"prepublishOnly": "tsx ./prepare.ts", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "Vencord", | ||
"license": "GPL-3.0", | ||
"devDependencies": { | ||
"@types/fs-extra": "^11.0.4", | ||
"fs-extra": "^11.2.0", | ||
"tsx": "^3.12.6" | ||
}, | ||
"dependencies": { | ||
"@types/lodash": "^4.14.191", | ||
"@types/node": "^18.11.18", | ||
"@types/react": "^18.2.0", | ||
"@types/react-dom": "^18.0.10", | ||
"discord-types": "^1.3.26", | ||
"standalone-electron-types": "^1.0.0", | ||
"type-fest": "^3.5.3" | ||
} | ||
} |
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,47 @@ | ||
/* | ||
* Vencord, a modification for Discord's desktop app | ||
* Copyright (c) 2023 Vendicated and contributors | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import { cpSync, moveSync, readdirSync, rmSync } from "fs-extra"; | ||
import { join } from "path"; | ||
|
||
readdirSync(join(__dirname, "src")) | ||
.forEach(child => moveSync(join(__dirname, "src", child), join(__dirname, child), { overwrite: true })); | ||
|
||
const VencordSrc = join(__dirname, "..", "..", "src"); | ||
|
||
for (const file of ["preload.d.ts", "userplugins", "main", "debug", "src", "browser", "scripts"]) { | ||
rmSync(join(__dirname, file), { recursive: true, force: true }); | ||
} | ||
|
||
function copyDtsFiles(from: string, to: string) { | ||
for (const file of readdirSync(from, { withFileTypes: true })) { | ||
// bad | ||
if (from === VencordSrc && file.name === "globals.d.ts") continue; | ||
|
||
const fullFrom = join(from, file.name); | ||
const fullTo = join(to, file.name); | ||
|
||
if (file.isDirectory()) { | ||
copyDtsFiles(fullFrom, fullTo); | ||
} else if (file.name.endsWith(".d.ts")) { | ||
cpSync(fullFrom, fullTo); | ||
} | ||
} | ||
} | ||
|
||
copyDtsFiles(VencordSrc, __dirname); |
Oops, something went wrong.