这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clients/ts-sdk/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10964,10 +10964,6 @@
"PublicPageParameters": {
"type": "object",
"properties": {
"accentColor": {
"type": "string",
"nullable": true
},
"allowSwitchingModes": {
"type": "boolean",
"nullable": true
Expand All @@ -10984,6 +10980,10 @@
"type": "string",
"nullable": true
},
"brandColor": {
"type": "string",
"nullable": true
},
"brandLogoImgSrcUrl": {
"type": "string",
"nullable": true
Expand Down
2 changes: 1 addition & 1 deletion clients/ts-sdk/src/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1657,11 +1657,11 @@ export type PublicDatasetOptions = {
};

export type PublicPageParameters = {
accentColor?: (string) | null;
allowSwitchingModes?: (boolean) | null;
analytics?: (boolean) | null;
apiKey?: (string) | null;
baseUrl?: (string) | null;
brandColor?: (string) | null;
brandLogoImgSrcUrl?: (string) | null;
brandName?: (string) | null;
chat?: (boolean) | null;
Expand Down
10 changes: 5 additions & 5 deletions frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const PublicPageSettings = () => {
<div class="grow">
<div class="flex items-center gap-1">
<label class="block" for="">
Accent Color
Brand Color
</label>
<Tooltip
tooltipText="Hex color code for the main accent color in the search component"
Expand All @@ -247,9 +247,9 @@ export const PublicPageSettings = () => {
</div>
<input
placeholder="#CB53EB"
value={extraParams.accentColor || ""}
value={extraParams.brandColor || ""}
onInput={(e) => {
setExtraParams("accentColor", e.currentTarget.value);
setExtraParams("brandColor", e.currentTarget.value);
}}
class="block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6"
/>
Expand Down Expand Up @@ -527,8 +527,8 @@ export const PublicPageSettings = () => {
setExtraParams("defaultSearchMode", option);
}}
class="bg-white py-1"
selected={extraParams.defaultSearchMode || "semantic"}
options={["semantic", "fulltext", "hybrid"]}
selected={extraParams.defaultSearchMode || "search"}
options={["search", "chat"]}
/>
</div>

Expand Down
6 changes: 3 additions & 3 deletions server/src/data/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2738,9 +2738,9 @@ impl DatasetConfigurationDTO {
problem_link: page_parameters_self
.problem_link
.or(page_parameters_curr.problem_link),
accent_color: page_parameters_self
.accent_color
.or(page_parameters_curr.accent_color),
brand_color: page_parameters_self
.brand_color
.or(page_parameters_curr.brand_color),
placeholder: page_parameters_self
.placeholder
.or(page_parameters_curr.placeholder),
Expand Down
2 changes: 1 addition & 1 deletion server/src/handlers/page_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub struct PublicPageParameters {
#[serde(skip_serializing_if = "Option::is_none")]
pub problem_link: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub accent_color: Option<String>,
pub brand_color: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub placeholder: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down
Loading