]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/constants/app.constants.ts
add stop-gap to fix compat with CPUs not supporting SSE 4.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / constants / app.constants.ts
1 import { Injectable } from '@angular/core';
2
3 import { environment } from '~/environments/environment';
4
5 export class AppConstants {
6 public static readonly organization = 'ceph';
7 public static readonly projectName = 'Ceph Dashboard';
8 public static readonly license = 'Free software (LGPL 2.1).';
9 public static readonly copyright = 'Copyright(c) ' + environment.year + ' Ceph contributors.';
10 public static readonly cephLogo = 'assets/Ceph_Logo.svg';
11 }
12
13 export enum URLVerbs {
14 /* Create a new item */
15 CREATE = 'create',
16
17 /* Make changes to an existing item */
18 EDIT = 'edit',
19
20 /* Make changes to an existing item */
21 UPDATE = 'update',
22
23 /* Remove an item from a container WITHOUT deleting it */
24 REMOVE = 'remove',
25
26 /* Destroy an existing item */
27 DELETE = 'delete',
28
29 /* Add an existing item to a container */
30 ADD = 'add',
31
32 /* Non-standard verbs */
33 COPY = 'copy',
34 CLONE = 'clone',
35
36 /* Prometheus wording */
37 RECREATE = 'recreate',
38 EXPIRE = 'expire',
39
40 /* Daemons */
41 RESTART = 'Restart'
42 }
43
44 export enum ActionLabels {
45 /* Create a new item */
46 CREATE = 'Create',
47
48 /* Destroy an existing item */
49 DELETE = 'Delete',
50
51 /* Add an existing item to a container */
52 ADD = 'Add',
53
54 /* Remove an item from a container WITHOUT deleting it */
55 REMOVE = 'Remove',
56
57 /* Make changes to an existing item */
58 EDIT = 'Edit',
59
60 /* */
61 CANCEL = 'Cancel',
62
63 /* Non-standard actions */
64 COPY = 'Copy',
65 CLONE = 'Clone',
66 UPDATE = 'Update',
67 EVICT = 'Evict',
68
69 /* Read-only */
70 SHOW = 'Show',
71
72 /* Prometheus wording */
73 RECREATE = 'Recreate',
74 EXPIRE = 'Expire',
75
76 /* Daemons */
77 START = 'Start',
78 STOP = 'Stop',
79 REDEPLOY = 'Redeploy',
80 RESTART = 'Restart'
81 }
82
83 @Injectable({
84 providedIn: 'root'
85 })
86 export class ActionLabelsI18n {
87 /* This service is required as the i18n polyfill does not provide static
88 translation
89 */
90 CREATE: string;
91 DELETE: string;
92 ADD: string;
93 REMOVE: string;
94 EDIT: string;
95 CANCEL: string;
96 PREVIEW: string;
97 MOVE: string;
98 NEXT: string;
99 BACK: string;
100 CHANGE: string;
101 COPY: string;
102 CLONE: string;
103 DEEP_SCRUB: string;
104 DESTROY: string;
105 EVICT: string;
106 EXPIRE: string;
107 FLATTEN: string;
108 MARK_DOWN: string;
109 MARK_IN: string;
110 MARK_LOST: string;
111 MARK_OUT: string;
112 PROTECT: string;
113 PURGE: string;
114 RECREATE: string;
115 RENAME: string;
116 RESTORE: string;
117 REWEIGHT: string;
118 ROLLBACK: string;
119 SCRUB: string;
120 SET: string;
121 SUBMIT: string;
122 SHOW: string;
123 TRASH: string;
124 UNPROTECT: string;
125 UNSET: string;
126 UPDATE: string;
127 FLAGS: string;
128 ENTER_MAINTENANCE: string;
129 EXIT_MAINTENANCE: string;
130 REMOVE_SCHEDULING: string;
131 PROMOTE: string;
132 DEMOTE: string;
133 START_DRAIN: string;
134 STOP_DRAIN: string;
135 START: string;
136 STOP: string;
137 REDEPLOY: string;
138 RESTART: string;
139 RESYNC: string;
140
141 constructor() {
142 /* Create a new item */
143 this.CREATE = $localize`Create`;
144
145 /* Destroy an existing item */
146 this.DELETE = $localize`Delete`;
147
148 /* Add an existing item to a container */
149 this.ADD = $localize`Add`;
150 this.SET = $localize`Set`;
151 this.SUBMIT = $localize`Submit`;
152
153 /* Remove an item from a container WITHOUT deleting it */
154 this.REMOVE = $localize`Remove`;
155 this.UNSET = $localize`Unset`;
156
157 /* Make changes to an existing item */
158 this.EDIT = $localize`Edit`;
159 this.UPDATE = $localize`Update`;
160 this.CANCEL = $localize`Cancel`;
161 this.PREVIEW = $localize`Preview`;
162 this.MOVE = $localize`Move`;
163
164 /* Wizard wording */
165 this.NEXT = $localize`Next`;
166 this.BACK = $localize`Back`;
167
168 /* Non-standard actions */
169 this.CLONE = $localize`Clone`;
170 this.COPY = $localize`Copy`;
171 this.DEEP_SCRUB = $localize`Deep Scrub`;
172 this.DESTROY = $localize`Destroy`;
173 this.EVICT = $localize`Evict`;
174 this.FLATTEN = $localize`Flatten`;
175 this.MARK_DOWN = $localize`Mark Down`;
176 this.MARK_IN = $localize`Mark In`;
177 this.MARK_LOST = $localize`Mark Lost`;
178 this.MARK_OUT = $localize`Mark Out`;
179 this.PROTECT = $localize`Protect`;
180 this.PURGE = $localize`Purge`;
181 this.RENAME = $localize`Rename`;
182 this.RESTORE = $localize`Restore`;
183 this.REWEIGHT = $localize`Reweight`;
184 this.ROLLBACK = $localize`Rollback`;
185 this.SCRUB = $localize`Scrub`;
186 this.SHOW = $localize`Show`;
187 this.TRASH = $localize`Move to Trash`;
188 this.UNPROTECT = $localize`Unprotect`;
189 this.CHANGE = $localize`Change`;
190 this.FLAGS = $localize`Flags`;
191 this.ENTER_MAINTENANCE = $localize`Enter Maintenance`;
192 this.EXIT_MAINTENANCE = $localize`Exit Maintenance`;
193
194 this.START_DRAIN = $localize`Start Drain`;
195 this.STOP_DRAIN = $localize`Stop Drain`;
196 this.RESYNC = $localize`Resync`;
197 /* Prometheus wording */
198 this.RECREATE = $localize`Recreate`;
199 this.EXPIRE = $localize`Expire`;
200
201 this.START = $localize`Start`;
202 this.STOP = $localize`Stop`;
203 this.REDEPLOY = $localize`Redeploy`;
204 this.RESTART = $localize`Restart`;
205
206 this.REMOVE_SCHEDULING = $localize`Remove Scheduling`;
207 this.PROMOTE = $localize`Promote`;
208 this.DEMOTE = $localize`Demote`;
209 }
210 }
211
212 @Injectable({
213 providedIn: 'root'
214 })
215 export class SucceededActionLabelsI18n {
216 /* This service is required as the i18n polyfill does not provide static
217 translation
218 */
219 CREATED: string;
220 DELETED: string;
221 ADDED: string;
222 REMOVED: string;
223 EDITED: string;
224 CANCELED: string;
225 PREVIEWED: string;
226 MOVED: string;
227 COPIED: string;
228 CLONED: string;
229 DEEP_SCRUBBED: string;
230 DESTROYED: string;
231 FLATTENED: string;
232 MARKED_DOWN: string;
233 MARKED_IN: string;
234 MARKED_LOST: string;
235 MARKED_OUT: string;
236 PROTECTED: string;
237 PURGED: string;
238 RENAMED: string;
239 RESTORED: string;
240 REWEIGHTED: string;
241 ROLLED_BACK: string;
242 SCRUBBED: string;
243 SHOWED: string;
244 TRASHED: string;
245 UNPROTECTED: string;
246 CHANGE: string;
247 RECREATED: string;
248 EXPIRED: string;
249 MOVE: string;
250 START: string;
251 STOP: string;
252 REDEPLOY: string;
253 RESTART: string;
254
255 constructor() {
256 /* Create a new item */
257 this.CREATED = $localize`Created`;
258
259 /* Destroy an existing item */
260 this.DELETED = $localize`Deleted`;
261
262 /* Add an existing item to a container */
263 this.ADDED = $localize`Added`;
264
265 /* Remove an item from a container WITHOUT deleting it */
266 this.REMOVED = $localize`Removed`;
267
268 /* Make changes to an existing item */
269 this.EDITED = $localize`Edited`;
270 this.CANCELED = $localize`Canceled`;
271 this.PREVIEWED = $localize`Previewed`;
272 this.MOVED = $localize`Moved`;
273
274 /* Non-standard actions */
275 this.CLONED = $localize`Cloned`;
276 this.COPIED = $localize`Copied`;
277 this.DEEP_SCRUBBED = $localize`Deep Scrubbed`;
278 this.DESTROYED = $localize`Destroyed`;
279 this.FLATTENED = $localize`Flattened`;
280 this.MARKED_DOWN = $localize`Marked Down`;
281 this.MARKED_IN = $localize`Marked In`;
282 this.MARKED_LOST = $localize`Marked Lost`;
283 this.MARKED_OUT = $localize`Marked Out`;
284 this.PROTECTED = $localize`Protected`;
285 this.PURGED = $localize`Purged`;
286 this.RENAMED = $localize`Renamed`;
287 this.RESTORED = $localize`Restored`;
288 this.REWEIGHTED = $localize`Reweighted`;
289 this.ROLLED_BACK = $localize`Rolled back`;
290 this.SCRUBBED = $localize`Scrubbed`;
291 this.SHOWED = $localize`Showed`;
292 this.TRASHED = $localize`Moved to Trash`;
293 this.UNPROTECTED = $localize`Unprotected`;
294 this.CHANGE = $localize`Change`;
295
296 /* Prometheus wording */
297 this.RECREATED = $localize`Recreated`;
298 this.EXPIRED = $localize`Expired`;
299
300 this.START = $localize`Start`;
301 this.STOP = $localize`Stop`;
302 this.REDEPLOY = $localize`Redeploy`;
303 this.RESTART = $localize`Restart`;
304 }
305 }