style: format code with prettier

This commit is contained in:
Jason
2026-03-08 21:45:05 +08:00
parent c54515742f
commit fc6f2af4c6
6 changed files with 20 additions and 11 deletions
+2 -3
View File
@@ -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" ||
+4 -1
View File
@@ -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>
)}
+2 -1
View File
@@ -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", {
+6 -3
View File
@@ -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}>
+3 -2
View File
@@ -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: "",
},
},
+3 -1
View File
@@ -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 });
},