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

Udpate index settings #21

Merged
merged 1 commit into from
Jul 3, 2024
Merged
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
18 changes: 7 additions & 11 deletions src/types/settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export type Settings = {
version: string,
logging: Logging,
website: Website,
tracker: Tracker,
Expand All @@ -12,7 +13,7 @@ export type Settings = {
}

export type Logging = {
log_level: LogLevel,
threshold: Threshold,
}

export type Website = {
Expand All @@ -21,7 +22,8 @@ export type Website = {

export type Tracker = {
api_url: string
mode: TrackerMode
listed: boolean
private: boolean
token: string
token_valid_seconds: number
url: string
Expand Down Expand Up @@ -71,7 +73,8 @@ export type TrackerStatisticsImporter = {
export type PublicSettings = {
website_name: string
tracker_url: string
tracker_mode: TrackerMode
tracker_listed: boolean
tracker_private: boolean
email_on_signup: EmailOnSignup
}

Expand All @@ -96,20 +99,13 @@ export type Credentials = {
username: string
}

export enum TrackerMode {
Public = "public",
Listed = "listed",
Private = "private",
PrivateListed = "private_listed"
}

export enum EmailOnSignup {
Required = "required",
Optional = "optional",
Ignored = "ignored"
}

export enum LogLevel {
export enum Threshold {
Off = "off",
Error = "error",
Warn = "warn",
Expand Down