change user to uuid
This commit is contained in:
parent
50cbf94ee5
commit
4c5d132de8
17 changed files with 86 additions and 93 deletions
|
@ -11,53 +11,53 @@
|
|||
<component v-if="markdownComponent" :is="markdownComponent" />
|
||||
<p v-else>Diese Seite existiert nicht.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</MainTemplate>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw} from "vue";
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import 'highlight.js/styles/atom-one-dark.css';
|
||||
import "highlight.js/styles/atom-one-dark.css";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export default defineComponent({
|
||||
props: {
|
||||
page: String
|
||||
page: String,
|
||||
},
|
||||
watch:{
|
||||
watch: {
|
||||
page() {
|
||||
this.loadPage()
|
||||
}
|
||||
this.loadPage();
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
markdownComponent: null,
|
||||
markdownComponent: null as any,
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
this.loadPage()
|
||||
this.loadPage();
|
||||
},
|
||||
methods:{
|
||||
loadPage(){
|
||||
this.markdownComponent = null
|
||||
methods: {
|
||||
loadPage() {
|
||||
this.markdownComponent = null;
|
||||
this.markdownComponent = markRaw(defineAsyncComponent(() => import(`$/${this.page?.toLowerCase()}.md`)));
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.markdown-container {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
color: #555;
|
||||
background-color: #f8f8f8;
|
||||
border: 2px solid gray;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
height: 100%
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.markdown-container h1 {
|
||||
|
@ -84,4 +84,4 @@ export default defineComponent({
|
|||
list-style-type: disc;
|
||||
margin-left: 20px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue