Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .localerc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"basic": {
"source": "playground/node_modules/@fuyeor/locale/src/common.json",
"source": "playground/node_modules/@fuyeor/vue-locale/common.json",
"outDir": "playground/public/static/locale"
},
"main": {
Expand Down
2 changes: 1 addition & 1 deletion package/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@ffm/linkify": "workspace:*",
"@fuyeor/util": "^0.1.3"
"@fuyeor/util": "^0.1.5"
},
"devDependencies": {
"typescript": "^7.0.2",
Expand Down
7 changes: 4 additions & 3 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
"@ffm/parser": "workspace:*",
"@ffm/vue-editor": "workspace:*",
"@ffm/vue-renderer": "workspace:*",
"@fuyeor/commons": "^0.1.4",
"@fuyeor/commons": "^0.1.5",
"@fuyeor/config": "^0.1.3",
"@fuyeor/interactify": "^0.1.3",
"@fuyeor/locale": "^0.1.0",
"@fuyeor/interactify": "^0.1.5",
"@fuyeor/vue-locale": "^0.1.0",
"@fuyeor/vue-router": "^0.1.2",
"@fuyeor/util": "^0.1.5",
"vue": "^3.5.43"
},
"devDependencies": {
Expand Down
13 changes: 13 additions & 0 deletions playground/public/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
--width-main: 700px;
--width-left-sidebar: 350px;
--width-right-sidebar: 450px;
--height-header: 54px;
--height-sticky-header: 54px;
}

:root {
--surface: #fbfbf9;
--surface-top: #fff;
}

:root {
Expand Down Expand Up @@ -67,6 +74,10 @@ body {
overflow: hidden;
}

::-webkit-scrollbar {
display: none;
}

.left-sidebar {
min-width: var(--width-left-sidebar);

Expand Down Expand Up @@ -139,6 +150,8 @@ body {
margin: 20px 0;
border-radius: var(--radius-lg);
overflow: clip;
/* 弥补滚动条 */
padding-right: 10px;
}

.header {
Expand Down
4 changes: 1 addition & 3 deletions playground/src/@app/component/left.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@
<script setup lang="ts">
import DocumentHistory from '@/document/component/history.vue';

import { useLocale } from '@fuyeor/locale';
import { t } from '@fuyeor/vue-locale';
import { getIconUrl } from '@fuyeor/commons';
import { useRoute, useRouter } from '@fuyeor/vue-router';
import { LeftSidebar } from '@fuyeor/interactify';

const route = useRoute();
const router = useRouter();

const { t } = useLocale();
</script>

<style>
Expand Down
40 changes: 16 additions & 24 deletions playground/src/@app/component/right.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,32 @@
<div class="right-sidebar">
<div id="sidebar-wrapper"></div>

<RightFooter>
<template #dynamic-links>
<right-footer>
<template #front-slot>
<a
target="_blank"
class="footer-link ext-link to-front"
class="link-item ext-link"
href="https://www.fuyeor.com/@ffm"
>
Ф
</a>

<span class="footer-separator">/</span>

<a
target="_blank"
class="link-item ext-link"
href="https://github.com/Fuyeor/markdown-parser"
>
GitHub
</a>
<span class="footer-separator to-front">/</span>

<span class="footer-separator">/</span>
</template>
</RightFooter>
</right-footer>
</div>
</template>

<script setup lang="ts">
import { RightFooter } from '@fuyeor/interactify';
</script>

<style>
/* 让 footer-links 成为 flex 容器,order 才能生效 */
.right-sidebar .footer-links {
display: flex;
flex-wrap: wrap;
align-items: center;
}

/* 插槽内容整体排到前面 */
.right-sidebar .footer-links > .to-front {
order: -1;
}

/* 干掉组件里“slot 前”的 / —— 因为槽内容跑到前面后,它会落到视觉末尾 */
.right-sidebar .footer-links > .dropdown-menu-container + .footer-separator {
display: none;
}
</style>
Loading
Loading