mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
refactor: ♻️ Use explicit imports for OverlayScrollbars
This commit is contained in:
parent
0f6e87c275
commit
862839bf34
|
|
@ -16,7 +16,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { OverlayScrollbarsComponent } from "#imports";
|
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
currentlyTyping: string | null;
|
currentlyTyping: string | null;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { Status } from "@versia/client/types";
|
import type { Status } from "@versia/client/types";
|
||||||
import { OverlayScrollbarsComponent } from "#imports";
|
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
||||||
import Note from "../social-elements/notes/note.vue";
|
import Note from "../social-elements/notes/note.vue";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
// slides in and out from the left or right
|
// slides in and out from the left or right
|
||||||
import type { HTMLAttributes } from "vue";
|
import type { HTMLAttributes } from "vue";
|
||||||
import { OverlayScrollbarsComponent } from "#imports";
|
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
||||||
|
|
||||||
interface Props extends /* @vue-ignore */ HTMLAttributes {
|
interface Props extends /* @vue-ignore */ HTMLAttributes {
|
||||||
direction?: "left" | "right";
|
direction?: "left" | "right";
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import Navigation from "~/components/sidebars/navigation.vue";
|
||||||
import AttachmentDialog from "~/components/social-elements/notes/attachment-dialog.vue";
|
import AttachmentDialog from "~/components/social-elements/notes/attachment-dialog.vue";
|
||||||
import Notifications from "~/components/timelines/notifications.vue";
|
import Notifications from "~/components/timelines/notifications.vue";
|
||||||
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
|
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
|
||||||
import { OverlayScrollbarsComponent } from "#imports";
|
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
||||||
const { width } = useWindowSize();
|
const { width } = useWindowSize();
|
||||||
|
|
||||||
const { n } = useMagicKeys();
|
const { n } = useMagicKeys();
|
||||||
|
|
|
||||||
|
|
@ -264,14 +264,6 @@ export default defineNuxtConfig({
|
||||||
onionApiHost: undefined,
|
onionApiHost: undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
imports: {
|
|
||||||
presets: [
|
|
||||||
{
|
|
||||||
from: "overlayscrollbars-vue",
|
|
||||||
imports: ["OverlayScrollbarsComponent"],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
devtools: {
|
devtools: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue