diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-29 16:16:24 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-10 14:02:41 +0200 |
commit | 5fb2e2888ce032c638e4b75d07458642f0833e52 (patch) | |
tree | 8830d873569316889b8134027e9a43b198cca38f /shared/models/server | |
parent | 62e7be634bc189f942ae51cb4b080079ab503ff0 (diff) | |
download | PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.gz PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.zst PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.zip |
First implem global search
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/custom-config.model.ts | 14 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index 851bf1854..338a59341 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts | |||
@@ -139,4 +139,18 @@ export interface CustomConfig { | |||
139 | level: BroadcastMessageLevel | 139 | level: BroadcastMessageLevel |
140 | dismissable: boolean | 140 | dismissable: boolean |
141 | } | 141 | } |
142 | |||
143 | search: { | ||
144 | remoteUri: { | ||
145 | users: boolean | ||
146 | anonymous: boolean | ||
147 | } | ||
148 | |||
149 | searchIndex: { | ||
150 | enabled: boolean | ||
151 | url: string | ||
152 | disableLocalSearch: boolean | ||
153 | isDefaultSearch: boolean | ||
154 | } | ||
155 | } | ||
142 | } | 156 | } |
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index 9c903b7ee..a8e5dfbff 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -50,6 +50,13 @@ export interface ServerConfig { | |||
50 | users: boolean | 50 | users: boolean |
51 | anonymous: boolean | 51 | anonymous: boolean |
52 | } | 52 | } |
53 | |||
54 | searchIndex: { | ||
55 | enabled: boolean | ||
56 | url: string | ||
57 | disableLocalSearch: boolean | ||
58 | isDefaultSearch: boolean | ||
59 | } | ||
53 | } | 60 | } |
54 | 61 | ||
55 | plugin: { | 62 | plugin: { |