Skip to content

Commit c9292b9

Browse files
authored
Merge pull request #96 from datasharingframework/restructuring2.0_fix
Restructuring2.0 fix
2 parents ac697fc + 4aa9417 commit c9292b9

File tree

78 files changed

+2250
-548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2250
-548
lines changed

docs/package-lock.json

Lines changed: 405 additions & 360 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@vuepress/plugin-markdown-tab": "2.0.0-rc.104",
1818
"@vuepress/plugin-slimsearch": "2.0.0-rc.104",
1919
"katex": "^0.16.22",
20+
"sass-embedded": "^1.89.2",
2021
"sass-loader": "16.0.5",
2122
"vue": "3.5.14",
2223
"vuepress": "2.0.0-rc.23",

docs/src/.vuepress/client.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@ import { Layout as ParentLayout } from "vuepress-theme-hope/client";
33

44
import Layout from './layouts/PageLayout.vue'
55
import NotFoundLayout from './layouts/NotFoundLayout.vue'
6+
import BlogLayout from './layouts/BlogLayout.vue';
7+
import NewsList from "./components/NewsList.vue"; // adjust if path differs
8+
69

710
export default defineClientConfig({
11+
enhance({ app }) {
12+
app.component("NewsList", NewsList);
13+
},
814
layouts: {
915
ParentLayout,
1016
Layout,
11-
NotFound: NotFoundLayout
17+
NotFound: NotFoundLayout,
18+
Blog: BlogLayout,
19+
1220
},
1321
})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script setup lang="ts">
2+
</script>
3+
4+
<template>
5+
<section>
6+
<h2>News List</h2>
7+
</section>
8+
</template>

docs/src/.vuepress/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export default defineUserConfig({
2727
description: "",
2828
},
2929
},*/
30-
plugins: [ ],
30+
plugins: [
31+
32+
],
3133

3234
// Enable it with pwa
3335
shouldPrefetch: false,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<script setup lang="ts">
2+
import { Blog } from "vuepress-theme-hope/blog";
3+
import { usePageFrontmatter } from "vuepress/client";
4+
import { computed } from "vue";
5+
6+
const frontmatter = usePageFrontmatter<{ cover?: string }>();
7+
const cover = computed(() => frontmatter.value.cover);
8+
</script>
9+
10+
<template>
11+
<Blog>
12+
<template #articleCover>
13+
<img v-if="cover" :src="cover" alt="Cover image" />
14+
</template>
15+
<template #infoAfter>
16+
<div style="text-align: center; font-size: 0.8em; color: #666; margin-top: 8px;">
17+
Banner image by <a href="https://unsplash.com/de/@fakurian" target="_blank" rel="noopener noreferrer">Milad Fakurian</a> on <a href="https://unsplash.com/" target="_blank" rel="noopener noreferrer">Unsplash</a>
18+
</div>
19+
</template>
20+
</Blog>
21+
</template>

docs/src/.vuepress/layouts/NotFoundLayout.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,21 @@ redirectToParentDirectoryIfInOperations();
2929
3030
});*/
3131
32+
33+
function goBack() {
34+
router.go(-1);
35+
}
36+
37+
function goHome() {
38+
router.push('/');
39+
}
40+
3241
</script>
3342

3443
<template>
3544
<ParentLayout>
3645
<template #default>
37-
<div class="not-found-hint"><p class="error-code">404</p><h1 class="error-title">Page not found</h1><p class="error-hint">That’s a Four-Oh-Four.</p></div><div class="actions"><button type="button" class="action-button">Go back</button><button type="button" class="action-button">Take me home</button></div>
46+
<div class="not-found-hint"><p class="error-code">404</p><h1 class="error-title">Page not found</h1><p class="error-hint">That’s a Four-Oh-Four.</p></div><div class="actions"><button type="button" class="action-button" @click="goBack">Go back</button><button type="button" class="action-button" @click="goHome">Take me home</button></div>
3847
</template>
3948
</ParentLayout>
4049
</template>
270 KB
Loading

0 commit comments

Comments
 (0)