removed sentry as we really don't use it for anything.
This commit is contained in:
parent
53949b177a
commit
551daf6b70
7 changed files with 510 additions and 2775 deletions
|
|
@ -152,9 +152,6 @@ class Config:
|
||||||
file_logging: bool = True
|
file_logging: bool = True
|
||||||
"Enable file logging."
|
"Enable file logging."
|
||||||
|
|
||||||
sentry_dsn: str | None = None
|
|
||||||
"The Sentry DSN to use for error reporting."
|
|
||||||
|
|
||||||
secret_key: str
|
secret_key: str
|
||||||
"The secret key to use for the application."
|
"The secret key to use for the application."
|
||||||
|
|
||||||
|
|
@ -266,7 +263,6 @@ class Config:
|
||||||
"basic_mode",
|
"basic_mode",
|
||||||
"default_preset",
|
"default_preset",
|
||||||
"instance_title",
|
"instance_title",
|
||||||
"sentry_dsn",
|
|
||||||
"console_enabled",
|
"console_enabled",
|
||||||
"browser_enabled",
|
"browser_enabled",
|
||||||
"browser_control_enabled",
|
"browser_control_enabled",
|
||||||
|
|
@ -541,6 +537,17 @@ class Config:
|
||||||
data["ytdlp_version"] = Config._ytdlp_version()
|
data["ytdlp_version"] = Config._ytdlp_version()
|
||||||
return data
|
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
|
@staticmethod
|
||||||
def _ytdlp_version() -> str:
|
def _ytdlp_version() -> str:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,6 @@ import 'assets/css/style.css'
|
||||||
import 'assets/css/all.css'
|
import 'assets/css/all.css'
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import * as Sentry from '@sentry/nuxt'
|
|
||||||
import type { YTDLPOption } from '~/types/ytdlp'
|
import type { YTDLPOption } from '~/types/ytdlp'
|
||||||
import { useDialog } from '~/composables/useDialog'
|
import { useDialog } from '~/composables/useDialog'
|
||||||
import Dialog from '~/components/Dialog.vue'
|
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 () => {
|
onMounted(async () => {
|
||||||
try {
|
try {
|
||||||
await handleImage(bg_enable.value)
|
await handleImage(bg_enable.value)
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ export const useConfigStore = defineStore('config', () => {
|
||||||
basic_mode: true,
|
basic_mode: true,
|
||||||
default_preset: 'default',
|
default_preset: 'default',
|
||||||
instance_title: null,
|
instance_title: null,
|
||||||
sentry_dsn: null,
|
|
||||||
console_enabled: false,
|
console_enabled: false,
|
||||||
browser_enabled: false,
|
browser_enabled: false,
|
||||||
browser_control_enabled: false,
|
browser_control_enabled: false,
|
||||||
|
|
@ -27,6 +26,7 @@ export const useConfigStore = defineStore('config', () => {
|
||||||
app_build_date: '',
|
app_build_date: '',
|
||||||
app_branch: '',
|
app_branch: '',
|
||||||
started: 0,
|
started: 0,
|
||||||
|
app_env: 'production',
|
||||||
},
|
},
|
||||||
presets: [
|
presets: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
4
ui/app/types/config.d.ts
vendored
4
ui/app/types/config.d.ts
vendored
|
|
@ -22,8 +22,6 @@ type AppConfig = {
|
||||||
default_preset: string
|
default_preset: string
|
||||||
/** Instance title for the app, null if not set */
|
/** Instance title for the app, null if not set */
|
||||||
instance_title: string | null
|
instance_title: string | null
|
||||||
/** Sentry DSN for error tracking, null if not configured */
|
|
||||||
sentry_dsn: string | null
|
|
||||||
/** Indicates if the console is enabled */
|
/** Indicates if the console is enabled */
|
||||||
console_enabled: boolean
|
console_enabled: boolean
|
||||||
/** Indicates if the file browser is enabled */
|
/** Indicates if the file browser is enabled */
|
||||||
|
|
@ -47,7 +45,7 @@ type AppConfig = {
|
||||||
/** When the app started */
|
/** When the app started */
|
||||||
started: number,
|
started: number,
|
||||||
/** Application environment, e.g. "production", "development" */
|
/** Application environment, e.g. "production", "development" */
|
||||||
app_env: string
|
app_env: "production" | "development"
|
||||||
}
|
}
|
||||||
|
|
||||||
type Preset = {
|
type Preset = {
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,7 @@ export default defineNuxtConfig({
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
APP_ENV: process.env.NODE_ENV,
|
APP_ENV: process.env.NODE_ENV,
|
||||||
wss: process.env.NUXT_PUBLIC_WSS ?? '',
|
wss: process.env.NUXT_PUBLIC_WSS ?? ''
|
||||||
sentry: process.env.NUXT_PUBLIC_SENTRY_DSN ?? '',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
|
@ -61,7 +60,6 @@ export default defineNuxtConfig({
|
||||||
'@pinia/nuxt',
|
'@pinia/nuxt',
|
||||||
'@vueuse/nuxt',
|
'@vueuse/nuxt',
|
||||||
'floating-vue/nuxt',
|
'floating-vue/nuxt',
|
||||||
'@sentry/nuxt/module',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
nitro: {
|
nitro: {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
"web-types": "./web-types.json",
|
"web-types": "./web-types.json",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pinia/nuxt": "^0.11.2",
|
"@pinia/nuxt": "^0.11.2",
|
||||||
"@sentry/nuxt": "^10.8.0",
|
|
||||||
"@vueuse/core": "^13.9.0",
|
"@vueuse/core": "^13.9.0",
|
||||||
"@vueuse/nuxt": "^13.9.0",
|
"@vueuse/nuxt": "^13.9.0",
|
||||||
"@xterm/addon-fit": "^0.10.0",
|
"@xterm/addon-fit": "^0.10.0",
|
||||||
|
|
@ -22,10 +21,10 @@
|
||||||
"floating-vue": "^5.2.2",
|
"floating-vue": "^5.2.2",
|
||||||
"hls.js": "^1.6.11",
|
"hls.js": "^1.6.11",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"nuxt": "^4.0.3",
|
"nuxt": "^4.1.0",
|
||||||
"pinia": "^3.0.3",
|
"pinia": "^3.0.3",
|
||||||
"socket.io-client": "^4.8.1",
|
"socket.io-client": "^4.8.1",
|
||||||
"vue": "^3.5.20",
|
"vue": "^3.5.21",
|
||||||
"vue-router": "^4.5.1",
|
"vue-router": "^4.5.1",
|
||||||
"vue-toastification": "2.0.0-rc.5"
|
"vue-toastification": "2.0.0-rc.5"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
3246
ui/pnpm-lock.yaml
3246
ui/pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue