Fix import statements
Remove unused or unneeded imports and change imports of luxon APIs to use the wrapper.
This commit is contained in:
parent
87525a6ef5
commit
b1053a95ba
14 changed files with 13 additions and 20 deletions
|
@ -41,7 +41,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { DateTime } from 'luxon';
|
||||
import { DateTime } from '~/shared/utils/luxon';
|
||||
|
||||
defineProps<{
|
||||
event: ClientScheduleEvent
|
||||
|
|
|
@ -196,7 +196,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { DateTime, Duration } from 'luxon';
|
||||
import { DateTime, Duration } from '~/shared/utils/luxon';
|
||||
import type { Id } from '~/shared/types/common';
|
||||
import { enumerate, pairs, toId } from '~/shared/utils/functions';
|
||||
|
||||
|
|
|
@ -118,8 +118,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { DateTime } from 'luxon';
|
||||
import type { ApiSchedule, ApiScheduleShift } from '~/shared/types/api';
|
||||
import { DateTime } from '~/shared/utils/luxon';
|
||||
import type { Id } from '~/shared/types/common';
|
||||
import { toId } from '~/shared/utils/functions';
|
||||
|
||||
|
|
|
@ -49,8 +49,6 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
useEventSource();
|
||||
const usersStore = useUsersStore();
|
||||
await usersStore.fetch();
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { DateTime } from "luxon";
|
||||
import { DateTime } from "~/shared/utils/luxon";
|
||||
import type { Id } from "~/shared/types/common";
|
||||
import { pairs, setEquals } from "~/shared/utils/functions";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue