forked from boos/BoosAPI
feat(desktop): embed BoosAPI Desktop client as a subproject
Vendor the rebranded BoosAPI Desktop client (Tauri + Vue) into metapi as a monorepo subdirectory under desktop/. Source only — node_modules, dist, Cargo target and the upstream .git history are excluded. desktop/ keeps its own independent Cargo workspace (desktop/src-tauri with crates/*); it is not part of the backend boosapi crate, so a `cargo check` at the metapi root still compiles only the backend. Build the desktop app from desktop/src-tauri per desktop/README.md. Note: app icons are still placeholder assets pending the final BoosAPI logo. The updater signing keys live outside the repo and are not included.
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<script setup lang="ts">
|
||||
import { getCustomNodeComponents } from '../../utils/nodeComponents'
|
||||
import EmojiNode from '../EmojiNode'
|
||||
import EmphasisNode from '../EmphasisNode'
|
||||
import FootnoteReferenceNode from '../FootnoteReferenceNode'
|
||||
import HighlightNode from '../HighlightNode'
|
||||
import HtmlInlineNode from '../HtmlInlineNode'
|
||||
import InlineCodeNode from '../InlineCodeNode'
|
||||
import InsertNode from '../InsertNode'
|
||||
import LinkNode from '../LinkNode'
|
||||
import { MathInlineNodeAsync } from '../NodeRenderer/asyncComponent'
|
||||
import ReferenceNode from '../ReferenceNode'
|
||||
import StrikethroughNode from '../StrikethroughNode'
|
||||
import SubscriptNode from '../SubscriptNode'
|
||||
import SuperscriptNode from '../SuperscriptNode'
|
||||
import TextNode from '../TextNode'
|
||||
|
||||
interface NodeChild {
|
||||
type: string
|
||||
raw: string
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
node: {
|
||||
type: 'strong'
|
||||
children: NodeChild[]
|
||||
raw: string
|
||||
}
|
||||
customId?: string
|
||||
indexKey?: number | string
|
||||
}>()
|
||||
|
||||
const overrides = getCustomNodeComponents(props.customId)
|
||||
|
||||
// Available node components for child rendering; prefer custom overrides
|
||||
const nodeComponents = {
|
||||
text: TextNode,
|
||||
inline_code: InlineCodeNode,
|
||||
link: LinkNode,
|
||||
html_inline: HtmlInlineNode,
|
||||
emphasis: EmphasisNode,
|
||||
strikethrough: StrikethroughNode,
|
||||
highlight: HighlightNode,
|
||||
insert: InsertNode,
|
||||
subscript: SubscriptNode,
|
||||
superscript: SuperscriptNode,
|
||||
emoji: EmojiNode,
|
||||
footnote_reference: FootnoteReferenceNode,
|
||||
math_inline: MathInlineNodeAsync,
|
||||
reference: ReferenceNode,
|
||||
...overrides,
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<strong class="strong-node">
|
||||
<component
|
||||
:is="nodeComponents[child.type]"
|
||||
v-for="(child, index) in node.children"
|
||||
:key="`${indexKey || 'strong'}-${index}`"
|
||||
:index-key="`${indexKey || 'strong'}-${index}`"
|
||||
:node="child"
|
||||
:custom-id="props.customId"
|
||||
/>
|
||||
</strong>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.strong-node {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { App } from 'vue'
|
||||
import StrongNode from './StrongNode.vue'
|
||||
|
||||
StrongNode.install = (app: App) => {
|
||||
app.component(StrongNode.__name as string, StrongNode)
|
||||
}
|
||||
|
||||
export default StrongNode
|
||||
Reference in New Issue
Block a user