prune: remove share view as obsolete with new at proto system
This commit is contained in:
@@ -24,12 +24,6 @@ const routes: Array<RouteRecordRaw> = [
|
||||
name: "PublicNoteView",
|
||||
component: () => import("@/views/PublicNoteView.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:user/:repo/share/:note",
|
||||
name: "ShareNotes",
|
||||
props: true,
|
||||
component: () => import("@/views/ShareNotes.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:user/:repo/inbox",
|
||||
name: "FleetingNotes",
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, defineAsyncComponent } from 'vue'
|
||||
|
||||
import { useFile } from '@/hooks/useFile.hook'
|
||||
|
||||
const FluxNote = defineAsyncComponent(() => import('@/components/FluxNote.vue'))
|
||||
|
||||
const props = defineProps<{ user: string; repo: string; note: string }>()
|
||||
|
||||
const note = computed(() => props.note)
|
||||
const { content } = useFile(note)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="share-notes">
|
||||
<article class="message is-primary">
|
||||
<div class="message-body">
|
||||
You can print this page. It contains every stacked notes.
|
||||
</div>
|
||||
</article>
|
||||
<flux-note
|
||||
key="share-notes"
|
||||
class="notes"
|
||||
:user="user"
|
||||
:repo="repo"
|
||||
:content="content"
|
||||
:with-header="false"
|
||||
:parse-content="false"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.share-notes {
|
||||
min-width: 100vw;
|
||||
margin: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
article {
|
||||
margin: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
article {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user