diff --git a/front/src/components/audio/track/Table.vue b/front/src/components/audio/track/Table.vue index 04db1b812..eb71829fa 100644 --- a/front/src/components/audio/track/Table.vue +++ b/front/src/components/audio/track/Table.vue @@ -249,7 +249,7 @@ const updatePage = (page: number) => { @@ -277,7 +277,7 @@ const updatePage = (page: number) => { diff --git a/front/src/components/library/Radios.vue b/front/src/components/library/Radios.vue index d3a9d350c..6e2656f4d 100644 --- a/front/src/components/library/Radios.vue +++ b/front/src/components/library/Radios.vue @@ -12,16 +12,15 @@ import { sortedUniq } from 'lodash-es' import { useStore } from '~/store' import axios from 'axios' -import $ from 'jquery' import Layout from '~/components/ui/Layout.vue' import Section from '~/components/ui/Section.vue' import Pagination from '~/components/ui/Pagination.vue' import RadioCard from '~/components/radios/Card.vue' import Button from '~/components/ui/Button.vue' -import Link from '~/components/ui/Link.vue' -import Card from '~/components/ui/Card.vue' +import Alert from '~/components/ui/Alert.vue' import Input from '~/components/ui/Input.vue' +import Spacer from '~/components/ui/Spacer.vue' import useSharedLabels from '~/composables/locale/useSharedLabels' import useOrdering from '~/composables/navigation/useOrdering' @@ -103,8 +102,6 @@ onOrderingUpdate(() => { fetchData() }) -onMounted(() => $('.ui.dropdown').dropdown()) - const { t } = useI18n() const labels = computed(() => ({ searchPlaceholder: t('components.library.Radios.placeholder.search'), @@ -165,7 +162,7 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value] id="radios-ordering" :label="t('components.library.Radios.ordering.label')" v-model="ordering" - class="ui dropdown" + class="dropdown" > sortedUniq([12, 25, 50, paginateBy.value] id="radios-ordering-direction" :label="t('components.library.Radios.ordering.direction.label')" v-model="orderingDirection" - class="ui dropdown" + class="dropdown" > {{ t('components.library.Radios.ordering.direction.ascending') }} @@ -192,7 +189,7 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value] id="radios-results" :label="t('components.library.Radios.pagination.results')" v-model="paginateBy" - class="ui dropdown" + class="dropdown" > sortedUniq([12, 25, 50, paginateBy.value] - - - - {{ t('components.library.Radios.empty.noResults') }} - - + + {{ t('components.library.Radios.empty.noResults') }} + + - {{ t('components.library.Radios.button.add') }} - - + + sortedUniq([12, 25, 50, paginateBy.value] diff --git a/front/src/components/library/radios/Builder.vue b/front/src/components/library/radios/Builder.vue index 16e06be66..7a53438ba 100644 --- a/front/src/components/library/radios/Builder.vue +++ b/front/src/components/library/radios/Builder.vue @@ -4,13 +4,19 @@ import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' import axios from 'axios' -import $ from 'jquery' import useErrorHandler from '~/composables/useErrorHandler' import TrackTable from '~/components/audio/track/Table.vue' import RadioButton from '~/components/radios/Button.vue' import BuilderFilter from './Filter.vue' +import Button from '~/components/ui/Button.vue' +import Layout from '~/components/ui/Layout.vue' +import Input from '~/components/ui/Input.vue' +import Toggle from '~/components/ui/Toggle.vue' +import Textarea from '~/components/ui/Textarea.vue' +import Alert from '~/components/ui/Alert.vue' +import Spacer from '~/components/ui/Spacer.vue' export interface BuilderFilter { type: string @@ -185,161 +191,149 @@ const save = async () => { isLoading.value = false } - -onMounted(() => { - $('.ui.dropdown').dropdown() -}) - - - - - {{ t('components.library.radios.Builder.header.builder') }} - - - {{ t('components.library.radios.Builder.description.builder') }} - - - + + {{ t('components.library.radios.Builder.header.builder') }} + + + {{ t('components.library.radios.Builder.description.builder') }} + + + + + + + {{ t('components.library.radios.Builder.header.updated') }} + + + {{ t('components.library.radios.Builder.header.created') }} + + + + + + + + {{ t('components.library.radios.Builder.button.save') }} + + + + + + {{ t('components.library.radios.Builder.label.filter') }} + - - - {{ t('components.library.radios.Builder.header.updated') }} - - - {{ t('components.library.radios.Builder.header.created') }} - - - - - - {{ t('components.library.radios.Builder.label.name') }} - - - - {{ t('components.library.radios.Builder.label.description') }} - - - - - {{ t('components.library.radios.Builder.label.public') }} - - - + {{ t('components.library.radios.Builder.option.filter') }} + + - {{ t('components.library.radios.Builder.button.save') }} - - - + {{ f.label }} + + + + {{ t('components.library.radios.Builder.button.filter') }} + - - - {{ t('components.library.radios.Builder.label.filter') }} - - - {{ t('components.library.radios.Builder.option.filter') }} - - - {{ f.label }} - - - - {{ t('components.library.radios.Builder.button.filter') }} - - - - {{ currentFilter.help_text }} - - - - - - - {{ t('components.library.radios.Builder.table.filter.header.name') }} - - - {{ t('components.library.radios.Builder.table.filter.header.exclude') }} - - - {{ t('components.library.radios.Builder.table.filter.header.config') }} - - - {{ t('components.library.radios.Builder.table.filter.header.candidates') }} - - - {{ t('components.library.radios.Builder.table.filter.header.actions') }} - - - - - - - - - - {{ t('components.library.radios.Builder.header.matches', checkResult.candidates.count) }} - - + {{ currentFilter.help_text }} + + + + + + + {{ t('components.library.radios.Builder.table.filter.header.name') }} + + + {{ t('components.library.radios.Builder.table.filter.header.exclude') }} + + + {{ t('components.library.radios.Builder.table.filter.header.config') }} + + + {{ t('components.library.radios.Builder.table.filter.header.candidates') }} + + + {{ t('components.library.radios.Builder.table.filter.header.actions') }} + + + + + - - - - + + + + + {{ t('components.library.radios.Builder.header.matches', checkResult.candidates.count) }} + + + + + diff --git a/front/src/components/library/radios/Filter.vue b/front/src/components/library/radios/Filter.vue index b14b6ea8c..6f0e5b978 100644 --- a/front/src/components/library/radios/Filter.vue +++ b/front/src/components/library/radios/Filter.vue @@ -205,12 +205,12 @@ fetchCandidates() - {{ t('components.library.radios.Filter.removeButton') }} - + diff --git a/front/src/components/radios/Button.vue b/front/src/components/radios/Button.vue index 3ee882d3b..1dc7d5ce1 100644 --- a/front/src/components/radios/Button.vue +++ b/front/src/components/radios/Button.vue @@ -79,7 +79,7 @@ const toggleRadio = () => { {{ buttonLabel }} diff --git a/front/src/components/radios/Card.vue b/front/src/components/radios/Card.vue index 051ee3d94..c8287b3e2 100644 --- a/front/src/components/radios/Card.vue +++ b/front/src/components/radios/Card.vue @@ -7,6 +7,7 @@ import { useI18n } from 'vue-i18n' import RadioButton from './Button.vue' import Card from '~/components/ui/Card.vue' +import Spacer from '~/components/ui/Spacer.vue' interface Props { type: string @@ -47,26 +48,29 @@ const customRadioId = computed(() => props.customRadio?.id ?? null) > {{ radio.description }} + - - - {{ t('components.radios.Card.button.edit') }} - + + + + {{ t('components.radios.Card.button.edit') }} + + props.customRadio?.id ?? null) > {{ radio.description }} + - - - {{ t('components.radios.Card.button.edit') }} - + + + + {{ t('components.radios.Card.button.edit') }} + +
- {{ t('components.library.radios.Builder.description.builder') }} -
+ {{ t('components.library.radios.Builder.description.builder') }} +
- {{ currentFilter.help_text }} -