mogging
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup>
|
||||
import RouterTable from "@/components/quick/RouterTable.vue";
|
||||
import LinkTable from "@/components/quick/LinkTable.vue";
|
||||
import Markdown from "@/components/quick/Markdown.vue";
|
||||
|
||||
const site_links = [
|
||||
{ name: "CV", link: "/cv" },
|
||||
@@ -21,6 +22,7 @@ const social_links = [
|
||||
<div class="flex-col space-between">
|
||||
<div class="flex-col gap">
|
||||
<RouterTable :linkArr="site_links" />
|
||||
<Markdown :source="`[[Wiki Link]]`" />
|
||||
</div>
|
||||
<div class="flex-col gap">
|
||||
<LinkTable :linkArr="social_links" />
|
||||
|
||||
@@ -4,6 +4,7 @@ import axios from "axios";
|
||||
|
||||
const song = ref(null);
|
||||
const fetched = ref(false);
|
||||
const intervalId = ref(null);
|
||||
let songs = [];
|
||||
const len = 3;
|
||||
let idx = 0;
|
||||
@@ -20,14 +21,16 @@ async function fetchRecent() {
|
||||
}
|
||||
|
||||
function nextSong() {
|
||||
clearInterval(intervalId.value);
|
||||
song.value = songs[idx];
|
||||
idx = (idx + 1) % len;
|
||||
intervalId.value = setInterval(nextSong, 5000);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fetchRecent();
|
||||
setInterval(fetchRecent, 120000);
|
||||
setInterval(nextSong, 5000);
|
||||
intervalId.value = setInterval(nextSong, 5000);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<script setup>
|
||||
import MarkdownIt from "markdown-it";
|
||||
import { katex } from "@mdit/plugin-katex";
|
||||
import wiki from "markdown-it-wikilinks";
|
||||
|
||||
const mdIt = MarkdownIt().use(katex);
|
||||
//.use(wiki);
|
||||
|
||||
const props = defineProps({
|
||||
source: String,
|
||||
|
||||
Reference in New Issue
Block a user