Skip to content

Commit

Permalink
chore: ⚡ 优化提示词库描述、内置提示词库数据、避免墙
Browse files Browse the repository at this point in the history
  • Loading branch information
adams549659584 committed May 17, 2023
1 parent 128fbb8 commit c582f63
Show file tree
Hide file tree
Showing 14 changed files with 2,356 additions and 48 deletions.
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.6",
"version": "1.6.7",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
494 changes: 494 additions & 0 deletions frontend/public/data/prompts/prompts-zh-TW.json

Large diffs are not rendered by default.

494 changes: 494 additions & 0 deletions frontend/public/data/prompts/prompts-zh.json

Large diffs are not rendered by default.

164 changes: 164 additions & 0 deletions frontend/public/data/prompts/prompts.csv

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion frontend/src/components/ChatPromptStore/ChatPromptStore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ const downloadPrompt = async (config: IPromptDownloadConfig) => {
:data-component="ChatPromptItem"
:keeps="10"
/>
<NEmpty v-else class="h-[60vh] flex justify-center items-center" description="无数据"> </NEmpty>
<NEmpty v-else class="h-[60vh] flex justify-center items-center" description="暂无数据">
<template #extra>
<NButton secondary type="info" @click="isShowDownloadPop = true">下载提示词</NButton>
</template>
</NEmpty>
</NModal>
<NModal class="w-11/12 xl:w-[600px]" v-model:show="optPromptConfig.isShow" preset="card" :title="optPromptConfig.title">
<NSpace vertical>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/stores/modules/prompt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ export const usePromptStore = defineStore(
{
type: 1,
name: 'ChatGPT 中文调教指南 - 简体',
url: 'https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json',
url: './data/prompts/prompts-zh.json',
refer: 'https://github.com/PlexPt/awesome-chatgpt-prompts-zh',
},
{
type: 1,
name: 'ChatGPT 中文调教指南 - 繁体',
url: 'https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh-TW.json',
url: './data/prompts/prompts-zh-TW.json',
refer: 'https://github.com/PlexPt/awesome-chatgpt-prompts-zh',
},
{
type: 1,
name: 'Awesome ChatGPT Prompts',
url: 'https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv',
url: './data/prompts/prompts.csv',
refer: 'https://github.com/f/awesome-chatgpt-prompts',
},
{
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/chat/components/ChatPrompt/ChatPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ const handlePromptListScroll = () => {
:keeps="10"
@scroll="handlePromptListScroll"
/>
<NEmpty v-else class="bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6" description="暂无提示词数据">
<NEmpty v-else class="bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6" description="暂未设置提示词数据">
<template #extra>
<NButton secondary type="info" @click="isShowPromptSotre = true">去添加</NButton>
<NButton secondary type="info" @click="isShowPromptSotre = true">去提示词库添加</NButton>
</template>
</NEmpty>
</div>
Expand Down

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions web/assets/index-2310121c.js → web/assets/index-cb246388.js

Large diffs are not rendered by default.

494 changes: 494 additions & 0 deletions web/data/prompts/prompts-zh-TW.json

Large diffs are not rendered by default.

494 changes: 494 additions & 0 deletions web/data/prompts/prompts-zh.json

Large diffs are not rendered by default.

164 changes: 164 additions & 0 deletions web/data/prompts/prompts.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<script src="/web/js/bing/chat/global.js"></script>
<script src="/web/js/bing/chat/amd.js"></script>
<script src="/web/js/bing/chat/config.js"></script>
<script type="module" crossorigin src="/web/assets/index-fdef8bee.js"></script>
<script type="module" crossorigin src="/web/assets/index-0b2cc67d.js"></script>
<link rel="stylesheet" href="/web/assets/index-3b84657c.css">
<link rel="manifest" href="/web/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/web/registerSW.js"></script></head>

Expand Down
2 changes: 1 addition & 1 deletion web/sw.js

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

0 comments on commit c582f63

Please sign in to comment.