调整任务列表样式

This commit is contained in:
GeekMaster
2025-05-27 16:04:30 +08:00
parent 32fc4d86a2
commit a7063bf30a
4 changed files with 3 additions and 21 deletions

View File

@@ -515,7 +515,6 @@ func main() {
group := s.Engine.Group("/api/test")
group.Any("sse", h.PostTest, h.SseTest)
}),
fx.Provide(service.NewWebsocketService),
fx.Provide(handler.NewPromptHandler),
fx.Invoke(func(s *core.AppServer, h *handler.PromptHandler) {
group := s.Engine.Group("/api/prompt")

View File

@@ -16,7 +16,6 @@ import (
"geekai/store"
"geekai/store/model"
"geekai/utils"
"io"
"time"
"github.com/go-redis/redis/v8"
@@ -182,9 +181,6 @@ func (s *Service) Image(task types.DallTask, sync bool) (string, error) {
return "", fmt.Errorf("error with send request, status: %s, %+v", r.Status, errRes.Error)
}
all, _ := io.ReadAll(r.Body)
logger.Debugf("response: %+v", string(all))
// update the api key last use time
s.db.Model(&apiKey).UpdateColumn("last_used_at", time.Now().Unix())
var imgURL string

View File

@@ -1,13 +0,0 @@
package service
import "geekai/core/types"
type WebsocketService struct {
Clients *types.LMap[string, *types.WsClient] // clientId => Client
}
func NewWebsocketService() *WebsocketService {
return &WebsocketService{
Clients: types.NewLMap[string, *types.WsClient](),
}
}

View File

@@ -7,10 +7,10 @@
<el-progress type="circle" :percentage="item.progress" :width="100" color="#47fff1" />
</div>
</div>
<el-image fit="cover" v-else>
<el-image fit="cover" class="w-full h-full" v-else>
<template #error>
<div class="image-slot">
<i class="iconfont icon-quick-start"></i>
<div class="image-slot flex flex-col justify-center items-center w-full h-full">
<i class="iconfont icon-quick-start text-2xl mb-2"></i>
<span>任务正在排队中</span>
</div>
</template>