File tree 5 files changed +6
-4
lines changed
5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
<span class =" score" >{{ story.points }}</span >
4
4
<span class =" title" >
5
5
<template v-if =" story .url && ! story .url .startsWith (' item?id=' )" >
6
- <a href =" { story.url} " target =" _blank" rel =" noreferrer" >
6
+ <a : href =" story.url" target =" _blank" rel =" noreferrer" >
7
7
{{ story.title }}
8
8
</a >
9
9
<span class =" host" >{{story.domain}}</span >
Original file line number Diff line number Diff line change 1
1
<template >
2
+
2
3
<Head >
3
4
<Meta charset =" UTF-8" />
4
5
<Meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
5
6
<Meta name =" description" content =" Nuxt Hackernews" />
6
7
<Title >NuxtJs - Hacker News</Title >
8
+ <Link ref =" icon" type =" image/x-icon" href =" /favicon.png" />
7
9
</Head >
8
10
<header class =" header" >
9
11
<nav class =" inner" >
22
24
<a href =" /job" >
23
25
<strong >Jobs</strong >
24
26
</a >
25
- <a class =" github" href =" https://github.com/withastro/astro " target =" _blank" rel =" noreferrer" >
27
+ <a class =" github" href =" https://github.com/nuxt/framework " target =" _blank" rel =" noreferrer" >
26
28
Built with Nuxt JS
27
29
</a >
28
30
</nav >
31
33
</template >
32
34
33
35
<style >
34
- @import " @/assets/css/global.css"
36
+ @import " @/assets/css/global.css" ;
35
37
</style >
Original file line number Diff line number Diff line change 24
24
<script setup lang="ts">
25
25
const route = useRoute ()
26
26
const type = route .params .site [0 ] ?? " top" ;
27
- console .log (type )
28
27
let pageID: string = " 1"
29
28
if (route .query .page ) pageID = route .query .page .toString ()
30
29
const page: number = parseInt (pageID );
Original file line number Diff line number Diff line change 29
29
const route = useRoute ()
30
30
const storyID = route .params .id
31
31
const story = await useGetStory (storyID )
32
+ console .log (story )
32
33
</script >
You can’t perform that action at this time.
0 commit comments