Skip to content

Commit

Permalink
v2.18.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Jun 9, 2024
1 parent db38c67 commit 3cec4de
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 功能升级日志

# 计划
# 2.18.5
- 😄 升级:将suno可版本选择 v3 v3.5
- 🐞 修复:suno 生成失败 error 状态

# 2.18.4
- 😄 升级:将suno 升级为3.5版本

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgpt-web-midjourney-proxy",
"version": "2.18.4",
"version": "2.18.5",
"private": false,
"description": "ChatGPT Web Midjourney Proxy",
"author": "Dooy <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "ChatGPT-MJ",
"version": "2.18.4"
"version": "2.18.5"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/api/suno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const FeedTask= async (ids:string[])=>{
mlog('FeedTask',d )
d.forEach( (item:SunoMedia) =>{
sunoS.save( item)
if(item.status== "complete"){
if(item.status== "complete" || item.status== "error" ){
ids= ids.filter(v=>v!=item.id )
}
});
Expand Down
15 changes: 13 additions & 2 deletions src/views/suno/mcInput.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref,computed ,onMounted} from 'vue';
import { NTabs ,NTabPane ,NInput,NSwitch ,NTooltip, NTag ,NButton, useMessage} from "naive-ui";
import { NTabs ,NTabPane ,NInput,NSwitch ,NTooltip, NTag ,NButton, useMessage,NSelect} from "naive-ui";
import { SvgIcon } from '@/components/common';
import { mlog } from '@/api';
import { sunoFetch ,lyricsFetch, randStyle, FeedTask} from '@/api/suno';
Expand All @@ -24,6 +24,11 @@ const cs= ref({
});
const mvOption= [
{label: 'verion: v3.5',value: 'chirp-v3-5'}
,{label:'verion: v3',value: 'chirp-v3-0'}
]
const canPost = computed(() => {
// return true;
if( st.value.isLoading ) return false;
Expand Down Expand Up @@ -125,6 +130,9 @@ const generate= async ()=>{
:placeholder="$t('suno.descpls')" type="textarea" size="small"
:autosize="{ minRows: 3, maxRows: 12 }" />
</div>
<div class="pt-1">
<n-select v-model:value="des.mv" :options="mvOption" size="small" />
</div>
</n-tab-pane>

<n-tab-pane name="custom" :tab="$t('suno.custom')">
Expand Down Expand Up @@ -166,10 +174,13 @@ const generate= async ()=>{
</div>
</div>
<div class="pt-1">
<n-input v-model:value="cs.prompt" :disabled="des.make_instrumental"
<n-input v-model:value="cs.prompt" :disabled="des.make_instrumental"
:placeholder="$t('suno.lypls')" type="textarea" size="small"
:autosize="{ minRows: 3, maxRows: 12 }" />
</div>
<div class="pt-1">
<n-select v-model:value="cs.mv" :options="mvOption" size="small" />
</div>
</n-tab-pane>
</n-tabs>

Expand Down
14 changes: 12 additions & 2 deletions src/views/suno/mcList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import { sunoStore, SunoMedia} from '@/api/sunoStore';
import playui from './playui.vue';
import { homeStore } from '@/store';
import { mlog } from '@/api';
import {NEmpty, NImage } from "naive-ui"
import {NEmpty, NImage ,useMessage} from "naive-ui"
import { FeedTask } from '@/api/suno';
const list= ref<SunoMedia[]>([]);
const csuno= new sunoStore()
const st= ref({playid:''});
const ms = useMessage();
const initLoad=()=>{
let arr = csuno.getObjs();
list.value= arr.reverse()
Expand All @@ -25,8 +27,13 @@ const getNowCls=(v:any)=>{
return [];
}
const goPlay=(v:SunoMedia)=>{
if(v.status=='error'){
ms.info("这首歌生成失败!")
return ;
}
st.value.playid=v.id
homeStore.setMyData({act:'goPlay',actData:v})
if(v.status!='complete'){
FeedTask([v.id ])
}
Expand Down Expand Up @@ -95,7 +102,10 @@ initLoad();
{{$t('suno.noly')}}
</div>
<div class="text-right text-[14px] flex justify-end items-center space-x-2 ">
<div class="text-[10px] flex items-center border-[1px] border-gray-500/30 px-0.5 list-none rounded-md" v-if="item.metadata && item.metadata.duration"> {{item.metadata.duration.toFixed(1)}}s</div>

<div v-if="item.status=='error'" class="text-[8px] flex items-center border-[1px] border-red-500/80 px-1 list-none rounded-md ">失败</div>
<div class="text-[8px] flex items-center border-[1px] border-gray-500/30 px-1 list-none rounded-md" v-if="item.major_model_version"> {{item.major_model_version}}</div>
<div class="text-[8px] flex items-center border-[1px] border-gray-500/30 px-1 list-none rounded-md" v-if="item.metadata && item.metadata.duration"> {{item.metadata.duration.toFixed(1)}}s</div>
<SvgIcon icon="mdi:play-circle-outline" class="cursor-pointer" @click="goPlay( item )" />
<a :href="item.audio_url" download target="_blank"><SvgIcon icon="mdi:download" class="cursor-pointer"/></a>
</div>
Expand Down

0 comments on commit 3cec4de

Please sign in to comment.