mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
chore: icons border color (#440)
* chore: icons border color * build: publish web 1.1.9
This commit is contained in:
@@ -102,7 +102,6 @@ export const Post = <T>(
|
||||
return new Promise((resolve) => {
|
||||
const appStore = JSON.parse(localStorage.getItem("app-store") || "{}");
|
||||
|
||||
|
||||
let baseURL = appStore.state?.endpoint_http
|
||||
if (!baseURL || baseURL === "undefined") {
|
||||
baseURL = "";
|
||||
|
||||
@@ -207,7 +207,7 @@ export function AssistantList({ assistantIDs = [] }: AssistantListProps) {
|
||||
ref={popoverButtonRef}
|
||||
className="h-6 p-1 px-1.5 flex items-center gap-1 rounded-full bg-white dark:bg-[#202126] text-sm/6 font-semibold text-gray-800 dark:text-[#d8d8d8] border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none"
|
||||
>
|
||||
<div className="w-4 h-4 flex justify-center items-center rounded-full bg-white">
|
||||
<div className="w-4 h-4 flex justify-center items-center rounded-full bg-white border border-[#E6E6E6]">
|
||||
{currentAssistant?._source?.icon?.startsWith("font_") ? (
|
||||
<FontIcon
|
||||
name={currentAssistant._source.icon}
|
||||
@@ -290,16 +290,16 @@ export function AssistantList({ assistantIDs = [] }: AssistantListProps) {
|
||||
<button
|
||||
key={_id}
|
||||
className={clsx(
|
||||
"w-full flex items-center h-[50px] gap-2 rounded-lg p-2 mb-1 hover:bg-[#F3F4F6] dark:hover:bg-[#1F2937] transition",
|
||||
"w-full flex items-center h-[50px] gap-2 rounded-lg p-2 mb-1 hover:bg-[#E6E6E6] dark:hover:bg-[#1F2937] transition",
|
||||
{
|
||||
"bg-[#F3F4F6] dark:bg-[#1F2937]": isActive,
|
||||
"bg-[#E6E6E6] dark:bg-[#1F2937]": isActive,
|
||||
}
|
||||
)}
|
||||
onClick={() => {
|
||||
setCurrentAssistant(assistant);
|
||||
}}
|
||||
>
|
||||
<div className="flex items-center justify-center size-6 bg-white border border-[#F3F4F6] rounded-full overflow-hidden">
|
||||
<div className="flex items-center justify-center size-6 bg-white border border-[#E6E6E6] rounded-full overflow-hidden">
|
||||
{_source?.icon?.startsWith("font_") ? (
|
||||
<FontIcon name={_source?.icon} className="size-4" />
|
||||
) : (
|
||||
|
||||
@@ -153,7 +153,7 @@ export const ChatMessage = memo(function ChatMessage({
|
||||
>
|
||||
<div className="w-full flex items-center gap-1 font-semibold text-sm text-[#333] dark:text-[#d8d8d8]">
|
||||
{isAssistant ? (
|
||||
<div className="w-6 h-6 flex justify-center items-center rounded-full bg-white">
|
||||
<div className="w-6 h-6 flex justify-center items-center rounded-full bg-white border border-[#E6E6E6]">
|
||||
{currentAssistant?._source?.icon?.startsWith("font_") ? (
|
||||
<FontIcon
|
||||
name={currentAssistant._source.icon}
|
||||
|
||||
@@ -159,7 +159,7 @@ const HistoryList: FC<HistoryListProps> = (props) => {
|
||||
ref={listRef}
|
||||
id={id}
|
||||
className={clsx(
|
||||
"flex flex-col h-full overflow-auto px-3 py-2 text-sm bg-[#F3F4F6] dark:bg-[#1F2937] custom-scrollbar"
|
||||
"flex flex-col h-full overflow-auto px-3 py-2 text-sm bg-[#E6E6E6] dark:bg-[#1F2937] custom-scrollbar"
|
||||
)}
|
||||
>
|
||||
<div className="flex gap-1 children:h-8">
|
||||
@@ -185,7 +185,7 @@ const HistoryList: FC<HistoryListProps> = (props) => {
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="size-8 flex items-center justify-center rounded-lg border text-[#0072FF] border-[#E6E6E6] bg-[#F3F4F6] dark:border-[#343D4D] dark:bg-[#1F2937] hover:bg-[#F8F9FA] dark:hover:bg-[#353F4D] cursor-pointer transition"
|
||||
className="size-8 flex items-center justify-center rounded-lg border text-[#0072FF] border-[#E6E6E6] bg-[#E6E6E6] dark:border-[#343D4D] dark:bg-[#1F2937] hover:bg-[#F8F9FA] dark:hover:bg-[#353F4D] cursor-pointer transition"
|
||||
onClick={handleRefresh}
|
||||
>
|
||||
<VisibleKey shortcut="R" onKeyPress={handleRefresh}>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useIconfontScript } from "@/hooks/useScript";
|
||||
|
||||
interface FontIconProps {
|
||||
name: string;
|
||||
className?: string;
|
||||
|
||||
@@ -21,5 +21,12 @@ export default useScript;
|
||||
|
||||
|
||||
export const useIconfontScript = () => {
|
||||
useScript('/assets/fonts/icons/iconfont.js');
|
||||
const appStore = JSON.parse(localStorage.getItem("app-store") || "{}");
|
||||
|
||||
let baseURL = appStore.state?.endpoint_http
|
||||
if (!baseURL || baseURL === "undefined") {
|
||||
baseURL = "";
|
||||
}
|
||||
|
||||
useScript(baseURL + '/assets/fonts/icons/iconfont.js');
|
||||
};
|
||||
|
||||
@@ -4,7 +4,6 @@ import SearchChat from "@/components/SearchChat";
|
||||
import { useAppStore } from "@/stores/appStore";
|
||||
import { useShortcutsStore } from "@/stores/shortcutsStore";
|
||||
import { useIsMobile } from "@/hooks/useIsMobile";
|
||||
import { useModifierKeyPress } from "@/hooks/useModifierKeyPress";
|
||||
|
||||
import "@/i18n";
|
||||
import "@/web.css";
|
||||
@@ -37,7 +36,7 @@ function WebApp({
|
||||
// token = "cva1j5ehpcenic3ir7k0h8fb8qtv35iwtywze248oscrej8yoivhb5b1hyovp24xejjk27jy9ddt69ewfi3n", // https://coco.infini.cloud
|
||||
// token = "cvqt6r02sdb2v3bkgip0x3ixv01f3r2lhnxoz1efbn160wm9og58wtv8t6wrv1ebvnvypuc23dx9pb33aemh", // http://localhost:9000
|
||||
// token = "cv5djeb9om602jdvtnmg6kc1muyn2vcadr6te48j9t9pvt59ewrnwj7fwvxrw3va84j2a0lb5y8194fbr3jd", // http://43.153.113.88:9000
|
||||
serverUrl = "http://localhost:9000",
|
||||
serverUrl = "",
|
||||
hideCoco = () => {},
|
||||
hasModules = ["search", "chat"],
|
||||
defaultModule = "search",
|
||||
|
||||
@@ -67,7 +67,7 @@ export default defineConfig({
|
||||
|
||||
const packageJson = {
|
||||
name: "@infinilabs/search-chat",
|
||||
version: "1.1.7",
|
||||
version: "1.1.9",
|
||||
main: "index.js",
|
||||
module: "index.js",
|
||||
type: "module",
|
||||
|
||||
Reference in New Issue
Block a user