- daraggable crators and contributors inside Pages/Submitter/Dataset/Create.Vue

- typescript and prettier updates
- FileUpload component with dark mode and dragable uploads
- comment FontFamily in tailwind.config.js
This commit is contained in:
Kaimbacher 2023-06-16 16:44:28 +02:00
parent f76a92da2c
commit c4f4eff0d9
18 changed files with 1138 additions and 951 deletions

View file

@ -33,38 +33,38 @@ import FormInput from '@/Components/FormInput.vue'; // @/Components/For
// });
export interface IErrorMessage {
[key: string]: Array<string>;
[key: string]: Array<string>;
}
@Component({
options: {
layout: AuthLayout,
},
name: 'RegisterViewComponent',
components: {
NButton,
FormInput,
},
options: {
layout: AuthLayout,
},
name: 'RegisterViewComponent',
components: {
NButton,
FormInput,
},
})
export default class RegisterViewComponent extends Vue {
// Component Property
@Prop({
type: Object,
default: () => ({}),
})
errors: IErrorMessage;
// Component Property
@Prop({
type: Object,
default: () => ({}),
})
errors: IErrorMessage;
// Data Property
form: InertiaForm<any> = useForm({
email: '',
password: '',
});
// Data Property
form: InertiaForm<any> = useForm({
email: '',
password: '',
});
results: Array<any> = [];
results: Array<any> = [];
// Component method
public async submit(): Promise<void> {
// await Inertia.post('/app/register', this.form);
await router.post('/app/register', this.form);
}
// Component method
public async submit(): Promise<void> {
// await Inertia.post('/app/register', this.form);
await router.post('/app/register', this.form);
}
}