removed sentry as we really don't use it for anything.

This commit is contained in:
arabcoders 2025-09-03 21:04:12 +03:00
parent 53949b177a
commit 551daf6b70
7 changed files with 510 additions and 2775 deletions

View file

@ -152,9 +152,6 @@ class Config:
file_logging: bool = True
"Enable file logging."
sentry_dsn: str | None = None
"The Sentry DSN to use for error reporting."
secret_key: str
"The secret key to use for the application."
@ -266,7 +263,6 @@ class Config:
"basic_mode",
"default_preset",
"instance_title",
"sentry_dsn",
"console_enabled",
"browser_enabled",
"browser_control_enabled",
@ -541,6 +537,17 @@ class Config:
data["ytdlp_version"] = Config._ytdlp_version()
return data
def get_replacer(self) -> dict:
"""
Get the variables that can be used in Command options for yt-dlp.
Returns:
dict: The replacer variables.
"""
keys: tuple[str] = ("download_path", "temp_path", "config_path")
return {k: getattr(self, k) for k in keys}
@staticmethod
def _ytdlp_version() -> str:
try:

View file

@ -158,7 +158,6 @@ import 'assets/css/style.css'
import 'assets/css/all.css'
import { useStorage } from '@vueuse/core'
import moment from 'moment'
import * as Sentry from '@sentry/nuxt'
import type { YTDLPOption } from '~/types/ytdlp'
import { useDialog } from '~/composables/useDialog'
import Dialog from '~/components/Dialog.vue'
@ -249,14 +248,6 @@ const applyPreferredColorScheme = (scheme: string) => {
}
}
watch(() => config.app.sentry_dsn, dsn => {
if (!dsn) {
return
}
console.warn('Loading sentry module.')
Sentry.init({ dsn: dsn })
})
onMounted(async () => {
try {
await handleImage(bg_enable.value)

View file

@ -15,7 +15,6 @@ export const useConfigStore = defineStore('config', () => {
basic_mode: true,
default_preset: 'default',
instance_title: null,
sentry_dsn: null,
console_enabled: false,
browser_enabled: false,
browser_control_enabled: false,
@ -27,6 +26,7 @@ export const useConfigStore = defineStore('config', () => {
app_build_date: '',
app_branch: '',
started: 0,
app_env: 'production',
},
presets: [
{

View file

@ -22,8 +22,6 @@ type AppConfig = {
default_preset: string
/** Instance title for the app, null if not set */
instance_title: string | null
/** Sentry DSN for error tracking, null if not configured */
sentry_dsn: string | null
/** Indicates if the console is enabled */
console_enabled: boolean
/** Indicates if the file browser is enabled */
@ -47,7 +45,7 @@ type AppConfig = {
/** When the app started */
started: number,
/** Application environment, e.g. "production", "development" */
app_env: string
app_env: "production" | "development"
}
type Preset = {

View file

@ -30,8 +30,7 @@ export default defineNuxtConfig({
runtimeConfig: {
public: {
APP_ENV: process.env.NODE_ENV,
wss: process.env.NUXT_PUBLIC_WSS ?? '',
sentry: process.env.NUXT_PUBLIC_SENTRY_DSN ?? '',
wss: process.env.NUXT_PUBLIC_WSS ?? ''
}
},
build: {
@ -61,7 +60,6 @@ export default defineNuxtConfig({
'@pinia/nuxt',
'@vueuse/nuxt',
'floating-vue/nuxt',
'@sentry/nuxt/module',
],
nitro: {

View file

@ -12,7 +12,6 @@
"web-types": "./web-types.json",
"dependencies": {
"@pinia/nuxt": "^0.11.2",
"@sentry/nuxt": "^10.8.0",
"@vueuse/core": "^13.9.0",
"@vueuse/nuxt": "^13.9.0",
"@xterm/addon-fit": "^0.10.0",
@ -22,10 +21,10 @@
"floating-vue": "^5.2.2",
"hls.js": "^1.6.11",
"moment": "^2.30.1",
"nuxt": "^4.0.3",
"nuxt": "^4.1.0",
"pinia": "^3.0.3",
"socket.io-client": "^4.8.1",
"vue": "^3.5.20",
"vue": "^3.5.21",
"vue-router": "^4.5.1",
"vue-toastification": "2.0.0-rc.5"
},

File diff suppressed because it is too large Load diff