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

Update sentry integration, assorted long-term bug and feature fixes, add refresh cache admin endpoints #317

Merged
merged 17 commits into from
Feb 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ on:
tags:
- "v*-Release"
jobs:
sentry-sourcemaps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: installs pnpm
uses: pnpm/action-setup@v2
with:
version: 8.15.5
- uses: actions/setup-node@v4
with:
node-version: '22.14.0'
cache: 'pnpm'
- name: dependencies
run: pnpm i
- name: settings
run: cp settings.example.json settings.json
- name: run sentry:build
run: pnpm run sentry:build
- name: run sentry:sourcemaps
run: pnpm run sentry:sourcemaps
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ package-lock.json

# copied lib-comparison data
data/

# Sentry Config File
.sentryclirc
2 changes: 1 addition & 1 deletion assets/Public/css/themes/black.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/Public/css/themes/dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/Public/css/themes/light.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions assets/Sass/components/overwrite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,13 @@ html[data-deltheme=dark] {

html[data-deltheme=light] {
--delovr-primary-colour: cc.$primary-light;
}

.modal-card-head {
box-shadow: unset !important;
background-color: var(--del-modal-card-foot-background-color) !important;
}

.navbar-item, .navbar-link {
gap: unset !important;
}
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"type": "module",
"name": "del-website",
"version": "v5.6.18-Release",
"version": "v5.6.19-Release",
"description": "Discord Extreme List, Discord's unbiased list! Official source code for the DEL v5 website!",
"main": "dist/src/app.js",
"main": "src/app.ts",
"directories": {
"doc": "docs"
},
Expand All @@ -12,7 +12,9 @@
},
"packageManager": "[email protected]",
"dependencies": {
"@sentry/cli": "^2.41.1",
"@sentry/node": "^9.1.0",
"@sentry/profiling-node": "^9.1.0",
"@snyk/protect": "^1.984.0",
"@types/node-fetch": "^2.6.11",
"@types/ua-parser-js": "^0.7.39",
Expand Down Expand Up @@ -44,7 +46,7 @@
"passport-oauth2-refresh": "^2.1.0",
"sanitize-html": "^2.12.1",
"typescript": "^5.3.3",
"ua-parser-js": "^1.0.37"
"ua-parser-js": "^2.0.2"
},
"devDependencies": {
"@sentry/types": "^9.1.0",
Expand All @@ -70,13 +72,14 @@
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "node --max-old-space-size=4096 --experimental-transform-types src/app.ts",
"pm2": "pm2 start dist/src/app.js --name 'DEL'",
"start": "node --max-old-space-size=4096 --experimental-transform-types --import ./src/instrument.ts ./src/app.ts",
"postinstall": "mkdir -p ./data && tsc node_modules/lib-comparison/libs.ts && cp node_modules/lib-comparison/libs.js ./data/libs.js",
"css-compile": "sass --no-source-map assets/Sass/themes/black.scss:assets/Public/css/themes/black.css assets/Sass/themes/dark.scss:assets/Public/css/themes/dark.css assets/Sass/themes/light.scss:assets/Public/css/themes/light.css assets/Sass/components/listing.scss:assets/Public/css/listing.css --style=compressed",
"snyk-protect": "snyk-protect",
"prepare": "pnpm run snyk-protect",
"pretty": "npx prettier --write src/"
"pretty": "npx prettier --write src/",
"sentry:build": "rm -rf dist/ && tsc",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org delly --project website ./dist && sentry-cli sourcemaps upload --org delly --project website ./dist"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -110,4 +113,4 @@
"next@>=10.0.0 <14.2.7": ">=14.2.7"
}
}
}
}
Loading