Skip to content

Commit

Permalink
Merge branch 'master' into fix/better-theme-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
connoratrug authored Jan 17, 2025
2 parents e68296b + 55656b8 commit 430165e
Show file tree
Hide file tree
Showing 73 changed files with 3,041 additions and 2,388 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ jobs:
- post_steps
e2e-test:
docker:
- image: mcr.microsoft.com/playwright:v1.49.0-jammy
- image: mcr.microsoft.com/playwright:v1.49.1-jammy
steps:
- checkout
- run: npm i -D @playwright/test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ venv
requirements.txt
e2e/.auth
e2e/e2e/.auth
e2e/test-results/
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.5.6",
"vue":"3.5.13",
"vue-router": "4.4.3"
},
"devDependencies": {
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.5.6",
"vue":"3.5.13",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion apps/central/src/components/admin/ManageUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
<TableSimple class="bg-white" :rows="users" :columns="['email', 'enabled']">
<template v-slot:rowheader="row">
<template
v-if="row.row.email !== 'admin' && row.row.email !== 'anonymous'"
v-if="
row.row.email !== 'admin' &&
row.row.email !== 'anonymous' &&
row.row.email !== 'user'
"
>
<IconDanger
icon="trash"
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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions apps/directory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"molgenis-components": "*",
"monaco-editor": "0.50.0",
"pinia": "2.1.7",
"vue": "3.5.6",
"vue":"3.5.13",
"vue-gtag": "2.0.1",
"vue-router": "4.4.3",
"vuedraggable": "4.1.0"
},
"devDependencies": {
"@playwright/test": "1.49.0",
"@playwright/test": "1.49.1",
"@vitejs/plugin-vue": "4.6.2",
"@vue/test-utils": "2.4.6",
"@vue/vue3-jest": "29.2.6",
Expand Down
2 changes: 1 addition & 1 deletion apps/emx2-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"checkFormat": "prettier src --check --config ../.prettierrc.js"
},
"dependencies": {
"vue": "^3.4.29"
"vue":"3.5.13"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/ern-genturis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"graphql-request": "5.2.0",
"molgenis-components": "*",
"molgenis-viz": "*",
"vue": "3.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"vue-gtag": "2.0.1",
"vue-flatpickr-component": "11.0.5",
"vue3-cookies": "^1.0.6",
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.5.6"
"vue":"3.5.13"
},
"devDependencies": {
"@vitejs/plugin-vue": "4.6.2",
Expand Down
9 changes: 5 additions & 4 deletions apps/nuxt3-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"devDependencies": {
"@nuxt/image": "1.7.0",
"@nuxt/test-utils": "3.14.2",
"@playwright/test": "1.49.0",
"@nuxt/test-utils": "3.14.4",
"@playwright/test": "1.49.1",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.13",
"@vitejs/plugin-vue": "4.6.2",
Expand All @@ -40,14 +40,15 @@
"tailwindcss": "3.4.4",
"typescript": "5.6.2",
"vitest": "2.1.1",
"vue-tsc": "2.1.6"
"vue-tsc": "2.1.6",
"nuxt": "3.14.1592"
},
"dependencies": {
"@vueuse/core": "10.7.0",
"floating-vue": "5.2.2",
"metadata-utils": "*",
"nuxt-gtag": "3.0.1",
"vite": "5.4.6",
"vue": "3.5.6"
"vue": "3.5.13"
}
}
3 changes: 0 additions & 3 deletions apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"emx2-analytics",
"ui"
],
"devDependencies": {
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"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.5.6",
"vue":"3.5.13",
"vue-router": "4.4.3",
"vue3-colorpicker": "2.2.3",
"vuedraggable": "4.1.0"
Expand Down
16 changes: 4 additions & 12 deletions apps/settings/src/components/Members.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
<MessageError v-if="graphqlError">{{ graphqlError }}</MessageError>
<MessageSuccess v-if="success">{{ success }}</MessageSuccess>
</div>
<div
v-if="
session &&
(session.email == 'admin' ||
(session.roles && session.roles.length > 0))
"
>
<div v-if="session?.email === 'admin' || session?.roles?.length">
<h5 class="card-title">Manage members</h5>
<p>Use table below to add, edit or remove members</p>
<form v-if="canEdit" class="form-inline">
Expand Down Expand Up @@ -106,13 +100,11 @@ export default {
loading: false,
};
},
computed: {
canEdit() {
return (
this.session != null &&
(this.session.email == "admin" ||
this.session.roles.includes("Manager"))
this.session?.email === "admin" ||
this.session?.roles.includes("Manager")
);
},
},
Expand All @@ -127,7 +119,7 @@ export default {
`mutation drop($member:[String]){drop(members:$member){message}}`,
{ member: name }
)
.then((data) => {
.then(() => {
this.loadMembers();
})
.catch((error) => {
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.5.6",
"vue":"3.5.13",
"vue-router": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions apps/tailwind-components/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<!-- <SearchBar /> -->
</div>

<slot name="admin" />

<slot name="account">
<!-- <HeaderButton label="Favorites" icon="star" /> -->
<HeaderButton label="Account" icon="user" />
Expand Down
31 changes: 9 additions & 22 deletions apps/tailwind-components/components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function showModal() {
visible.value = true;
}
const closeModal = (returnVal?: string) => {
const closeModal = () => {
visible.value = false;
};
Expand All @@ -20,6 +20,7 @@ defineExpose({
visible,
});
</script>

<template>
<section
v-show="visible"
Expand All @@ -29,11 +30,12 @@ defineExpose({
class="fixed min-h-lvh w-full top-0 left-0 flex z-20"
>
<a
@click="closeModal('close from backdrop')"
id="backdrop"
@click="closeModal()"
class="w-full h-full absolute left-0 bg-black/60"
href="#"
tabindex="-1"
></a>
/>

<div class="bg-white w-3/4 relative m-auto h-3/4 rounded-50px max-w-xl">
<header class="pt-[36px] px-[50px] overflow-y-auto">
Expand All @@ -43,38 +45,23 @@ defineExpose({
</h2>

<button
@click="closeModal('close from btn')"
@click="closeModal()"
aria-label="Close modal"
class="absolute top-7 right-8 p-1"
>
<BaseIcon class="text-blue-500" name="cross" />
</button>

<slot name="header"></slot>
<slot name="header" />
</header>

<div class="px-[50px] overflow-y-auto py-4 max-h-[calc(80vh-232px)]">
<slot></slot>
<slot />
</div>

<footer class="bg-modal-footer px-[50px] rounded-b-50px">
<menu class="flex items-center justify-left h-[116px]">
<slot name="footer">
<div class="flex flex-wrap gap-5">
<button
@click="closeModal('close from btn')"
class="flex items-center border rounded-full h-10.5 px-5 text-heading-lg gap-3 tracking-widest uppercase font-display bg-button-primary text-button-primary border-button-primary hover:bg-button-primary-hover hover:text-button-primary-hover hover:border-button-primary-hover"
>
Primary
</button>
<button
@click="closeModal('close from btn')"
class="flex items-center border rounded-full h-10.5 px-5 text-heading-lg gap-3 tracking-widest uppercase font-display bg-button-secondary text-button-secondary border-button-secondary hover:bg-button-secondary-hover hover:text-button-secondary-hover hover:border-button-secondary-hover"
>
Secondary
</button>
</div>
</slot>
<slot name="footer" />
</menu>
</footer>
</div>
Expand Down
1 change: 0 additions & 1 deletion apps/tailwind-components/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const mainButtons = computed(() =>
const subButtons = computed(() =>
props.navigation.slice(props.maximumButtonShown)
);
const active = "underline";
</script>

<template>
Expand Down
1 change: 0 additions & 1 deletion apps/tailwind-components/components/Table.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- eslint-disable vue/multi-word-component-names -->
<template>
<table class="w-full table-auto">
<thead>
Expand Down
Loading

0 comments on commit 430165e

Please sign in to comment.