resolve conflict

This commit is contained in:
dakai 2023-04-02 01:29:21 +08:00
commit c0b4c466f6
2 changed files with 33 additions and 17 deletions

View File

@ -1,16 +1,29 @@
# .github/workflows/sync.yml name: Upstream Sync
name: Sync Fork
on: on:
schedule: schedule:
- cron: "0 8 * * *" # 每天0点触发 - cron: '0 */12 * * *' # every 12 hours
workflow_dispatch: # on button click
jobs: jobs:
repo-sync: sync_latest_from_upstream:
runs-on: ubuntu-latest name: Sync latest commits from upstream repo
steps: runs-on: ubuntu-latest
- uses: TG908/fork-sync@v1.1
with: steps:
github_token: ${{ secrets.GITHUB_TOKEN }} # 这个 token action 会默认配置, 这里只需这样写就行 # Step 1: run a standard checkout action, provided by github
owner: Yidadaa # fork 上游项目 owner - name: Checkout target repo
head: main # fork 上游项目需要同步的分支 uses: actions/checkout@v3
base: main # 需要同步到本项目的目标分支
# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
with:
upstream_sync_repo: Yidadaa/ChatGPT-Next-Web
upstream_sync_branch: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
# Set test_mode true to run tests instead of the true action!!
test_mode: false

View File

@ -146,7 +146,7 @@ export function ChatList() {
{sidebarCollapse ? <BotIcon /> : null} {sidebarCollapse ? <BotIcon /> : null}
</div> </div>
<div className={styles["chat-list-collapse"]}> <div className={styles["chat-list"]}>
{sessions.map((item, i) => ( {sessions.map((item, i) => (
<ChatItem <ChatItem
title={item.topic} title={item.topic}
@ -155,7 +155,7 @@ export function ChatList() {
key={i} key={i}
selected={i === selectedIndex} selected={i === selectedIndex}
onClick={() => selectSession(i)} onClick={() => selectSession(i)}
onDelete={() => removeSession(i)} onDelete={() => confirm(Locale.Home.DeleteChat) && removeSession(i)}
/> />
))} ))}
</div> </div>
@ -494,7 +494,10 @@ export function Chat() {
className="markdown-body" className="markdown-body"
style={{ fontSize: `${fontSize}px` }} style={{ fontSize: `${fontSize}px` }}
onContextMenu={(e) => onRightClick(e, message)} onContextMenu={(e) => onRightClick(e, message)}
onDoubleClickCapture={() => setUserInput(message.content)} onDoubleClickCapture={() => {
if (!isMobileScreen()) return;
setUserInput(message.content);
}}
> >
<Markdown content={message.content} /> <Markdown content={message.content} />
</div> </div>
@ -511,7 +514,7 @@ export function Chat() {
</div> </div>
); );
})} })}
<div ref={latestMessageRef} style={{ opacity: 0, height: "4em" }}> <div ref={latestMessageRef} style={{ opacity: 0, height: "1px" }}>
- -
</div> </div>
</div> </div>