Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 入口屏蔽 #3881

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ function _Chat() {
<div className={styles["chat-input-panel"]}>
<PromptHints prompts={promptHints} onPromptSelect={onPromptSelect} />

<ChatActions
{/* <ChatActions
showPromptModal={() => setShowPromptModal(true)}
scrollToBottom={scrollToBottom}
hitBottom={hitBottom}
Expand All @@ -1280,7 +1280,7 @@ function _Chat() {
setUserInput("/");
onSearch("");
}}
/>
/> */}
<div className={styles["chat-input-panel-inner"]}>
<textarea
ref={inputRef}
Expand Down
18 changes: 9 additions & 9 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,9 @@ export function Settings() {
</ListItem>
</List>

<SyncItems />
{/* <SyncItems /> */}

<List>
{/* <List>
<ListItem
title={Locale.Settings.Mask.Splash.Title}
subTitle={Locale.Settings.Mask.Splash.SubTitle}
Expand Down Expand Up @@ -862,8 +862,8 @@ export function Settings() {
}
></input>
</ListItem>
</List>

</List> */}
{/*
<List>
<ListItem
title={Locale.Settings.Prompt.Disable.Title}
Expand Down Expand Up @@ -894,9 +894,9 @@ export function Settings() {
onClick={() => setShowPromptModal(true)}
/>
</ListItem>
</List>
</List> */}

<List id={SlotID.CustomModel}>
{/* <List id={SlotID.CustomModel}>
{showAccessCode && (
<ListItem
title={Locale.Settings.Access.AccessCode.Title}
Expand Down Expand Up @@ -1165,9 +1165,9 @@ export function Settings() {
}
></input>
</ListItem>
</List>
</List> */}

<List>
{/* <List>
<ModelConfigList
modelConfig={config.modelConfig}
updateConfig={(updater) => {
Expand All @@ -1176,7 +1176,7 @@ export function Settings() {
config.update((config) => (config.modelConfig = modelConfig));
}}
/>
</List>
</List> */}

{shouldShowPromptModal && (
<UserPromptModal onClose={() => setShowPromptModal(false)} />
Expand Down
8 changes: 4 additions & 4 deletions app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function SideBar(props: { className?: string }) {
</div>
</div>

<div className={styles["sidebar-header-bar"]}>
{/* <div className={styles["sidebar-header-bar"]}>
<IconButton
icon={<MaskIcon />}
text={shouldNarrow ? undefined : Locale.Mask.Name}
Expand All @@ -186,7 +186,7 @@ export function SideBar(props: { className?: string }) {
onClick={() => showToast(Locale.WIP)}
shadow
/>
</div>
</div> */}

<div
className={styles["sidebar-body"]}
Expand Down Expand Up @@ -216,11 +216,11 @@ export function SideBar(props: { className?: string }) {
<IconButton icon={<SettingsIcon />} shadow />
</Link>
</div>
<div className={styles["sidebar-action"]}>
{/* <div className={styles["sidebar-action"]}>
<a href={REPO_URL} target="_blank" rel="noopener noreferrer">
<IconButton icon={<GithubIcon />} shadow />
</a>
</div>
</div> */}
</div>
<div>
<IconButton
Expand Down
4 changes: 2 additions & 2 deletions app/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const DEFAULT_CONFIG = {

disablePromptHint: false,

dontShowMaskSplashScreen: false, // dont show splash screen when create chat
hideBuiltinMasks: false, // dont add builtin masks
dontShowMaskSplashScreen: true, // dont show splash screen when create chat
hideBuiltinMasks: true, // dont add builtin masks

customModels: "",
models: DEFAULT_MODELS as any as LLMModel[],
Expand Down
Loading
Loading