Skip to content

Commit 38b1735

Browse files
committed
refactor: abstract website information sources and make use of Nuxt layers
1 parent 9cd1a49 commit 38b1735

30 files changed

Lines changed: 131 additions & 199 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import WebsiteLogo from '@repo/vue-ui/assets/brands/NetLogoUserManual.svg';
2+
export { WebsiteLogo };
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import WebsiteLogo from '@repo/vue-ui/assets/brands/NetLogoLearnGuide.svg';
2+
export { WebsiteLogo };

apps/learn/app/components/Articles/ArticleBody.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
:value="article.item"
55
tag="article"
66
class="prose mt-4 prose-medium prose-text-medium"
7-
:components="MDCComponents"
87
v-bind="dProps.contentRenderer"
98
/>
109
<Surround :surround="surround" v-bind="dProps.surround" />
@@ -14,7 +13,6 @@
1413
<script setup lang="ts">
1514
import type { ContentNavigationItem } from '@nuxt/content';
1615
import type { ObjectModel } from '~/data';
17-
import MDCComponents from '../mdc/components';
1816
1917
type Props = {
2018
article: ObjectModel.Article;

apps/learn/app/components/mdc/MDCContainer.vue

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/learn/app/components/mdc/MDCUnstylizedHeading.vue

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/learn/app/components/mdc/components.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/learn/app/composables/usePrimitive.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import WebsiteLogo from "@repo/vue-ui/assets/brands/NetTango-Logo.svg";
2+
export { WebsiteLogo };

packages/nuxt-core/app/components/ClientFooter.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
<script setup lang="ts">
1919
import { WebsiteLogo } from "~/assets/website-logo";
20-
import { useWebsite } from "~/composables/useWebsite";
2120
2221
const meta = useWebsite();
2322
const currentYear = ref(new Date().getFullYear());

packages/nuxt-core/app/layouts/default.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
</template>
1010

1111
<script setup lang="ts">
12-
import { useWebsite } from "~/composables/useWebsite";
13-
1412
const meta = useWebsite();
1513
const pageProductName = meta.value.name;
1614

0 commit comments

Comments
 (0)