From e14861a3a46ff4c46d714ea5d49f0edb66c49fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Micha=C5=82owski?= Date: Tue, 23 Jul 2024 20:50:02 +0200 Subject: [PATCH] feat(admin) - change stylelint version, fix eslint errors --- admin/components.d.ts | 2 - admin/package.json | 2 +- admin/src/components/CreationFormular.vue | 37 ++- .../src/components/Tables/SearchUserTable.vue | 26 +- admin/yarn.lock | 309 +++++++++++++----- 5 files changed, 255 insertions(+), 121 deletions(-) diff --git a/admin/components.d.ts b/admin/components.d.ts index 2ab5281fb..9f36a4c74 100644 --- a/admin/components.d.ts +++ b/admin/components.d.ts @@ -26,14 +26,12 @@ declare module 'vue' { EditCreationFormular: typeof import('./src/components/EditCreationFormular.vue')['default'] FederationVisualizeItem: typeof import('./src/components/Federation/FederationVisualizeItem.vue')['default'] FigureQrCode: typeof import('./src/components/FigureQrCode.vue')['default'] - IBi0Circle: typeof import('~icons/bi/0-circle')['default'] IIcBaselineClose: typeof import('~icons/ic/baseline-close')['default'] IOcticonCircleSlash24: typeof import('~icons/octicon/circle-slash24')['default'] IOcticonPerson24: typeof import('~icons/octicon/person24')['default'] IPhCaretDown: typeof import('~icons/ph/caret-down')['default'] IPhCaretUpFill: typeof import('~icons/ph/caret-up-fill')['default'] IPhEnvelope: typeof import('~icons/ph/envelope')['default'] - IPhEvelope: typeof import('~icons/ph/evelope')['default'] IPhXCircle: typeof import('~icons/ph/x-circle')['default'] NavBar: typeof import('./src/components/NavBar.vue')['default'] NotFoundPage: typeof import('./src/components/NotFoundPage.vue')['default'] diff --git a/admin/package.json b/admin/package.json index 8b65a9ec7..600e73f60 100644 --- a/admin/package.json +++ b/admin/package.json @@ -84,7 +84,7 @@ "postcss-html": "^1.3.0", "postcss-scss": "^4.0.3", "prettier": "^3.3.3", - "stylelint": "16.7.0", + "stylelint": "15.11.0", "stylelint-config-recommended-vue": "^1.3.0", "stylelint-config-standard-scss": "^3.0.0", "unplugin-icons": "^0.19.0", diff --git a/admin/src/components/CreationFormular.vue b/admin/src/components/CreationFormular.vue index 22d14a21d..55c77068c 100644 --- a/admin/src/components/CreationFormular.vue +++ b/admin/src/components/CreationFormular.vue @@ -6,22 +6,22 @@
-
+
- + - +
@@ -45,22 +45,22 @@
{{ $t('creation_form.update_creation') }} {{ $t('creation_form.submit_creation') }} @@ -141,6 +141,8 @@ const { mutate: createContribution } = useMutation(adminCreateContribution) const { refetch } = useQuery(openCreations) +const emit = defineEmits(['update-user-data']) + const submitCreation = async () => { try { const result = await createContribution({ @@ -174,8 +176,7 @@ const submitCreation = async () => { watch( () => selected.value, async (newValue, oldValue) => { - console.log(selected.value) - if (newValue !== oldValue && selected.value != '') { + if (newValue !== oldValue && selected.value !== '') { updateRadioSelected(newValue) } }, diff --git a/admin/src/components/Tables/SearchUserTable.vue b/admin/src/components/Tables/SearchUserTable.vue index 1b2616b47..6df2a07fa 100644 --- a/admin/src/components/Tables/SearchUserTable.vue +++ b/admin/src/components/Tables/SearchUserTable.vue @@ -45,8 +45,8 @@ :title="row.item.enabled ? $t('enabled') : $t('deleted')" />
@@ -54,7 +54,7 @@