@eeplatform/nuxt-layer-common 1.2.5 → 1.2.7
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/.github/workflows/publish.yml +1 -0
- package/CHANGELOG.md +12 -0
- package/components/Layout/Header.vue +43 -5
- package/components/LinkHome.vue +7 -1
- package/composables/useLocal.ts +4 -1
- package/nuxt.config.ts +13 -5
- package/package.json +2 -2
- package/types/local.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/nuxt-layer-common
|
|
2
2
|
|
|
3
|
+
## 1.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 95d9527: Revise header component - added other apps section
|
|
8
|
+
|
|
9
|
+
## 1.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5e0fa3f: Rename GoWeekdays to EEPlatform
|
|
14
|
+
|
|
3
15
|
## 1.2.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -67,18 +67,48 @@
|
|
|
67
67
|
</v-card>
|
|
68
68
|
</v-col>
|
|
69
69
|
|
|
70
|
-
<v-col cols="
|
|
70
|
+
<v-col cols="12" class="mt-2">
|
|
71
71
|
<v-card
|
|
72
72
|
width="100%"
|
|
73
73
|
min-height="50px"
|
|
74
74
|
variant="tonal"
|
|
75
|
-
rounded="b-xl"
|
|
75
|
+
:rounded="others.length ? 'none' : 'b-xl'"
|
|
76
76
|
>
|
|
77
77
|
<v-card-title class="text-center pb-0"> Apps </v-card-title>
|
|
78
78
|
|
|
79
79
|
<v-row no-gutters class="px-2 pb-2">
|
|
80
80
|
<v-col
|
|
81
|
-
v-for="item in apps"
|
|
81
|
+
v-for="item in props.apps"
|
|
82
|
+
:key="item.title"
|
|
83
|
+
cols="4"
|
|
84
|
+
class="pa-2"
|
|
85
|
+
>
|
|
86
|
+
<v-btn
|
|
87
|
+
stacked
|
|
88
|
+
width="100%"
|
|
89
|
+
:prepend-icon="item.icon"
|
|
90
|
+
rounded="xl"
|
|
91
|
+
variant="text"
|
|
92
|
+
class="text-center text-capitalize text-caption"
|
|
93
|
+
@click="redirect(item.link, item.landingPage)"
|
|
94
|
+
>
|
|
95
|
+
{{ item.title }}
|
|
96
|
+
</v-btn>
|
|
97
|
+
</v-col>
|
|
98
|
+
</v-row>
|
|
99
|
+
</v-card>
|
|
100
|
+
</v-col>
|
|
101
|
+
|
|
102
|
+
<v-col v-if="others.length" cols="12" class="mt-2">
|
|
103
|
+
<v-card
|
|
104
|
+
width="100%"
|
|
105
|
+
min-height="50px"
|
|
106
|
+
variant="tonal"
|
|
107
|
+
rounded="b-xl"
|
|
108
|
+
>
|
|
109
|
+
<v-row no-gutters class="px-2 pb-2">
|
|
110
|
+
<v-col
|
|
111
|
+
v-for="item in props.others"
|
|
82
112
|
:key="item.title"
|
|
83
113
|
cols="4"
|
|
84
114
|
class="pa-2"
|
|
@@ -174,6 +204,14 @@ const props = defineProps({
|
|
|
174
204
|
type: String,
|
|
175
205
|
default: "Title",
|
|
176
206
|
},
|
|
207
|
+
apps: {
|
|
208
|
+
type: Array as PropType<Array<TApp>>,
|
|
209
|
+
default: () => [],
|
|
210
|
+
},
|
|
211
|
+
others: {
|
|
212
|
+
type: Array as PropType<Array<TApp>>,
|
|
213
|
+
default: () => [],
|
|
214
|
+
},
|
|
177
215
|
});
|
|
178
216
|
|
|
179
217
|
import { useTheme } from "vuetify";
|
|
@@ -191,7 +229,7 @@ watch(
|
|
|
191
229
|
}, 1000)
|
|
192
230
|
);
|
|
193
231
|
|
|
194
|
-
const { redirect,
|
|
232
|
+
const { redirect, drawer } = useLocal();
|
|
195
233
|
|
|
196
234
|
const { APP_MAIN, APP_ACCOUNT, APP_ADMIN, APP_NAME, APP_NAME_ROUTE } =
|
|
197
235
|
useRuntimeConfig().public;
|
|
@@ -230,7 +268,7 @@ const name = computed(() => {
|
|
|
230
268
|
return name;
|
|
231
269
|
});
|
|
232
270
|
|
|
233
|
-
const defaultApps = computed(() => [
|
|
271
|
+
const defaultApps = computed<Array<TApp>>(() => [
|
|
234
272
|
{
|
|
235
273
|
title: "Account",
|
|
236
274
|
icon: "ph:user-circle-bold",
|
package/components/LinkHome.vue
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
style="color: unset"
|
|
5
5
|
:to="{ name: 'index' }"
|
|
6
6
|
>
|
|
7
|
-
|
|
7
|
+
{{ title }}
|
|
8
8
|
</nuxt-link>
|
|
9
9
|
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
const APP_NAME = useRuntimeConfig().public.APP_NAME;
|
|
13
|
+
|
|
14
|
+
const title = computed(() => APP_NAME || "EEPlatform");
|
|
15
|
+
</script>
|
package/composables/useLocal.ts
CHANGED
|
@@ -12,7 +12,7 @@ export default function useLocal() {
|
|
|
12
12
|
const { APP_STUDENT, APP_PARENT, APP_SCHOOL, APP_DIVISION, APP_REGION } =
|
|
13
13
|
appConfig;
|
|
14
14
|
|
|
15
|
-
const apps = computed(() => {
|
|
15
|
+
const apps = computed<Array<TApp>>(() => {
|
|
16
16
|
return [
|
|
17
17
|
{
|
|
18
18
|
title: "Student",
|
|
@@ -60,6 +60,8 @@ export default function useLocal() {
|
|
|
60
60
|
const pages = ref(0);
|
|
61
61
|
const pageRange = ref("");
|
|
62
62
|
|
|
63
|
+
const landingPage = useCookie("landing-page", cookieConfig);
|
|
64
|
+
|
|
63
65
|
return {
|
|
64
66
|
cookieConfig,
|
|
65
67
|
getUserFromCookie,
|
|
@@ -71,5 +73,6 @@ export default function useLocal() {
|
|
|
71
73
|
page,
|
|
72
74
|
pages,
|
|
73
75
|
pageRange,
|
|
76
|
+
landingPage,
|
|
74
77
|
};
|
|
75
78
|
}
|
package/nuxt.config.ts
CHANGED
|
@@ -22,11 +22,19 @@ export default defineNuxtConfig({
|
|
|
22
22
|
APP_MAIN: (process.env.APP_MAIN as string) ?? "",
|
|
23
23
|
APP_ACCOUNT: (process.env.APP_ACCOUNT as string) ?? "",
|
|
24
24
|
APP_ADMIN: (process.env.APP_ADMIN as string) ?? "",
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
APP_BASIC_EDU: (process.env.APP_BASIC_EDU as string) ?? "",
|
|
26
|
+
APP_BASIC_EDU_RO: (process.env.APP_BASIC_EDU_RO as string) ?? "",
|
|
27
|
+
APP_BASIC_EDU_SDO: (process.env.APP_BASIC_EDU_SDO as string) ?? "",
|
|
28
|
+
APP_BASIC_EDU_SCHOOL: (process.env.APP_BASIC_EDU_SCHOOL as string) ?? "",
|
|
29
|
+
APP_HIGHER_EDU: (process.env.APP_HIGHER_EDU as string) ?? "",
|
|
30
|
+
APP_HIGHER_EDU_RO: (process.env.APP_HIGHER_EDU_RO as string) ?? "",
|
|
31
|
+
APP_HIGHER_EDU_UNI: (process.env.APP_HIGHER_EDU_UNI as string) ?? "",
|
|
32
|
+
APP_HIGHER_EDU_COLLEGE:
|
|
33
|
+
(process.env.APP_HIGHER_EDU_COLLEGE as string) ?? "",
|
|
34
|
+
APP_LOCAL_GOV: (process.env.APP_LOCAL_GOV as string) ?? "",
|
|
35
|
+
APP_LOCAL_GOV_PROV: (process.env.APP_LOCAL_GOV_PROV as string) ?? "",
|
|
36
|
+
APP_LOCAL_GOV_CITY: (process.env.APP_LOCAL_GOV_CITY as string) ?? "",
|
|
37
|
+
APP_LOCAL_GOV_BRGY: (process.env.APP_LOCAL_GOV_BRGY as string) ?? "",
|
|
30
38
|
},
|
|
31
39
|
},
|
|
32
40
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@eeplatform/nuxt-layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.7",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"typescript": "^5.6.3",
|
|
24
24
|
"vite-plugin-vuetify": "^2.0.4",
|
|
25
25
|
"vue": "latest",
|
|
26
|
-
"vuetify": "^3.
|
|
26
|
+
"vuetify": "^3.9.4"
|
|
27
27
|
},
|
|
28
28
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
29
29
|
"dependencies": {
|