mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:14:33 +08:00
style: format code with prettier
This commit is contained in:
+2
-3
@@ -238,9 +238,8 @@ function App() {
|
||||
currentView === "openclawEnv" ||
|
||||
currentView === "openclawTools" ||
|
||||
currentView === "openclawAgents");
|
||||
const { data: openclawHealthWarnings = [] } = useOpenClawHealth(
|
||||
isOpenClawView,
|
||||
);
|
||||
const { data: openclawHealthWarnings = [] } =
|
||||
useOpenClawHealth(isOpenClawView);
|
||||
const hasSkillsSupport = true;
|
||||
const hasSessionSupport =
|
||||
activeApp === "claude" ||
|
||||
|
||||
@@ -183,7 +183,10 @@ const UsageFooter: React.FC<UsageFooterProps> = ({
|
||||
|
||||
{/* 扩展字段 extra */}
|
||||
{firstUsage.extra && (
|
||||
<span className="text-gray-500 dark:text-gray-400 truncate max-w-[150px]" title={firstUsage.extra}>
|
||||
<span
|
||||
className="text-gray-500 dark:text-gray-400 truncate max-w-[150px]"
|
||||
title={firstUsage.extra}
|
||||
>
|
||||
{firstUsage.extra}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -55,7 +55,8 @@ const EnvPanel: React.FC = () => {
|
||||
let description = detail || undefined;
|
||||
if (detail === "OPENCLAW_ENV_EMPTY") {
|
||||
description = t("openclaw.env.empty", {
|
||||
defaultValue: "OpenClaw env cannot be empty. Use {} for an empty object.",
|
||||
defaultValue:
|
||||
"OpenClaw env cannot be empty. Use {} for an empty object.",
|
||||
});
|
||||
} else if (detail === "OPENCLAW_ENV_INVALID_JSON") {
|
||||
description = t("openclaw.env.invalidJson", {
|
||||
|
||||
@@ -179,9 +179,12 @@ const ToolsPanel: React.FC = () => {
|
||||
<SelectItem
|
||||
value={OPENCLAW_UNSUPPORTED_PROFILE}
|
||||
disabled={true}
|
||||
>{`${unsupportedProfile} (${t("openclaw.tools.unsupportedProfileLabel", {
|
||||
defaultValue: "unsupported",
|
||||
})})`}</SelectItem>
|
||||
>{`${unsupportedProfile} (${t(
|
||||
"openclaw.tools.unsupportedProfileLabel",
|
||||
{
|
||||
defaultValue: "unsupported",
|
||||
},
|
||||
)})`}</SelectItem>
|
||||
)}
|
||||
{OPENCLAW_TOOL_PROFILES.map((profile) => (
|
||||
<SelectItem key={profile} value={profile}>
|
||||
|
||||
@@ -134,12 +134,13 @@ export const providerPresets: ProviderPreset[] = [
|
||||
icon: "bailian",
|
||||
iconColor: "#624AFF",
|
||||
},
|
||||
{
|
||||
{
|
||||
name: "Bailian For Coding",
|
||||
websiteUrl: "https://bailian.console.aliyun.com",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://coding.dashscope.aliyuncs.com/apps/anthropic",
|
||||
ANTHROPIC_BASE_URL:
|
||||
"https://coding.dashscope.aliyuncs.com/apps/anthropic",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -32,7 +32,9 @@ export const openclawApi = {
|
||||
/**
|
||||
* Set default model configuration (agents.defaults.model)
|
||||
*/
|
||||
async setDefaultModel(model: OpenClawDefaultModel): Promise<OpenClawWriteOutcome> {
|
||||
async setDefaultModel(
|
||||
model: OpenClawDefaultModel,
|
||||
): Promise<OpenClawWriteOutcome> {
|
||||
return await invoke("set_openclaw_default_model", { model });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user