mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
remove jetstream inertia properties; remove unused ApiTokenManager;
This commit is contained in:
committed by
Constantin Graf
parent
56ea0ed90e
commit
bffd0773be
@@ -176,7 +176,6 @@ onBeforeUnmount(() => {
|
||||
});
|
||||
|
||||
const page = usePage<{
|
||||
jetstream: { managesProfilePhotos: boolean };
|
||||
timezones: Record<string, string>;
|
||||
weekdays: Record<string, string>;
|
||||
}>();
|
||||
@@ -192,7 +191,7 @@ const page = usePage<{
|
||||
|
||||
<template #form>
|
||||
<!-- Profile Photo -->
|
||||
<div v-if="page.props.jetstream.managesProfilePhotos" class="col-span-6 sm:col-span-4">
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<input
|
||||
id="photo"
|
||||
ref="photoInput"
|
||||
|
||||
@@ -6,8 +6,6 @@ import SectionBorder from '@/Components/SectionBorder.vue';
|
||||
import TwoFactorAuthenticationForm from '@/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue';
|
||||
import UpdatePasswordForm from '@/Pages/Profile/Partials/UpdatePasswordForm.vue';
|
||||
import UpdateProfileInformationForm from '@/Pages/Profile/Partials/UpdateProfileInformationForm.vue';
|
||||
import { usePage } from '@inertiajs/vue3';
|
||||
import type { User } from '@/types/models';
|
||||
import type { Session } from '@/types/jetstream';
|
||||
import ApiTokensForm from '@/Pages/Profile/Partials/ApiTokensForm.vue';
|
||||
import ThemeForm from '@/Pages/Profile/Partials/ThemeForm.vue';
|
||||
@@ -16,18 +14,6 @@ defineProps<{
|
||||
confirmsTwoFactorAuthentication: boolean;
|
||||
sessions: Session[];
|
||||
}>();
|
||||
|
||||
const page = usePage<{
|
||||
jetstream: {
|
||||
canUpdateProfileInformation: boolean;
|
||||
canUpdatePassword: boolean;
|
||||
canManageTwoFactorAuthentication: boolean;
|
||||
hasAccountDeletionFeatures: boolean;
|
||||
};
|
||||
auth: {
|
||||
user: User;
|
||||
};
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -38,7 +24,7 @@ const page = usePage<{
|
||||
|
||||
<div>
|
||||
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
|
||||
<div v-if="page.props.jetstream.canUpdateProfileInformation">
|
||||
<div>
|
||||
<UpdateProfileInformationForm />
|
||||
|
||||
<SectionBorder />
|
||||
@@ -50,13 +36,13 @@ const page = usePage<{
|
||||
<SectionBorder />
|
||||
</div>
|
||||
|
||||
<div v-if="page.props.jetstream.canUpdatePassword">
|
||||
<div>
|
||||
<UpdatePasswordForm class="mt-10 sm:mt-0" />
|
||||
|
||||
<SectionBorder />
|
||||
</div>
|
||||
|
||||
<div v-if="page.props.jetstream.canManageTwoFactorAuthentication">
|
||||
<div>
|
||||
<TwoFactorAuthenticationForm
|
||||
:requires-confirmation="confirmsTwoFactorAuthentication"
|
||||
class="mt-10 sm:mt-0" />
|
||||
@@ -69,11 +55,9 @@ const page = usePage<{
|
||||
|
||||
<ApiTokensForm></ApiTokensForm>
|
||||
|
||||
<template v-if="page.props.jetstream.hasAccountDeletionFeatures">
|
||||
<SectionBorder />
|
||||
<SectionBorder />
|
||||
|
||||
<DeleteUserForm class="mt-10 sm:mt-0" />
|
||||
</template>
|
||||
<DeleteUserForm class="mt-10 sm:mt-0" />
|
||||
</div>
|
||||
</div>
|
||||
</AppLayout>
|
||||
|
||||
Reference in New Issue
Block a user