Skip to content

Commit

Permalink
feat: [#24] add new settings in website section
Browse files Browse the repository at this point in the history
```toml
[website]
name = "Torrust"

[website.demo]
warning = "..."

[website.terms]

[website.terms.upload]
content_upload_agreement = "..."

[website.terms.page]
title = "Usage Policies and Content Restrictions"
content = "..."
```
  • Loading branch information
josecelano committed Sep 13, 2024
1 parent ae20eb7 commit 1307022
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/types/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ export type Logging = {

export type Website = {
name: string
demo: Demo | null
terms: Terms
}

export type Demo = {
warning: string
}

export type Terms = {
page: TermsPage
upload: TermsUpload
}

export type TermsPage = {
title: string
content: string
}

export type TermsUpload = {
content_upload_agreement: string
}

export type Tracker = {
Expand Down Expand Up @@ -85,6 +105,7 @@ export type PublicSettings = {
tracker_listed: boolean
tracker_private: boolean
email_on_signup: EmailOnSignup
website: Website
}

export type Tsl = {
Expand Down Expand Up @@ -126,4 +147,4 @@ export enum Threshold {
export type Email = {
required: boolean
verification_required: boolean
}
}

0 comments on commit 1307022

Please sign in to comment.