Skip to content

Commit 1307022

Browse files
committed
feat: [#24] add new settings in 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 = "..." ```
1 parent ae20eb7 commit 1307022

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/types/settings.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ export type Logging = {
2424

2525
export type Website = {
2626
name: string
27+
demo: Demo | null
28+
terms: Terms
29+
}
30+
31+
export type Demo = {
32+
warning: string
33+
}
34+
35+
export type Terms = {
36+
page: TermsPage
37+
upload: TermsUpload
38+
}
39+
40+
export type TermsPage = {
41+
title: string
42+
content: string
43+
}
44+
45+
export type TermsUpload = {
46+
content_upload_agreement: string
2747
}
2848

2949
export type Tracker = {
@@ -85,6 +105,7 @@ export type PublicSettings = {
85105
tracker_listed: boolean
86106
tracker_private: boolean
87107
email_on_signup: EmailOnSignup
108+
website: Website
88109
}
89110

90111
export type Tsl = {
@@ -126,4 +147,4 @@ export enum Threshold {
126147
export type Email = {
127148
required: boolean
128149
verification_required: boolean
129-
}
150+
}

0 commit comments

Comments
 (0)