💄 (readme) distinguish repo / user with note
This commit is contained in:
@@ -13,14 +13,16 @@
|
|||||||
<div class="home content note-container" v-else>
|
<div class="home content note-container" v-else>
|
||||||
<div class="readme note">
|
<div class="readme note">
|
||||||
<h1 class="title is-1">
|
<h1 class="title is-1">
|
||||||
<router-link
|
[<router-link
|
||||||
:to="{ name: 'Home', params: { user, repo } }"
|
:to="{ name: 'Home', params: { user, repo } }"
|
||||||
:key="routeKey"
|
:key="routeKey"
|
||||||
>
|
>
|
||||||
{{ repo }}
|
{{ repo }} </router-link
|
||||||
</router-link>
|
>]
|
||||||
</h1>
|
</h1>
|
||||||
<h2 class="subtitle is-2">{{ user }}</h2>
|
<h2 class="subtitle is-2">
|
||||||
|
<em>{{ user }}</em>
|
||||||
|
</h2>
|
||||||
<p class="note-display" v-html="readme"></p>
|
<p class="note-display" v-html="readme"></p>
|
||||||
</div>
|
</div>
|
||||||
<stacked-note
|
<stacked-note
|
||||||
@@ -31,7 +33,7 @@
|
|||||||
:user="user"
|
:user="user"
|
||||||
:repo="repo"
|
:repo="repo"
|
||||||
:sha="stackedNote"
|
:sha="stackedNote"
|
||||||
:title="titles[stackedNote]"
|
:title="titles[stackedNote ?? '']"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,7 +64,7 @@ export default defineComponent({
|
|||||||
const refProps = toRefs(props)
|
const refProps = toRefs(props)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...useNote(refProps.user, refProps.repo),
|
...useNote('note-container', refProps.user, refProps.repo),
|
||||||
routeKey: computed(() => `${props.user}-${props.repo}`)
|
routeKey: computed(() => `${props.user}-${props.repo}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user