From 84a50c3d180df2a43478b75999e96fc6b4b61893 Mon Sep 17 00:00:00 2001 From: "marcel.kocisek" Date: Fri, 8 Dec 2023 12:18:35 +0100 Subject: [PATCH] Added: - fullstorage warning message mapped to workspace not profile (fix) - implemented warning message with severity warning Upgrade: - primevue 3.43.0 Vuetify clenup: - removed vuetify.min.csswith unnecessary css resets --- web-app/packages/app/package.json | 2 +- web-app/packages/app/src/app.ts | 1 - .../modules/dashboard/views/DashboardView.vue | 2 +- web-app/packages/lib/components.d.ts | 1 + web-app/packages/lib/package.json | 2 +- .../mm-theme-light/variables/_message.scss | 4 +- .../components/FullStorageWarningTemplate.vue | 38 +++++++++++++------ .../lib/src/common/components/index.ts | 4 +- .../DashboardFullStorageWarningRow.vue | 12 +++--- .../dashboard/views/DashboardViewTemplate.vue | 4 +- .../ProjectAccessRequestTableTemplate.vue | 2 +- .../project/components/ProjectsTable.vue | 4 +- .../components/ProjectsTableDataLoader.vue | 6 ++- .../packages/lib/src/modules/user/types.ts | 2 - web-app/yarn.lock | 8 ++-- 15 files changed, 51 insertions(+), 41 deletions(-) diff --git a/web-app/packages/app/package.json b/web-app/packages/app/package.json index f9b98c99..873251cf 100644 --- a/web-app/packages/app/package.json +++ b/web-app/packages/app/package.json @@ -34,7 +34,7 @@ "pinia": "^2.1.7", "portal-vue": "^3.0.0", "primeflex": "^3.3.1", - "primevue": "^3.42.0", + "primevue": "^3.43.0", "vue": "^3.3.8", "vue-i18n": "^9.7.1", "vue-meta": "^3.0.0-alpha.10", diff --git a/web-app/packages/app/src/app.ts b/web-app/packages/app/src/app.ts index 2ab1b474..56e2114b 100644 --- a/web-app/packages/app/src/app.ts +++ b/web-app/packages/app/src/app.ts @@ -3,7 +3,6 @@ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial // styles must be imported first (at least before imports of our libs) -import 'vuetify/dist/vuetify.min.css' import 'material-icons/iconfont/material-icons.scss' import '@fortawesome/fontawesome-free/css/all.css' import '@mdi/font/css/materialdesignicons.css' diff --git a/web-app/packages/app/src/modules/dashboard/views/DashboardView.vue b/web-app/packages/app/src/modules/dashboard/views/DashboardView.vue index bb656f1e..d7e5bc84 100644 --- a/web-app/packages/app/src/modules/dashboard/views/DashboardView.vue +++ b/web-app/packages/app/src/modules/dashboard/views/DashboardView.vue @@ -34,7 +34,7 @@ import { useUserStore, DashboardProjectsRow } from '@mergin/lib' -import { defineComponent, computed, ref } from 'vue' +import { defineComponent, computed } from 'vue' export default defineComponent({ name: 'DashboardView', diff --git a/web-app/packages/lib/components.d.ts b/web-app/packages/lib/components.d.ts index 2bb5d5b9..f6e9b208 100644 --- a/web-app/packages/lib/components.d.ts +++ b/web-app/packages/lib/components.d.ts @@ -15,6 +15,7 @@ declare module 'vue' { PDropdown: typeof import('primevue/dropdown')['default'] PMenu: typeof import('primevue/menu')['default'] PMenubar: typeof import('primevue/menubar')['default'] + PMessage: typeof import('primevue/message')['default'] POverlayPanel: typeof import('primevue/overlaypanel')['default'] PTag: typeof import('primevue/tag')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/web-app/packages/lib/package.json b/web-app/packages/lib/package.json index 18a82c4f..b71cb5b4 100644 --- a/web-app/packages/lib/package.json +++ b/web-app/packages/lib/package.json @@ -45,7 +45,7 @@ "date-fns": "^2.28.0", "lodash": "^4.17.21", "primeflex": "^3.3.1", - "primevue": "^3.42.0", + "primevue": "^3.43.0", "universal-cookie": "^4.0.4", "vue": "^3.3.8", "vue-router": "^4.1.6", diff --git a/web-app/packages/lib/src/assets/sass/themes/mm-theme-light/variables/_message.scss b/web-app/packages/lib/src/assets/sass/themes/mm-theme-light/variables/_message.scss index 57e74047..4406b9ae 100644 --- a/web-app/packages/lib/src/assets/sass/themes/mm-theme-light/variables/_message.scss +++ b/web-app/packages/lib/src/assets/sass/themes/mm-theme-light/variables/_message.scss @@ -8,7 +8,7 @@ $messagePadding: 1rem 1.5rem; /// Border width of a message /// @group message -$messageBorderWidth: 0 0 0 4px; +$messageBorderWidth: 0 0 0 6px; /// Font size of a message icon /// @group message @@ -116,7 +116,7 @@ $warningMessageBg: map-get($map: $colors, $key: warning); /// Border of a warning message /// @group message -$warningMessageBorder: 0 none; +$warningMessageBorder: 0 solid map-get($map: $colors, $key: earth); /// Text color of a warning message /// @group message diff --git a/web-app/packages/lib/src/common/components/FullStorageWarningTemplate.vue b/web-app/packages/lib/src/common/components/FullStorageWarningTemplate.vue index 257084a2..1f315b09 100644 --- a/web-app/packages/lib/src/common/components/FullStorageWarningTemplate.vue +++ b/web-app/packages/lib/src/common/components/FullStorageWarningTemplate.vue @@ -5,26 +5,40 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial --> diff --git a/web-app/packages/lib/src/common/components/index.ts b/web-app/packages/lib/src/common/components/index.ts index 3d9e14dd..4613af66 100644 --- a/web-app/packages/lib/src/common/components/index.ts +++ b/web-app/packages/lib/src/common/components/index.ts @@ -4,6 +4,8 @@ export * from './base' +export { default as AppSection } from './AppSection.vue' +export { default as AppContainer } from './AppContainer.vue' export { default as ActionButton } from './ActionButton.vue' export { default as CustomPage } from './CustomPage.vue' export { default as FullStorageWarning } from './FullStorageWarning.vue' @@ -17,5 +19,3 @@ export { default as UsageStatus } from './UsageStatus.vue' export { default as UsageStatusTemplate } from './UsageStatusTemplate.vue' export { default as WarningMessage } from './WarningMessage.vue' export { default as WarningMessageTemplate } from './WarningMessageTemplate.vue' -export { default as AppSection } from './AppSection.vue' -export { default as AppContainer } from './AppContainer.vue' diff --git a/web-app/packages/lib/src/modules/dashboard/components/DashboardFullStorageWarningRow.vue b/web-app/packages/lib/src/modules/dashboard/components/DashboardFullStorageWarningRow.vue index 2146dcb2..70c88f54 100644 --- a/web-app/packages/lib/src/modules/dashboard/components/DashboardFullStorageWarningRow.vue +++ b/web-app/packages/lib/src/modules/dashboard/components/DashboardFullStorageWarningRow.vue @@ -5,9 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial --> diff --git a/web-app/packages/lib/src/modules/dashboard/views/DashboardViewTemplate.vue b/web-app/packages/lib/src/modules/dashboard/views/DashboardViewTemplate.vue index d3dffd75..2d918bc9 100644 --- a/web-app/packages/lib/src/modules/dashboard/views/DashboardViewTemplate.vue +++ b/web-app/packages/lib/src/modules/dashboard/views/DashboardViewTemplate.vue @@ -6,9 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial