Skip to content

Commit 4d6877b

Browse files
committed
Merge #25: Add new settings in website section
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
2 parents ae20eb7 + 1307022 commit 4d6877b

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)