Skip to content

Commit

Permalink
chore: update nuxt (3.13.2) and vue (3.5.6) (#4225)
Browse files Browse the repository at this point in the history
chore update nuxt (3.13.2) and vue (3.5.6)

update props destructing, use dot syntax and call via props
  • Loading branch information
connoratrug authored Sep 17, 2024
1 parent f767253 commit 6527dfa
Show file tree
Hide file tree
Showing 36 changed files with 1,083 additions and 1,108 deletions.
2 changes: 1 addition & 1 deletion apps/aggregates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/catalogue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"import": "^0.0.6",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3",
"vue-tabler-icons": "2.21.0",
"vue-scrollto": "2.20.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/central/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"v-scroll-lock": "1.3.1",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/cranio-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/cranio-public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/directory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"molgenis-components": "*",
"monaco-editor": "0.50.0",
"pinia": "2.1.7",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-gtag": "2.0.1",
"vue-router": "4.4.3",
"vuedraggable": "4.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
import { computed } from "vue";
import ViewGenerator from "../ViewGenerator.vue";
const { collection, level } = withDefaults(
defineProps<{ collection: any; level?: number }>(),
{ level: 1 }
);
const props = withDefaults(defineProps<{ collection: any; level?: number }>(), {
level: 1,
});
const indentationLevel = computed(() => `ml-${level}`);
const indentationLevel = computed(() => `ml-${props.level}`);
</script>
2 changes: 1 addition & 1 deletion apps/ern-genturis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/ern-ithaca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/ern-reconnet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/ern-skin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/gportal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"graphql-request": "5.2.0",
"metadata-utils": "*",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/imdhub-public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/molgenis-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"cross-env": "7.0.3",
"metadata-utils": "*",
"universal-cookie": "4.0.4",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-gtag": "2.0.1",
"vue-flatpickr-component": "11.0.5",
"vue3-cookies": "^1.0.6",
Expand Down
12 changes: 2 additions & 10 deletions apps/molgenis-components/src/components/forms/InputSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,7 @@ import FormGroup from "./FormGroup.vue";
import InputGroup from "./InputGroup.vue";
import { defineEmits, ref } from "vue";
const {
isClearBtnShown,
id,
label,
description,
errorMessage,
modelValue,
placeholder,
} = withDefaults(
const props = withDefaults(
defineProps<{
modelValue: string;
isClearBtnShown?: boolean;
Expand All @@ -59,7 +51,7 @@ const {
{ isClearBtnShown: false, placeholder: "Search" }
);
const input = ref<string>(modelValue || "");
const input = ref<string>(props.modelValue || "");
const emit = defineEmits(["update:modelValue"]);
Expand Down
2 changes: 1 addition & 1 deletion apps/molgenis-viz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"d3": "7.8.5",
"graphql-request": "^6.1.0",
"heroicons": "^2.0.18",
"vue": "3.4.37"
"vue": "3.5.6"
},
"devDependencies": {
"@vitejs/plugin-vue": "4.6.2",
Expand Down
12 changes: 6 additions & 6 deletions apps/nuxt3-ssr/components/CategoriesTree.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
const { title, collectionEvents, columnCount, category } = withDefaults(
const props = withDefaults(
defineProps<{
title: string;
category: string;
Expand Down Expand Up @@ -85,13 +85,13 @@ function getCategoriesOf(
let treeItems: ICollectionEventCategorySet[][];
watch(
collectionEvents,
props.collectionEvents,
() => {
treeItems = [];
const allCategories = getCategoriesOf(category, collectionEvents);
if (allCategories.length > columnCount) {
const pageSize = allCategories.length / columnCount;
for (let column = 1; column < columnCount + 1; column++) {
const allCategories = getCategoriesOf(props.category, collectionEvents);
if (allCategories.length > props.columnCount) {
const pageSize = allCategories.length / props.columnCount;
for (let column = 1; column < props.columnCount + 1; column++) {
treeItems.push(
allCategories.slice((column - 1) * pageSize, column * pageSize)
);
Expand Down
2 changes: 1 addition & 1 deletion apps/nuxt3-ssr/components/content/Ontology.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { IOntologyItem } from "metadata-utils";
const { tree } = withDefaults(
withDefaults(
defineProps<{
tree: IOntologyItem[];
collapseAll?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions apps/nuxt3-ssr/components/content/TreeNode.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { IOntologyItem } from "metadata-utils";
const { node, collapseAll } = withDefaults(
const props = withDefaults(
defineProps<{
node: IOntologyItem;
isRootNode?: boolean;
Expand All @@ -13,7 +13,7 @@ const { node, collapseAll } = withDefaults(
}
);
let collapsed = ref(collapseAll);
let collapsed = ref(props.collapseAll);
const toggleCollapse = () => {
collapsed.value = !collapsed.value;
};
Expand Down
4 changes: 2 additions & 2 deletions apps/nuxt3-ssr/components/notification/NotificationModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { INotificationType } from "~/interfaces/types";
const { type, subTitle, title, timeoutInMills } = withDefaults(
const props = withDefaults(
defineProps<{
type: INotificationType;
subTitle?: string;
Expand All @@ -21,7 +21,7 @@ function onTimeout() {
}
onMounted(() => {
timeOutId = setInterval(onTimeout, timeoutInMills);
timeOutId = setInterval(onTimeout, props.timeoutInMills);
show.value = true;
});
Expand Down
2 changes: 1 addition & 1 deletion apps/nuxt3-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"floating-vue": "5.2.2",
"metadata-utils": "*",
"vite": "4.5.3",
"vue": "3.4.37"
"vue": "3.5.6"
}
}
2 changes: 1 addition & 1 deletion apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ui"
],
"devDependencies": {
"nuxt": "3.12.4"
"nuxt": "3.13.2"
},
"scripts": {
"build:libs": "yarn workspace molgenis-components run build && yarn workspace molgenis-viz run build"
Expand Down
2 changes: 1 addition & 1 deletion apps/pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"core-js": "3.34.0",
"graphql-request": "5.2.0",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/projectmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"graphql-request": "5.2.0",
"metadata-utils": "*",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/reports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"core-js": "3.34.0",
"graphql-request": "5.2.0",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"graphql-tag": "2.12.6",
"metadata-utils": "*",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3",
"vue-scrollto": "2.20.0",
"vuedraggable": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"molgenis-components": "*",
"core-js": "3.34.0",
"graphql-request": "5.2.0",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3",
"vue3-colorpicker": "2.2.3",
"vuedraggable": "4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion apps/tables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"core-js": "3.34.0",
"graphql-request": "5.2.0",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/tailwind-components/components/ContentReadMore.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
const { text, cutoff } = withDefaults(
withDefaults(
defineProps<{
text?: string;
cutoff?: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { INotificationType } from "~/interfaces/types";
import type { INotificationType } from "~/types/types";
const { title, subTitle, description, type } = withDefaults(
const props = withDefaults(
defineProps<{
title: string;
description?: string;
Expand All @@ -14,7 +14,7 @@ const { title, subTitle, description, type } = withDefaults(
);
const bgClass = computed(() => {
switch (type) {
switch (props.type) {
case "light":
return "bg-white";
case "dark":
Expand Down
2 changes: 1 addition & 1 deletion apps/tailwind-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"consola": "3.2.3",
"floating-vue": "5.2.2",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/tasks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"core-js": "3.34.0",
"graphql-request": "5.2.0",
"molgenis-components": "*",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@pinia/nuxt": "0.5.1",
"pinia": "2.1.7",
"vue": "3.4.37",
"vue": "3.5.6",
"vue-router": "4.4.3"
},
"license": "LGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/updownload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"molgenis-components": "*",
"core-js": "3.34.0",
"graphql-request": "5.2.0",
"vue": "3.4.37"
"vue": "3.5.6"
},
"devDependencies": {
"vite": "4.5.3",
Expand Down
Loading

0 comments on commit 6527dfa

Please sign in to comment.