Skip to content

Commit

Permalink
chore: 加回 loading 、修复聊天 Shift + Enter 换行
Browse files Browse the repository at this point in the history
  • Loading branch information
adams549659584 committed May 15, 2023
1 parent 0854a9c commit 07eb07e
Show file tree
Hide file tree
Showing 14 changed files with 1,365 additions and 1,251 deletions.
16 changes: 16 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,24 @@ tasks:
build_web:
dir: frontend
cmds:
# 修订号,例如 0.0.1
- npm version patch
# - pnpm build
- pnpm install && pnpm build
build_web_minor:
dir: frontend
cmds:
# 次版本号,例如 0.1.0
- npm version minor
# - pnpm build
- pnpm install && pnpm build
build_web_major:
dir: frontend
cmds:
# 主版本号,例如 1.0.0
- npm version major
# - pnpm build
- pnpm install && pnpm build
build_tpl:
label: build-{{.TASK}}
cmds:
Expand Down
2 changes: 1 addition & 1 deletion frontend/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_BASE_API_URL=https://devbing.vcanbb.top
VITE_BASE_API_URL=https://bing.vcanbb.top
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "go-proxy-bingai",
"version": "1.6.3",
"version": "1.6.4",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
110 changes: 55 additions & 55 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions frontend/src/components/ChatPromptStore/ChatPromptItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { usePromptStore, type IPrompt } from '@/stores/modules/prompt';
import { NThing, NTag, NButton, NEllipsis, useMessage } from 'naive-ui';
import { storeToRefs } from 'pinia';
const props = defineProps<{
defineProps<{
index: number;
source: IPrompt;
}>();
Expand All @@ -29,12 +29,12 @@ const showEditPromptPop = (item: IPrompt) => {
<template>
<NThing class="hover:bg-gray-100 cursor-pointer p-5">
<template #description>
<NTag class="max-w-[150px] xl:max-w-[680px] overflow-ellipsis overflow-hidden" type="info"> {{ props.source.act }} </NTag>
<NTag class="max-w-[150px] xl:max-w-[680px] overflow-ellipsis overflow-hidden" type="info"> {{ source.act }} </NTag>
<div class="float-right">
<NButton secondary type="info" size="small" @click="showEditPromptPop(props.source)">编辑</NButton>
<NButton secondary class="ml-2" type="error" size="small" @click="delPrompt(props.source)">删除</NButton>
<NButton secondary type="info" size="small" @click="showEditPromptPop(source)">编辑</NButton>
<NButton secondary class="ml-2" type="error" size="small" @click="delPrompt(source)">删除</NButton>
</div>
</template>
<NEllipsis :tooltip="false" :line-clamp="2">{{ props.source.prompt }}</NEllipsis>
<NEllipsis :tooltip="false" :line-clamp="2">{{ source.prompt }}</NEllipsis>
</NThing>
</template>
Loading

1 comment on commit 07eb07e

@vercel
Copy link

@vercel vercel bot commented on 07eb07e May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.