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;
143 START_UPGRADE: string;
146 /* Create a new item */
147 this.CREATE = $localize`Create`;
149 this.EXPORT = $localize`Export`;
151 this.IMPORT = $localize`Import`;
153 this.MIGRATE = $localize`Migrate to Multi-Site`;
155 /* Destroy an existing item */
156 this.DELETE = $localize`Delete`;
158 /* Add an existing item to a container */
159 this.ADD = $localize`Add`;
160 this.SET = $localize`Set`;
161 this.SUBMIT = $localize`Submit`;
163 /* Remove an item from a container WITHOUT deleting it */
164 this.REMOVE = $localize`Remove`;
165 this.UNSET = $localize`Unset`;
167 /* Make changes to an existing item */
168 this.EDIT = $localize`Edit`;
169 this.UPDATE = $localize`Update`;
170 this.CANCEL = $localize`Cancel`;
171 this.PREVIEW = $localize`Preview`;
172 this.MOVE = $localize`Move`;
175 this.NEXT = $localize`Next`;
176 this.BACK = $localize`Back`;
178 /* Non-standard actions */
179 this.CLONE = $localize`Clone`;
180 this.COPY = $localize`Copy`;
181 this.DEEP_SCRUB = $localize`Deep Scrub`;
182 this.DESTROY = $localize`Destroy`;
183 this.EVICT = $localize`Evict`;
184 this.FLATTEN = $localize`Flatten`;
185 this.MARK_DOWN = $localize`Mark Down`;
186 this.MARK_IN = $localize`Mark In`;
187 this.MARK_LOST = $localize`Mark Lost`;
188 this.MARK_OUT = $localize`Mark Out`;
189 this.PROTECT = $localize`Protect`;
190 this.PURGE = $localize`Purge`;
191 this.RENAME = $localize`Rename`;
192 this.RESTORE = $localize`Restore`;
193 this.REWEIGHT = $localize`Reweight`;
194 this.ROLLBACK = $localize`Rollback`;
195 this.SCRUB = $localize`Scrub`;
196 this.SHOW = $localize`Show`;
197 this.TRASH = $localize`Move to Trash`;
198 this.UNPROTECT = $localize`Unprotect`;
199 this.CHANGE = $localize`Change`;
200 this.FLAGS = $localize`Flags`;
201 this.ENTER_MAINTENANCE = $localize`Enter Maintenance`;
202 this.EXIT_MAINTENANCE = $localize`Exit Maintenance`;
204 this.START_DRAIN = $localize`Start Drain`;
205 this.STOP_DRAIN = $localize`Stop Drain`;
206 this.RESYNC = $localize`Resync`;
207 /* Prometheus wording */
208 this.RECREATE = $localize`Recreate`;
209 this.EXPIRE = $localize`Expire`;
211 this.START = $localize`Start`;
212 this.STOP = $localize`Stop`;
213 this.REDEPLOY = $localize`Redeploy`;
214 this.RESTART = $localize`Restart`;
216 this.REMOVE_SCHEDULING = $localize`Remove Scheduling`;
217 this.PROMOTE = $localize`Promote`;
218 this.DEMOTE = $localize`Demote`;
220 this.START_UPGRADE = $localize`Start Upgrade`;
227 export class SucceededActionLabelsI18n {
228 /* This service is required as the i18n polyfill does not provide static
243 DEEP_SCRUBBED: string;
270 /* Create a new item */
271 this.CREATED = $localize`Created`;
273 /* Destroy an existing item */
274 this.DELETED = $localize`Deleted`;
276 /* Add an existing item to a container */
277 this.ADDED = $localize`Added`;
279 /* Remove an item from a container WITHOUT deleting it */
280 this.REMOVED = $localize`Removed`;
282 /* Make changes to an existing item */
283 this.EDITED = $localize`Edited`;
284 this.CANCELED = $localize`Canceled`;
285 this.PREVIEWED = $localize`Previewed`;
286 this.MOVED = $localize`Moved`;
288 /* Non-standard actions */
289 this.CLONED = $localize`Cloned`;
290 this.COPIED = $localize`Copied`;
291 this.DEEP_SCRUBBED = $localize`Deep Scrubbed`;
292 this.DESTROYED = $localize`Destroyed`;
293 this.FLATTENED = $localize`Flattened`;
294 this.MARKED_DOWN = $localize`Marked Down`;
295 this.MARKED_IN = $localize`Marked In`;
296 this.MARKED_LOST = $localize`Marked Lost`;
297 this.MARKED_OUT = $localize`Marked Out`;
298 this.PROTECTED = $localize`Protected`;
299 this.PURGED = $localize`Purged`;
300 this.RENAMED = $localize`Renamed`;
301 this.RESTORED = $localize`Restored`;
302 this.REWEIGHTED = $localize`Reweighted`;
303 this.ROLLED_BACK = $localize`Rolled back`;
304 this.SCRUBBED = $localize`Scrubbed`;
305 this.SHOWED = $localize`Showed`;
306 this.TRASHED = $localize`Moved to Trash`;
307 this.UNPROTECTED = $localize`Unprotected`;
308 this.CHANGE = $localize`Change`;
310 /* Prometheus wording */
311 this.RECREATED = $localize`Recreated`;
312 this.EXPIRED = $localize`Expired`;
314 this.START = $localize`Start`;
315 this.STOP = $localize`Stop`;
316 this.REDEPLOY = $localize`Redeploy`;
317 this.RESTART = $localize`Restart`;
324 export class TimerServiceInterval {
325 TIMER_SERVICE_PERIOD: number;
328 this.TIMER_SERVICE_PERIOD = 5000;