fix: remove unused vars
This commit is contained in:
parent
40c1c12fcc
commit
68e32fbffa
9 changed files with 9 additions and 34 deletions
|
|
@ -29,7 +29,8 @@ import { BNavItem } from 'bootstrap-vue-next'
|
|||
'/files',
|
||||
'/users',
|
||||
]"
|
||||
v-slot="{ href, route, navigate, isActive, isExactActive }"
|
||||
v-slot="{ href, route, isActive }"
|
||||
:key="url"
|
||||
:to="url"
|
||||
custom
|
||||
>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
class="cursor"
|
||||
:class="header.thClasses"
|
||||
valign="top"
|
||||
@click="sort(header.orderKey ?? header.key)"
|
||||
@click="soSort(header.orderKey ?? header.key)"
|
||||
>
|
||||
<SortButton
|
||||
:current-order="order"
|
||||
|
|
@ -77,7 +77,7 @@ defineProps({
|
|||
|
||||
const emit = defineEmits(['sort', 'rowClick'])
|
||||
|
||||
const sort = (key) => {
|
||||
const doSort = (key) => {
|
||||
emit('sort', key)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ defineProps({
|
|||
required: true,
|
||||
},
|
||||
fields: {
|
||||
type: [Array],
|
||||
type: Array,
|
||||
required: false,
|
||||
default: [],
|
||||
default: () => [],
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ const createForm = () => {
|
|||
}
|
||||
}
|
||||
|
||||
const doSave = (e) => {
|
||||
const doSave = () => {
|
||||
fetch(
|
||||
`${endpoint}`,
|
||||
createRequestOptions({
|
||||
|
|
|
|||
|
|
@ -42,17 +42,11 @@
|
|||
<script setup>
|
||||
import { BContainer, BButton, BButtonToolbar } from 'bootstrap-vue-next'
|
||||
|
||||
import { VueSpinner } from 'vue3-spinners'
|
||||
import Header from '../../components/crud/Header.vue'
|
||||
import Pager from '../../components/crud/Pager.vue'
|
||||
import DataList from '../../components/crud/DataList.vue'
|
||||
import { ref, onMounted, watch } from 'vue'
|
||||
import { getStorage, saveStorage } from '../../lib/storage'
|
||||
import {
|
||||
renderCategory,
|
||||
renderEuro,
|
||||
renderLabelWithSum,
|
||||
} from '../../lib/renderers'
|
||||
import { createRequestOptions } from '../../lib/request'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ const createForm = () => {
|
|||
}
|
||||
}
|
||||
|
||||
const doSave = (e) => {
|
||||
const doSave = () => {
|
||||
fetch(
|
||||
`${endpoint}`,
|
||||
createRequestOptions({
|
||||
|
|
|
|||
|
|
@ -42,17 +42,11 @@
|
|||
<script setup>
|
||||
import { BContainer, BButton, BButtonToolbar } from 'bootstrap-vue-next'
|
||||
|
||||
import { VueSpinner } from 'vue3-spinners'
|
||||
import Header from '../../components/crud/Header.vue'
|
||||
import Pager from '../../components/crud/Pager.vue'
|
||||
import DataList from '../../components/crud/DataList.vue'
|
||||
import { ref, onMounted, watch } from 'vue'
|
||||
import { getStorage, saveStorage } from '../../lib/storage'
|
||||
import {
|
||||
renderCategory,
|
||||
renderEuro,
|
||||
renderLabelWithSum,
|
||||
} from '../../lib/renderers'
|
||||
import { createRequestOptions } from '../../lib/request'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
|
|
|
|||
|
|
@ -112,22 +112,12 @@
|
|||
|
||||
<script setup>
|
||||
import {
|
||||
BTbody,
|
||||
BThead,
|
||||
BTr,
|
||||
BTd,
|
||||
BTh,
|
||||
BContainer,
|
||||
BTableSimple,
|
||||
BModal,
|
||||
BButton,
|
||||
BForm,
|
||||
BFormGroup,
|
||||
BFormInput,
|
||||
BAlert,
|
||||
BButtonToolbar,
|
||||
BFormSelect,
|
||||
BFormFile,
|
||||
} from 'bootstrap-vue-next'
|
||||
|
||||
import Header from '../../components/crud/Header.vue'
|
||||
|
|
@ -139,7 +129,6 @@ import DataList from '../../components/crud/DataList.vue'
|
|||
import { ref, onMounted, watch } from 'vue'
|
||||
import { getStorage, saveStorage } from '../../lib/storage'
|
||||
import { createRequestOptions } from '../../lib/request'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { queryFilters, appendRequestQueryFilters } from '../../lib/filter'
|
||||
import {
|
||||
renderDate,
|
||||
|
|
@ -162,8 +151,6 @@ const infoShow = ref(false)
|
|||
const info = ref(null)
|
||||
const filters = ref(getStorage(`${endpoint}:filters`) ?? [])
|
||||
const filtersShow = ref(false)
|
||||
const router = useRouter()
|
||||
let route = null
|
||||
|
||||
watch(order, (v) => saveStorage(`${endpoint}:order`, v))
|
||||
watch(sort, (v) => saveStorage(`${endpoint}:sort`, v))
|
||||
|
|
@ -368,7 +355,6 @@ const fields = [
|
|||
]
|
||||
|
||||
onMounted(() => {
|
||||
route = useRoute()
|
||||
refresh()
|
||||
|
||||
fetch('/api/category', createRequestOptions())
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ const createForm = () => {
|
|||
}
|
||||
}
|
||||
|
||||
const doSave = (e) => {
|
||||
const doSave = () => {
|
||||
fetch(
|
||||
`${endpoint}`,
|
||||
createRequestOptions({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue