Skip to content

Commit 6519dd7

Browse files
committed
v1.8.13
1 parent 63411db commit 6519dd7

5 files changed

Lines changed: 54 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cursor-pool",
33
"private": true,
4-
"version": "1.8.12",
4+
"version": "1.8.13",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cursor-pool"
3-
version = "1.8.12"
3+
version = "1.8.13"
44
description = "Cursor Pool App"
55
authors = ["Cloxl"]
66
edition = "2021"

src/locales/messages.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const messages = {
6969
cursorNetworkError: '网络连接错误, 无法链接cursor服务器',
7070
cursorDataError: 'Cursor服务器返回数据格式异常',
7171
cursorUnknownError: 'Cursor未知错误, 请重启软件',
72+
cursorProUnlimitedTip: 'Cursor最新政策改为Pro以及Pro试用用户可以无限制调用模型',
7273
},
7374
login: {
7475
title: '登录',
@@ -326,6 +327,8 @@ export const messages = {
326327
cursorNetworkError: 'Network connection error, please check your network',
327328
cursorDataError: 'Cursor returned data format abnormal',
328329
cursorUnknownError: 'Cursor unknown error, please restart the software',
330+
cursorProUnlimitedTip:
331+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
329332
},
330333
login: {
331334
title: 'Login',
@@ -591,6 +594,8 @@ export const messages = {
591594
cursorNetworkError: 'ネットワーク接続エラー、ネットワークを確認してください',
592595
cursorDataError: 'Cursorから返されたデータ形式が異常です',
593596
cursorUnknownError: 'Cursor未知のエラー、ソフトウェアを再起動してください',
597+
cursorProUnlimitedTip:
598+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
594599
},
595600
login: {
596601
title: 'ログイン',
@@ -851,6 +856,8 @@ export const messages = {
851856
cursorNetworkError: 'Erreur de connexion réseau, veuillez vérifier votre réseau',
852857
cursorDataError: 'Format de données anormal retourné par Cursor',
853858
cursorUnknownError: 'Erreur inconnue de Cursor, veuillez redémarrer le logiciel',
859+
cursorProUnlimitedTip:
860+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
854861
},
855862
login: {
856863
title: 'Connexion',
@@ -1108,6 +1115,8 @@ export const messages = {
11081115
cursorNetworkError: 'Netzwerkverbindungsfehler, bitte überprüfen Sie Ihr Netzwerk',
11091116
cursorDataError: 'Cursor lieferte abnormales Datenformat zurück',
11101117
cursorUnknownError: 'Cursor unbekannter Fehler, bitte starten Sie die Software neu',
1118+
cursorProUnlimitedTip:
1119+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
11111120
},
11121121
login: {
11131122
title: 'Anmeldung',
@@ -1365,6 +1374,8 @@ export const messages = {
13651374
cursorNetworkError: '네트워크 연결 오류, 네트워크를 확인하세요',
13661375
cursorDataError: 'Cursor가 반환한 데이터 형식이 비정상입니다',
13671376
cursorUnknownError: 'Cursor 알 수 없는 오류, 소프트웨어를 재시작하세요',
1377+
cursorProUnlimitedTip:
1378+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
13681379
},
13691380
login: {
13701381
title: '로그인',
@@ -1619,6 +1630,8 @@ export const messages = {
16191630
cursorNetworkError: 'Ошибка подключения к сети, проверьте вашу сеть',
16201631
cursorDataError: 'Cursor вернул данные в неправильном формате',
16211632
cursorUnknownError: 'Неизвестная ошибка Cursor, перезапустите программу',
1633+
cursorProUnlimitedTip:
1634+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
16221635
},
16231636
login: {
16241637
title: 'Вход',
@@ -1876,6 +1889,8 @@ export const messages = {
18761889
cursorNetworkError: 'Error de conexión de red, compruebe su red',
18771890
cursorDataError: 'Formato de datos anormal devuelto por Cursor',
18781891
cursorUnknownError: 'Error desconocido de Cursor, reinicie el software',
1892+
cursorProUnlimitedTip:
1893+
'Cursor latest policy changed to Pro and Pro trial users can call models unlimited',
18791894
},
18801895
login: {
18811896
title: 'Iniciar sesión',

src/views/DashboardView.vue

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
NDivider,
1212
NModal,
1313
NScrollbar,
14+
NTooltip,
15+
NIcon,
1416
useMessage,
1517
} from 'naive-ui'
1618
import { ref, onMounted, computed, watch } from 'vue'
@@ -29,6 +31,7 @@
2931
checkFullDiskAccessPermission,
3032
requestFullDiskAccessPermission,
3133
} from 'tauri-plugin-macos-permissions-api'
34+
import { HelpCircleOutline } from '@vicons/ionicons5'
3235
import Logger from '@/utils/logger'
3336
3437
interface DeviceInfoState {
@@ -173,6 +176,7 @@
173176
174177
// Cursor高级模型使用量百分比
175178
const cursorGpt4Percentage = computed(() => {
179+
if (isGpt4Unlimited.value) return 100
176180
return cursorStore.gpt4Usage.percentage
177181
})
178182
@@ -183,6 +187,12 @@
183187
return cursorStore.gpt35Usage.percentage
184188
})
185189
190+
// 检查高级模型是否为无限制
191+
const isGpt4Unlimited = computed(() => {
192+
const usage = deviceInfo.value.cursorInfo.usage?.['gpt-4']
193+
return !usage?.maxRequestUsage || usage.maxRequestUsage === 0
194+
})
195+
186196
// 获取用户信息
187197
const fetchUserInfo = async () => {
188198
try {
@@ -1006,7 +1016,28 @@
10061016
class="advanced-model-usage"
10071017
>
10081018
<n-space justify="space-between">
1009-
<span>{{ i18n.dashboard.advancedModelUsage }}</span>
1019+
<n-space
1020+
:size="4"
1021+
align="center"
1022+
>
1023+
<span>{{ i18n.dashboard.advancedModelUsage }}</span>
1024+
<n-tooltip
1025+
v-if="isGpt4Unlimited"
1026+
trigger="hover"
1027+
placement="top"
1028+
style="max-width: 300px"
1029+
>
1030+
<template #trigger>
1031+
<n-icon
1032+
size="16"
1033+
style="color: #999; cursor: help"
1034+
>
1035+
<HelpCircleOutline />
1036+
</n-icon>
1037+
</template>
1038+
{{ i18n.dashboard.cursorProUnlimitedTip }}
1039+
</n-tooltip>
1040+
</n-space>
10101041
<n-space
10111042
v-if="deviceInfo.cursorInfo.usage"
10121043
:size="0"
@@ -1016,7 +1047,10 @@
10161047
:to="deviceInfo.cursorInfo.usage['gpt-4']?.numRequests || 0"
10171048
:duration="1000"
10181049
/>
1019-
<span>/{{ deviceInfo.cursorInfo.usage['gpt-4']?.maxRequestUsage || 0 }}</span>
1050+
<span v-if="isGpt4Unlimited">/{{ i18n.dashboard.unlimited }}</span>
1051+
<span v-else
1052+
>/{{ deviceInfo.cursorInfo.usage['gpt-4']?.maxRequestUsage || 0 }}</span
1053+
>
10201054
</n-space>
10211055
<span v-else>{{ getCursorErrorMessage(deviceInfo.cursorInfo.errorType) }}</span>
10221056
</n-space>

0 commit comments

Comments
 (0)