@mptw/skylens-ui 1.4.61 → 1.4.63
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/app.vue +3 -2
- package/components/SLProfileButton.vue +24 -16
- package/nuxt.config.ts +1 -1
- package/package.json +1 -1
- package/utils/constants.ts +0 -50
package/app.vue
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.profile-button(ref='el')
|
|
3
3
|
a(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
href="javascript:;"
|
|
5
|
+
:class='{ active: isShowPopup }'
|
|
6
|
+
@click.stop.prevent="onClickedToggle"
|
|
7
|
+
ref="toggleEl"
|
|
8
|
+
).btn.toggle-button {{ title }}
|
|
9
|
+
ClientOnly
|
|
10
|
+
Teleport(to="body")
|
|
11
|
+
.profile-nav-popup(ref="popupEl")
|
|
12
|
+
.profile-nav-popup-body
|
|
13
|
+
a(
|
|
14
14
|
v-if="showEditProfile"
|
|
15
15
|
href="javascript:;"
|
|
16
16
|
@click="onClickedEdit"
|
|
17
17
|
).profile-nav-item
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
SLIcon(icon="person-cog")
|
|
19
|
+
span 個人資料維護
|
|
20
|
+
.profile-nav-divider(v-if="showEditProfile")
|
|
21
|
+
a(href="javascript:;" @click="onClickedLogout").profile-nav-item
|
|
22
|
+
SLIcon(icon="sign-out-alt")
|
|
23
|
+
span 登出
|
|
24
|
+
.app-version(v-if='gitTag') {{ gitTag }}
|
|
24
25
|
</template>
|
|
25
26
|
|
|
26
27
|
<script lang="ts">
|
|
@@ -35,6 +36,10 @@ export default defineComponent({
|
|
|
35
36
|
type: String,
|
|
36
37
|
default: "SKYLENS",
|
|
37
38
|
},
|
|
39
|
+
gitTag: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: '',
|
|
42
|
+
},
|
|
38
43
|
},
|
|
39
44
|
emits: ["edit", "logout"],
|
|
40
45
|
setup(props, { emit }) {
|
|
@@ -192,4 +197,7 @@ export default defineComponent({
|
|
|
192
197
|
|
|
193
198
|
.profile-nav-divider
|
|
194
199
|
@apply w-full h-px bg-primary-600
|
|
200
|
+
|
|
201
|
+
.app-version
|
|
202
|
+
@apply text-xs text-primary-600 text-right
|
|
195
203
|
</style>
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
package/utils/constants.ts
CHANGED
|
@@ -9,56 +9,6 @@ export const AGE_RANGE_NAME = [
|
|
|
9
9
|
'75以上',
|
|
10
10
|
];
|
|
11
11
|
|
|
12
|
-
export const WEB_CHART_COLORS = [
|
|
13
|
-
"#8677b6",
|
|
14
|
-
"#6be6c1",
|
|
15
|
-
"#626c91",
|
|
16
|
-
"#688ed0",
|
|
17
|
-
"#6ccadd",
|
|
18
|
-
"#2ca5b9",
|
|
19
|
-
"#3364d2",
|
|
20
|
-
"#15625a",
|
|
21
|
-
"#a3e26a",
|
|
22
|
-
"#3ed6dd",
|
|
23
|
-
"#7c9a84",
|
|
24
|
-
"#c9df7f",
|
|
25
|
-
"#5c5cdf",
|
|
26
|
-
"#31cb9a",
|
|
27
|
-
"#6e717e",
|
|
28
|
-
"#eccc65",
|
|
29
|
-
"#6c907c",
|
|
30
|
-
"#6a8ef6",
|
|
31
|
-
"#57e5f1",
|
|
32
|
-
"#6022d2",
|
|
33
|
-
"#98c8c8",
|
|
34
|
-
"#c3c350"
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
export const POI_CHART_COLORS = [
|
|
38
|
-
"#df7bae",
|
|
39
|
-
"#f1a29a",
|
|
40
|
-
"#9c7fd0",
|
|
41
|
-
"#e2b587",
|
|
42
|
-
"#c3cd75",
|
|
43
|
-
"#7e4e77",
|
|
44
|
-
"#c36c34",
|
|
45
|
-
"#e2a5cc",
|
|
46
|
-
"#efce4a",
|
|
47
|
-
"#60c0dd",
|
|
48
|
-
"#e47272",
|
|
49
|
-
"#c7b8c8",
|
|
50
|
-
"#d590d8",
|
|
51
|
-
"#be5291",
|
|
52
|
-
"#ef7f24",
|
|
53
|
-
"#a9a1e9",
|
|
54
|
-
"#9d6fc6",
|
|
55
|
-
"#dfb9b9",
|
|
56
|
-
"#e75151",
|
|
57
|
-
"#ba92c1",
|
|
58
|
-
"#63caae",
|
|
59
|
-
"#b65f5f"
|
|
60
|
-
];
|
|
61
|
-
|
|
62
12
|
export const CABLE_DEFAULT_END_DATE_BEFORE_NOW = 6;
|
|
63
13
|
|
|
64
14
|
export const TAIWAN_COUNTRIES = [
|