diff --git a/package.json b/package.json index 46d0c14..082a369 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "axios": "^0.21.1", "cordova": "^10.0.0", "core-js": "^3.7.0", - "quasar": "^2.0.0-alpha.15", + "quasar": "^2.0.0-alpha.17", "vue-router": "4.0.3" }, "prettier": { @@ -24,7 +24,7 @@ "arrowParens": "always" }, "devDependencies": { - "@quasar/app": "^3.0.0-alpha.8", + "@quasar/app": "^3.0.0-alpha.9", "@quasar/quasar-app-extension-qcalendar": "^3.3.4", "@types/node": "^12.19.6", "@types/webpack": "^4.41.26", diff --git a/src-cordova/cordova-flag.d.ts b/src-cordova/cordova-flag.d.ts index 3ece030..6f2775e 100644 --- a/src-cordova/cordova-flag.d.ts +++ b/src-cordova/cordova-flag.d.ts @@ -1,8 +1,8 @@ // THIS FEATURE-FLAG FILE IS AUTOGENERATED, // REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING -import "quasar/dist/types/feature-flag"; +import 'quasar/dist/types/feature-flag'; -declare module "quasar/dist/types/feature-flag" { +declare module 'quasar/dist/types/feature-flag' { interface QuasarFeatureFlags { cordova: true; } diff --git a/src/components/about/Developer.vue b/src/components/about/Developer.vue index 04bef94..7b51754 100644 --- a/src/components/about/Developer.vue +++ b/src/components/about/Developer.vue @@ -28,24 +28,28 @@ export default defineComponent({ props: { pic: { default: 'logo-dark.svg', + type: String, }, firstname: { - //required: true, - default: 'firstname', + required: true, + type: String, }, lastname: { - //required: true, - default: 'lastname', + required: true, + type: String, }, job: { default: 'student', + type: String, }, club: { default: 'Studentenclub Wu5 e.V.', + type: String, }, description: { default: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ', + type: String, }, }, }); diff --git a/src/components/navigation/EssentialLink.vue b/src/components/navigation/EssentialLink.vue index 7bd4401..d69334a 100644 --- a/src/components/navigation/EssentialLink.vue +++ b/src/components/navigation/EssentialLink.vue @@ -25,23 +25,21 @@ export default defineComponent({ type: String, required: true, }, - caption: { type: String, default: '', }, - link: { type: String, default: 'dashboard', }, - icon: { type: String, default: '', }, permissions: { - default: undefined, + default: () => Array(), + type: Array as () => Array, }, }, @@ -59,7 +57,7 @@ export default defineComponent({ return props.title; }); - const isGranted = computed(() => hasPermissions(props.permissions || [])); + const isGranted = computed(() => hasPermissions(props.permissions)); return { realTitle: title, isGranted }; }, diff --git a/src/components/navigation/ShortCutLink.vue b/src/components/navigation/ShortCutLink.vue index 0d77562..17685cd 100644 --- a/src/components/navigation/ShortCutLink.vue +++ b/src/components/navigation/ShortCutLink.vue @@ -19,6 +19,7 @@ export default defineComponent({ }, permissions: { default: undefined, + type: Array as () => Array, }, }, setup(props) { diff --git a/src/components/utils/IsoDateInput.vue b/src/components/utils/IsoDateInput.vue index 15a81a8..71e9654 100644 --- a/src/components/utils/IsoDateInput.vue +++ b/src/components/utils/IsoDateInput.vue @@ -36,7 +36,7 @@ diff --git a/src/plugins/balance/components/BalanceAdd.vue b/src/plugins/balance/components/BalanceAdd.vue index 9e8d8fb..c78cc33 100644 --- a/src/plugins/balance/components/BalanceAdd.vue +++ b/src/plugins/balance/components/BalanceAdd.vue @@ -63,16 +63,15 @@