Skip to content

Commit 1efa385

Browse files
committed
Merge branch 'Vendicated-main'
2 parents 2d44faf + e346b4d commit 1efa385

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2060
-1015
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Clean up obsolete files
4444
run: |
45-
rm -rf dist/*-unpacked dist/monaco Vencord.user.css vencordDesktopRenderer.css vencordDesktopRenderer.css.map
45+
rm -rf dist/*-unpacked dist/vendor Vencord.user.css vencordDesktopRenderer.css vencordDesktopRenderer.css.map
4646
4747
- name: Get some values needed for the release
4848
id: release_values

.github/workflows/reportBrokenPlugins.yml

+47-19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
name: Test Patches
22
on:
33
workflow_dispatch:
4-
schedule:
5-
# Every day at midnight
6-
- cron: 0 0 * * *
4+
inputs:
5+
discord_branch:
6+
type: choice
7+
description: "Discord Branch to test patches on"
8+
options:
9+
- both
10+
- stable
11+
- canary
12+
default: both
13+
webhook_url:
14+
type: string
15+
description: "Webhook URL that the report will be posted to. This will be visible for everyone, so DO NOT pass sensitive webhooks like discord webhook. This is meant to be used by Venbot."
16+
required: false
17+
# schedule:
18+
# # Every day at midnight
19+
# - cron: 0 0 * * *
720

821
jobs:
922
TestPlugins:
@@ -40,28 +53,43 @@ jobs:
4053
- name: Build Vencord Reporter Version
4154
run: pnpm buildReporter
4255

43-
- name: Create Report
56+
- name: Run Reporter
4457
timeout-minutes: 10
4558
run: |
4659
export PATH="$PWD/node_modules/.bin:$PATH"
4760
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }}
4861
4962
esbuild scripts/generateReport.ts > dist/report.mjs
50-
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
51-
env:
52-
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
53-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
5463
55-
- name: Create Report (Canary)
56-
timeout-minutes: 10
57-
if: success() || failure() # even run if previous one failed
58-
run: |
59-
export PATH="$PWD/node_modules/.bin:$PATH"
60-
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }}
61-
export USE_CANARY=true
64+
stable_output_file=$(mktemp)
65+
canary_output_file=$(mktemp)
6266
63-
esbuild scripts/generateReport.ts > dist/report.mjs
64-
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
67+
pids=""
68+
69+
branch="${{ inputs.discord_branch }}"
70+
if [[ "${{ github.event_name }}" = "schedule" ]]; then
71+
branch="both"
72+
fi
73+
74+
if [[ "$branch" = "both" || "$branch" = "stable" ]]; then
75+
node dist/report.mjs > "$stable_output_file" &
76+
pids+=" $!"
77+
fi
78+
79+
if [[ "$branch" = "both" || "$branch" = "canary" ]]; then
80+
USE_CANARY=true node dist/report.mjs > "$canary_output_file" &
81+
pids+=" $!"
82+
fi
83+
84+
exit_code=0
85+
for pid in $pids; do
86+
if ! wait "$pid"; then
87+
exit_code=1
88+
fi
89+
done
90+
91+
cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY
92+
exit $exit_code
6593
env:
66-
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
67-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
94+
WEBHOOK_URL: ${{ inputs.webhook_url || secrets.DISCORD_WEBHOOK }}
95+
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ vencord_installer
88
.DS_Store
99

1010
yarn.lock
11+
bun.lock
1112
package-lock.json
1213

1314
*.log

browser/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
"web_accessible_resources": [
3838
{
39-
"resources": ["dist/*", "third-party/*"],
39+
"resources": ["dist/*", "vendor/*"],
4040
"matches": ["*://*.discord.com/*"]
4141
}
4242
],

browser/monaco.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare global {
1515
const getTheme: () => string;
1616
}
1717

18-
const BASE = "/dist/monaco/vs";
18+
const BASE = "/vendor/monaco/vs";
1919

2020
self.MonacoEnvironment = {
2121
getWorkerUrl(_moduleId: unknown, label: string) {

browser/monacoWin.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424

2525
<script>
2626
const script = document.createElement("script");
27-
script.src = new URL("/dist/monaco/index.js", baseUrl);
27+
script.src = new URL("/vendor/monaco/index.js", baseUrl);
2828

2929
const style = document.createElement("link");
3030
style.type = "text/css";
3131
style.rel = "stylesheet";
32-
style.href = new URL("/dist/monaco/index.css", baseUrl);
32+
style.href = new URL("/vendor/monaco/index.css", baseUrl);
3333

3434
document.body.append(style, script);
3535
</script>

eslint.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default tseslint.config(
134134
"no-unsafe-optional-chaining": "error",
135135
"no-useless-backreference": "error",
136136
"use-isnan": "error",
137-
"prefer-const": "error",
137+
"prefer-const": ["error", { destructuring: "all" }],
138138
"prefer-spread": "error",
139139

140140
// Plugin Rules

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vencord",
33
"private": "true",
4-
"version": "1.11.3",
4+
"version": "1.11.5",
55
"description": "The cutest Discord client mod",
66
"homepage": "https://github.com/Vendicated/Vencord#readme",
77
"bugs": {
@@ -30,13 +30,12 @@
3030
"lint": "eslint",
3131
"lint-styles": "stylelint \"src/**/*.css\" --ignore-pattern src/userplugins",
3232
"lint:fix": "pnpm lint --fix",
33-
"test": "pnpm buildStandalone && pnpm lint && pnpm lint-styles && pnpm testTsc && pnpm generatePluginJson",
33+
"test": "pnpm buildStandalone && pnpm testTsc && pnpm lint && pnpm lint-styles && pnpm generatePluginJson",
3434
"testWeb": "pnpm lint && pnpm buildWeb && pnpm testTsc",
3535
"testTsc": "tsc --noEmit"
3636
},
3737
"dependencies": {
3838
"@intrnl/xxhash64": "^0.1.2",
39-
"@sapphi-red/web-noise-suppressor": "0.3.5",
4039
"@vap/core": "0.0.12",
4140
"@vap/shiki": "0.10.5",
4241
"fflate": "^0.8.2",
@@ -56,7 +55,7 @@
5655
"@types/yazl": "^2.4.5",
5756
"diff": "^7.0.0",
5857
"discord-types": "^1.3.26",
59-
"esbuild": "^0.15.18",
58+
"esbuild": "^0.25.0",
6059
"eslint": "^9.17.0",
6160
"eslint-import-resolver-alias": "^1.1.2",
6261
"eslint-plugin-path-alias": "2.1.0",

0 commit comments

Comments
 (0)