Skip to content

Commit 77ad2dc

Browse files
committed
perf: remove codes
1 parent a9a933b commit 77ad2dc

5 files changed

Lines changed: 3 additions & 400 deletions

File tree

‎ui/lion/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Lion 是 RDP/VNC 远程桌面 connector,结构与 koko 对齐:
44

5-
- `views/` — 独立页面(`/lion/connect`、`/lion/share/:id`、`/lion/monitor`)
5+
- `views/` — 连接、监控与分享视图;分享入口统一为 `/luna/share/:id/?component=lion`
66
- `workspaces/` — 内嵌到 Luna workspace 的 session surface
77
- `shared/connectors/capabilities.ts` — 声明 `web_rdp_native` 连接方式
88
- `shared/connectors/registry.ts` — 解析到 `RemoteSessionSurface.vue`
99

10-
开发代理见根目录 `nuxt.config.ts`:Lion 的 API、Token、Health 和 WebSocket 路径默认转发到 Koko(`JMS_KOKO_DEV_URL`,默认 `localhost:5050`)。`JMS_LION_DEV_URL` 仅作为兼容覆盖保留。页面路径由 Client 自己渲染,不转发给 Koko;API/WS 固定走站点根路径 `/koko/lion/*`(不带 `/luna` 前缀)。
10+
开发代理见根目录 `nuxt.config.ts`:Lion 的 API、Token、Health 和 WebSocket 路径默认转发到 Koko(`JMS_KOKO_DEV_URL`,默认 `localhost:5050`)。`JMS_LION_DEV_URL` 仅作为兼容覆盖保留。页面路径由 Client 自己渲染,不转发给 Koko;Lion 独有的 API/WS 使用 `/koko/lion/*`,分享和监控的 WebSocket 分别使用 `/koko/ws/share/`、`/koko/ws/monitor/`,均不带 `/luna` 前缀。

‎ui/lion/components/SessionShare/index.vue‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
<script lang="ts" setup>
2-
import type { Composer } from "vue-i18n";
32
import { useI18n } from "vue-i18n";
43
import { removeShareUser } from "@/lion/api";
54
import CardContainer from "@/lion/components/CardContainer/index.vue";
6-
import CreateLink from "@/lion/components/SessionShare/widget/CreateLink.vue";
75
import UserItem from "@/lion/components/SessionShare/widget/UserItem.vue";
86
import { createLionConnectTicket } from "@/lion/hooks/useLionConnectTicket";
97
10-
export type TranslateFunction = Composer["t"];
11-
128
const props = defineProps<{
13-
session: string;
149
users?: Array<{
1510
user_id: string;
1611
user: string;
1712
primary: boolean;
1813
writable: boolean;
1914
}>;
20-
disableCreate?: boolean;
2115
endpointUrl?: string;
2216
tokenId?: string;
2317
ticket?: string;
@@ -71,15 +65,5 @@ const handleRemoveShareUser = async (user: any) => {
7165
/>
7266
</div>
7367
</CardContainer>
74-
75-
<CardContainer :title="t('ShareLink')">
76-
<CreateLink
77-
:session="session"
78-
:disabled-create-link="props.disableCreate"
79-
:endpoint-url="props.endpointUrl"
80-
:token-id="props.tokenId"
81-
:ticket="props.ticket"
82-
/>
83-
</CardContainer>
8468
</div>
8569
</template>

0 commit comments

Comments
 (0)