@shakerquiz/utilities 0.5.0 → 0.5.1
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
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
export var Feature = /** @type {const} */ ({
|
|
2
|
-
'
|
|
3
|
-
'
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
2
|
+
'users': 'users',
|
|
3
|
+
'user': 'user',
|
|
4
|
+
'roles': 'roles',
|
|
5
|
+
'role': 'role',
|
|
6
|
+
'checkins': 'checkins',
|
|
7
|
+
'checkin': 'checkin',
|
|
8
|
+
'countries': 'countries',
|
|
9
|
+
'country': 'country',
|
|
10
|
+
'currencies': 'currencies',
|
|
11
|
+
'currency': 'currency',
|
|
12
|
+
'cities': 'cities',
|
|
13
|
+
'city': 'city',
|
|
14
|
+
'venues': 'venues',
|
|
15
|
+
'venue': 'venue',
|
|
16
|
+
'games': 'games',
|
|
17
|
+
'game': 'game',
|
|
18
|
+
'themes': 'themes',
|
|
19
|
+
'theme': 'theme',
|
|
20
|
+
'registrations': 'registrations',
|
|
21
|
+
'registration': 'registration',
|
|
22
|
+
'mailings': 'mailings',
|
|
23
|
+
'mailing': 'mailing',
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
+
export var Features = Object.values(Feature)
|
|
27
|
+
|
|
26
28
|
/** @type {Record<Feature, Icon>} */
|
|
27
29
|
export var FeatureIcon = {
|
|
28
|
-
[Feature.
|
|
29
|
-
[Feature.
|
|
30
|
-
[Feature.
|
|
31
|
-
[Feature.
|
|
32
|
-
[Feature.
|
|
33
|
-
[Feature.
|
|
34
|
-
[Feature.
|
|
35
|
-
[Feature.
|
|
36
|
-
[Feature.
|
|
37
|
-
[Feature.
|
|
38
|
-
[Feature.
|
|
39
|
-
[Feature.
|
|
40
|
-
[Feature.
|
|
41
|
-
[Feature.
|
|
42
|
-
[Feature.
|
|
43
|
-
[Feature.
|
|
44
|
-
[Feature.
|
|
45
|
-
[Feature.
|
|
46
|
-
[Feature.
|
|
47
|
-
[Feature.
|
|
48
|
-
[Feature.
|
|
49
|
-
[Feature.
|
|
30
|
+
[Feature.users]: 'hero/solid/users',
|
|
31
|
+
[Feature.user]: 'hero/solid/users',
|
|
32
|
+
[Feature.roles]: 'hero/solid/identification',
|
|
33
|
+
[Feature.role]: 'hero/solid/identification',
|
|
34
|
+
[Feature.checkins]: 'arrow-right-end-on-rectangle',
|
|
35
|
+
[Feature.checkin]: 'arrow-right-end-on-rectangle',
|
|
36
|
+
[Feature.countries]: 'hero/outline/no-symbol',
|
|
37
|
+
[Feature.country]: 'hero/outline/no-symbol',
|
|
38
|
+
[Feature.currencies]: 'hero/outline/banknotes',
|
|
39
|
+
[Feature.currency]: 'hero/outline/banknotes',
|
|
40
|
+
[Feature.cities]: 'hero/outline/building-office',
|
|
41
|
+
[Feature.city]: 'hero/outline/building-office',
|
|
42
|
+
[Feature.venues]: 'hero/outline/map-pin',
|
|
43
|
+
[Feature.venue]: 'hero/outline/map-pin',
|
|
44
|
+
[Feature.games]: 'hero/outline/newspaper',
|
|
45
|
+
[Feature.game]: 'hero/outline/newspaper',
|
|
46
|
+
[Feature.themes]: 'hero/outline/document-text',
|
|
47
|
+
[Feature.theme]: 'hero/outline/document-text',
|
|
48
|
+
[Feature.registrations]: 'hero/outline/user-group',
|
|
49
|
+
[Feature.registration]: 'hero/outline/user-group',
|
|
50
|
+
[Feature.mailings]: 'hero/outline/envelope',
|
|
51
|
+
[Feature.mailing]: 'hero/outline/envelope',
|
|
50
52
|
}
|
|
@@ -3,6 +3,7 @@ export var Role = /** @type {const} */ ({
|
|
|
3
3
|
'organizer': 'organizer',
|
|
4
4
|
'captain': 'captain',
|
|
5
5
|
'player': 'player',
|
|
6
|
+
'user': 'user',
|
|
6
7
|
'default': 'default',
|
|
7
8
|
})
|
|
8
9
|
|
|
@@ -13,7 +14,8 @@ export var RoleWeight = {
|
|
|
13
14
|
[Role.organizer]: 1,
|
|
14
15
|
[Role.captain]: 2,
|
|
15
16
|
[Role.player]: 3,
|
|
16
|
-
[Role.
|
|
17
|
+
[Role.user]: 4,
|
|
18
|
+
[Role.default]: 5,
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export var RoleTitle = {
|
|
@@ -21,7 +23,8 @@ export var RoleTitle = {
|
|
|
21
23
|
[Role.organizer]: 'Организатор',
|
|
22
24
|
[Role.captain]: 'Капитан',
|
|
23
25
|
[Role.player]: 'Игрок',
|
|
24
|
-
[Role.
|
|
26
|
+
[Role.user]: 'Пользователь',
|
|
27
|
+
[Role.default]: 'Неавторизован',
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
export var RoleColor = {
|
|
@@ -29,6 +32,7 @@ export var RoleColor = {
|
|
|
29
32
|
[Role.organizer]: 'warning',
|
|
30
33
|
[Role.captain]: 'primary',
|
|
31
34
|
[Role.player]: 'secondary',
|
|
35
|
+
[Role.user]: 'default',
|
|
32
36
|
[Role.default]: 'default',
|
|
33
37
|
}
|
|
34
38
|
|
|
@@ -37,6 +41,7 @@ export var RoleTextColor = {
|
|
|
37
41
|
[Role.organizer]: 'text-warning',
|
|
38
42
|
[Role.captain]: 'text-primary',
|
|
39
43
|
[Role.player]: 'text-secondary',
|
|
44
|
+
[Role.user]: 'text-default',
|
|
40
45
|
[Role.default]: 'text-default',
|
|
41
46
|
}
|
|
42
47
|
|
|
@@ -46,5 +51,6 @@ export var RoleIcon = {
|
|
|
46
51
|
[Role.organizer]: 'hero/outline/user',
|
|
47
52
|
[Role.captain]: 'hero/outline/user',
|
|
48
53
|
[Role.player]: 'hero/outline/user',
|
|
54
|
+
[Role.user]: 'hero/outline/user',
|
|
49
55
|
[Role.default]: 'hero/outline/user',
|
|
50
56
|
}
|