Skip to content

Commit

Permalink
Merge #21: Udpate index settings
Browse files Browse the repository at this point in the history
369e003 fix: [#20] udpate index settings (Jose Celano)

Pull request description:

  Udpate index settings.

ACKs for top commit:
  josecelano:
    ACK 369e003

Tree-SHA512: b367c5c167b1c1ff5f7be4d5b8ff5dec5a28b641faaa3900f96644f5bd1e37e6e00945bdad02606906c5a1a045799793a2c2d6a5464418a4745546b7bafb3429
  • Loading branch information
josecelano committed Jul 3, 2024
2 parents 62d1a7f + 369e003 commit da6c4a6
Showing 1 changed file with 7 additions and 11 deletions.
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

0 comments on commit da6c4a6

Please sign in to comment.