- update to AdonisJS 6
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m15s

This commit is contained in:
Kaimbacher 2024-03-14 20:25:27 +01:00
parent f828ca4491
commit cb51a4136f
167 changed files with 21485 additions and 21212 deletions

View file

@ -97,10 +97,10 @@
</template>
<script setup lang="ts">
import { useForm, Head } from '@inertiajs/vue3';
import { useForm, Head, InertiaForm } from '@inertiajs/vue3';
import { Ref, ref } from 'vue';
// import { Head, Link, useForm } from '@inertiajs/inertia-vue3';
import { mdiAccount, mdiAsterisk, mdiTwoFactorAuthentication, mdiContentSaveCheck, mdiLock } from '@mdi/js';
import { mdiAccount, mdiAsterisk, mdiTwoFactorAuthentication, mdiContentSaveCheck } from '@mdi/js';
import LayoutGuest from '@/Layouts/LayoutGuest.vue';
import SectionFullScreen from '@/Components/SectionFullScreen.vue';
import CardBox from '@/Components/CardBox.vue';
@ -173,7 +173,7 @@ defineProps({
// const { version } = usePage();
const form = useForm(() => ({
const form: InertiaForm = useForm(() => ({
email: '',
password: '',
remember: [],
@ -225,11 +225,12 @@ const form = useForm(() => ({
const submit = async () => {
await form
.transform((data) => ({
.transform((data: InertiaForm) => ({
...data,
remember: form.remember && form.remember.length ? 'on' : '',
}))
.post(stardust.route('login.store'), {
.post('/app/login', {
// .post(stardust.route('login.store'), {
onFinish: () => {
form.reset('password');
},
@ -237,14 +238,14 @@ const submit = async () => {
};
const fa2Form = useForm(() => ({
const fa2Form: InertiaForm = useForm(() => ({
code: '',
remember: [],
login_id: ''
}));
const submitFa2Form = async () => {
await fa2Form
.transform((data) => ({
.transform((data: InertiaForm) => ({
...data,
remember: fa2Form.remember && fa2Form.remember.length ? 'on' : '',
login_id: user_id.value

View file

@ -41,7 +41,7 @@ const form = useForm({
// const isPreferationRequired = ref(false);
const isPreferationRequired = computed(() => form.preferation === 'yes_preferation');
const handleSubmit = async (e) => {
const handleSubmit = async (e: Event) => {
e.preventDefault();
await form.put(stardust.route('dataset.releaseUpdate', [props.dataset.id]));

View file

@ -22,7 +22,7 @@ import TableKeywords from '@/Components/TableKeywords.vue';
import FormValidationErrors from '@/Components/FormValidationErrors.vue';
import FileUploadComponent from '@/Components/FileUpload.vue';
import { MapOptions } from '@/Components/Map/MapOptions';
import { LatLngBoundsExpression } from 'leaflet/src/geo/LatLngBounds';
import { LatLngBoundsExpression } from 'leaflet/src/geo/LatLngBounds.js';
import { LayerOptions } from '@/Components/Map/LayerOptions';
import {