@@ -3,16 +3,11 @@ import { IconDragDrop, IconHeart } from '@tabler/icons-vue';
33import { useHead } from ' @vueuse/head' ;
44import { computed , nextTick , onMounted , onUnmounted , ref } from ' vue' ;
55import Draggable from ' vuedraggable' ;
6- import VueMarkdown from ' vue-markdown-render' ;
76import ColoredCard from ' ../components/ColoredCard.vue' ;
87import ToolCard from ' ../components/ToolCard.vue' ;
8+ import HomeCustom from ' ./Home.custom.vue' ;
99import { useToolStore } from ' @/tools/tools.store' ;
1010import { config } from ' @/config' ;
11- import { useTheme } from ' ../ui/c-link/c-link.theme' ;
12-
13- const base = import .meta .env .BASE_URL ?? ' /' ;
14-
15- const homeCustomMarkdown = ref (' ' );
1611
1712const { t } = useI18n ();
1813
@@ -55,9 +50,6 @@ useHead({
5550});
5651
5752const favoriteTools = computed (() => toolStore .favoriteTools );
58-
59- const linkTheme = useTheme ();
60-
6153const isOrderingFavorites = ref (false );
6254
6355window .addEventListener (' contextmenu' , (e ) => {
@@ -121,16 +113,6 @@ onMounted(() => {
121113 );
122114 loadingObserver .observe (loadingIndicator );
123115 }
124-
125- fetch (` ${base }home.custom.md ` ).then ((r ) => {
126- if (r .ok ) {
127- r .text ().then ((t ) => {
128- if (t ) {
129- homeCustomMarkdown .value = t ;
130- }
131- });
132- }
133- });
134116 });
135117});
136118
@@ -193,9 +175,9 @@ onUnmounted(() => {
193175 </div >
194176 </div >
195177
196- <div v-if = " homeCustomMarkdown " class = " home-custom-md " >
197- <VueMarkdown :source = " homeCustomMarkdown " />
198- </div >
178+ <Suspense >
179+ <HomeCustom />
180+ </Suspense >
199181
200182 <h3 class =" mb-5px mt-25px font-500 text-neutral-400" >
201183 {{ $t('home.categories.allTools') }}
@@ -249,31 +231,4 @@ onUnmounted(() => {
249231 transform : scale (1.0 );
250232 }
251233}
252-
253- ::v- deep(.home-custom-md ) a {
254- line-height : inherit ;
255- font-family : inherit ;
256- font-size : inherit ;
257- border : none ;
258- cursor : pointer ;
259- text-decoration : none ;
260- font-weight : 400 ;
261- color : v- bind(' linkTheme.default.textColor' );
262- border-radius : 4px ;
263- transition : color cubic-bezier (0.4 , 0 , 0.2 , 1 ) 0.3s ;
264-
265- outline-offset : 1px ;
266-
267- & :hover {
268- color : v- bind(' linkTheme.default.hover.textColor' );
269- }
270-
271- & :active {
272- color : v- bind(' linkTheme.default.textColor' );
273- }
274-
275- & :focus {
276- color : v- bind(' linkTheme.default.outline.color' );
277- }
278- }
279234 </style >
0 commit comments