Skip to content

Commit

Permalink
[#58] remove unnecessary vendors plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Feb 11, 2024
1 parent 50ea194 commit 5193af8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
3 changes: 3 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { defineComponent } from "vue";
import { useNuxtApp } from "#app";
import { LayoutSidebar } from "~/src/widgets/ui";
import { useEvents } from "~/src/shared/lib/use-events";
import SfdumpWrap from "~/src/shared/lib/vendor/dumper";
import { useSettingsStore } from "~/stores/settings";
export default defineComponent({
Expand All @@ -26,6 +27,8 @@ export default defineComponent({
},
async setup() {
SfdumpWrap(window.document);
const settingsStore = useSettingsStore();
const { themeType, isFixedHeader } = storeToRefs(settingsStore);
const { $config, $api } = useNuxtApp();
Expand Down
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default defineNuxtConfig({
css: ["~/assets/index.css"],
plugins: [
{src: '~/plugins/api.client.ts'},
{src: '~/plugins/vendors.client.ts'},
],
modules: [
'@nuxtjs/tailwindcss',
Expand Down
13 changes: 0 additions & 13 deletions plugins/vendors.client.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/shared/ui/preview-card/preview-card.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts" setup generic="T">
// TODO: move useNuxtApp to composition api
// TODO: move component out of shared/ui
import download from "downloadjs";
import { toBlob, toPng } from "html-to-image";
Expand Down

0 comments on commit 5193af8

Please sign in to comment.