mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-18 12:07:02 +08:00
refactor: remove CursorAccountCard component and related localization entries
- Deleted the CursorAccountCard.vue component, which handled user account login and status. - Removed associated localization entries from catalog.json and various language files. - Updated Home.vue to eliminate references to the removed component. - Refactored clientApi.js to remove unused account-related API functions.
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"cursor/gen/agentv1"
|
||||
"cursor/gen/aiserverv1"
|
||||
legacyruntime "cursor/internal/runtime"
|
||||
|
||||
"google.golang.org/protobuf/proto"
|
||||
@@ -54,6 +55,26 @@ func TestEncodeCLIModelsUsesAgentModelDetailsWireFormat(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildServerConfigEnablesDevUserBackendCommands(t *testing.T) {
|
||||
payload, err := buildServerConfigPayload(nil)
|
||||
if err != nil {
|
||||
t.Fatalf("build server config: %v", err)
|
||||
}
|
||||
|
||||
encoded, err := encodeMockProto("aiserver.v1.GetServerConfigResponse", payload)
|
||||
if err != nil {
|
||||
t.Fatalf("encode server config: %v", err)
|
||||
}
|
||||
|
||||
response := &aiserverv1.GetServerConfigResponse{}
|
||||
if err := proto.Unmarshal(encoded, response); err != nil {
|
||||
t.Fatalf("decode server config: %v", err)
|
||||
}
|
||||
if !response.GetIsDevDoNotUseForSecretThingsBecauseCanBeSpoofedByUsers() {
|
||||
t.Fatal("expected server config to enable dev-user backend commands")
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildBootstrapStatsigConfigJSONDisablesAlwaysLocalDecompositionGate(t *testing.T) {
|
||||
payload, err := buildBootstrapStatsigConfigJSON(12345, "test-auth-id")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user