File tree 3 files changed +5
-11
lines changed
3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,6 @@ export default defineNuxtConfig({
99
99
type : 'font/woff2' ,
100
100
crossorigin : true ,
101
101
} ,
102
- {
103
- rel : 'preload' ,
104
- href : 'https://cdn-raw.modrinth.com/fonts/inter/Inter-ExtraBold.woff2?v=3.19' ,
105
- as : 'font' ,
106
- type : 'font/woff2' ,
107
- crossorigin : true ,
108
- } ,
109
102
{
110
103
rel : 'icon' ,
111
104
type : 'image/x-icon' ,
Original file line number Diff line number Diff line change 282
282
Report
283
283
</button >
284
284
<button
285
- v-if =" !$ user.value .follows.find((x) => x.id === project.id)"
285
+ v-if =" !user.follows.find((x) => x.id === project.id)"
286
286
class =" iconified-button"
287
287
@click =" userFollowProject(project)"
288
288
>
289
289
<HeartIcon aria-hidden =" true" />
290
290
Follow
291
291
</button >
292
292
<button
293
- v-if =" $ user.value .follows.find((x) => x.id === project.id)"
293
+ v-if =" user.follows.find((x) => x.id === project.id)"
294
294
class =" iconified-button"
295
295
@click =" userUnfollowProject(project)"
296
296
>
@@ -747,6 +747,8 @@ import Breadcrumbs from '~/components/ui/Breadcrumbs.vue'
747
747
const data = useNuxtApp ()
748
748
const route = useRoute ()
749
749
750
+ const user = await useUser ()
751
+
750
752
if (
751
753
! route .params .id ||
752
754
! (
Original file line number Diff line number Diff line change 1
1
export default defineNuxtPlugin ( async ( nuxtApp ) => {
2
2
const authStore = await useAuth ( )
3
- const userStore = await useUser ( true )
3
+ await useUser ( )
4
4
const cosmeticsStore = useCosmetics ( )
5
5
const tagsStore = useTags ( )
6
6
7
7
nuxtApp . provide ( 'auth' , authStore . value )
8
- nuxtApp . provide ( 'user' , userStore )
9
8
nuxtApp . provide ( 'cosmetics' , cosmeticsStore . value )
10
9
nuxtApp . provide ( 'tag' , tagsStore . value )
11
10
nuxtApp . provide ( 'notify' , ( notif ) => addNotification ( notif ) )
You can’t perform that action at this time.
0 commit comments