Skip to content

Commit

Permalink
Merge #25: Add new settings in website section
Browse files Browse the repository at this point in the history
1307022 feat: [#24] add new settings in website section (Jose Celano)

Pull request description:

  Add new settings in the website section:

  ```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 = "..."
  ```

ACKs for top commit:
  josecelano:
    ACK 1307022

Tree-SHA512: 27d07aff12918341c8b638538ce7ac83399adaedffe3c225f2321112ab7404185fdfbfd1cd385cbab0e07f3f27ef6497d00b2430b7324d1bac67643d9e8cdfc7
  • Loading branch information
josecelano committed Sep 15, 2024
2 parents ae20eb7 + 1307022 commit 4d6877b
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 4d6877b

Please sign in to comment.