From 65bd30d196aca663ed08cbdab83062fddd35fb13 Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Tue, 12 May 2026 13:02:20 +0000 Subject: [PATCH] refactor: replace material design icons with material symbols Signed-off-by: GitHub Signed-off-by: Christian Hartmann --- package-lock.json | 14 +-- package.json | 2 +- src/Forms.vue | 22 ++--- src/FormsEmptyContent.vue | 10 +-- src/components/AppNavigationForm.vue | 59 +++++++------ src/components/Icons/FormsIcon.vue | 49 ----------- src/components/Icons/IconCopyAll.vue | 49 ----------- src/components/Icons/IconDragIndicator.vue | 49 ----------- src/components/Icons/IconLinearScale.vue | 49 ----------- src/components/Icons/IconPalette.vue | 49 ----------- src/components/PaginationToolbar.vue | 31 ++++--- src/components/Questions/AnswerInput.vue | 47 +++++----- src/components/Questions/Question.vue | 61 +++++++------ src/components/Questions/QuestionColor.vue | 8 +- src/components/Questions/QuestionDropdown.vue | 8 +- src/components/Questions/QuestionFile.vue | 40 ++++----- .../Questions/QuestionLinearScale.vue | 10 ++- src/components/Questions/QuestionMultiple.vue | 21 +++-- src/components/Questions/QuestionShort.vue | 8 +- src/components/Results/Answer.vue | 19 +++-- src/components/Results/ResultsSummary.vue | 14 ++- src/components/Results/Submission.vue | 19 +++-- .../SidebarTabs/SharingShareDiv.vue | 13 ++- .../SidebarTabs/SharingSidebarTab.vue | 62 +++++++------- src/components/TopBar.vue | 13 ++- src/models/AnswerTypes.js | 54 ++++++------ src/models/ValidationTypes.js | 10 +-- src/views/Create.vue | 23 ++--- src/views/Results.vue | 85 ++++++++++--------- src/views/Sidebar.vue | 19 +++-- 30 files changed, 370 insertions(+), 547 deletions(-) delete mode 100644 src/components/Icons/FormsIcon.vue delete mode 100644 src/components/Icons/IconCopyAll.vue delete mode 100644 src/components/Icons/IconDragIndicator.vue delete mode 100644 src/components/Icons/IconLinearScale.vue delete mode 100644 src/components/Icons/IconPalette.vue diff --git a/package-lock.json b/package-lock.json index 22bb10f9d..7aeee79d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "5.2.1", "license": "AGPL-3.0-or-later", "dependencies": { + "@material-symbols/svg-400": "^0.44.6", "@nextcloud/auth": "^2.6.0", "@nextcloud/axios": "^2.6.0", "@nextcloud/dialogs": "^7.3.0", @@ -26,7 +27,6 @@ "qrcode": "^1.5.4", "vue": "^3.5.22", "vue-draggable-plus": "^0.6.1", - "vue-material-design-icons": "^5.3.1", "vue-router": "^4.6.0" }, "devDependencies": { @@ -1296,6 +1296,12 @@ "license": "MIT", "peer": true }, + "node_modules/@material-symbols/svg-400": { + "version": "0.44.6", + "resolved": "https://registry.npmjs.org/@material-symbols/svg-400/-/svg-400-0.44.6.tgz", + "integrity": "sha512-PKVFWhOWkXMJwcvJS4vjJD7TV8fMfvk0hvTBlP6quJDJGv9QXI1BFNkXx8f0SzM8pbhwqNEILTFba8PYiNCXuw==", + "license": "Apache-2.0" + }, "node_modules/@mdi/js": { "version": "7.4.47", "resolved": "https://registry.npmjs.org/@mdi/js/-/js-7.4.47.tgz", @@ -12746,12 +12752,6 @@ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0" } }, - "node_modules/vue-material-design-icons": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/vue-material-design-icons/-/vue-material-design-icons-5.3.1.tgz", - "integrity": "sha512-6UNEyhlTzlCeT8ZeX5WbpUGFTTPSbOoTQeoASTv7X4Ylh0pe8vltj+36VMK56KM0gG8EQVoMK/Qw/6evalg8lA==", - "license": "MIT" - }, "node_modules/vue-resize": { "version": "2.0.0-alpha.1", "resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-2.0.0-alpha.1.tgz", diff --git a/package.json b/package.json index aa983a32b..d27b6cc4f 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "extends @nextcloud/browserslist-config" ], "dependencies": { + "@material-symbols/svg-400": "^0.44.6", "@nextcloud/auth": "^2.6.0", "@nextcloud/axios": "^2.6.0", "@nextcloud/dialogs": "^7.3.0", @@ -46,7 +47,6 @@ "qrcode": "^1.5.4", "vue": "^3.5.22", "vue-draggable-plus": "^0.6.1", - "vue-material-design-icons": "^5.3.1", "vue-router": "^4.6.0" }, "devDependencies": { diff --git a/src/Forms.vue b/src/Forms.vue index af83b7e7e..9d2ceedc7 100644 --- a/src/Forms.vue +++ b/src/Forms.vue @@ -13,7 +13,7 @@ :text="t('forms', 'New form')" @click="onNewForm"> @@ -64,7 +64,7 @@ wide @click="showArchivedForms = true"> {{ t('forms', 'Archived forms') }} @@ -88,7 +88,7 @@ class="forms-emptycontent" :name="t('forms', 'No forms created yet')"> @@ -158,12 +165,6 @@ export default { &__text { white-space: pre-line; - - &-icon { - display: inline-flex; - position: relative; - top: 4px; - } } .color__field { diff --git a/src/components/Results/ResultsSummary.vue b/src/components/Results/ResultsSummary.vue index 404cf869c..4652a8f74 100644 --- a/src/components/Results/ResultsSummary.vue +++ b/src/components/Results/ResultsSummary.vue @@ -90,7 +90,7 @@
  • @@ -116,8 +116,9 @@