feat(cursor): add contributor profile link and improve UI for Cursor account card

- Integrated a tooltip with a button to open the contributor's GitHub profile in the CursorAccountCard component.
- Updated the layout of the account card for better visual organization.
- Removed routing mode options from the configuration view and adjusted related translations in multiple languages.
- Cleaned up unused routing mode logic in the app state management.
This commit is contained in:
leookun
2026-08-02 22:53:57 +08:00
parent 674de0b041
commit a5437e60fe
22 changed files with 293 additions and 753 deletions
+1 -23
View File
@@ -2,20 +2,16 @@
import Button from "@/components/ui/Button.vue";
import Card from "@/components/ui/Card.vue";
import LocaleSelect from "@/components/LocaleSelect.vue";
import Select from "@/components/ui/Select.vue";
import { showModal } from "@/composables/useModal";
import {
appState,
openModelConfigWindow,
persistUserConfig,
reloadUserConfig,
ROUTE_MODE_OPTIONS,
toUserError,
} from "@/state/appState";
import { onMounted } from "vue";
const routeModeOptions = ROUTE_MODE_OPTIONS;
async function showActionError(title, error) {
await showModal({
title,
@@ -55,7 +51,7 @@ onMounted(async () => {
<div>
<h2 class="text-base font-medium text-white">本地配置</h2>
<div class="text-sm text-[#a3a3a3]">
可配置运行模式和模型渠道运行日志位于 <code>~/.cursor-local-assistant-v2/logs/</code>
可配置模型渠道运行日志位于 <code>~/.cursor-local-assistant-v2/logs/</code>
</div>
</div>
<Button variant="primary" :disabled="appState.configSaving" @click="handleSaveConfig">
@@ -64,24 +60,6 @@ onMounted(async () => {
</div>
</Card>
<Card>
<div class="flex items-center justify-between gap-4">
<div>
<h2 class="text-base font-medium text-white">运行模式</h2>
<div class="text-sm text-[#a3a3a3]">
控制白名单主链路请求走本地服务还是回到原始 Cursor 上游地址
</div>
</div>
<div class="w-[220px] max-w-full">
<Select
v-model="appState.routingMode"
:options="routeModeOptions"
placeholder="选择模式"
/>
</div>
</div>
</Card>
<Card>
<div class="flex items-center justify-between gap-4">
<div>