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:
boos
2026-06-22 11:32:57 +08:00
parent d9c78ecc73
commit e0a5f57793
2305 changed files with 449355 additions and 0 deletions
@@ -0,0 +1,83 @@
<script setup lang="ts">
import { computed } from 'vue'
import { customComponentsRevision, getCustomNodeComponents } from '../../utils/nodeComponents'
import ListItemNode from '../ListItemNode'
// 节点子元素类型
interface NodeChild {
type: string
raw: string
[key: string]: unknown
}
// 列表项类型
interface ListItem {
type: 'list_item'
children: NodeChild[]
raw: string
}
const { node, customId, indexKey, typewriter, showTooltips } = defineProps<{
node: {
type: 'list'
ordered: boolean
start?: number
items: ListItem[]
raw: string
}
customId?: string
indexKey?: number | string
typewriter?: boolean
showTooltips?: boolean
}>()
defineEmits(['copy'])
const listItemComponent = computed(() => {
void customComponentsRevision.value
const customComponents = getCustomNodeComponents(customId)
return (customComponents as any).list_item || ListItemNode
})
</script>
<template>
<component
:is="node.ordered ? 'ol' : 'ul'"
class="list-node"
:class="{ 'list-decimal': node.ordered, 'list-disc': !node.ordered }"
>
<component
:is="listItemComponent"
v-for="(item, index) in node.items"
:key="`${indexKey || 'list'}-${index}`"
v-bind="{ showTooltips }"
:node="item"
:custom-id="customId"
:index-key="`${indexKey || 'list'}-${index}`"
:typewriter="typewriter"
:value="node.ordered ? (node.start ?? 1) + index : undefined"
@copy="$emit('copy', $event)"
/>
</component>
</template>
<style scoped>
.list-node {
margin-top: var(--ms-flow-list-y);
margin-bottom: var(--ms-flow-list-y);
padding-left: var(--ms-flow-list-indent);
}
.list-decimal {
list-style-type: decimal;
}
.list-disc {
list-style-type: disc;
}
@media (max-width: 1023px) {
.list-disc {
margin-top: calc(4/3*1em);
margin-bottom: calc(4/3*1em);
padding-left: var(--ms-flow-list-indent-mobile);
}
}
</style>
@@ -0,0 +1,8 @@
import type { App } from 'vue'
import ListNode from './ListNode.vue'
ListNode.install = (app: App) => {
app.component(ListNode.__name as string, ListNode)
}
export default ListNode