@pikecode/api-key-manager 1.1.2 โ 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -13,12 +13,12 @@ class StatusHelper {
|
|
|
13
13
|
*/
|
|
14
14
|
static getIconForState(state) {
|
|
15
15
|
const iconMap = {
|
|
16
|
-
online: '
|
|
17
|
-
degraded: '
|
|
18
|
-
offline: '
|
|
19
|
-
pending: '
|
|
16
|
+
online: chalk.green('โ'),
|
|
17
|
+
degraded: chalk.yellow('โ'),
|
|
18
|
+
offline: chalk.red('โ'),
|
|
19
|
+
pending: chalk.gray('โฆ')
|
|
20
20
|
};
|
|
21
|
-
return iconMap[state] || '
|
|
21
|
+
return iconMap[state] || chalk.gray('ยท');
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
package/src/utils/ui-helper.js
CHANGED
|
@@ -31,8 +31,8 @@ class UIHelper {
|
|
|
31
31
|
static createStatus(status, label) {
|
|
32
32
|
const statusConfig = {
|
|
33
33
|
current: { icon: UIHelper.icons.current, color: UIHelper.colors.success },
|
|
34
|
-
active: { icon: '
|
|
35
|
-
inactive: { icon: '
|
|
34
|
+
active: { icon: chalk.green('โ'), color: UIHelper.colors.success },
|
|
35
|
+
inactive: { icon: chalk.gray('ยท'), color: UIHelper.colors.muted },
|
|
36
36
|
loading: { icon: UIHelper.icons.loading, color: UIHelper.colors.warning },
|
|
37
37
|
error: { icon: UIHelper.icons.error, color: UIHelper.colors.error }
|
|
38
38
|
};
|
|
@@ -208,23 +208,23 @@ UIHelper.colors = {
|
|
|
208
208
|
|
|
209
209
|
// ๅพๆ
|
|
210
210
|
UIHelper.icons = {
|
|
211
|
-
success: '
|
|
212
|
-
error: '
|
|
213
|
-
warning: '
|
|
214
|
-
info: '
|
|
215
|
-
loading: '
|
|
211
|
+
success: 'โ',
|
|
212
|
+
error: 'โ',
|
|
213
|
+
warning: '!',
|
|
214
|
+
info: 'i',
|
|
215
|
+
loading: 'โฆ',
|
|
216
216
|
arrow: 'โ',
|
|
217
|
-
back: '
|
|
218
|
-
home: '
|
|
219
|
-
settings: '
|
|
220
|
-
add: '
|
|
221
|
-
edit: '
|
|
222
|
-
delete: '
|
|
223
|
-
launch: '
|
|
224
|
-
list: '
|
|
225
|
-
config: '
|
|
226
|
-
current: '
|
|
227
|
-
search: '
|
|
217
|
+
back: 'โ',
|
|
218
|
+
home: '~',
|
|
219
|
+
settings: '*',
|
|
220
|
+
add: '+',
|
|
221
|
+
edit: '~',
|
|
222
|
+
delete: '-',
|
|
223
|
+
launch: 'โถ',
|
|
224
|
+
list: 'โก',
|
|
225
|
+
config: '#',
|
|
226
|
+
current: 'โบ',
|
|
227
|
+
search: '?'
|
|
228
228
|
};
|
|
229
229
|
|
|
230
230
|
module.exports = { UIHelper };
|