-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
167 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "chatgpt-web-midjourney-proxy", | ||
"version": "2.12.2", | ||
"version": "2.12.3", | ||
"private": false, | ||
"description": "ChatGPT Web Midjourney Proxy", | ||
"author": "Dooy <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { NDrawer,NDrawerContent } from "naive-ui"; | ||
import { ref, watch } from "vue"; | ||
import { useBasicLayout } from '@/hooks/useBasicLayout' | ||
import { homeStore } from "@/store"; | ||
import AiGptsCom from "./aiGptsCom.vue"; | ||
const { isMobile } = useBasicLayout() | ||
const st =ref({showImg:false}); | ||
watch(()=>homeStore.myData.act, (n)=>{ | ||
if(n=='showgpts') st.value.showImg=true; | ||
}) | ||
</script> | ||
<template> | ||
<n-drawer v-model:show="st.showImg" :placement="isMobile?'bottom':'right'" :class="isMobile?['!h-[90vh]']: ['!w-[80vw]']" style="--n-body-padding:0"> | ||
<n-drawer-content title="GPT store" closable> | ||
<AiGptsCom @close="st.showImg=false" /> | ||
</n-drawer-content> | ||
</n-drawer> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script setup lang="ts"> | ||
import { myFetch, gptsType } from '@/api'; | ||
import { homeStore,gptConfigStore } from '@/store'; | ||
import { ref } from 'vue'; | ||
import { useMessage } from 'naive-ui'; | ||
const ms = useMessage(); | ||
const emit = defineEmits(['close']); | ||
const gptsList= ref<gptsType[]>([]); | ||
const load= async ()=>{ | ||
const gptUrl= homeStore.myData.session.gptUrl??'https://gpts.ddaiai.com/open/gpts'; | ||
let d = await myFetch(gptUrl); | ||
gptsList.value = d.gpts as gptsType[]; | ||
} | ||
const go= ( item: gptsType)=>{ | ||
gptConfigStore.setMyData({model: `${ item.gid }` ,gpts:item}); | ||
ms.success('切换成功!'); | ||
emit('close') | ||
} | ||
load(); | ||
</script> | ||
<template> | ||
<div class="w-full h-full p-4"> | ||
<div class="grid grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3" v-if="gptsList.length>0"> | ||
<div @click="go(v)" v-for="v in gptsList" class="group relative flex gap-3 rounded-2xl bg-[#e8eaf1] p-5 dark:bg-neutral-600 cursor-pointer "> | ||
|
||
<div class="min-w-0 flex-1"> | ||
<h3 class=" transition text-lg font-semibold"> {{ v.name }}</h3> | ||
<div class="mt-0.5 text-zinc-400 text-md line-clamp-2">{{ v.info }}</div> | ||
</div> | ||
<img class="group-hover:scale-[130%] duration-300 shrink-0 overflow-hidden bg-base object-cover rounded-full bc-avatar w-[80px] h-[80px]" :src="v.logo"/> | ||
</div> | ||
</div> | ||
<div class="h-full flex items-center justify-center" v-else>正在载入...</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import aiSider from "./aiSider.vue" | ||
import aiGpts from "./aiGpts.vue" | ||
|
||
export {aiSider } | ||
export {aiSider,aiGpts } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters