1 import { Injectable } from '@angular/core';
3 import { I18n } from '@ngx-translate/i18n-polyfill';
5 export class AppConstants {
6 public static readonly organization = 'ceph';
7 public static readonly projectName = 'Ceph Manager Dashboard';
8 public static readonly license = 'Free software (LGPL 2.1).';
11 export enum URLVerbs {
12 /* Create a new item */
15 /* Make changes to an existing item */
18 /* Make changes to an existing item */
21 /* Remove an item from a container WITHOUT deleting it */
24 /* Destroy an existing item */
27 /* Add an existing item to a container */
30 /* Non-standard verbs */
34 /* Prometheus wording */
35 RECREATE = 'recreate',
39 export enum ActionLabels {
40 /* Create a new item */
43 /* Destroy an existing item */
46 /* Add an existing item to a container */
49 /* Remove an item from a container WITHOUT deleting it */
52 /* Make changes to an existing item */
58 /* Non-standard actions */
65 /* Prometheus wording */
66 RECREATE = 'Recreate',
73 export class ActionLabelsI18n {
74 /* This service is required as the i18n polyfill does not provide static
91 constructor(private i18n: I18n) {
92 /* Create a new item */
93 this.CREATE = this.i18n('Create');
95 /* Destroy an existing item */
96 this.DELETE = this.i18n('Delete');
98 /* Add an existing item to a container */
99 this.ADD = this.i18n('Add');
101 /* Remove an item from a container WITHOUT deleting it */
102 this.REMOVE = this.i18n('Remove');
104 /* Make changes to an existing item */
105 this.EDIT = this.i18n('Edit');
106 this.CANCEL = this.i18n('Cancel');
108 /* Non-standard actions */
109 this.COPY = this.i18n('Copy');
110 this.CLONE = this.i18n('Clone');
112 this.SHOW = this.i18n('Show');
113 this.TRASH = this.i18n('Move to Trash');
114 this.UNPROTECT = this.i18n('Unprotect');
116 /* Prometheus wording */
117 this.RECREATE = this.i18n('Recreate');
118 this.EXPIRE = this.i18n('Expire');
125 export class SucceededActionLabelsI18n {
126 /* This service is required as the i18n polyfill does not provide static
143 constructor(private i18n: I18n) {
144 /* Create a new item */
145 this.CREATED = this.i18n('Created');
147 /* Destroy an existing item */
148 this.DELETED = this.i18n('Deleted');
150 /* Add an existing item to a container */
151 this.ADDED = this.i18n('Added');
153 /* Remove an item from a container WITHOUT deleting it */
154 this.REMOVED = this.i18n('Removed');
156 /* Make changes to an existing item */
157 this.EDITED = this.i18n('Edited');
158 this.CANCELED = this.i18n('Canceled');
160 /* Non-standard actions */
161 this.CLONED = this.i18n('Cloned');
162 this.COPIED = this.i18n('Copied');
163 this.SHOWED = this.i18n('Showed');
164 this.TRASHED = this.i18n('Moved to Trash');
165 this.UNPROTECTED = this.i18n('Unprotected');
167 /* Prometheus wording */
168 this.RECREATED = this.i18n('Recreated');
169 this.EXPIRED = this.i18n('Expired');