1 import { Injectable } from '@angular/core';
3 import { environment } from '~/environments/environment';
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';
13 export enum URLVerbs {
14 /* Create a new item */
17 /* Make changes to an existing item */
20 /* Make changes to an existing item */
23 /* Remove an item from a container WITHOUT deleting it */
26 /* Destroy an existing item */
29 /* Add an existing item to a container */
32 /* Non-standard verbs */
36 /* Prometheus wording */
37 RECREATE = 'recreate',
44 export enum ActionLabels {
45 /* Create a new item */
48 /* Destroy an existing item */
51 /* Add an existing item to a container */
54 /* Remove an item from a container WITHOUT deleting it */
57 /* Make changes to an existing item */
63 /* Non-standard actions */
72 /* Prometheus wording */
73 RECREATE = 'Recreate',
79 REDEPLOY = 'Redeploy',
86 export class ActionLabelsI18n {
87 /* This service is required as the i18n polyfill does not provide static
128 ENTER_MAINTENANCE: string;
129 EXIT_MAINTENANCE: string;
130 REMOVE_SCHEDULING: string;
142 /* Create a new item */
143 this.CREATE = $localize`Create`;
145 /* Destroy an existing item */
146 this.DELETE = $localize`Delete`;
148 /* Add an existing item to a container */
149 this.ADD = $localize`Add`;
150 this.SET = $localize`Set`;
151 this.SUBMIT = $localize`Submit`;
153 /* Remove an item from a container WITHOUT deleting it */
154 this.REMOVE = $localize`Remove`;
155 this.UNSET = $localize`Unset`;
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`;
165 this.NEXT = $localize`Next`;
166 this.BACK = $localize`Back`;
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`;
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`;
201 this.START = $localize`Start`;
202 this.STOP = $localize`Stop`;
203 this.REDEPLOY = $localize`Redeploy`;
204 this.RESTART = $localize`Restart`;
206 this.REMOVE_SCHEDULING = $localize`Remove Scheduling`;
207 this.PROMOTE = $localize`Promote`;
208 this.DEMOTE = $localize`Demote`;
215 export class SucceededActionLabelsI18n {
216 /* This service is required as the i18n polyfill does not provide static
229 DEEP_SCRUBBED: string;
256 /* Create a new item */
257 this.CREATED = $localize`Created`;
259 /* Destroy an existing item */
260 this.DELETED = $localize`Deleted`;
262 /* Add an existing item to a container */
263 this.ADDED = $localize`Added`;
265 /* Remove an item from a container WITHOUT deleting it */
266 this.REMOVED = $localize`Removed`;
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`;
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`;
296 /* Prometheus wording */
297 this.RECREATED = $localize`Recreated`;
298 this.EXPIRED = $localize`Expired`;
300 this.START = $localize`Start`;
301 this.STOP = $localize`Stop`;
302 this.REDEPLOY = $localize`Redeploy`;
303 this.RESTART = $localize`Restart`;