feat: add i18n support and implement Grafana plugin
Adds internationalization support in filters and origins pages by importing the useI18n function. Expands ESLint configuration to include new rules and plugins, ensuring improved code quality. Introduces Grafana monitoring plugin to enhance performance tracking capabilities in the application.
This commit is contained in:
@@ -5,10 +5,8 @@ interface EnvConfig {
|
||||
apiUrl: string
|
||||
auth: Auth0ClientOptions
|
||||
dev: boolean
|
||||
sentryEnabled: boolean
|
||||
tracesSampleRate: number
|
||||
replaysSessionSampleRate: number
|
||||
replaysOnErrorSampleRate: number
|
||||
grafanaUrl: string
|
||||
}
|
||||
|
||||
export const envConfig = (host: string): EnvConfig => {
|
||||
@@ -33,10 +31,8 @@ export const envConfig = (host: string): EnvConfig => {
|
||||
apiUrl: 'http://localhost:6080/query',
|
||||
auth: prod,
|
||||
dev: true,
|
||||
sentryEnabled: false,
|
||||
tracesSampleRate: 1.0,
|
||||
replaysSessionSampleRate: 1.0,
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
grafanaUrl: '',
|
||||
}
|
||||
case 'dancefinder.unbound.se':
|
||||
return {
|
||||
@@ -44,10 +40,8 @@ export const envConfig = (host: string): EnvConfig => {
|
||||
apiUrl: 'https://dancefinder.unbound.se/query',
|
||||
auth: prod,
|
||||
dev: false,
|
||||
sentryEnabled: true,
|
||||
tracesSampleRate: 1.0,
|
||||
replaysSessionSampleRate: 0.1,
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
grafanaUrl: 'https://faro-collector-prod-eu-west-0.grafana.net/collect/532676b975308d70605d856635721a61',
|
||||
}
|
||||
default:
|
||||
throw new Error(`unexpected host: ${host}`)
|
||||
|
||||
Reference in New Issue
Block a user