mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-12 08:00:34 +00:00
Compare commits
20
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dada7294dd | ||
|
|
afcb94f6ef | ||
|
|
5a2e430dff | ||
|
|
f2ca4f56e6 | ||
|
|
b6f609aaee | ||
|
|
c960c0137d | ||
|
|
09a901294e | ||
|
|
4d481a8f31 | ||
|
|
f1e0aa3391 | ||
|
|
f475500543 | ||
|
|
8415a1ce28 | ||
|
|
faf4933a02 | ||
|
|
c692a9f5e3 | ||
|
|
e7f0c21715 | ||
|
|
da7e8f1dbf | ||
|
|
486cd5d0ad | ||
|
|
00ce5a7b36 | ||
|
|
c17f055e06 | ||
|
|
f22df4b29c | ||
|
|
b9bab90a14 |
@@ -11,7 +11,7 @@ func (b *BaseApi) LoadVLLMMonitor(c *gin.Context) {
|
|||||||
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
if err := helper.CheckBindAndValidate(&req, c); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data, err := monitorService.LoadVLLMMonitorData(req)
|
data, err := monitorService.LoadVLLMMonitorData(c.Request.Context(), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
helper.InternalServer(c, err)
|
helper.InternalServer(c, err)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ type FirewallBackendFamilyStatus struct {
|
|||||||
Initialized bool `json:"initialized"`
|
Initialized bool `json:"initialized"`
|
||||||
Bound bool `json:"bound"`
|
Bound bool `json:"bound"`
|
||||||
Reason string `json:"reason,omitempty"`
|
Reason string `json:"reason,omitempty"`
|
||||||
ForwardPolicy string `json:"forwardPolicy,omitempty"`
|
|
||||||
RAInterfaces []string `json:"raInterfaces,omitempty"`
|
RAInterfaces []string `json:"raInterfaces,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ type GPUProcess struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MonitorVLLMSearch struct {
|
type MonitorVLLMSearch struct {
|
||||||
|
Group string `json:"group" validate:"omitempty,oneof=overview latency requests"`
|
||||||
AppInstallID uint `json:"appInstallID" validate:"required"`
|
AppInstallID uint `json:"appInstallID" validate:"required"`
|
||||||
StartTime time.Time `json:"startTime" validate:"required"`
|
StartTime time.Time `json:"startTime" validate:"required"`
|
||||||
EndTime time.Time `json:"endTime" validate:"required"`
|
EndTime time.Time `json:"endTime" validate:"required"`
|
||||||
|
|||||||
@@ -85,6 +85,14 @@ type MonitorVLLM struct {
|
|||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
RawMetrics string `json:"-"`
|
RawMetrics string `json:"-"`
|
||||||
HistogramDeltas string `json:"-"`
|
HistogramDeltas string `json:"-"`
|
||||||
|
IntervalSeconds float64 `json:"intervalSeconds" gorm:"-"`
|
||||||
|
RequestDeltas string `json:"-"`
|
||||||
|
QueueTime *float64 `json:"queueTime"`
|
||||||
|
AverageGenerationTokens *float64 `json:"averageGenerationTokens"`
|
||||||
|
PrefixCacheHitRate *float64 `json:"prefixCacheHitRate"`
|
||||||
|
FinishReasons map[string]float64 `json:"finishReasons" gorm:"-"`
|
||||||
|
PromptDistribution map[string]float64 `json:"promptDistribution" gorm:"-"`
|
||||||
|
GenerationDistribution map[string]float64 `json:"generationDistribution" gorm:"-"`
|
||||||
|
|
||||||
Running *float64 `json:"running"`
|
Running *float64 `json:"running"`
|
||||||
Waiting *float64 `json:"waiting"`
|
Waiting *float64 `json:"waiting"`
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -16,7 +17,6 @@ type VLLMMonitorRepo struct{}
|
|||||||
type VLLMHistoryPoint struct {
|
type VLLMHistoryPoint struct {
|
||||||
model.MonitorVLLM
|
model.MonitorVLLM
|
||||||
Bucket int64
|
Bucket int64
|
||||||
HistogramSamples string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *VLLMMonitorRepo) Create(point *model.MonitorVLLM) error {
|
func (r *VLLMMonitorRepo) Create(point *model.MonitorVLLM) error {
|
||||||
@@ -41,16 +41,30 @@ func (r *VLLMMonitorRepo) DeleteBefore(before time.Time) error {
|
|||||||
return global.VLLMMonitorDB.Where("created_at < ?", before).Delete(&model.MonitorVLLM{}).Error
|
return global.VLLMMonitorDB.Where("created_at < ?", before).Delete(&model.MonitorVLLM{}).Error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *VLLMMonitorRepo) Count(id uint, start, end time.Time) (int64, error) {
|
func (r *VLLMMonitorRepo) Count(ctx context.Context, id uint, start, end time.Time) (int64, error) {
|
||||||
var count int64
|
var count int64
|
||||||
db := global.VLLMMonitorDB.Model(&model.MonitorVLLM{}).Where("app_install_id = ? AND created_at >= ? AND created_at <= ?", id, start, end)
|
db := global.VLLMMonitorDB.WithContext(ctx).Model(&model.MonitorVLLM{}).Where("app_install_id = ? AND created_at >= ? AND created_at <= ?", id, start, end)
|
||||||
err := db.Count(&count).Error
|
err := db.Count(&count).Error
|
||||||
return count, err
|
return count, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *VLLMMonitorRepo) History(id uint, start, end time.Time, seconds int64, aggregation string) ([]VLLMHistoryPoint, error) {
|
func (r *VLLMMonitorRepo) History(ctx context.Context, id uint, start, end time.Time, seconds int64, aggregation, group string) ([]VLLMHistoryPoint, error) {
|
||||||
db := global.VLLMMonitorDB.Model(&model.MonitorVLLM{}).Where("app_install_id = ? AND created_at >= ? AND created_at <= ?", id, start, end)
|
db := global.VLLMMonitorDB.WithContext(ctx).Model(&model.MonitorVLLM{}).Where("app_install_id = ? AND created_at >= ? AND created_at <= ?", id, start, end)
|
||||||
metrics := []string{"running", "waiting", "cache_usage", "prompt_throughput", "generation_throughput", "request_throughput", "time_to_first_token", "time_per_output_token", "request_latency", "prefill_time", "decode_time", "time_to_first_token_p50", "time_to_first_token_p90", "time_to_first_token_p95", "time_to_first_token_p99", "time_per_output_token_p50", "time_per_output_token_p90", "time_per_output_token_p95", "time_per_output_token_p99", "request_latency_p50", "request_latency_p90", "request_latency_p95", "request_latency_p99"}
|
var metrics []string
|
||||||
|
if group == "" || group == "overview" {
|
||||||
|
metrics = append(metrics, "running", "waiting", "cache_usage", "prompt_throughput", "generation_throughput", "request_throughput")
|
||||||
|
if seconds <= 0 || aggregation == "max" {
|
||||||
|
metrics = append(metrics, "prefix_cache_hit_rate")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if seconds <= 0 || aggregation == "max" {
|
||||||
|
if group == "" || group == "latency" {
|
||||||
|
metrics = append(metrics, "queue_time", "time_to_first_token", "time_per_output_token", "request_latency", "prefill_time", "decode_time", "time_to_first_token_p50", "time_to_first_token_p90", "time_to_first_token_p95", "time_to_first_token_p99", "time_per_output_token_p50", "time_per_output_token_p90", "time_per_output_token_p95", "time_per_output_token_p99", "request_latency_p50", "request_latency_p90", "request_latency_p95", "request_latency_p99")
|
||||||
|
}
|
||||||
|
if group == "" || group == "requests" {
|
||||||
|
metrics = append(metrics, "average_generation_tokens")
|
||||||
|
}
|
||||||
|
}
|
||||||
var columns []string
|
var columns []string
|
||||||
if seconds > 0 {
|
if seconds > 0 {
|
||||||
operation := "AVG"
|
operation := "AVG"
|
||||||
@@ -59,20 +73,52 @@ func (r *VLLMMonitorRepo) History(id uint, start, end time.Time, seconds int64,
|
|||||||
}
|
}
|
||||||
columns = []string{fmt.Sprintf("(CAST(strftime('%%s', created_at) AS INTEGER) - %d) / %d AS bucket", start.Unix(), seconds)}
|
columns = []string{fmt.Sprintf("(CAST(strftime('%%s', created_at) AS INTEGER) - %d) / %d AS bucket", start.Unix(), seconds)}
|
||||||
for _, column := range metrics {
|
for _, column := range metrics {
|
||||||
if aggregation != "max" && (strings.HasPrefix(column, "time_to_first_token_p") || strings.HasPrefix(column, "time_per_output_token_p") || strings.HasPrefix(column, "request_latency_p")) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
columns = append(columns, operation+"("+column+") AS "+column)
|
columns = append(columns, operation+"("+column+") AS "+column)
|
||||||
}
|
}
|
||||||
if aggregation != "max" {
|
|
||||||
columns = append(columns, "json_group_array(json(NULLIF(histogram_deltas, ''))) AS histogram_samples")
|
|
||||||
}
|
|
||||||
db = db.Group("bucket").Order("bucket ASC")
|
db = db.Group("bucket").Order("bucket ASC")
|
||||||
} else {
|
} else {
|
||||||
columns = append([]string{"id", "created_at", "app_install_id", "status"}, metrics...)
|
columns = append([]string{"id", "created_at", "app_install_id", "status"}, metrics...)
|
||||||
|
if group == "" || group == "requests" {
|
||||||
|
columns = append(columns, "histogram_deltas", "request_deltas")
|
||||||
|
}
|
||||||
db = db.Order("created_at ASC, id ASC")
|
db = db.Order("created_at ASC, id ASC")
|
||||||
}
|
}
|
||||||
var points []VLLMHistoryPoint
|
var points []VLLMHistoryPoint
|
||||||
err := db.Select(strings.Join(columns, ", ")).Scan(&points).Error
|
err := db.Select(strings.Join(columns, ", ")).Scan(&points).Error
|
||||||
return points, err
|
return points, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *VLLMMonitorRepo) WalkDeltas(ctx context.Context, id uint, start, end time.Time, seconds int64, aggregation, group string, visit func(int64, string, string) error) error {
|
||||||
|
histograms, requests := "''", "''"
|
||||||
|
if group == "" || group == "requests" || (group == "latency" && aggregation != "max") {
|
||||||
|
histograms = "COALESCE(histogram_deltas, '')"
|
||||||
|
}
|
||||||
|
if group == "" || group == "requests" || (group == "overview" && aggregation != "max") {
|
||||||
|
requests = "COALESCE(request_deltas, '')"
|
||||||
|
}
|
||||||
|
if histograms == "''" && requests == "''" {
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
bucket := fmt.Sprintf("(CAST(strftime('%%s', created_at) AS INTEGER) - %d) / %d", start.Unix(), seconds)
|
||||||
|
rows, err := global.VLLMMonitorDB.WithContext(ctx).Model(&model.MonitorVLLM{}).
|
||||||
|
Where("app_install_id = ? AND created_at >= ? AND created_at <= ?", id, start, end).
|
||||||
|
Select(bucket + ", " + histograms + ", " + requests).Rows()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer rows.Close()
|
||||||
|
for rows.Next() {
|
||||||
|
if err := ctx.Err(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
var index int64
|
||||||
|
var histograms, requests string
|
||||||
|
if err := rows.Scan(&index, &histograms, &requests); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if err := visit(index, histograms, requests); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rows.Err()
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package repo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/constant"
|
"github.com/1Panel-dev/1Panel/agent/constant"
|
||||||
"github.com/1Panel-dev/1Panel/agent/global"
|
"github.com/1Panel-dev/1Panel/agent/global"
|
||||||
@@ -110,7 +111,9 @@ func (t TaskRepo) Update(ctx context.Context, task *model.Task) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t TaskRepo) UpdateRunningTaskToFailed() error {
|
func (t TaskRepo) UpdateRunningTaskToFailed() error {
|
||||||
return getTaskDb(t.WithByStatus(constant.StatusExecuting)).Model(&model.Task{}).Updates(map[string]interface{}{"status": constant.StatusFailed, "error_msg": "1Panel restart causes failure"}).Error
|
return getTaskDb(t.WithByStatus(constant.StatusExecuting)).Model(&model.Task{}).Updates(map[string]interface{}{
|
||||||
|
"status": constant.StatusFailed, "error_msg": constant.InterruptedMsg, "end_at": time.Now(),
|
||||||
|
}).Error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t TaskRepo) CountExecutingTask() (int64, error) {
|
func (t TaskRepo) CountExecutingTask() (int64, error) {
|
||||||
|
|||||||
@@ -550,6 +550,11 @@ func (a AppService) installWithHooks(req request.AppInstallCreate, executeScript
|
|||||||
|
|
||||||
installTask, err := task.NewTaskWithOps(appInstall.Name, task.TaskInstall, task.TaskScopeApp, req.TaskID, appInstall.ID)
|
installTask, err := task.NewTaskWithOps(appInstall.Name, task.TaskInstall, task.TaskScopeApp, req.TaskID, appInstall.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
appInstall.Status = constant.StatusInstallErr
|
||||||
|
appInstall.Message = err.Error()
|
||||||
|
if saveErr := appInstallRepo.Save(context.Background(), appInstall); saveErr != nil {
|
||||||
|
err = fmt.Errorf("%w; save failed install status: %v", err, saveErr)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -557,7 +562,7 @@ func (a AppService) installWithHooks(req request.AppInstallCreate, executeScript
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
installApp := func(t *task.Task) error {
|
installApp := func(t *task.Task) (err error) {
|
||||||
if err = copyData(t, app, appDetail, appInstall, req); err != nil {
|
if err = copyData(t, app, appDetail, appInstall, req); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -339,6 +339,11 @@ func operateAppWithLifecycleScripts(install model.AppInstall, req request.AppIns
|
|||||||
|
|
||||||
operationTask, err := task.NewTaskWithOps(install.Name, taskType, task.TaskScopeApp, req.TaskID, install.ID)
|
operationTask, err := task.NewTaskWithOps(install.Name, taskType, task.TaskScopeApp, req.TaskID, install.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
install.Status = constant.StatusUpErr
|
||||||
|
install.Message = err.Error()
|
||||||
|
if saveErr := appInstallRepo.Save(context.Background(), &install); saveErr != nil {
|
||||||
|
return fmt.Errorf("%w; save failed operation status: %v", err, saveErr)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
operation := string(req.Operate)
|
operation := string(req.Operate)
|
||||||
@@ -567,11 +572,15 @@ func (a *AppInstallService) SyncAll(systemInit bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for _, i := range allList {
|
for _, i := range allList {
|
||||||
if i.Status == constant.StatusInstalling || i.Status == constant.StatusUpgrading || i.Status == constant.StatusRebuilding || i.Status == constant.StatusUninstalling {
|
if appInstallOperationInterruptedOnRestart(i.Status) {
|
||||||
if systemInit {
|
if systemInit {
|
||||||
i.Status = constant.StatusError
|
i.Status = appInstallOperationFailureStatus(i.Status)
|
||||||
i.Message = "1Panel restart causes the task to terminate"
|
i.Message = constant.InterruptedMsg
|
||||||
_ = appInstallRepo.Save(context.Background(), &i)
|
if err := appInstallRepo.Save(context.Background(), &i); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
} else if err := syncAppInstallStatus(&i, false); err != nil {
|
||||||
|
global.LOG.Errorf("sync install app[%s] error,mgs: %s", i.Name, err.Error())
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -931,10 +940,34 @@ func (a *AppInstallService) GetParams(id uint) (*response.AppConfig, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func syncAppInstallStatus(appInstall *model.AppInstall, force bool) error {
|
func syncAppInstallStatus(appInstall *model.AppInstall, force bool) error {
|
||||||
|
operation := ""
|
||||||
|
switch appInstall.Status {
|
||||||
|
case constant.StatusInstalling:
|
||||||
|
operation = task.TaskInstall
|
||||||
|
case constant.StatusUpgrading:
|
||||||
|
operation = task.TaskUpgrade
|
||||||
|
case constant.StatusRebuilding:
|
||||||
|
operation = task.TaskBuild
|
||||||
|
case constant.StatusUninstalling:
|
||||||
|
operation = task.TaskUninstall
|
||||||
|
case constant.StatusStarting, constant.StatusWaiting:
|
||||||
|
operation = task.TaskUpdate
|
||||||
|
case constant.StatusRestarting:
|
||||||
|
operation = task.TaskRestart
|
||||||
|
}
|
||||||
|
if operation != "" {
|
||||||
|
if err := reconcileAppInstallTaskFailure(appInstall, operation, global.DB, global.TaskDB); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
switch appInstall.Status {
|
switch appInstall.Status {
|
||||||
case constant.StatusInstalling, constant.StatusRebuilding, constant.StatusUpgrading, constant.StatusUninstalling,
|
case constant.StatusInstalling, constant.StatusRebuilding, constant.StatusUpgrading, constant.StatusUninstalling,
|
||||||
constant.StatusStarting, constant.StatusRestarting, constant.StatusWaiting:
|
constant.StatusStarting, constant.StatusRestarting, constant.StatusWaiting:
|
||||||
return nil
|
return nil
|
||||||
|
case constant.StatusInstallErr, constant.StatusUpgradeErr, constant.StatusUpErr:
|
||||||
|
if !force {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cli, err := docker.NewClient()
|
cli, err := docker.NewClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
package service
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/app/model"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/constant"
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
func appInstallOperationFailureStatus(status string) string {
|
||||||
|
switch status {
|
||||||
|
case constant.StatusInstalling:
|
||||||
|
return constant.StatusInstallErr
|
||||||
|
case constant.StatusUpgrading:
|
||||||
|
return constant.StatusUpgradeErr
|
||||||
|
case constant.StatusUninstalling:
|
||||||
|
return constant.StatusError
|
||||||
|
default:
|
||||||
|
return constant.StatusUpErr
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func appInstallOperationPending(status string) bool {
|
||||||
|
switch status {
|
||||||
|
case constant.StatusInstalling, constant.StatusRebuilding, constant.StatusUpgrading, constant.StatusUninstalling,
|
||||||
|
constant.StatusStarting, constant.StatusRestarting, constant.StatusWaiting:
|
||||||
|
return true
|
||||||
|
default:
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func appInstallOperationInterruptedOnRestart(status string) bool {
|
||||||
|
// ReStarting can also describe a container's Docker restart policy.
|
||||||
|
return appInstallOperationPending(status) && status != constant.StatusRestarting
|
||||||
|
}
|
||||||
|
|
||||||
|
func reconcileAppInstallTaskFailure(install *model.AppInstall, operation string, appDB, taskDB *gorm.DB) error {
|
||||||
|
if !appInstallOperationPending(install.Status) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
var operationTask model.Task
|
||||||
|
err := taskDB.Where("type = ? AND resource_id = ? AND operate = ?", "App", install.ID, operation).
|
||||||
|
Order("created_at DESC").First(&operationTask).Error
|
||||||
|
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if operationTask.Status != constant.StatusFailed && operationTask.Status != constant.StatusCanceled {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
// A previous operation must not turn a newly queued retry into a failure.
|
||||||
|
if operationTask.CreatedAt.Before(install.UpdatedAt) &&
|
||||||
|
(operationTask.EndAt.IsZero() || operationTask.EndAt.Before(install.UpdatedAt)) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
message := operationTask.ErrorMsg
|
||||||
|
if message == "" {
|
||||||
|
message = "the application operation task failed"
|
||||||
|
}
|
||||||
|
status := appInstallOperationFailureStatus(install.Status)
|
||||||
|
result := appDB.Model(&model.AppInstall{}).
|
||||||
|
Where("id = ? AND status = ? AND updated_at = ?", install.ID, install.Status, install.UpdatedAt).
|
||||||
|
Updates(map[string]interface{}{"status": status, "message": message})
|
||||||
|
if result.Error != nil {
|
||||||
|
return result.Error
|
||||||
|
}
|
||||||
|
if result.RowsAffected > 0 {
|
||||||
|
install.Status = status
|
||||||
|
install.Message = message
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,147 @@
|
|||||||
|
package service
|
||||||
|
|
||||||
|
import (
|
||||||
|
"path/filepath"
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/app/model"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/constant"
|
||||||
|
"github.com/glebarez/sqlite"
|
||||||
|
"gorm.io/gorm"
|
||||||
|
"gorm.io/gorm/clause"
|
||||||
|
"gorm.io/gorm/logger"
|
||||||
|
)
|
||||||
|
|
||||||
|
func operationStatusTestDB(t *testing.T) (*gorm.DB, *gorm.DB, model.AppInstall) {
|
||||||
|
t.Helper()
|
||||||
|
open := func(name string, schema interface{}) *gorm.DB {
|
||||||
|
db, err := gorm.Open(sqlite.Open(filepath.Join(t.TempDir(), name)), &gorm.Config{
|
||||||
|
Logger: logger.Default.LogMode(logger.Silent),
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := db.AutoMigrate(schema); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
t.Cleanup(func() {
|
||||||
|
sqlDB, _ := db.DB()
|
||||||
|
if sqlDB != nil {
|
||||||
|
_ = sqlDB.Close()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return db
|
||||||
|
}
|
||||||
|
appDB := open("apps.db", &model.AppInstall{})
|
||||||
|
taskDB := open("tasks.db", &model.Task{})
|
||||||
|
install := model.AppInstall{
|
||||||
|
Name: "gb10-ds-vision", AppId: 1, AppDetailId: 1,
|
||||||
|
Version: "nvidia-gb10-dspark-0.1.1", ContainerName: "vllm-dspark-1", ServiceName: "vllm-dspark",
|
||||||
|
Status: constant.StatusStarting, Env: `{"MODEL_DIR":"/models/vision"}`,
|
||||||
|
}
|
||||||
|
if err := appDB.Omit(clause.Associations).Create(&install).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
return appDB, taskDB, install
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAppInstallFailedTaskRecoversPendingState(t *testing.T) {
|
||||||
|
for _, state := range []string{constant.StatusStarting, constant.StatusWaiting, constant.StatusRestarting, constant.StatusInstalling} {
|
||||||
|
t.Run(state, func(t *testing.T) {
|
||||||
|
appDB, taskDB, install := operationStatusTestDB(t)
|
||||||
|
install.Status = state
|
||||||
|
if err := appDB.Omit(clause.Associations).Save(&install).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
task := model.Task{ID: "failed", Type: "App", Operate: "TaskUpdate", ResourceID: install.ID,
|
||||||
|
Status: constant.StatusFailed, ErrorMsg: "model startup script failed", CreatedAt: install.UpdatedAt.Add(time.Second), EndAt: install.UpdatedAt.Add(2 * time.Second)}
|
||||||
|
if err := taskDB.Create(&task).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := reconcileAppInstallTaskFailure(&install, task.Operate, appDB, taskDB); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
want := constant.StatusUpErr
|
||||||
|
if state == constant.StatusInstalling {
|
||||||
|
want = constant.StatusInstallErr
|
||||||
|
}
|
||||||
|
var stored model.AppInstall
|
||||||
|
if err := appDB.First(&stored, install.ID).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if install.Status != want || stored.Status != want || stored.Message != task.ErrorMsg || stored.Env != install.Env {
|
||||||
|
t.Fatalf("recovered state = %s/%s, message %q, env %q", install.Status, stored.Status, stored.Message, stored.Env)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAppInstallPendingStateKeepsActiveAndUnrelatedTasks(t *testing.T) {
|
||||||
|
for _, taskStatus := range []string{constant.StatusExecuting, constant.StatusSuccess, "missing", "previous-failure", "other-resource"} {
|
||||||
|
t.Run(taskStatus, func(t *testing.T) {
|
||||||
|
appDB, taskDB, install := operationStatusTestDB(t)
|
||||||
|
task := model.Task{ID: "task", Type: "App", Operate: "TaskUpdate", ResourceID: install.ID,
|
||||||
|
Status: taskStatus, CreatedAt: install.UpdatedAt.Add(time.Second), EndAt: install.UpdatedAt.Add(2 * time.Second)}
|
||||||
|
if taskStatus == "previous-failure" {
|
||||||
|
task.Status = constant.StatusFailed
|
||||||
|
task.CreatedAt = install.UpdatedAt.Add(-2 * time.Hour)
|
||||||
|
task.EndAt = install.UpdatedAt.Add(-time.Hour)
|
||||||
|
}
|
||||||
|
if taskStatus == "other-resource" {
|
||||||
|
task.Status = constant.StatusFailed
|
||||||
|
task.ResourceID++
|
||||||
|
}
|
||||||
|
if taskStatus != "missing" {
|
||||||
|
if err := taskDB.Create(&task).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if err := reconcileAppInstallTaskFailure(&install, task.Operate, appDB, taskDB); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if install.Status != constant.StatusStarting {
|
||||||
|
t.Fatalf("unrelated or active task changed pending state to %s", install.Status)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAppInstallRecoveryDoesNotOverwriteConcurrentRetry(t *testing.T) {
|
||||||
|
appDB, taskDB, install := operationStatusTestDB(t)
|
||||||
|
task := model.Task{ID: "failed", Type: "App", Operate: "TaskUpdate", ResourceID: install.ID,
|
||||||
|
Status: constant.StatusCanceled, ErrorMsg: "interrupted", CreatedAt: install.UpdatedAt.Add(time.Second), EndAt: install.UpdatedAt.Add(2 * time.Second)}
|
||||||
|
if err := taskDB.Create(&task).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := appDB.Callback().Update().Before("gorm:update").Register("new-operation", func(db *gorm.DB) {
|
||||||
|
if err := db.Exec("UPDATE app_installs SET updated_at = ?, message = ? WHERE id = ?", install.UpdatedAt.Add(time.Hour), "new attempt", install.ID).Error; err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
}); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if err := reconcileAppInstallTaskFailure(&install, task.Operate, appDB, taskDB); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
var stored model.AppInstall
|
||||||
|
if err := appDB.First(&stored, install.ID).Error; err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if stored.Status != constant.StatusStarting || stored.Message != "new attempt" {
|
||||||
|
t.Fatalf("recovery overwrote a newer operation: %s, %s", stored.Status, stored.Message)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAppInstallRestartRecoveryCoversLifecycleStates(t *testing.T) {
|
||||||
|
for _, state := range []string{constant.StatusStarting, constant.StatusWaiting, constant.StatusInstalling} {
|
||||||
|
if !appInstallOperationInterruptedOnRestart(state) {
|
||||||
|
t.Errorf("restart recovery omitted %s", state)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for _, state := range []string{constant.StatusRunning, constant.StatusStopped, constant.StatusRestarting} {
|
||||||
|
if appInstallOperationInterruptedOnRestart(state) {
|
||||||
|
t.Errorf("restart recovery changes a Docker runtime state: %s", state)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1406,9 +1406,8 @@ func handleErr(install model.AppInstall, err error, out string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func doNotNeedSync(installed model.AppInstall) bool {
|
func doNotNeedSync(installed model.AppInstall) bool {
|
||||||
return installed.Status == constant.StatusInstalling || installed.Status == constant.StatusRebuilding || installed.Status == constant.StatusUpgrading ||
|
return appInstallOperationPending(installed.Status) || installed.Status == constant.StatusSyncing ||
|
||||||
installed.Status == constant.StatusSyncing || installed.Status == constant.StatusUninstalling || installed.Status == constant.StatusInstallErr ||
|
installed.Status == constant.StatusInstallErr || installed.Status == constant.StatusUpgradeErr || installed.Status == constant.StatusUpErr
|
||||||
installed.Status == constant.StatusStarting || installed.Status == constant.StatusRestarting || installed.Status == constant.StatusWaiting
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func synAppInstall(containers map[string]container.Summary, appInstall *model.AppInstall, force bool) {
|
func synAppInstall(containers map[string]container.Summary, appInstall *model.AppInstall, force bool) {
|
||||||
@@ -1502,6 +1501,11 @@ func handleInstalled(appInstallList []model.AppInstall, updated, sync, checkUpda
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, installed := range appInstallList {
|
for _, installed := range appInstallList {
|
||||||
|
if sync && appInstallOperationPending(installed.Status) {
|
||||||
|
if err := syncAppInstallStatus(&installed, false); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
if updated && ignoreUpdate(installed) {
|
if updated && ignoreUpdate(installed) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -383,11 +383,6 @@ func (u *ContainerService) Inspect(req dto.InspectReq) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *ContainerService) Prune(req dto.ContainerPrune) error {
|
func (u *ContainerService) Prune(req dto.ContainerPrune) error {
|
||||||
client, err := docker.NewDockerClient()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
defer client.Close()
|
|
||||||
name := ""
|
name := ""
|
||||||
switch req.PruneType {
|
switch req.PruneType {
|
||||||
case "container":
|
case "container":
|
||||||
@@ -408,6 +403,14 @@ func (u *ContainerService) Prune(req dto.ContainerPrune) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
taskItem.AddSubTask(i18n.GetMsgByKey("TaskClean"), func(t *task.Task) error {
|
taskItem.AddSubTask(i18n.GetMsgByKey("TaskClean"), func(t *task.Task) error {
|
||||||
|
if err := t.TaskCtx.Err(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
client, err := docker.NewDockerClient()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer client.Close()
|
||||||
pruneFilters := filters.NewArgs()
|
pruneFilters := filters.NewArgs()
|
||||||
if req.WithTagAll {
|
if req.WithTagAll {
|
||||||
pruneFilters.Add("dangling", "false")
|
pruneFilters.Add("dangling", "false")
|
||||||
@@ -431,10 +434,7 @@ func (u *ContainerService) Prune(req dto.ContainerPrune) error {
|
|||||||
}
|
}
|
||||||
SpaceReclaimed = int(rep.SpaceReclaimed)
|
SpaceReclaimed = int(rep.SpaceReclaimed)
|
||||||
case "network":
|
case "network":
|
||||||
_, err := client.NetworksPrune(context.Background(), pruneFilters)
|
return cleanUnusedNetworks(t, client)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
case "volume":
|
case "volume":
|
||||||
versions, err := client.ServerVersion(context.Background())
|
versions, err := client.ServerVersion(context.Background())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -2,16 +2,24 @@ package service
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/app/dto"
|
"github.com/1Panel-dev/1Panel/agent/app/dto"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/app/task"
|
||||||
"github.com/1Panel-dev/1Panel/agent/buserr"
|
"github.com/1Panel-dev/1Panel/agent/buserr"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/i18n"
|
||||||
"github.com/1Panel-dev/1Panel/agent/utils/docker"
|
"github.com/1Panel-dev/1Panel/agent/utils/docker"
|
||||||
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/api/types/network"
|
"github.com/docker/docker/api/types/network"
|
||||||
|
"github.com/docker/docker/client"
|
||||||
|
"github.com/docker/docker/errdefs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var networkCleanupSlot = make(chan struct{}, 1)
|
||||||
|
|
||||||
func (u *ContainerService) PageNetwork(req dto.SearchWithPage) (int64, interface{}, error) {
|
func (u *ContainerService) PageNetwork(req dto.SearchWithPage) (int64, interface{}, error) {
|
||||||
client, err := docker.NewDockerClient()
|
client, err := docker.NewDockerClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -172,3 +180,114 @@ func (u *ContainerService) CreateNetwork(req dto.NetworkCreate) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func cleanUnusedNetworks(t *task.Task, cli *client.Client) error {
|
||||||
|
ctx := t.TaskCtx
|
||||||
|
select {
|
||||||
|
case networkCleanupSlot <- struct{}{}:
|
||||||
|
defer func() { <-networkCleanupSlot }()
|
||||||
|
case <-ctx.Done():
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
if err := ctx.Err(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
networks, err := cli.NetworkList(ctx, network.ListOptions{})
|
||||||
|
if err != nil {
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
deleted, skipped, failed := 0, 0, 0
|
||||||
|
defer func() {
|
||||||
|
t.Log(i18n.GetMsgWithMap("NetworkCleanupSummary", map[string]interface{}{
|
||||||
|
"deleted": deleted, "skipped": skipped, "failed": failed,
|
||||||
|
}))
|
||||||
|
}()
|
||||||
|
var used map[string]bool
|
||||||
|
sort.Slice(networks, func(i, j int) bool { return networks[i].Name < networks[j].Name })
|
||||||
|
for _, n := range networks {
|
||||||
|
if err := ctx.Err(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
switch n.Name {
|
||||||
|
case "none", "host", "bridge", "1panel-network":
|
||||||
|
skipped++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if n.Scope != "local" || n.Ingress || n.ConfigOnly {
|
||||||
|
skipped++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
values := map[string]interface{}{"name": n.Name, "id": n.ID}
|
||||||
|
if used == nil {
|
||||||
|
containers, err := cli.ContainerList(ctx, container.ListOptions{All: true})
|
||||||
|
if err != nil {
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
used = make(map[string]bool)
|
||||||
|
for _, c := range containers {
|
||||||
|
if c.NetworkSettings == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
for name, endpoint := range c.NetworkSettings.Networks {
|
||||||
|
used[name] = true
|
||||||
|
if endpoint != nil {
|
||||||
|
used[endpoint.NetworkID] = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if used[n.Name] || used[n.ID] {
|
||||||
|
skipped++
|
||||||
|
t.Log(i18n.GetMsgWithMap("NetworkCleanupConnected", values))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
inspected, err := cli.NetworkInspect(ctx, n.ID, network.InspectOptions{})
|
||||||
|
if err != nil {
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
if errdefs.IsNotFound(err) {
|
||||||
|
skipped++
|
||||||
|
} else {
|
||||||
|
failed++
|
||||||
|
t.Logf("Failed to inspect network [%s] (%s): %v", n.Name, n.ID, err)
|
||||||
|
}
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if len(inspected.Containers) > 0 {
|
||||||
|
skipped++
|
||||||
|
t.Log(i18n.GetMsgWithMap("NetworkCleanupConnected", values))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if err := cli.NetworkRemove(ctx, n.ID); err != nil {
|
||||||
|
if ctx.Err() != nil {
|
||||||
|
return ctx.Err()
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case errdefs.IsNotFound(err):
|
||||||
|
skipped++
|
||||||
|
case errdefs.IsConflict(err):
|
||||||
|
skipped++
|
||||||
|
t.Log(i18n.GetMsgWithMap("NetworkCleanupConnected", values))
|
||||||
|
default:
|
||||||
|
failed++
|
||||||
|
t.Logf("Failed to remove network [%s] (%s): %v", n.Name, n.ID, err)
|
||||||
|
}
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
deleted++
|
||||||
|
}
|
||||||
|
if err := ctx.Err(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if failed > 0 {
|
||||||
|
return errors.New(i18n.GetMsgByKey("NetworkCleanupPartialFailure"))
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|||||||
@@ -108,9 +108,7 @@ func (s *FirewallService) LoadBaseInfo(chainGroup string) (dto.FirewallSubsystem
|
|||||||
status.Reason = constant.FirewallBackendNotInstalled
|
status.Reason = constant.FirewallBackendNotInstalled
|
||||||
return status, nil
|
return status, nil
|
||||||
}
|
}
|
||||||
status.IsExist = true
|
return status, err
|
||||||
status.Message = err.Error()
|
|
||||||
return status, nil
|
|
||||||
}
|
}
|
||||||
status.IsExist = true
|
status.IsExist = true
|
||||||
runtimeStatus, err := lifecycle.LoadStatus(client)
|
runtimeStatus, err := lifecycle.LoadStatus(client)
|
||||||
|
|||||||
@@ -1185,15 +1185,17 @@ func loadForwardingFirewallOverview(manager forwarding.Adapter, families []strin
|
|||||||
}
|
}
|
||||||
ipv6, ipv6Err := loadForwardingFamilyInfo(manager, constant.FirewallFamilyIPv6)
|
ipv6, ipv6Err := loadForwardingFamilyInfo(manager, constant.FirewallFamilyIPv6)
|
||||||
if ipv6.Available {
|
if ipv6.Available {
|
||||||
interfaces, err := forwarding.IPv6RAInterfaces(os.ReadFile)
|
interfaces, err := forwarding.IPv6RAInterfaces(os.ReadFile, forwarding.LoadDockerIPv4BridgePorts)
|
||||||
var pathError *os.PathError
|
var pathError *os.PathError
|
||||||
switch {
|
switch {
|
||||||
case errors.As(err, &pathError) && errors.Is(err, os.ErrNotExist) && pathError.Path == "/proc/net/if_inet6":
|
case errors.As(err, &pathError) && errors.Is(err, os.ErrNotExist) && pathError.Path == "/proc/net/if_inet6":
|
||||||
ipv6.Available, ipv6.Initialized, ipv6.Bound = false, false, false
|
ipv6.Available, ipv6.Initialized, ipv6.Bound = false, false, false
|
||||||
case err != nil:
|
case err != nil:
|
||||||
|
global.LOG.Warnf("IPv6 forwarding RA check failed: %v", err)
|
||||||
ipv6.Reason = "ipv6_ra_check_failed"
|
ipv6.Reason = "ipv6_ra_check_failed"
|
||||||
ipv6.Bound = false
|
ipv6.Bound = false
|
||||||
case len(interfaces) > 0:
|
case len(interfaces) > 0:
|
||||||
|
global.LOG.Warnf("IPv6 forwarding RA risk: interfaces %s may depend on RA/SLAAC with accept_ra=1", strings.Join(interfaces, ", "))
|
||||||
ipv6.Reason, ipv6.RAInterfaces = "ipv6_ra_required", interfaces
|
ipv6.Reason, ipv6.RAInterfaces = "ipv6_ra_required", interfaces
|
||||||
ipv6.Bound = false
|
ipv6.Bound = false
|
||||||
case !ipv6.Bound:
|
case !ipv6.Bound:
|
||||||
|
|||||||
@@ -9,13 +9,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/app/dto"
|
"github.com/1Panel-dev/1Panel/agent/app/dto"
|
||||||
"github.com/1Panel-dev/1Panel/agent/app/task"
|
"github.com/1Panel-dev/1Panel/agent/app/task"
|
||||||
"github.com/1Panel-dev/1Panel/agent/constant"
|
"github.com/1Panel-dev/1Panel/agent/constant"
|
||||||
"github.com/1Panel-dev/1Panel/agent/global"
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/utils/cmd"
|
|
||||||
"github.com/1Panel-dev/1Panel/agent/utils/firewall"
|
"github.com/1Panel-dev/1Panel/agent/utils/firewall"
|
||||||
"github.com/1Panel-dev/1Panel/agent/utils/firewall/filter"
|
"github.com/1Panel-dev/1Panel/agent/utils/firewall/filter"
|
||||||
"github.com/1Panel-dev/1Panel/agent/utils/firewall/forwarding"
|
"github.com/1Panel-dev/1Panel/agent/utils/firewall/forwarding"
|
||||||
@@ -82,23 +79,6 @@ func (s *ForwardingService) LoadBaseInfo(ctx context.Context) (dto.FirewallSubsy
|
|||||||
baseInfo.PingStatus = firewall.LoadPingStatus()
|
baseInfo.PingStatus = firewall.LoadPingStatus()
|
||||||
baseInfo.IsInit, baseInfo.IsBind = status.IsInit, status.IsBind
|
baseInfo.IsInit, baseInfo.IsBind = status.IsInit, status.IsBind
|
||||||
baseInfo.IPv4, baseInfo.IPv6 = status.IPv4, status.IPv6
|
baseInfo.IPv4, baseInfo.IPv6 = status.IPv4, status.IPv6
|
||||||
for _, family := range []struct {
|
|
||||||
command string
|
|
||||||
status *dto.FirewallBackendFamilyStatus
|
|
||||||
}{
|
|
||||||
{"iptables", &baseInfo.IPv4},
|
|
||||||
{"ip6tables", &baseInfo.IPv6},
|
|
||||||
} {
|
|
||||||
if family.command == "ip6tables" && !baseInfo.IPv6Enabled {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
policy, err := loadForwardPolicy(ctx, family.command)
|
|
||||||
if err != nil {
|
|
||||||
global.LOG.Warnf("inspect %s FORWARD policy: %v", family.command, err)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
family.status.ForwardPolicy = policy
|
|
||||||
}
|
|
||||||
return baseInfo, nil
|
return baseInfo, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -308,26 +288,3 @@ func (s *ForwardingService) Restore(ctx context.Context) error {
|
|||||||
func NewIForwardingService() IForwardingService {
|
func NewIForwardingService() IForwardingService {
|
||||||
return newForwardingService()
|
return newForwardingService()
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadForwardPolicy(ctx context.Context, command string) (string, error) {
|
|
||||||
if !cmd.Which(command) {
|
|
||||||
command += "-nft"
|
|
||||||
if !cmd.Which(command) {
|
|
||||||
return "", nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output, err := cmd.NewCommandMgr(cmd.WithContext(ctx), cmd.WithTimeout(5*time.Second)).RunWithOptionalSudoAndStdout(command, "-t", "filter", "-w", "2", "-S", "FORWARD")
|
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
for _, line := range strings.Split(output, "\n") {
|
|
||||||
fields := strings.Fields(line)
|
|
||||||
if len(fields) == 3 && fields[0] == "-P" && fields[1] == "FORWARD" {
|
|
||||||
if fields[2] != "ACCEPT" && fields[2] != "DROP" {
|
|
||||||
return "", fmt.Errorf("unexpected FORWARD policy: %s", fields[2])
|
|
||||||
}
|
|
||||||
return fields[2], nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "", errors.New("FORWARD default policy was not found")
|
|
||||||
}
|
|
||||||
|
|||||||
+30
-15
@@ -28,6 +28,7 @@ import (
|
|||||||
"github.com/docker/docker/api/types/container"
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/api/types/image"
|
"github.com/docker/docker/api/types/image"
|
||||||
"github.com/docker/docker/api/types/registry"
|
"github.com/docker/docker/api/types/registry"
|
||||||
|
"github.com/docker/docker/pkg/jsonmessage"
|
||||||
"github.com/moby/go-archive"
|
"github.com/moby/go-archive"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -325,18 +326,16 @@ func (u *ImageService) ImageLoad(req dto.ImageLoad) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
client, err := docker.NewDockerClient()
|
|
||||||
if err != nil {
|
|
||||||
taskItem.Log("Failed to create Docker client: " + err.Error())
|
|
||||||
return
|
|
||||||
}
|
|
||||||
defer client.Close()
|
|
||||||
|
|
||||||
for _, itemPath := range req.Paths {
|
for _, itemPath := range req.Paths {
|
||||||
currentPath := itemPath
|
currentPath := itemPath
|
||||||
itemName := path.Base(currentPath)
|
itemName := path.Base(currentPath)
|
||||||
taskItem.AddSubTask(i18n.GetWithName("TaskImport", itemName), func(t *task.Task) error {
|
taskItem.AddSubTask(i18n.GetWithName("TaskImport", itemName), func(t *task.Task) error {
|
||||||
taskItem.Logf("----------------- %s -----------------", itemName)
|
taskItem.Logf("----------------- %s -----------------", itemName)
|
||||||
|
client, err := docker.NewDockerClient()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
defer client.Close()
|
||||||
file, err := os.Open(currentPath)
|
file, err := os.Open(currentPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -347,14 +346,7 @@ func (u *ImageService) ImageLoad(req dto.ImageLoad) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer res.Body.Close()
|
defer res.Body.Close()
|
||||||
content, err := io.ReadAll(res.Body)
|
return consumeImageLoadResponse(res.Body, taskItem.Log)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if strings.Contains(string(content), "Error") {
|
|
||||||
return errors.New(string(content))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}, nil)
|
}, nil)
|
||||||
}
|
}
|
||||||
_ = taskItem.Execute()
|
_ = taskItem.Execute()
|
||||||
@@ -362,6 +354,29 @@ func (u *ImageService) ImageLoad(req dto.ImageLoad) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Docker may report load failures in a successful HTTP response's JSON stream.
|
||||||
|
func consumeImageLoadResponse(reader io.Reader, log func(string)) error {
|
||||||
|
decoder := json.NewDecoder(reader)
|
||||||
|
for {
|
||||||
|
var message jsonmessage.JSONMessage
|
||||||
|
if err := decoder.Decode(&message); err != nil {
|
||||||
|
if errors.Is(err, io.EOF) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if message.Error != nil && message.Error.Message != "" {
|
||||||
|
return message.Error
|
||||||
|
}
|
||||||
|
if message.ErrorMessage != "" {
|
||||||
|
return errors.New(message.ErrorMessage)
|
||||||
|
}
|
||||||
|
if text := strings.TrimSpace(message.Stream); text != "" {
|
||||||
|
log(text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (u *ImageService) ImageSave(req dto.ImageSave) error {
|
func (u *ImageService) ImageSave(req dto.ImageSave) error {
|
||||||
taskItem, err := task.NewTaskWithOps(req.Name, task.TaskExport, task.TaskScopeImage, req.TaskID, 1)
|
taskItem, err := task.NewTaskWithOps(req.Name, task.TaskExport, task.TaskScopeImage, req.TaskID, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ type IMonitorService interface {
|
|||||||
|
|
||||||
LoadIOOptions() []string
|
LoadIOOptions() []string
|
||||||
LoadNetworkOptions() []string
|
LoadNetworkOptions() []string
|
||||||
LoadVLLMMonitorData(req dto.MonitorVLLMSearch) (dto.MonitorVLLMData, error)
|
LoadVLLMMonitorData(ctx context.Context, req dto.MonitorVLLMSearch) (dto.MonitorVLLMData, error)
|
||||||
LoadVLLMCurrent(ctx context.Context, req dto.MonitorVLLMCurrent) (model.MonitorVLLM, error)
|
LoadVLLMCurrent(ctx context.Context, req dto.MonitorVLLMCurrent) (model.MonitorVLLM, error)
|
||||||
CleanVLLMMonitor(req dto.MonitorVLLMClean) error
|
CleanVLLMMonitor(req dto.MonitorVLLMClean) error
|
||||||
LoadGPUOptions() dto.MonitorGPUOptions
|
LoadGPUOptions() dto.MonitorGPUOptions
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ var vllmMetricsClient = &http.Client{
|
|||||||
CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse },
|
CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse },
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MonitorService) LoadVLLMMonitorData(req dto.MonitorVLLMSearch) (dto.MonitorVLLMData, error) {
|
func (m *MonitorService) LoadVLLMMonitorData(ctx context.Context, req dto.MonitorVLLMSearch) (dto.MonitorVLLMData, error) {
|
||||||
data := dto.MonitorVLLMData{Points: []model.MonitorVLLM{}}
|
data := dto.MonitorVLLMData{Points: []model.MonitorVLLM{}}
|
||||||
if !req.EndTime.After(req.StartTime) {
|
if !req.EndTime.After(req.StartTime) {
|
||||||
return data, fmt.Errorf("invalid vLLM history request")
|
return data, fmt.Errorf("invalid vLLM history request")
|
||||||
}
|
}
|
||||||
install, err := appInstallRepo.GetFirst(repo.WithByID(req.AppInstallID))
|
install, err := appInstallRepo.GetFirstByCtx(ctx, repo.WithByID(req.AppInstallID))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return data, err
|
return data, err
|
||||||
}
|
}
|
||||||
@@ -49,23 +49,31 @@ func (m *MonitorService) LoadVLLMMonitorData(req dto.MonitorVLLMSearch) (dto.Mon
|
|||||||
return data, err
|
return data, err
|
||||||
}
|
}
|
||||||
req.StartTime, req.EndTime = req.StartTime.In(loc), req.EndTime.In(loc)
|
req.StartTime, req.EndTime = req.StartTime.In(loc), req.EndTime.In(loc)
|
||||||
data.SampleCount, err = vllmMonitorRepo.Count(req.AppInstallID, req.StartTime, req.EndTime)
|
data.SampleCount, err = vllmMonitorRepo.Count(ctx, req.AppInstallID, req.StartTime, req.EndTime)
|
||||||
if err != nil || data.SampleCount == 0 {
|
if err != nil || data.SampleCount == 0 {
|
||||||
return data, err
|
return data, err
|
||||||
}
|
}
|
||||||
if data.SampleCount > 1200 {
|
if data.SampleCount > 1200 {
|
||||||
data.BucketSeconds = (req.EndTime.Unix() - req.StartTime.Unix() + 600) / 600
|
data.BucketSeconds = (req.EndTime.Unix() - req.StartTime.Unix() + 600) / 600
|
||||||
}
|
}
|
||||||
points, err := vllmMonitorRepo.History(req.AppInstallID, req.StartTime, req.EndTime, data.BucketSeconds, req.Aggregation)
|
points, err := vllmMonitorRepo.History(ctx, req.AppInstallID, req.StartTime, req.EndTime, data.BucketSeconds, req.Aggregation, req.Group)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return data, err
|
return data, err
|
||||||
}
|
}
|
||||||
if data.BucketSeconds > 0 {
|
if data.BucketSeconds > 0 {
|
||||||
if req.Aggregation != "max" {
|
aggregates := map[int64]*vllm.HistoryAccumulator{}
|
||||||
for i := range points {
|
err = vllmMonitorRepo.WalkDeltas(ctx, req.AppInstallID, req.StartTime, req.EndTime, data.BucketSeconds, req.Aggregation, req.Group, func(bucket int64, histograms, requests string) error {
|
||||||
if err := vllm.AggregateHistograms(points[i].HistogramSamples, &points[i].MonitorVLLM); err != nil {
|
if aggregates[bucket] == nil {
|
||||||
|
aggregates[bucket] = &vllm.HistoryAccumulator{}
|
||||||
|
}
|
||||||
|
return aggregates[bucket].Add(histograms, requests, req.Aggregation, req.Group)
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
return data, err
|
return data, err
|
||||||
}
|
}
|
||||||
|
for i := range points {
|
||||||
|
if aggregate := aggregates[points[i].Bucket]; aggregate != nil {
|
||||||
|
aggregate.Apply(&points[i].MonitorVLLM, req.Aggregation)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
next := 0
|
next := 0
|
||||||
@@ -93,6 +101,14 @@ func (m *MonitorService) LoadVLLMMonitorData(req dto.MonitorVLLMSearch) (dto.Mon
|
|||||||
}
|
}
|
||||||
interval := time.Duration(intervalSeconds) * time.Second
|
interval := time.Duration(intervalSeconds) * time.Second
|
||||||
for i, point := range points {
|
for i, point := range points {
|
||||||
|
if err := ctx.Err(); err != nil {
|
||||||
|
return data, err
|
||||||
|
}
|
||||||
|
var aggregate vllm.HistoryAccumulator
|
||||||
|
if err := aggregate.Add(point.HistogramDeltas, point.RequestDeltas, "max", req.Group); err != nil {
|
||||||
|
return data, err
|
||||||
|
}
|
||||||
|
aggregate.Apply(&point.MonitorVLLM, "max")
|
||||||
if i > 0 && point.CreatedAt.Sub(points[i-1].CreatedAt) > 2*interval {
|
if i > 0 && point.CreatedAt.Sub(points[i-1].CreatedAt) > 2*interval {
|
||||||
data.Points = append(data.Points, model.MonitorVLLM{CreatedAt: points[i-1].CreatedAt.Add(interval), AppInstallID: req.AppInstallID})
|
data.Points = append(data.Points, model.MonitorVLLM{CreatedAt: points[i-1].CreatedAt.Add(interval), AppInstallID: req.AppInstallID})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,10 @@ func (u *TaskLogService) ReadByLine(req request.TaskLogReadReq) (*response.FileL
|
|||||||
if req.TaskID != "" {
|
if req.TaskID != "" {
|
||||||
opts = append(opts, taskRepo.WithByID(req.TaskID))
|
opts = append(opts, taskRepo.WithByID(req.TaskID))
|
||||||
} else {
|
} else {
|
||||||
opts = append(opts, repo.WithOrderRuleBy("created_at", "desc"), repo.WithByType(req.TaskType), taskRepo.WithOperate(req.TaskOperate), taskRepo.WithResourceID(req.ResourceID))
|
opts = append(opts, repo.WithOrderRuleBy("created_at", "desc"), repo.WithByType(req.TaskType), taskRepo.WithResourceID(req.ResourceID))
|
||||||
|
if req.TaskOperate != "" {
|
||||||
|
opts = append(opts, taskRepo.WithOperate(req.TaskOperate))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
taskModel, err := taskRepo.GetFirst(opts...)
|
taskModel, err := taskRepo.GetFirst(opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -258,7 +258,15 @@ func (s *SubTask) Execute() error {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
s.RootTask.Log(i18n.GetWithName("TaskTimeout", subTaskName))
|
s.RootTask.Log(i18n.GetWithName("TaskTimeout", subTaskName))
|
||||||
err = errors.New("timeout!")
|
err = errors.New("timeout!")
|
||||||
|
if s.RootTask.Task.Type == TaskScopeVm {
|
||||||
|
<-done
|
||||||
|
}
|
||||||
case err = <-done:
|
case err = <-done:
|
||||||
|
if s.RootTask.Task.Type == TaskScopeVm && ctx.Err() != nil {
|
||||||
|
s.RootTask.Log(i18n.GetWithName("TaskTimeout", subTaskName))
|
||||||
|
err = errors.New("timeout!")
|
||||||
|
break
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.RootTask.Log(i18n.GetWithNameAndErr("SubTaskFailed", subTaskName, err))
|
s.RootTask.Log(i18n.GetWithNameAndErr("SubTaskFailed", subTaskName, err))
|
||||||
if err.Error() == i18n.GetMsgByKey("ErrShutDown") {
|
if err.Error() == i18n.GetMsgByKey("ErrShutDown") {
|
||||||
|
|||||||
+7
-7
@@ -8,7 +8,7 @@ require (
|
|||||||
github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible
|
github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible
|
||||||
github.com/compose-spec/compose-go/v2 v2.15.0
|
github.com/compose-spec/compose-go/v2 v2.15.0
|
||||||
github.com/creack/pty v1.1.24
|
github.com/creack/pty v1.1.24
|
||||||
github.com/docker/cli v29.7.2+incompatible
|
github.com/docker/cli v29.8.1+incompatible
|
||||||
github.com/docker/docker v28.5.2+incompatible
|
github.com/docker/docker v28.5.2+incompatible
|
||||||
github.com/docker/go-connections v0.8.1
|
github.com/docker/go-connections v0.8.1
|
||||||
github.com/fsnotify/fsnotify v1.10.1
|
github.com/fsnotify/fsnotify v1.10.1
|
||||||
@@ -40,7 +40,7 @@ require (
|
|||||||
github.com/pkg/sftp v1.13.11
|
github.com/pkg/sftp v1.13.11
|
||||||
github.com/qiniu/go-sdk/v7 v7.27.0
|
github.com/qiniu/go-sdk/v7 v7.27.0
|
||||||
github.com/robfig/cron/v3 v3.0.1
|
github.com/robfig/cron/v3 v3.0.1
|
||||||
github.com/shirou/gopsutil/v4 v4.26.7
|
github.com/shirou/gopsutil/v4 v4.26.8
|
||||||
github.com/sirupsen/logrus v1.10.2
|
github.com/sirupsen/logrus v1.10.2
|
||||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
||||||
github.com/spf13/afero v1.15.0
|
github.com/spf13/afero v1.15.0
|
||||||
@@ -51,12 +51,12 @@ require (
|
|||||||
github.com/tklauser/go-sysconf v0.4.0
|
github.com/tklauser/go-sysconf v0.4.0
|
||||||
github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19
|
github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19
|
||||||
github.com/upyun/go-sdk v2.1.0+incompatible
|
github.com/upyun/go-sdk v2.1.0+incompatible
|
||||||
go.mongodb.org/mongo-driver/v2 v2.9.0
|
go.mongodb.org/mongo-driver/v2 v2.9.1
|
||||||
golang.org/x/crypto v0.56.0
|
golang.org/x/crypto v0.57.0
|
||||||
golang.org/x/net v0.58.0
|
golang.org/x/net v0.58.0
|
||||||
golang.org/x/sync v0.23.0
|
golang.org/x/sync v0.23.0
|
||||||
golang.org/x/sys v0.47.0
|
golang.org/x/sys v0.48.0
|
||||||
golang.org/x/text v0.41.0
|
golang.org/x/text v0.42.0
|
||||||
golang.org/x/time v0.16.0
|
golang.org/x/time v0.16.0
|
||||||
google.golang.org/genproto v0.0.0-20260414002931-afd174a4e478
|
google.golang.org/genproto v0.0.0-20260414002931-afd174a4e478
|
||||||
gopkg.in/ini.v1 v1.67.3
|
gopkg.in/ini.v1 v1.67.3
|
||||||
@@ -203,7 +203,7 @@ require (
|
|||||||
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
|
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
|
||||||
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
||||||
github.com/zeebo/xxh3 v1.1.0 // indirect
|
github.com/zeebo/xxh3 v1.1.0 // indirect
|
||||||
go.mongodb.org/mongo-driver v1.17.9 // indirect
|
go.mongodb.org/mongo-driver v1.17.10 // indirect
|
||||||
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
||||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.68.0 // indirect
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.68.0 // indirect
|
||||||
go.opentelemetry.io/otel v1.45.0 // indirect
|
go.opentelemetry.io/otel v1.45.0 // indirect
|
||||||
|
|||||||
@@ -230,6 +230,8 @@ github.com/dlclark/regexp2 v1.12.0 h1:0j4c5qQmnC6XOWNjP3PIXURXN2gWx76rd3KvgdPkCz
|
|||||||
github.com/dlclark/regexp2 v1.12.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
|
github.com/dlclark/regexp2 v1.12.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
|
||||||
github.com/docker/cli v29.7.2+incompatible h1:dlkwallR8XqfeVnA2ELEhdwvb4lsSwuB4IgsG8Q9cLY=
|
github.com/docker/cli v29.7.2+incompatible h1:dlkwallR8XqfeVnA2ELEhdwvb4lsSwuB4IgsG8Q9cLY=
|
||||||
github.com/docker/cli v29.7.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
github.com/docker/cli v29.7.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
||||||
|
github.com/docker/cli v29.8.1+incompatible h1:qYL1bCp6cRw2SB1xmLlIOPyV171dilw9W2Jew38vy9c=
|
||||||
|
github.com/docker/cli v29.8.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
||||||
github.com/docker/docker v28.5.2+incompatible h1:DBX0Y0zAjZbSrm1uzOkdr1onVghKaftjlSWt4AFexzM=
|
github.com/docker/docker v28.5.2+incompatible h1:DBX0Y0zAjZbSrm1uzOkdr1onVghKaftjlSWt4AFexzM=
|
||||||
github.com/docker/docker v28.5.2+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
github.com/docker/docker v28.5.2+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||||
github.com/docker/docker-credential-helpers v0.9.5 h1:EFNN8DHvaiK8zVqFA2DT6BjXE0GzfLOZ38ggPTKePkY=
|
github.com/docker/docker-credential-helpers v0.9.5 h1:EFNN8DHvaiK8zVqFA2DT6BjXE0GzfLOZ38ggPTKePkY=
|
||||||
@@ -752,6 +754,8 @@ github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCw
|
|||||||
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
||||||
github.com/shirou/gopsutil/v4 v4.26.7 h1:IXzpHz/dkMRYAhKkOXr1HB6SuzWU3eoyyeWe7g3bNZc=
|
github.com/shirou/gopsutil/v4 v4.26.7 h1:IXzpHz/dkMRYAhKkOXr1HB6SuzWU3eoyyeWe7g3bNZc=
|
||||||
github.com/shirou/gopsutil/v4 v4.26.7/go.mod h1:5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=
|
github.com/shirou/gopsutil/v4 v4.26.7/go.mod h1:5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=
|
||||||
|
github.com/shirou/gopsutil/v4 v4.26.8 h1:YQMTF/1J50B5+Y0vlo1eDRf5DoR7Gk69hY+8wjYkQeo=
|
||||||
|
github.com/shirou/gopsutil/v4 v4.26.8/go.mod h1:5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=
|
||||||
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
|
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
|
||||||
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
||||||
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||||
@@ -878,8 +882,12 @@ go.etcd.io/etcd/client/v3 v3.5.0/go.mod h1:AIKXXVX/DQXtfTEqBryiLTUXwON+GuvO6Z7lL
|
|||||||
go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo=
|
go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo=
|
||||||
go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU=
|
go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU=
|
||||||
go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=
|
go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=
|
||||||
|
go.mongodb.org/mongo-driver v1.17.10 h1:kdAgQvu8TROXZpSkJQd5wzfaNCCrMbpZyKFtQ6qkPCE=
|
||||||
|
go.mongodb.org/mongo-driver v1.17.10/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=
|
||||||
go.mongodb.org/mongo-driver/v2 v2.9.0 h1:e2mQdOmbkiYz+dj3faM7lVDwl7WdnRD+g5VicafMhL0=
|
go.mongodb.org/mongo-driver/v2 v2.9.0 h1:e2mQdOmbkiYz+dj3faM7lVDwl7WdnRD+g5VicafMhL0=
|
||||||
go.mongodb.org/mongo-driver/v2 v2.9.0/go.mod h1:SHKN0IWkKmEVGHLjXnni6s4wPKX4v86FTgOeJJFuXcA=
|
go.mongodb.org/mongo-driver/v2 v2.9.0/go.mod h1:SHKN0IWkKmEVGHLjXnni6s4wPKX4v86FTgOeJJFuXcA=
|
||||||
|
go.mongodb.org/mongo-driver/v2 v2.9.1 h1:jewiFs2m1/VOQp8qhFshX6hWZ+EAXDhZHXExAUMcOgQ=
|
||||||
|
go.mongodb.org/mongo-driver/v2 v2.9.1/go.mod h1:SHKN0IWkKmEVGHLjXnni6s4wPKX4v86FTgOeJJFuXcA=
|
||||||
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||||
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
@@ -954,6 +962,8 @@ golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v
|
|||||||
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
|
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
|
||||||
golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y=
|
golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y=
|
||||||
golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I=
|
golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I=
|
||||||
|
golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M=
|
||||||
|
golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
|
||||||
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
@@ -997,6 +1007,7 @@ golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
|||||||
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||||
golang.org/x/mod v0.38.0 h1:MECBjubtXD7yj4HrhIUcywNaGeNVUdfVnxmPajOk4yk=
|
golang.org/x/mod v0.38.0 h1:MECBjubtXD7yj4HrhIUcywNaGeNVUdfVnxmPajOk4yk=
|
||||||
golang.org/x/mod v0.38.0/go.mod h1:V6Xz0pq8TQ3dGqVQ1FVHuelZpAL0uNhSkk9ogYP3c40=
|
golang.org/x/mod v0.38.0/go.mod h1:V6Xz0pq8TQ3dGqVQ1FVHuelZpAL0uNhSkk9ogYP3c40=
|
||||||
|
golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
@@ -1156,6 +1167,8 @@ golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
|||||||
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
|
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
|
||||||
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||||
|
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
||||||
|
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
||||||
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
|
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
@@ -1171,6 +1184,7 @@ golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
|
|||||||
golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0=
|
golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0=
|
||||||
golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
|
golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
|
||||||
golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
|
golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
|
||||||
|
golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE=
|
||||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
@@ -1189,6 +1203,8 @@ golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
|||||||
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
|
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
|
||||||
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
|
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
|
||||||
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
|
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
|
||||||
|
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
|
||||||
|
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
|
||||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
@@ -1252,6 +1268,7 @@ golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58
|
|||||||
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
|
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
|
||||||
golang.org/x/tools v0.48.0 h1:3+hClM1aLL5mjMKm5ovokw9epgRXPuu2tILgismM6RE=
|
golang.org/x/tools v0.48.0 h1:3+hClM1aLL5mjMKm5ovokw9epgRXPuu2tILgismM6RE=
|
||||||
golang.org/x/tools v0.48.0/go.mod h1:08xX0orndb/F7jJxGDicx061tyd5pcMto75YMAXr6lk=
|
golang.org/x/tools v0.48.0/go.mod h1:08xX0orndb/F7jJxGDicx061tyd5pcMto75YMAXr6lk=
|
||||||
|
golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'Build Cache'
|
|||||||
Volume: 'Volume'
|
Volume: 'Volume'
|
||||||
Network: "Network"
|
Network: "Network"
|
||||||
PruneStart: 'Cleaning in progress'
|
PruneStart: 'Cleaning in progress'
|
||||||
|
NetworkCleanupConnected: "Skipped network [{{ .name }}] ({{ .id }}): containers connected or network in use; not deleted"
|
||||||
|
NetworkCleanupSummary: "Network cleanup finished: deleted {{ .deleted }}, skipped {{ .skipped }}, failed {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "Some networks could not be cleaned; see the task log"
|
||||||
ContainerBackupPrepare: 'Prepare container backup workspace'
|
ContainerBackupPrepare: 'Prepare container backup workspace'
|
||||||
ContainerBackupStop: 'Stop container before backup'
|
ContainerBackupStop: 'Stop container before backup'
|
||||||
ContainerBackupInspect: 'Backup container inspect and network'
|
ContainerBackupInspect: 'Backup container inspect and network'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "IPv4 forwarding is disabled. Set net.ipv4.ip_f
|
|||||||
ErrFirewallRuleSavedApplyFailed: "The new rule configuration was saved, but applying it to the firewall failed. Retry by synchronizing: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "The new rule configuration was saved, but applying it to the firewall failed. Retry by synchronizing: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "A UFW rule with the same match conditions and a different action already exists. Edit the existing rule instead."
|
ErrFirewallRuleConflict: "A UFW rule with the same match conditions and a different action already exists. Edit the existing rule instead."
|
||||||
ErrForwardInterfaceNotFound: "Network interface {{ .name }} specified by the forwarding rule does not exist. Check the interface name and retry."
|
ErrForwardInterfaceNotFound: "Network interface {{ .name }} specified by the forwarding rule does not exist. Check the interface name and retry."
|
||||||
|
ErrIPv6RARisk: "IPv6 forwarding is blocked to prevent possible network loss. See the documentation and system logs for details."
|
||||||
|
ErrIPv6RACheckFailed: "IPv6 forwarding is blocked because the network configuration could not be checked. See the system logs for details."
|
||||||
|
|
||||||
ErrSSHPublicKey: "Enter a valid SSH public key"
|
ErrSSHPublicKey: "Enter a valid SSH public key"
|
||||||
ErrSSHPrivateKey: "Invalid SSH private key or incorrect passphrase; encrypted keys require the original passphrase"
|
ErrSSHPrivateKey: "Invalid SSH private key or incorrect passphrase; encrypted keys require the original passphrase"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'Caché de compilación'
|
|||||||
Volume: 'Volumen de almacenamiento'
|
Volume: 'Volumen de almacenamiento'
|
||||||
Network: 'Red'
|
Network: 'Red'
|
||||||
PruneStart: 'Limpiando en progreso espere...'
|
PruneStart: 'Limpiando en progreso espere...'
|
||||||
|
NetworkCleanupConnected: "Se omitió la red [{{ .name }}] ({{ .id }}): hay contenedores conectados o la red está en uso; no se eliminó"
|
||||||
|
NetworkCleanupSummary: "Limpieza de redes finalizada: eliminadas {{ .deleted }}, omitidas {{ .skipped }}, fallidas {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "No se pudieron limpiar algunas redes; consulte el registro de la tarea"
|
||||||
ContainerBackupPrepare: 'Preparar espacio de respaldo del contenedor'
|
ContainerBackupPrepare: 'Preparar espacio de respaldo del contenedor'
|
||||||
ContainerBackupStop: 'Detener contenedor antes del respaldo'
|
ContainerBackupStop: 'Detener contenedor antes del respaldo'
|
||||||
ContainerBackupInspect: 'Respaldar inspect y red del contenedor'
|
ContainerBackupInspect: 'Respaldar inspect y red del contenedor'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "El reenvío IPv4 está desactivado. Configure
|
|||||||
ErrFirewallRuleSavedApplyFailed: "Se guardó la configuración de la nueva regla, pero no se pudo aplicar al cortafuegos. Vuelva a intentarlo mediante la sincronización: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "Se guardó la configuración de la nueva regla, pero no se pudo aplicar al cortafuegos. Vuelva a intentarlo mediante la sincronización: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "Ya existe una regla UFW con las mismas condiciones y una acción diferente. Edite la regla existente."
|
ErrFirewallRuleConflict: "Ya existe una regla UFW con las mismas condiciones y una acción diferente. Edite la regla existente."
|
||||||
ErrForwardInterfaceNotFound: "La interfaz de red {{ .name }} indicada en la regla de reenvío no existe. Compruebe el nombre e inténtelo de nuevo."
|
ErrForwardInterfaceNotFound: "La interfaz de red {{ .name }} indicada en la regla de reenvío no existe. Compruebe el nombre e inténtelo de nuevo."
|
||||||
|
ErrIPv6RARisk: "El reenvío IPv6 está bloqueado para evitar una posible pérdida de conectividad. Consulte la documentación y los registros del sistema."
|
||||||
|
ErrIPv6RACheckFailed: "El reenvío IPv6 está bloqueado porque no se pudo comprobar la configuración de red. Consulte los registros del sistema."
|
||||||
|
|
||||||
ErrSSHPublicKey: "Introduce una clave pública SSH válida"
|
ErrSSHPublicKey: "Introduce una clave pública SSH válida"
|
||||||
ErrSSHPrivateKey: "Clave privada SSH no válida o contraseña incorrecta; las claves cifradas requieren la contraseña original"
|
ErrSSHPrivateKey: "Clave privada SSH no válida o contraseña incorrecta; las claves cifradas requieren la contraseña original"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'کش ساخت'
|
|||||||
Volume: 'حجم'
|
Volume: 'حجم'
|
||||||
Network: "شبکه"
|
Network: "شبکه"
|
||||||
PruneStart: 'پاکسازی در حال انجام است'
|
PruneStart: 'پاکسازی در حال انجام است'
|
||||||
|
NetworkCleanupConnected: "از شبکه [{{ .name }}] ({{ .id }}) صرفنظر شد: کانتینر متصل دارد یا در حال استفاده است؛ حذف نشد"
|
||||||
|
NetworkCleanupSummary: "پاکسازی شبکهها پایان یافت: حذفشده {{ .deleted }}، ردشده {{ .skipped }}، ناموفق {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "پاکسازی برخی شبکهها ناموفق بود؛ گزارش وظیفه را بررسی کنید"
|
||||||
ContainerBackupPrepare: 'آمادهسازی فضای کاری پشتیبان کانتینر'
|
ContainerBackupPrepare: 'آمادهسازی فضای کاری پشتیبان کانتینر'
|
||||||
ContainerBackupStop: 'توقف کانتینر قبل از پشتیبانگیری'
|
ContainerBackupStop: 'توقف کانتینر قبل از پشتیبانگیری'
|
||||||
ContainerBackupInspect: 'بررسی و شبکه کانتینر پشتیبان'
|
ContainerBackupInspect: 'بررسی و شبکه کانتینر پشتیبان'
|
||||||
@@ -719,6 +722,8 @@ ErrDockerIPv4ForwardingDisabled: "ارسال IPv4 غیرفعال است. پیش
|
|||||||
ErrFirewallRuleSavedApplyFailed: "پیکربندی قانون جدید ذخیره شد، اما اعمال آن در دیوار آتش ناموفق بود. با همگامسازی دوباره تلاش کنید: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "پیکربندی قانون جدید ذخیره شد، اما اعمال آن در دیوار آتش ناموفق بود. با همگامسازی دوباره تلاش کنید: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "یک قانون UFW با شرایط تطبیق یکسان و عملکرد متفاوت از قبل وجود دارد. قانون موجود را ویرایش کنید."
|
ErrFirewallRuleConflict: "یک قانون UFW با شرایط تطبیق یکسان و عملکرد متفاوت از قبل وجود دارد. قانون موجود را ویرایش کنید."
|
||||||
ErrForwardInterfaceNotFound: "رابط شبکه {{ .name }} مشخصشده در قانون انتقال وجود ندارد. نام رابط را بررسی کرده و دوباره تلاش کنید."
|
ErrForwardInterfaceNotFound: "رابط شبکه {{ .name }} مشخصشده در قانون انتقال وجود ندارد. نام رابط را بررسی کرده و دوباره تلاش کنید."
|
||||||
|
ErrIPv6RARisk: "فعالسازی هدایت IPv6 به دلیل خطر قطع شبکه مسدود شد. مستندات و گزارشهای سیستم را بررسی کنید."
|
||||||
|
ErrIPv6RACheckFailed: "فعالسازی هدایت IPv6 به دلیل عدم امکان بررسی پیکربندی شبکه مسدود شد. جزئیات در گزارشهای سیستم موجود است."
|
||||||
|
|
||||||
ErrSSHPublicKey: "یک کلید عمومی SSH معتبر وارد کنید"
|
ErrSSHPublicKey: "یک کلید عمومی SSH معتبر وارد کنید"
|
||||||
ErrSSHPrivateKey: "کلید خصوصی SSH نامعتبر یا عبارت عبور نادرست است؛ کلیدهای رمزگذاریشده به عبارت عبور اصلی نیاز دارند"
|
ErrSSHPrivateKey: "کلید خصوصی SSH نامعتبر یا عبارت عبور نادرست است؛ کلیدهای رمزگذاریشده به عبارت عبور اصلی نیاز دارند"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'ビルドキャッシュ'
|
|||||||
Volume: 'ストレージボリューム'
|
Volume: 'ストレージボリューム'
|
||||||
Network: 'ネットワーク'
|
Network: 'ネットワーク'
|
||||||
PruneStart: 'クリーンアップ中、しばらくお待ちください...'
|
PruneStart: 'クリーンアップ中、しばらくお待ちください...'
|
||||||
|
NetworkCleanupConnected: "ネットワーク [{{ .name }}] ({{ .id }}) をスキップしました:コンテナが接続されているか使用中のため、削除しませんでした"
|
||||||
|
NetworkCleanupSummary: "ネットワークのクリーンアップが完了しました:削除 {{ .deleted }} 件、スキップ {{ .skipped }} 件、失敗 {{ .failed }} 件"
|
||||||
|
NetworkCleanupPartialFailure: "一部のネットワークをクリーンアップできませんでした。タスクログを確認してください"
|
||||||
ContainerBackupPrepare: 'コンテナバックアップ作業領域を準備'
|
ContainerBackupPrepare: 'コンテナバックアップ作業領域を準備'
|
||||||
ContainerBackupStop: 'バックアップ前にコンテナを停止'
|
ContainerBackupStop: 'バックアップ前にコンテナを停止'
|
||||||
ContainerBackupInspect: 'コンテナ inspect とネットワーク情報をバックアップ'
|
ContainerBackupInspect: 'コンテナ inspect とネットワーク情報をバックアップ'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "IPv4 転送が無効です。Docker のファ
|
|||||||
ErrFirewallRuleSavedApplyFailed: "新しいルール設定は保存されましたが、ファイアウォールへの適用に失敗しました。同期で再試行してください:{{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "新しいルール設定は保存されましたが、ファイアウォールへの適用に失敗しました。同期で再試行してください:{{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "UFW に同じ一致条件でアクションが異なるルールが既に存在します。既存のルールを編集してください。"
|
ErrFirewallRuleConflict: "UFW に同じ一致条件でアクションが異なるルールが既に存在します。既存のルールを編集してください。"
|
||||||
ErrForwardInterfaceNotFound: "転送ルールで指定されたネットワークインターフェース {{ .name }} は存在しません。名前を確認して再試行してください。"
|
ErrForwardInterfaceNotFound: "転送ルールで指定されたネットワークインターフェース {{ .name }} は存在しません。名前を確認して再試行してください。"
|
||||||
|
ErrIPv6RARisk: "ネットワーク切断のおそれがあるため、IPv6 転送の有効化をブロックしました。ドキュメントとシステムログをご確認ください。"
|
||||||
|
ErrIPv6RACheckFailed: "ネットワーク設定を確認できないため、IPv6 転送の有効化をブロックしました。詳細はシステムログをご確認ください。"
|
||||||
|
|
||||||
ErrSSHPublicKey: "有効な SSH 公開鍵を入力してください"
|
ErrSSHPublicKey: "有効な SSH 公開鍵を入力してください"
|
||||||
ErrSSHPrivateKey: "SSH 秘密鍵の形式が無効か、パスフレーズが間違っています。暗号化された鍵には元のパスフレーズが必要です"
|
ErrSSHPrivateKey: "SSH 秘密鍵の形式が無効か、パスフレーズが間違っています。暗号化された鍵には元のパスフレーズが必要です"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: '빌드 캐시'
|
|||||||
Volume: '스토리지 볼륨'
|
Volume: '스토리지 볼륨'
|
||||||
Network: '네트워크'
|
Network: '네트워크'
|
||||||
PruneStart: '정리 중입니다. 잠시만 기다려주세요...'
|
PruneStart: '정리 중입니다. 잠시만 기다려주세요...'
|
||||||
|
NetworkCleanupConnected: "네트워크 [{{ .name }}] ({{ .id }}) 건너뜀: 연결된 컨테이너가 있거나 사용 중이므로 삭제하지 않음"
|
||||||
|
NetworkCleanupSummary: "네트워크 정리 완료: 삭제 {{ .deleted }}개, 건너뜀 {{ .skipped }}개, 실패 {{ .failed }}개"
|
||||||
|
NetworkCleanupPartialFailure: "일부 네트워크를 정리하지 못했습니다. 작업 로그를 확인하세요"
|
||||||
ContainerBackupPrepare: '컨테이너 백업 작업 공간 준비'
|
ContainerBackupPrepare: '컨테이너 백업 작업 공간 준비'
|
||||||
ContainerBackupStop: '백업 전에 컨테이너 중지'
|
ContainerBackupStop: '백업 전에 컨테이너 중지'
|
||||||
ContainerBackupInspect: '컨테이너 inspect 및 네트워크 정보 백업'
|
ContainerBackupInspect: '컨테이너 inspect 및 네트워크 정보 백업'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "IPv4 전달이 비활성화되어 있습니다
|
|||||||
ErrFirewallRuleSavedApplyFailed: "새 규칙 설정이 저장되었지만 방화벽에 적용하지 못했습니다. 동기화하여 다시 시도하세요: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "새 규칙 설정이 저장되었지만 방화벽에 적용하지 못했습니다. 동기화하여 다시 시도하세요: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "UFW에 일치 조건이 같지만 동작이 다른 규칙이 이미 있습니다. 기존 규칙을 편집하세요."
|
ErrFirewallRuleConflict: "UFW에 일치 조건이 같지만 동작이 다른 규칙이 이미 있습니다. 기존 규칙을 편집하세요."
|
||||||
ErrForwardInterfaceNotFound: "전달 규칙에 지정된 네트워크 인터페이스 {{ .name }}이 존재하지 않습니다. 이름을 확인한 후 다시 시도하세요."
|
ErrForwardInterfaceNotFound: "전달 규칙에 지정된 네트워크 인터페이스 {{ .name }}이 존재하지 않습니다. 이름을 확인한 후 다시 시도하세요."
|
||||||
|
ErrIPv6RARisk: "네트워크 연결이 끊길 위험이 있어 IPv6 전달 활성화를 차단했습니다. 문서와 시스템 로그를 확인하세요."
|
||||||
|
ErrIPv6RACheckFailed: "네트워크 구성을 확인할 수 없어 IPv6 전달 활성화를 차단했습니다. 자세한 내용은 시스템 로그를 확인하세요."
|
||||||
|
|
||||||
ErrSSHPublicKey: "유효한 SSH 공개 키를 입력하세요"
|
ErrSSHPublicKey: "유효한 SSH 공개 키를 입력하세요"
|
||||||
ErrSSHPrivateKey: "SSH 개인 키 형식이 잘못되었거나 암호가 틀립니다. 암호화된 키에는 원래 암호가 필요합니다"
|
ErrSSHPrivateKey: "SSH 개인 키 형식이 잘못되었거나 암호가 틀립니다. 암호화된 키에는 원래 암호가 필요합니다"
|
||||||
|
|||||||
@@ -290,6 +290,9 @@ BuildCache: 'ແຄດການສ້າງ'
|
|||||||
Volume: 'ວໍລຸມ (Volume)'
|
Volume: 'ວໍລຸມ (Volume)'
|
||||||
Network: "ເຄືອຂ່າຍ"
|
Network: "ເຄືອຂ່າຍ"
|
||||||
PruneStart: 'ກຳລັງດຳເນີນການທຳຄວາມສະອາດ'
|
PruneStart: 'ກຳລັງດຳເນີນການທຳຄວາມສະອາດ'
|
||||||
|
NetworkCleanupConnected: "ຂ້າມເຄືອຂ່າຍ [{{ .name }}] ({{ .id }}): ມີຄອນເທນເນີເຊື່ອມຕໍ່ຢູ່ ຫຼື ເຄືອຂ່າຍກຳລັງຖືກໃຊ້ງານ; ບໍ່ໄດ້ລຶບ"
|
||||||
|
NetworkCleanupSummary: "ການລ້າງເຄືອຂ່າຍສຳເລັດ: ລຶບແລ້ວ {{ .deleted }}, ຂ້າມ {{ .skipped }}, ລົ້ມເຫຼວ {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "ບໍ່ສາມາດລ້າງບາງເຄືອຂ່າຍໄດ້; ກະລຸນາເບິ່ງບັນທຶກວຽກ"
|
||||||
ContainerBackupPrepare: 'ກຽມພື້ນທີ່ເຮັດວຽກສຳລັບສຳຮອງຂໍ້ມູນຄອນເທນເນີ'
|
ContainerBackupPrepare: 'ກຽມພື້ນທີ່ເຮັດວຽກສຳລັບສຳຮອງຂໍ້ມູນຄອນເທນເນີ'
|
||||||
ContainerBackupStop: 'ຢຸດຄອນເທນເນີກ່ອນການສຳຮອງຂໍ້ມູນ'
|
ContainerBackupStop: 'ຢຸດຄອນເທນເນີກ່ອນການສຳຮອງຂໍ້ມູນ'
|
||||||
ContainerBackupInspect: 'ກວດສອບຄອນເທນເນີ ແລະ ເຄືອຂ່າຍສຳລັບການສຳຮອງຂໍ້ມູນ'
|
ContainerBackupInspect: 'ກວດສອບຄອນເທນເນີ ແລະ ເຄືອຂ່າຍສຳລັບການສຳຮອງຂໍ້ມູນ'
|
||||||
@@ -709,6 +712,8 @@ ErrDockerIPv4ForwardingDisabled: "ການສົ່ງຕໍ່ IPv4 ຖືກ
|
|||||||
ErrFirewallRuleSavedApplyFailed: "ບັນທຶກການຕັ້ງຄ່າກົດໃໝ່ແລ້ວ ແຕ່ນຳໃຊ້ກັບໄຟວໍບໍ່ສຳເລັດ. ລອງອີກຄັ້ງດ້ວຍການຊິງຂໍ້ມູນ: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "ບັນທຶກການຕັ້ງຄ່າກົດໃໝ່ແລ້ວ ແຕ່ນຳໃຊ້ກັບໄຟວໍບໍ່ສຳເລັດ. ລອງອີກຄັ້ງດ້ວຍການຊິງຂໍ້ມູນ: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "ມີກົດ UFW ທີ່ມີເງື່ອນໄຂກົງກັນແຕ່ການດຳເນີນການຕ່າງກັນແລ້ວ. ກະລຸນາແກ້ໄຂກົດທີ່ມີຢູ່."
|
ErrFirewallRuleConflict: "ມີກົດ UFW ທີ່ມີເງື່ອນໄຂກົງກັນແຕ່ການດຳເນີນການຕ່າງກັນແລ້ວ. ກະລຸນາແກ້ໄຂກົດທີ່ມີຢູ່."
|
||||||
ErrForwardInterfaceNotFound: "ບໍ່ພົບອິນເຕີເຟດເຄືອຂ່າຍ {{ .name }} ທີ່ລະບຸໃນກົດສົ່ງຕໍ່. ກະລຸນາກວດສອບຊື່ ແລ້ວລອງໃໝ່."
|
ErrForwardInterfaceNotFound: "ບໍ່ພົບອິນເຕີເຟດເຄືອຂ່າຍ {{ .name }} ທີ່ລະບຸໃນກົດສົ່ງຕໍ່. ກະລຸນາກວດສອບຊື່ ແລ້ວລອງໃໝ່."
|
||||||
|
ErrIPv6RARisk: "ການສົ່ງຕໍ່ IPv6 ຖືກບລັອກເພື່ອປ້ອງກັນຄວາມສ່ຽງທີ່ເຄືອຂ່າຍຈະຂາດການເຊື່ອມຕໍ່. ເບິ່ງເອກະສານ ແລະ ບັນທຶກລະບົບ."
|
||||||
|
ErrIPv6RACheckFailed: "ການສົ່ງຕໍ່ IPv6 ຖືກບລັອກເນື່ອງຈາກບໍ່ສາມາດກວດສອບການຕັ້ງຄ່າເຄືອຂ່າຍໄດ້. ເບິ່ງລາຍລະອຽດໃນບັນທຶກລະບົບ."
|
||||||
|
|
||||||
ErrSSHPublicKey: "ກະລຸນາປ້ອນຄີສາທາລະນະ SSH ທີ່ຖືກຕ້ອງ"
|
ErrSSHPublicKey: "ກະລຸນາປ້ອນຄີສາທາລະນະ SSH ທີ່ຖືກຕ້ອງ"
|
||||||
ErrSSHPrivateKey: "ຄີສ່ວນຕົວ SSH ບໍ່ຖືກຕ້ອງ ຫຼື ລະຫັດຜ່ານຜິດ; ຄີທີ່ເຂົ້າລະຫັດຕ້ອງໃຊ້ລະຫັດຜ່ານເດີມ"
|
ErrSSHPrivateKey: "ຄີສ່ວນຕົວ SSH ບໍ່ຖືກຕ້ອງ ຫຼື ລະຫັດຜ່ານຜິດ; ຄີທີ່ເຂົ້າລະຫັດຕ້ອງໃຊ້ລະຫັດຜ່ານເດີມ"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'Cache binaan'
|
|||||||
Volume: 'Jilid storan'
|
Volume: 'Jilid storan'
|
||||||
Network: 'Rangkaian'
|
Network: 'Rangkaian'
|
||||||
PruneStart: 'Pembersihan sedang dijalankan, sila tunggu...'
|
PruneStart: 'Pembersihan sedang dijalankan, sila tunggu...'
|
||||||
|
NetworkCleanupConnected: "Rangkaian [{{ .name }}] ({{ .id }}) dilangkau: terdapat kontena yang disambungkan atau rangkaian sedang digunakan; tidak dipadamkan"
|
||||||
|
NetworkCleanupSummary: "Pembersihan rangkaian selesai: dipadamkan {{ .deleted }}, dilangkau {{ .skipped }}, gagal {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "Sesetengah rangkaian tidak dapat dibersihkan; semak log tugas"
|
||||||
ContainerBackupPrepare: 'Sediakan ruang kerja sandaran kontena'
|
ContainerBackupPrepare: 'Sediakan ruang kerja sandaran kontena'
|
||||||
ContainerBackupStop: 'Hentikan kontena sebelum sandaran'
|
ContainerBackupStop: 'Hentikan kontena sebelum sandaran'
|
||||||
ContainerBackupInspect: 'Sandarkan inspect dan rangkaian kontena'
|
ContainerBackupInspect: 'Sandarkan inspect dan rangkaian kontena'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "Pemajuan IPv4 dilumpuhkan. Tetapkan net.ipv4.i
|
|||||||
ErrFirewallRuleSavedApplyFailed: "Konfigurasi peraturan baharu telah disimpan, tetapi gagal digunakan pada tembok api. Cuba lagi melalui penyegerakan: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "Konfigurasi peraturan baharu telah disimpan, tetapi gagal digunakan pada tembok api. Cuba lagi melalui penyegerakan: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "Peraturan UFW dengan syarat padanan yang sama tetapi tindakan berbeza sudah wujud. Sila edit peraturan sedia ada."
|
ErrFirewallRuleConflict: "Peraturan UFW dengan syarat padanan yang sama tetapi tindakan berbeza sudah wujud. Sila edit peraturan sedia ada."
|
||||||
ErrForwardInterfaceNotFound: "Antara muka rangkaian {{ .name }} yang dinyatakan dalam peraturan pemajuan tidak wujud. Semak namanya dan cuba lagi."
|
ErrForwardInterfaceNotFound: "Antara muka rangkaian {{ .name }} yang dinyatakan dalam peraturan pemajuan tidak wujud. Semak namanya dan cuba lagi."
|
||||||
|
ErrIPv6RARisk: "Pemajuan IPv6 disekat bagi mengelakkan risiko kehilangan sambungan rangkaian. Rujuk dokumentasi dan log sistem."
|
||||||
|
ErrIPv6RACheckFailed: "Pemajuan IPv6 disekat kerana konfigurasi rangkaian tidak dapat diperiksa. Lihat log sistem untuk butiran."
|
||||||
|
|
||||||
ErrSSHPublicKey: "Masukkan kunci awam SSH yang sah"
|
ErrSSHPublicKey: "Masukkan kunci awam SSH yang sah"
|
||||||
ErrSSHPrivateKey: "Kunci peribadi SSH tidak sah atau frasa laluan salah; kunci yang disulitkan memerlukan frasa laluan asal"
|
ErrSSHPrivateKey: "Kunci peribadi SSH tidak sah atau frasa laluan salah; kunci yang disulitkan memerlukan frasa laluan asal"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'Cache de construção'
|
|||||||
Volume: 'Volume de armazenamento'
|
Volume: 'Volume de armazenamento'
|
||||||
Network: 'Rede'
|
Network: 'Rede'
|
||||||
PruneStart: 'Limpando em andamento aguarde...'
|
PruneStart: 'Limpando em andamento aguarde...'
|
||||||
|
NetworkCleanupConnected: "Rede [{{ .name }}] ({{ .id }}) ignorada: há contêineres conectados ou a rede está em uso; não foi excluída"
|
||||||
|
NetworkCleanupSummary: "Limpeza de redes concluída: excluídas {{ .deleted }}, ignoradas {{ .skipped }}, falhas {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "Não foi possível limpar algumas redes; consulte o log da tarefa"
|
||||||
ContainerBackupPrepare: 'Preparar área de backup do contêiner'
|
ContainerBackupPrepare: 'Preparar área de backup do contêiner'
|
||||||
ContainerBackupStop: 'Parar contêiner antes do backup'
|
ContainerBackupStop: 'Parar contêiner antes do backup'
|
||||||
ContainerBackupInspect: 'Fazer backup do inspect e rede do contêiner'
|
ContainerBackupInspect: 'Fazer backup do inspect e rede do contêiner'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "O encaminhamento IPv4 está desativado. Defina
|
|||||||
ErrFirewallRuleSavedApplyFailed: "A configuração da nova regra foi salva, mas não pôde ser aplicada ao firewall. Tente novamente por meio da sincronização: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "A configuração da nova regra foi salva, mas não pôde ser aplicada ao firewall. Tente novamente por meio da sincronização: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "Já existe uma regra UFW com as mesmas condições e uma ação diferente. Edite a regra existente."
|
ErrFirewallRuleConflict: "Já existe uma regra UFW com as mesmas condições e uma ação diferente. Edite a regra existente."
|
||||||
ErrForwardInterfaceNotFound: "A interface de rede {{ .name }} especificada na regra de encaminhamento não existe. Verifique o nome e tente novamente."
|
ErrForwardInterfaceNotFound: "A interface de rede {{ .name }} especificada na regra de encaminhamento não existe. Verifique o nome e tente novamente."
|
||||||
|
ErrIPv6RARisk: "O encaminhamento IPv6 foi bloqueado para evitar uma possível perda de conexão. Consulte a documentação e os logs do sistema."
|
||||||
|
ErrIPv6RACheckFailed: "O encaminhamento IPv6 foi bloqueado porque não foi possível verificar a configuração de rede. Consulte os logs do sistema."
|
||||||
|
|
||||||
ErrSSHPublicKey: "Informe uma chave pública SSH válida"
|
ErrSSHPublicKey: "Informe uma chave pública SSH válida"
|
||||||
ErrSSHPrivateKey: "Chave privada SSH inválida ou senha incorreta; chaves criptografadas exigem a senha original"
|
ErrSSHPrivateKey: "Chave privada SSH inválida ou senha incorreta; chaves criptografadas exigem a senha original"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'Кэш сборки'
|
|||||||
Volume: 'Том хранилища'
|
Volume: 'Том хранилища'
|
||||||
Network: 'Сеть'
|
Network: 'Сеть'
|
||||||
PruneStart: 'Очистка выполняется, пожалуйста, подождите...'
|
PruneStart: 'Очистка выполняется, пожалуйста, подождите...'
|
||||||
|
NetworkCleanupConnected: "Сеть [{{ .name }}] ({{ .id }}) пропущена: подключены контейнеры или сеть используется; не удалена"
|
||||||
|
NetworkCleanupSummary: "Очистка сетей завершена: удалено {{ .deleted }}, пропущено {{ .skipped }}, ошибок {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "Не удалось очистить некоторые сети; проверьте журнал задачи"
|
||||||
ContainerBackupPrepare: 'Подготовить рабочую область резервной копии контейнера'
|
ContainerBackupPrepare: 'Подготовить рабочую область резервной копии контейнера'
|
||||||
ContainerBackupStop: 'Остановить контейнер перед резервным копированием'
|
ContainerBackupStop: 'Остановить контейнер перед резервным копированием'
|
||||||
ContainerBackupInspect: 'Сделать резервную копию inspect и сети контейнера'
|
ContainerBackupInspect: 'Сделать резервную копию inspect и сети контейнера'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "Пересылка IPv4 отключена. П
|
|||||||
ErrFirewallRuleSavedApplyFailed: "Настройки нового правила сохранены, но применить их к межсетевому экрану не удалось. Повторите попытку с помощью синхронизации: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "Настройки нового правила сохранены, но применить их к межсетевому экрану не удалось. Повторите попытку с помощью синхронизации: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "В UFW уже есть правило с такими же условиями и другим действием. Отредактируйте существующее правило."
|
ErrFirewallRuleConflict: "В UFW уже есть правило с такими же условиями и другим действием. Отредактируйте существующее правило."
|
||||||
ErrForwardInterfaceNotFound: "Сетевой интерфейс {{ .name }}, указанный в правиле перенаправления, не существует. Проверьте имя и повторите попытку."
|
ErrForwardInterfaceNotFound: "Сетевой интерфейс {{ .name }}, указанный в правиле перенаправления, не существует. Проверьте имя и повторите попытку."
|
||||||
|
ErrIPv6RARisk: "Включение переадресации IPv6 заблокировано из-за риска потери связи. См. документацию и системные журналы."
|
||||||
|
ErrIPv6RACheckFailed: "Включение переадресации IPv6 заблокировано: не удалось проверить настройки сети. Подробности в системных журналах."
|
||||||
|
|
||||||
ErrSSHPublicKey: "Введите действительный открытый ключ SSH"
|
ErrSSHPublicKey: "Введите действительный открытый ключ SSH"
|
||||||
ErrSSHPrivateKey: "Недопустимый закрытый ключ SSH или неверная парольная фраза; для зашифрованных ключей требуется исходная парольная фраза"
|
ErrSSHPrivateKey: "Недопустимый закрытый ключ SSH или неверная парольная фраза; для зашифрованных ключей требуется исходная парольная фраза"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: 'Derleme önbelleği'
|
|||||||
Volume: 'Depolama hacmi'
|
Volume: 'Depolama hacmi'
|
||||||
Network: 'Ağ'
|
Network: 'Ağ'
|
||||||
PruneStart: 'Temizlik devam ediyor, lütfen bekleyin...'
|
PruneStart: 'Temizlik devam ediyor, lütfen bekleyin...'
|
||||||
|
NetworkCleanupConnected: "Ağ [{{ .name }}] ({{ .id }}) atlandı: bağlı konteynerler var veya ağ kullanımda; silinmedi"
|
||||||
|
NetworkCleanupSummary: "Ağ temizliği tamamlandı: silinen {{ .deleted }}, atlanan {{ .skipped }}, başarısız {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "Bazı ağlar temizlenemedi; görev günlüğünü kontrol edin"
|
||||||
ContainerBackupPrepare: 'Konteyner yedekleme çalışma alanını hazırla'
|
ContainerBackupPrepare: 'Konteyner yedekleme çalışma alanını hazırla'
|
||||||
ContainerBackupStop: 'Yedeklemeden önce konteyneri durdur'
|
ContainerBackupStop: 'Yedeklemeden önce konteyneri durdur'
|
||||||
ContainerBackupInspect: 'Konteyner inspect ve ağ bilgisini yedekle'
|
ContainerBackupInspect: 'Konteyner inspect ve ağ bilgisini yedekle'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "IPv4 yönlendirmesi devre dışı. Docker güv
|
|||||||
ErrFirewallRuleSavedApplyFailed: "Yeni kural yapılandırması kaydedildi, ancak güvenlik duvarına uygulanamadı. Eşitleme yaparak yeniden deneyin: {{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "Yeni kural yapılandırması kaydedildi, ancak güvenlik duvarına uygulanamadı. Eşitleme yaparak yeniden deneyin: {{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "UFW içinde aynı eşleşme koşullarına sahip, farklı bir eylem uygulayan bir kural zaten var. Mevcut kuralı düzenleyin."
|
ErrFirewallRuleConflict: "UFW içinde aynı eşleşme koşullarına sahip, farklı bir eylem uygulayan bir kural zaten var. Mevcut kuralı düzenleyin."
|
||||||
ErrForwardInterfaceNotFound: "Yönlendirme kuralında belirtilen {{ .name }} ağ arayüzü mevcut değil. Arayüz adını kontrol edip yeniden deneyin."
|
ErrForwardInterfaceNotFound: "Yönlendirme kuralında belirtilen {{ .name }} ağ arayüzü mevcut değil. Arayüz adını kontrol edip yeniden deneyin."
|
||||||
|
ErrIPv6RARisk: "Ağ bağlantısının kesilme riski nedeniyle IPv6 yönlendirmesi engellendi. Belgeleri ve sistem günlüklerini inceleyin."
|
||||||
|
ErrIPv6RACheckFailed: "Ağ yapılandırması denetlenemediği için IPv6 yönlendirmesi engellendi. Ayrıntılar için sistem günlüklerini inceleyin."
|
||||||
|
|
||||||
ErrSSHPublicKey: "Geçerli bir SSH açık anahtarı girin"
|
ErrSSHPublicKey: "Geçerli bir SSH açık anahtarı girin"
|
||||||
ErrSSHPrivateKey: "SSH özel anahtarı geçersiz veya parola yanlış; şifreli anahtarlar mevcut parolayı gerektirir"
|
ErrSSHPrivateKey: "SSH özel anahtarı geçersiz veya parola yanlış; şifreli anahtarlar mevcut parolayı gerektirir"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: '構建快取'
|
|||||||
Volume: '磁碟區'
|
Volume: '磁碟區'
|
||||||
Network: '網路'
|
Network: '網路'
|
||||||
PruneStart: '清理中,請稍候...'
|
PruneStart: '清理中,請稍候...'
|
||||||
|
NetworkCleanupConnected: "跳過網路 [{{ .name }}] ({{ .id }}):仍有容器連接或正在使用,未刪除"
|
||||||
|
NetworkCleanupSummary: "網路清理完成:已刪除 {{ .deleted }},已跳過 {{ .skipped }},失敗 {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "部分網路清理失敗,請查看任務日誌"
|
||||||
ContainerBackupPrepare: '準備容器備份工作目錄'
|
ContainerBackupPrepare: '準備容器備份工作目錄'
|
||||||
ContainerBackupStop: '備份前停止容器'
|
ContainerBackupStop: '備份前停止容器'
|
||||||
ContainerBackupInspect: '備份容器 Inspect 與網路資訊'
|
ContainerBackupInspect: '備份容器 Inspect 與網路資訊'
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "IPv4 轉送尚未啟用,請先設定 net.ipv
|
|||||||
ErrFirewallRuleSavedApplyFailed: "新規則設定已儲存,但套用至防火牆失敗。可透過同步重試:{{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "新規則設定已儲存,但套用至防火牆失敗。可透過同步重試:{{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "UFW 中已存在比對條件相同但動作不同的規則,請編輯既有規則。"
|
ErrFirewallRuleConflict: "UFW 中已存在比對條件相同但動作不同的規則,請編輯既有規則。"
|
||||||
ErrForwardInterfaceNotFound: "轉發規則指定的網卡 {{ .name }} 不存在,請檢查網卡名稱後重試。"
|
ErrForwardInterfaceNotFound: "轉發規則指定的網卡 {{ .name }} 不存在,請檢查網卡名稱後重試。"
|
||||||
|
ErrIPv6RARisk: "IPv6 轉送可能導致網路中斷,已阻止啟用。請參閱文件,詳情見系統日誌。"
|
||||||
|
ErrIPv6RACheckFailed: "無法檢查 IPv6 網路設定,已阻止啟用轉送。詳情見系統日誌。"
|
||||||
|
|
||||||
ErrSSHPublicKey: "請輸入有效的 SSH 公鑰"
|
ErrSSHPublicKey: "請輸入有效的 SSH 公鑰"
|
||||||
ErrSSHPrivateKey: "SSH 私鑰格式無效或密碼錯誤;加密私鑰需要填寫原密碼"
|
ErrSSHPrivateKey: "SSH 私鑰格式無效或密碼錯誤;加密私鑰需要填寫原密碼"
|
||||||
|
|||||||
@@ -300,6 +300,9 @@ BuildCache: "构建缓存"
|
|||||||
Volume: "存储卷"
|
Volume: "存储卷"
|
||||||
Network: "网络"
|
Network: "网络"
|
||||||
PruneStart: "清理中,请稍候..."
|
PruneStart: "清理中,请稍候..."
|
||||||
|
NetworkCleanupConnected: "跳过网络 [{{ .name }}] ({{ .id }}):仍有容器连接或正在使用,未删除"
|
||||||
|
NetworkCleanupSummary: "网络清理完成:已删除 {{ .deleted }},已跳过 {{ .skipped }},失败 {{ .failed }}"
|
||||||
|
NetworkCleanupPartialFailure: "部分网络清理失败,请查看任务日志"
|
||||||
ContainerBackupPrepare: "准备容器备份工作目录"
|
ContainerBackupPrepare: "准备容器备份工作目录"
|
||||||
ContainerBackupStop: "备份前停止容器"
|
ContainerBackupStop: "备份前停止容器"
|
||||||
ContainerBackupInspect: "备份容器 Inspect 与网络信息"
|
ContainerBackupInspect: "备份容器 Inspect 与网络信息"
|
||||||
@@ -718,6 +721,8 @@ ErrDockerIPv4ForwardingDisabled: "IPv4 转发未开启,请先设置 net.ipv4.i
|
|||||||
ErrFirewallRuleSavedApplyFailed: "新规则配置已保存,但应用到防火墙失败。可通过同步重试:{{ .detail }}"
|
ErrFirewallRuleSavedApplyFailed: "新规则配置已保存,但应用到防火墙失败。可通过同步重试:{{ .detail }}"
|
||||||
ErrFirewallRuleConflict: "UFW 中已存在匹配条件相同但动作不同的规则,请编辑已有规则。"
|
ErrFirewallRuleConflict: "UFW 中已存在匹配条件相同但动作不同的规则,请编辑已有规则。"
|
||||||
ErrForwardInterfaceNotFound: "转发规则指定的网卡 {{ .name }} 不存在,请检查网卡名称后重试。"
|
ErrForwardInterfaceNotFound: "转发规则指定的网卡 {{ .name }} 不存在,请检查网卡名称后重试。"
|
||||||
|
ErrIPv6RARisk: "IPv6 转发存在断网风险,已阻止启用。请参阅文档,详情见系统日志。"
|
||||||
|
ErrIPv6RACheckFailed: "无法检查 IPv6 网络配置,已阻止启用转发。详情见系统日志。"
|
||||||
|
|
||||||
ErrSSHPublicKey: "请输入有效的 SSH 公钥"
|
ErrSSHPublicKey: "请输入有效的 SSH 公钥"
|
||||||
ErrSSHPrivateKey: "SSH 私钥格式无效或密码错误;加密私钥需要填写原密码"
|
ErrSSHPrivateKey: "SSH 私钥格式无效或密码错误;加密私钥需要填写原密码"
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ func agentDBMigrations() []*gormigrate.Migration {
|
|||||||
migrations.AddAcceleratorMetrics,
|
migrations.AddAcceleratorMetrics,
|
||||||
migrations.AddVLLMMonitor,
|
migrations.AddVLLMMonitor,
|
||||||
migrations.AddMonitorSettings,
|
migrations.AddMonitorSettings,
|
||||||
|
migrations.AddVLLMRequestMetrics,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1874,3 +1874,10 @@ var AddMonitorSettings = &gormigrate.Migration{
|
|||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var AddVLLMRequestMetrics = &gormigrate.Migration{
|
||||||
|
ID: "20261010-vllm-request-metrics",
|
||||||
|
Migrate: func(tx *gorm.DB) error {
|
||||||
|
return global.VLLMMonitorDB.AutoMigrate(&model.MonitorVLLM{})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,156 @@
|
|||||||
|
package vllm
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"math"
|
||||||
|
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/app/model"
|
||||||
|
)
|
||||||
|
|
||||||
|
type HistoryAccumulator struct {
|
||||||
|
histograms map[string]histogram
|
||||||
|
prefixHits float64
|
||||||
|
prefixQueries float64
|
||||||
|
finishReasons map[string]float64
|
||||||
|
finishSeconds map[string]float64
|
||||||
|
}
|
||||||
|
|
||||||
|
func (a *HistoryAccumulator) Add(histograms, requests, aggregation, group string) error {
|
||||||
|
if histograms != "" {
|
||||||
|
var sample map[string]histogram
|
||||||
|
if aggregation == "max" || group == "requests" {
|
||||||
|
var distributions struct {
|
||||||
|
Prompt *histogram `json:"request_prompt_tokens"`
|
||||||
|
Generation *histogram `json:"request_generation_tokens"`
|
||||||
|
}
|
||||||
|
if err := json.Unmarshal([]byte(histograms), &distributions); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
sample = map[string]histogram{}
|
||||||
|
if distributions.Prompt != nil {
|
||||||
|
sample["request_prompt_tokens"] = *distributions.Prompt
|
||||||
|
}
|
||||||
|
if distributions.Generation != nil {
|
||||||
|
sample["request_generation_tokens"] = *distributions.Generation
|
||||||
|
}
|
||||||
|
} else if group == "latency" {
|
||||||
|
var latency struct {
|
||||||
|
FirstToken *histogram `json:"time_to_first_token_seconds"`
|
||||||
|
InterToken *histogram `json:"inter_token_latency_seconds"`
|
||||||
|
Request *histogram `json:"e2e_request_latency_seconds"`
|
||||||
|
Prefill *histogram `json:"request_prefill_time_seconds"`
|
||||||
|
Decode *histogram `json:"request_decode_time_seconds"`
|
||||||
|
Queue *histogram `json:"request_queue_time_seconds"`
|
||||||
|
}
|
||||||
|
if err := json.Unmarshal([]byte(histograms), &latency); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
sample = map[string]histogram{}
|
||||||
|
for name, item := range map[string]*histogram{
|
||||||
|
"time_to_first_token_seconds": latency.FirstToken,
|
||||||
|
"inter_token_latency_seconds": latency.InterToken,
|
||||||
|
"e2e_request_latency_seconds": latency.Request,
|
||||||
|
"request_prefill_time_seconds": latency.Prefill,
|
||||||
|
"request_decode_time_seconds": latency.Decode,
|
||||||
|
"request_queue_time_seconds": latency.Queue,
|
||||||
|
} {
|
||||||
|
if item != nil {
|
||||||
|
sample[name] = *item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if err := json.Unmarshal([]byte(histograms), &sample); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if a.histograms == nil {
|
||||||
|
a.histograms = map[string]histogram{}
|
||||||
|
}
|
||||||
|
for name, item := range sample {
|
||||||
|
switch name {
|
||||||
|
case "request_prefill_time_seconds", "request_decode_time_seconds", "request_queue_time_seconds":
|
||||||
|
item.Buckets = nil
|
||||||
|
}
|
||||||
|
total, exists := a.histograms[name]
|
||||||
|
if !exists {
|
||||||
|
a.histograms[name] = item
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
total.Seconds += item.Seconds
|
||||||
|
total.Sum += item.Sum
|
||||||
|
total.Count += item.Count
|
||||||
|
if len(total.Buckets) != len(item.Buckets) {
|
||||||
|
total.Buckets = nil
|
||||||
|
}
|
||||||
|
for bound, count := range total.Buckets {
|
||||||
|
addition, ok := item.Buckets[bound]
|
||||||
|
if !ok {
|
||||||
|
total.Buckets = nil
|
||||||
|
break
|
||||||
|
}
|
||||||
|
total.Buckets[bound] = count + addition
|
||||||
|
}
|
||||||
|
a.histograms[name] = total
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if requests == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if group == "overview" {
|
||||||
|
var prefix struct {
|
||||||
|
Seconds float64 `json:"seconds"`
|
||||||
|
Hits *float64 `json:"prefixHits"`
|
||||||
|
Queries *float64 `json:"prefixQueries"`
|
||||||
|
}
|
||||||
|
if err := json.Unmarshal([]byte(requests), &prefix); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if prefix.Seconds > 0 && prefix.Hits != nil && prefix.Queries != nil {
|
||||||
|
a.prefixHits += *prefix.Hits
|
||||||
|
a.prefixQueries += *prefix.Queries
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
var sample requestMetrics
|
||||||
|
if err := json.Unmarshal([]byte(requests), &sample); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if sample.Seconds <= 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if group == "" && aggregation != "max" && sample.PrefixHits != nil && sample.PrefixQueries != nil {
|
||||||
|
a.prefixHits += *sample.PrefixHits
|
||||||
|
a.prefixQueries += *sample.PrefixQueries
|
||||||
|
}
|
||||||
|
for reason, count := range sample.FinishReasons {
|
||||||
|
if a.finishReasons == nil {
|
||||||
|
a.finishReasons = map[string]float64{}
|
||||||
|
}
|
||||||
|
if aggregation == "max" {
|
||||||
|
a.finishReasons[reason] = math.Max(a.finishReasons[reason], count/sample.Seconds)
|
||||||
|
} else {
|
||||||
|
if a.finishSeconds == nil {
|
||||||
|
a.finishSeconds = map[string]float64{}
|
||||||
|
}
|
||||||
|
a.finishReasons[reason] += count
|
||||||
|
a.finishSeconds[reason] += sample.Seconds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (a *HistoryAccumulator) Apply(result *model.MonitorVLLM, aggregation string) {
|
||||||
|
applyHistograms(result, a.histograms, aggregation != "max")
|
||||||
|
for reason, count := range a.finishReasons {
|
||||||
|
if result.FinishReasons == nil {
|
||||||
|
result.FinishReasons = map[string]float64{}
|
||||||
|
}
|
||||||
|
if aggregation == "max" {
|
||||||
|
result.FinishReasons[reason] = count
|
||||||
|
} else {
|
||||||
|
result.FinishReasons[reason] = count / a.finishSeconds[reason]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if aggregation != "max" && a.prefixQueries > 0 {
|
||||||
|
rate := a.prefixHits / a.prefixQueries * 100
|
||||||
|
result.PrefixCacheHitRate = &rate
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@ import (
|
|||||||
type Metrics map[string]map[string]float64
|
type Metrics map[string]map[string]float64
|
||||||
|
|
||||||
type histogram struct {
|
type histogram struct {
|
||||||
|
Seconds float64 `json:"seconds,omitempty"`
|
||||||
Sum float64 `json:"sum"`
|
Sum float64 `json:"sum"`
|
||||||
Count float64 `json:"count"`
|
Count float64 `json:"count"`
|
||||||
Buckets map[string]float64 `json:"buckets,omitempty"`
|
Buckets map[string]float64 `json:"buckets,omitempty"`
|
||||||
@@ -37,14 +38,16 @@ func Parse(reader io.Reader) (Metrics, error) {
|
|||||||
}
|
}
|
||||||
name := strings.TrimPrefix(match[1], "vllm:")
|
name := strings.TrimPrefix(match[1], "vllm:")
|
||||||
switch name {
|
switch name {
|
||||||
case "num_requests_running", "num_requests_waiting", "kv_cache_usage_perc", "gpu_cache_usage_perc", "prompt_tokens_total", "generation_tokens_total", "request_success_total":
|
case "request_prefill_time_seconds_bucket", "request_decode_time_seconds_bucket", "request_queue_time_seconds_bucket":
|
||||||
|
continue
|
||||||
|
case "num_requests_running", "num_requests_waiting", "kv_cache_usage_perc", "gpu_cache_usage_perc", "prompt_tokens_total", "generation_tokens_total", "request_success_total", "prefix_cache_hits_total", "prefix_cache_queries_total":
|
||||||
default:
|
default:
|
||||||
base := strings.TrimSuffix(strings.TrimSuffix(strings.TrimSuffix(name, "_sum"), "_count"), "_bucket")
|
base := strings.TrimSuffix(strings.TrimSuffix(strings.TrimSuffix(name, "_sum"), "_count"), "_bucket")
|
||||||
if base == name {
|
if base == name {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
switch base {
|
switch base {
|
||||||
case "time_to_first_token_seconds", "time_per_output_token_seconds", "inter_token_latency_seconds", "e2e_request_latency_seconds", "request_prefill_time_seconds", "request_decode_time_seconds":
|
case "time_to_first_token_seconds", "time_per_output_token_seconds", "inter_token_latency_seconds", "e2e_request_latency_seconds", "request_prefill_time_seconds", "request_decode_time_seconds", "request_queue_time_seconds", "request_prompt_tokens", "request_generation_tokens":
|
||||||
default:
|
default:
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -117,7 +120,7 @@ func Calculate(current, previous Metrics, elapsed float64) (model.MonitorVLLM, e
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
histograms := map[string]histogram{}
|
histograms := map[string]histogram{}
|
||||||
for _, name := range []string{"time_to_first_token_seconds", "inter_token_latency_seconds", "e2e_request_latency_seconds", "request_prefill_time_seconds", "request_decode_time_seconds"} {
|
for _, name := range []string{"time_to_first_token_seconds", "inter_token_latency_seconds", "e2e_request_latency_seconds", "request_prefill_time_seconds", "request_decode_time_seconds", "request_queue_time_seconds", "request_prompt_tokens", "request_generation_tokens"} {
|
||||||
source := name
|
source := name
|
||||||
if name == "inter_token_latency_seconds" && len(current[name+"_count"]) == 0 {
|
if name == "inter_token_latency_seconds" && len(current[name+"_count"]) == 0 {
|
||||||
source = "time_per_output_token_seconds"
|
source = "time_per_output_token_seconds"
|
||||||
@@ -127,9 +130,21 @@ func Calculate(current, previous Metrics, elapsed float64) (model.MonitorVLLM, e
|
|||||||
if sum == nil || count == nil {
|
if sum == nil || count == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
histograms[name] = histogram{Sum: *sum, Count: *count, Buckets: bucketDeltas(current[source+"_bucket"], previous[source+"_bucket"], *count)}
|
item := histogram{Sum: *sum, Count: *count}
|
||||||
|
switch name {
|
||||||
|
case "request_prefill_time_seconds", "request_decode_time_seconds", "request_queue_time_seconds":
|
||||||
|
default:
|
||||||
|
item.Buckets = bucketDeltas(current[source+"_bucket"], previous[source+"_bucket"], *count)
|
||||||
|
}
|
||||||
|
if name == "request_prompt_tokens" || name == "request_generation_tokens" {
|
||||||
|
item.Seconds = elapsed
|
||||||
|
}
|
||||||
|
histograms[name] = item
|
||||||
|
}
|
||||||
|
applyHistograms(&result, histograms, true)
|
||||||
|
if err := calculateRequestMetrics(current, previous, elapsed, &result); err != nil {
|
||||||
|
return model.MonitorVLLM{}, err
|
||||||
}
|
}
|
||||||
applyHistograms(&result, histograms)
|
|
||||||
encoded, err := json.Marshal(histograms)
|
encoded, err := json.Marshal(histograms)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return model.MonitorVLLM{}, err
|
return model.MonitorVLLM{}, err
|
||||||
@@ -138,43 +153,24 @@ func Calculate(current, previous Metrics, elapsed float64) (model.MonitorVLLM, e
|
|||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func AggregateHistograms(encoded string, result *model.MonitorVLLM) error {
|
func applyHistograms(result *model.MonitorVLLM, histograms map[string]histogram, includeMeans bool) {
|
||||||
var samples []map[string]histogram
|
for name, target := range map[string]*map[string]float64{
|
||||||
if err := json.Unmarshal([]byte(encoded), &samples); err != nil {
|
"request_prompt_tokens": &result.PromptDistribution,
|
||||||
return err
|
"request_generation_tokens": &result.GenerationDistribution,
|
||||||
}
|
} {
|
||||||
merged := map[string]histogram{}
|
item := histograms[name]
|
||||||
for _, sample := range samples {
|
if item.Seconds <= 0 || len(item.Buckets) == 0 {
|
||||||
for name, item := range sample {
|
|
||||||
if item.Count == 0 {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
total, exists := merged[name]
|
result.IntervalSeconds = math.Max(result.IntervalSeconds, item.Seconds)
|
||||||
if !exists {
|
*target = make(map[string]float64, len(item.Buckets))
|
||||||
merged[name] = item
|
for bound, count := range item.Buckets {
|
||||||
continue
|
(*target)[bound] = count / item.Seconds
|
||||||
}
|
|
||||||
total.Sum += item.Sum
|
|
||||||
total.Count += item.Count
|
|
||||||
if len(total.Buckets) != len(item.Buckets) {
|
|
||||||
total.Buckets = nil
|
|
||||||
}
|
|
||||||
for bound, count := range total.Buckets {
|
|
||||||
addition, ok := item.Buckets[bound]
|
|
||||||
if !ok {
|
|
||||||
total.Buckets = nil
|
|
||||||
break
|
|
||||||
}
|
|
||||||
total.Buckets[bound] = count + addition
|
|
||||||
}
|
|
||||||
merged[name] = total
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyHistograms(result, merged)
|
if !includeMeans {
|
||||||
return nil
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyHistograms(result *model.MonitorVLLM, histograms map[string]histogram) {
|
|
||||||
for _, item := range []struct {
|
for _, item := range []struct {
|
||||||
name string
|
name string
|
||||||
mean **float64
|
mean **float64
|
||||||
@@ -185,6 +181,8 @@ func applyHistograms(result *model.MonitorVLLM, histograms map[string]histogram)
|
|||||||
{"e2e_request_latency_seconds", &result.RequestLatency, []**float64{&result.RequestLatencyP50, &result.RequestLatencyP90, &result.RequestLatencyP95, &result.RequestLatencyP99}},
|
{"e2e_request_latency_seconds", &result.RequestLatency, []**float64{&result.RequestLatencyP50, &result.RequestLatencyP90, &result.RequestLatencyP95, &result.RequestLatencyP99}},
|
||||||
{"request_prefill_time_seconds", &result.PrefillTime, nil},
|
{"request_prefill_time_seconds", &result.PrefillTime, nil},
|
||||||
{"request_decode_time_seconds", &result.DecodeTime, nil},
|
{"request_decode_time_seconds", &result.DecodeTime, nil},
|
||||||
|
{"request_queue_time_seconds", &result.QueueTime, nil},
|
||||||
|
{"request_generation_tokens", &result.AverageGenerationTokens, nil},
|
||||||
} {
|
} {
|
||||||
histogram, ok := histograms[item.name]
|
histogram, ok := histograms[item.name]
|
||||||
if !ok || histogram.Count <= 0 {
|
if !ok || histogram.Count <= 0 {
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
package vllm
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/app/model"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/utils/re"
|
||||||
|
)
|
||||||
|
|
||||||
|
type requestMetrics struct {
|
||||||
|
Seconds float64 `json:"seconds"`
|
||||||
|
PrefixHits *float64 `json:"prefixHits,omitempty"`
|
||||||
|
PrefixQueries *float64 `json:"prefixQueries,omitempty"`
|
||||||
|
FinishReasons map[string]float64 `json:"finishReasons,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func calculateRequestMetrics(current, previous Metrics, elapsed float64, result *model.MonitorVLLM) error {
|
||||||
|
sample := requestMetrics{Seconds: elapsed, FinishReasons: map[string]float64{}}
|
||||||
|
hits := counterDelta(current["prefix_cache_hits_total"], previous["prefix_cache_hits_total"])
|
||||||
|
queries := counterDelta(current["prefix_cache_queries_total"], previous["prefix_cache_queries_total"])
|
||||||
|
if hits != nil && queries != nil && *hits <= *queries {
|
||||||
|
sample.PrefixHits, sample.PrefixQueries = hits, queries
|
||||||
|
if *queries > 0 {
|
||||||
|
rate := *hits / *queries * 100
|
||||||
|
result.PrefixCacheHitRate = &rate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
before := groupFinishReasons(previous["request_success_total"])
|
||||||
|
for reason, values := range groupFinishReasons(current["request_success_total"]) {
|
||||||
|
if delta := counterDelta(values, before[reason]); delta != nil {
|
||||||
|
sample.FinishReasons[reason] = *delta
|
||||||
|
if result.FinishReasons == nil {
|
||||||
|
result.FinishReasons = map[string]float64{}
|
||||||
|
}
|
||||||
|
result.FinishReasons[reason] = *delta / elapsed
|
||||||
|
}
|
||||||
|
}
|
||||||
|
encoded, err := json.Marshal(sample)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
result.RequestDeltas = string(encoded)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func groupFinishReasons(samples map[string]float64) map[string]map[string]float64 {
|
||||||
|
groups := map[string]map[string]float64{}
|
||||||
|
for labels, value := range samples {
|
||||||
|
for _, label := range re.GetRegex(re.VLLMMetricLabelPattern).FindAllStringSubmatch(labels, -1) {
|
||||||
|
if label[1] != "finished_reason" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
reason, err := strconv.Unquote(label[2])
|
||||||
|
if err != nil || reason == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if groups[reason] == nil {
|
||||||
|
groups[reason] = map[string]float64{}
|
||||||
|
}
|
||||||
|
groups[reason][labels] = value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return groups
|
||||||
|
}
|
||||||
@@ -251,6 +251,10 @@ func (c *CommandHelper) buildPipeCommands(ctx context.Context, commands []PipeCo
|
|||||||
cmdItem.SysProcAttr = &syscall.SysProcAttr{
|
cmdItem.SysProcAttr = &syscall.SysProcAttr{
|
||||||
Setpgid: true,
|
Setpgid: true,
|
||||||
}
|
}
|
||||||
|
cmdItem.Cancel = func() error {
|
||||||
|
_ = syscall.Kill(-cmdItem.Process.Pid, syscall.SIGKILL)
|
||||||
|
return cmdItem.Process.Kill()
|
||||||
|
}
|
||||||
cmds = append(cmds, cmdItem)
|
cmds = append(cmds, cmdItem)
|
||||||
}
|
}
|
||||||
return cmds
|
return cmds
|
||||||
@@ -335,6 +339,12 @@ func (c *CommandHelper) run(name string, arg ...string) (string, error) {
|
|||||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||||
Setpgid: true,
|
Setpgid: true,
|
||||||
}
|
}
|
||||||
|
if newContext != nil {
|
||||||
|
cmd.Cancel = func() error {
|
||||||
|
_ = syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)
|
||||||
|
return cmd.Process.Kill()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
customWriter := &CustomWriter{taskItem: c.taskItem}
|
customWriter := &CustomWriter{taskItem: c.taskItem}
|
||||||
var stdout, stderr bytes.Buffer
|
var stdout, stderr bytes.Buffer
|
||||||
@@ -398,6 +408,9 @@ func (c *CommandHelper) run(name string, arg ...string) (string, error) {
|
|||||||
}()
|
}()
|
||||||
select {
|
select {
|
||||||
case err := <-done:
|
case err := <-done:
|
||||||
|
if newContext != nil && newContext.Err() != nil {
|
||||||
|
return "", c.pipeResultErr(newContext, err)
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return handleErr(&stdout, &stderr, c.IgnoreExist1, err)
|
return handleErr(&stdout, &stderr, c.IgnoreExist1, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package forwarding
|
package forwarding
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
@@ -8,19 +10,27 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/buserr"
|
||||||
"github.com/1Panel-dev/1Panel/agent/constant"
|
"github.com/1Panel-dev/1Panel/agent/constant"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/global"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/utils/cmd"
|
||||||
|
"github.com/1Panel-dev/1Panel/agent/utils/docker"
|
||||||
|
"github.com/docker/docker/api/types/network"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ensureFamilyForwardingSysctls(system forwardingSystem, family string) error {
|
func ensureFamilyForwardingSysctls(system forwardingSystem, family string) error {
|
||||||
withIPv6 := family == FamilyIPv6
|
withIPv6 := family == FamilyIPv6
|
||||||
if withIPv6 {
|
if withIPv6 {
|
||||||
interfaces, err := IPv6RAInterfaces(system.ReadFile)
|
interfaces, err := IPv6RAInterfaces(system.ReadFile, LoadDockerIPv4BridgePorts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("check IPv6 Router Advertisement: %w", err)
|
global.LOG.Warnf("IPv6 forwarding blocked: failed to check Router Advertisement: %v", err)
|
||||||
|
return buserr.New("ErrIPv6RACheckFailed")
|
||||||
}
|
}
|
||||||
if len(interfaces) > 0 {
|
if len(interfaces) > 0 {
|
||||||
return fmt.Errorf("IPv6 forwarding blocked: interfaces %s may depend on RA/SLAAC with accept_ra=1; persist accept_ra=2 on interfaces that require RA before retrying", strings.Join(interfaces, ", "))
|
global.LOG.Warnf("IPv6 forwarding blocked: interfaces %s may depend on RA/SLAAC with accept_ra=1; review the network configuration and persist accept_ra=2 on interfaces that require RA before retrying", strings.Join(interfaces, ", "))
|
||||||
|
return buserr.New("ErrIPv6RARisk")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
paths := []string{"/proc/sys/net/ipv4/ip_forward"}
|
paths := []string{"/proc/sys/net/ipv4/ip_forward"}
|
||||||
@@ -43,7 +53,7 @@ func ensureFamilyForwardingSysctls(system forwardingSystem, family string) error
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func IPv6RAInterfaces(readFile func(string) ([]byte, error)) ([]string, error) {
|
func IPv6RAInterfaces(readFile func(string) ([]byte, error), loadDockerPorts func() (map[string]bool, error)) ([]string, error) {
|
||||||
addresses, err := readFile("/proc/net/if_inet6")
|
addresses, err := readFile("/proc/net/if_inet6")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -67,21 +77,16 @@ func IPv6RAInterfaces(readFile func(string) ([]byte, error)) ([]string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if _, exists := globalAddresses[name]; !exists {
|
globalAddresses[name] = globalAddresses[name] || fields[3] == "00"
|
||||||
globalAddresses[name] = false
|
if fields[3] == "00" && flags&permanentAddress == 0 {
|
||||||
}
|
|
||||||
if fields[3] == "00" {
|
|
||||||
globalAddresses[name] = true
|
|
||||||
if flags&permanentAddress == 0 {
|
|
||||||
raInterfaces[name] = true
|
raInterfaces[name] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
routes, err := readFile("/proc/net/ipv6_route")
|
routes, err := readFile("/proc/net/ipv6_route")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
const raRouteFlags = 0x00010000 | 0x00800000
|
const raRouteFlags = 0x00010000 | 0x00080000 | 0x00800000
|
||||||
for _, line := range strings.Split(string(routes), "\n") {
|
for _, line := range strings.Split(string(routes), "\n") {
|
||||||
fields := strings.Fields(line)
|
fields := strings.Fields(line)
|
||||||
if len(fields) == 0 {
|
if len(fields) == 0 {
|
||||||
@@ -98,12 +103,15 @@ func IPv6RAInterfaces(readFile func(string) ([]byte, error)) ([]string, error) {
|
|||||||
raInterfaces[fields[9]] = true
|
raInterfaces[fields[9]] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
uncertainInterfaces := make(map[string]bool)
|
||||||
for name, hasGlobalAddress := range globalAddresses {
|
for name, hasGlobalAddress := range globalAddresses {
|
||||||
if !hasGlobalAddress {
|
if !hasGlobalAddress && !raInterfaces[name] {
|
||||||
raInterfaces[name] = true
|
raInterfaces[name] = true
|
||||||
|
uncertainInterfaces[name] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var interfaces []string
|
var interfaces []string
|
||||||
|
checkDockerPorts := false
|
||||||
for name := range raInterfaces {
|
for name := range raInterfaces {
|
||||||
if name == "lo" {
|
if name == "lo" {
|
||||||
continue
|
continue
|
||||||
@@ -118,15 +126,104 @@ func IPv6RAInterfaces(readFile func(string) ([]byte, error)) ([]string, error) {
|
|||||||
switch strings.TrimSpace(string(value)) {
|
switch strings.TrimSpace(string(value)) {
|
||||||
case "1":
|
case "1":
|
||||||
interfaces = append(interfaces, name)
|
interfaces = append(interfaces, name)
|
||||||
|
checkDockerPorts = checkDockerPorts || uncertainInterfaces[name]
|
||||||
case "0", "2":
|
case "0", "2":
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("invalid accept_ra value for %s", name)
|
return nil, fmt.Errorf("invalid accept_ra value for %s", name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if checkDockerPorts {
|
||||||
|
ports, err := loadDockerPorts()
|
||||||
|
if err != nil {
|
||||||
|
global.LOG.Warnf("IPv6 forwarding RA check: cannot exclude Docker bridge ports: %v", err)
|
||||||
|
} else {
|
||||||
|
kept := interfaces[:0]
|
||||||
|
for _, name := range interfaces {
|
||||||
|
if !uncertainInterfaces[name] || !ports[name] {
|
||||||
|
kept = append(kept, name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
interfaces = kept
|
||||||
|
}
|
||||||
|
}
|
||||||
sort.Strings(interfaces)
|
sort.Strings(interfaces)
|
||||||
return interfaces, nil
|
return interfaces, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func LoadDockerIPv4BridgePorts() (map[string]bool, error) {
|
||||||
|
cli, err := docker.NewDockerClient()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
defer cli.Close()
|
||||||
|
if !strings.HasPrefix(cli.DaemonHost(), "unix://") {
|
||||||
|
return nil, errors.New("cannot verify local bridge ports using a remote Docker daemon")
|
||||||
|
}
|
||||||
|
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||||
|
defer cancel()
|
||||||
|
info, err := cli.Info(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
for _, option := range info.SecurityOptions {
|
||||||
|
if option == "name=rootless" {
|
||||||
|
return nil, errors.New("cannot verify host bridge ports using a rootless Docker daemon")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
networks, err := cli.NetworkList(ctx, network.ListOptions{})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
output, err := cmd.NewCommandMgr(cmd.WithContext(ctx), cmd.WithTimeout(5*time.Second)).RunWithOptionalSudoAndStdout("ip", "-details", "-json", "link", "show")
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return dockerIPv4BridgePorts(networks, output)
|
||||||
|
}
|
||||||
|
|
||||||
|
func dockerIPv4BridgePorts(networks []network.Summary, linkJSON string) (map[string]bool, error) {
|
||||||
|
bridges := make(map[string]bool)
|
||||||
|
for _, item := range networks {
|
||||||
|
if item.Driver != "bridge" || item.EnableIPv6 || item.ConfigOnly {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
name := item.Options["com.docker.network.bridge.name"]
|
||||||
|
if name == "" {
|
||||||
|
if item.Options["com.docker.network.bridge.default_bridge"] == "true" {
|
||||||
|
name = "docker0"
|
||||||
|
} else if len(item.ID) >= 12 {
|
||||||
|
name = "br-" + item.ID[:12]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if name != "" {
|
||||||
|
bridges[name] = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var links []struct {
|
||||||
|
Name string `json:"ifname"`
|
||||||
|
Master string `json:"master"`
|
||||||
|
LinkInfo struct {
|
||||||
|
Kind string `json:"info_kind"`
|
||||||
|
} `json:"linkinfo"`
|
||||||
|
}
|
||||||
|
if err := json.Unmarshal([]byte(linkJSON), &links); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
confirmedBridges := make(map[string]bool)
|
||||||
|
for _, link := range links {
|
||||||
|
if link.LinkInfo.Kind == "bridge" && bridges[link.Name] {
|
||||||
|
confirmedBridges[link.Name] = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ports := make(map[string]bool)
|
||||||
|
for _, link := range links {
|
||||||
|
if link.LinkInfo.Kind == "veth" && confirmedBridges[link.Master] {
|
||||||
|
ports[link.Name] = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ports, nil
|
||||||
|
}
|
||||||
|
|
||||||
func enableFamilyForwardingSysctls(content, family string) string {
|
func enableFamilyForwardingSysctls(content, family string) string {
|
||||||
lines := strings.Split(strings.TrimRight(content, "\n"), "\n")
|
lines := strings.Split(strings.TrimRight(content, "\n"), "\n")
|
||||||
wanted := map[string]string{"net.ipv4.ip_forward": "net.ipv4.ip_forward = 1"}
|
wanted := map[string]string{"net.ipv4.ip_forward": "net.ipv4.ip_forward = 1"}
|
||||||
|
|||||||
@@ -209,18 +209,36 @@ func buildBaseChainBindingsRestoreScript(output string, bind bool) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func baseChainBindingCommands(output string, bind bool) []string {
|
func baseChainBindingCommands(output string, bind bool) []string {
|
||||||
lines := make([]string, 0, len(BasicChains())*2)
|
chains := BasicChains()
|
||||||
for _, chain := range BasicChains() {
|
lines := make([]string, 0, len(chains)*2)
|
||||||
binding := "-A " + InputChain + " -j " + chain
|
position, insertAt := 0, 1
|
||||||
for _, current := range strings.Split(output, "\n") {
|
for _, current := range strings.Split(output, "\n") {
|
||||||
if strings.TrimSpace(current) == binding {
|
current = strings.TrimSpace(current)
|
||||||
|
if !strings.HasPrefix(current, "-A "+InputChain+" ") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if chain := strings.TrimPrefix(current, "-A "+InputChain+" -j "); slices.Contains(chains, chain) {
|
||||||
lines = append(lines, "-D "+InputChain+" -j "+chain)
|
lines = append(lines, "-D "+InputChain+" -j "+chain)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
position++
|
||||||
|
if !bind {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
fields, err := shellwords.Parse(current)
|
||||||
|
if err != nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
for index := 2; index+1 < len(fields); index++ {
|
||||||
|
if fields[index] == "-j" && strings.HasPrefix(fields[index+1], "f2b-") {
|
||||||
|
insertAt = position + 1
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if bind {
|
if bind {
|
||||||
for index, chain := range BasicChains() {
|
for index, chain := range chains {
|
||||||
lines = append(lines, fmt.Sprintf("-I %s %d -j %s", InputChain, index+1, chain))
|
lines = append(lines, fmt.Sprintf("-I %s %d -j %s", InputChain, insertAt+index, chain))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return lines
|
return lines
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import (
|
|||||||
"github.com/go-acme/lego/v5/providers/dns/namecheap"
|
"github.com/go-acme/lego/v5/providers/dns/namecheap"
|
||||||
"github.com/go-acme/lego/v5/providers/dns/namedotcom"
|
"github.com/go-acme/lego/v5/providers/dns/namedotcom"
|
||||||
"github.com/go-acme/lego/v5/providers/dns/namesilo"
|
"github.com/go-acme/lego/v5/providers/dns/namesilo"
|
||||||
|
"github.com/go-acme/lego/v5/providers/dns/netcup"
|
||||||
"github.com/go-acme/lego/v5/providers/dns/ovh"
|
"github.com/go-acme/lego/v5/providers/dns/ovh"
|
||||||
"github.com/go-acme/lego/v5/providers/dns/porkbun"
|
"github.com/go-acme/lego/v5/providers/dns/porkbun"
|
||||||
"github.com/go-acme/lego/v5/providers/dns/rainyun"
|
"github.com/go-acme/lego/v5/providers/dns/rainyun"
|
||||||
@@ -58,6 +59,7 @@ const (
|
|||||||
NameCheap DnsType = "NameCheap"
|
NameCheap DnsType = "NameCheap"
|
||||||
NameCom DnsType = "NameCom"
|
NameCom DnsType = "NameCom"
|
||||||
NameSilo DnsType = "NameSilo"
|
NameSilo DnsType = "NameSilo"
|
||||||
|
Netcup DnsType = "Netcup"
|
||||||
Ovh DnsType = "Ovh"
|
Ovh DnsType = "Ovh"
|
||||||
PorkBun DnsType = "PorkBun"
|
PorkBun DnsType = "PorkBun"
|
||||||
RainYun DnsType = "RainYun"
|
RainYun DnsType = "RainYun"
|
||||||
@@ -92,6 +94,7 @@ type DNSParam struct {
|
|||||||
Endpoint string `json:"endpoint"`
|
Endpoint string `json:"endpoint"`
|
||||||
AccessToken string `json:"accessToken"`
|
AccessToken string `json:"accessToken"`
|
||||||
BaseURL string `json:"baseURL"`
|
BaseURL string `json:"baseURL"`
|
||||||
|
CustomerNumber string `json:"customerNumber"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -164,6 +167,14 @@ func getDNSProviderConfig(dnsType DnsType, params string, httpClient *http.Clien
|
|||||||
config.PropagationTimeout = propagationTimeout
|
config.PropagationTimeout = propagationTimeout
|
||||||
config.PollingInterval = pollingInterval
|
config.PollingInterval = pollingInterval
|
||||||
p, err = namesilo.NewDNSProviderConfig(config)
|
p, err = namesilo.NewDNSProviderConfig(config)
|
||||||
|
case Netcup:
|
||||||
|
config := newDNSProviderConfig(netcup.NewDefaultConfig(), httpClient)
|
||||||
|
config.Customer = param.CustomerNumber
|
||||||
|
config.Key = param.APIkey
|
||||||
|
config.Password = param.Password
|
||||||
|
config.PropagationTimeout = propagationTimeout
|
||||||
|
config.PollingInterval = pollingInterval
|
||||||
|
p, err = netcup.NewDNSProviderConfig(config)
|
||||||
case Godaddy:
|
case Godaddy:
|
||||||
config := newDNSProviderConfig(godaddy.NewDefaultConfig(), httpClient)
|
config := newDNSProviderConfig(godaddy.NewDefaultConfig(), httpClient)
|
||||||
config.APIKey = param.APIkey
|
config.APIKey = param.APIkey
|
||||||
|
|||||||
@@ -36389,9 +36389,6 @@ const docTemplate = `{
|
|||||||
"bound": {
|
"bound": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"forwardPolicy": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"initialized": {
|
"initialized": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36385,9 +36385,6 @@
|
|||||||
"bound": {
|
"bound": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"forwardPolicy": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"initialized": {
|
"initialized": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
|||||||
+7
-7
@@ -30,7 +30,7 @@ require (
|
|||||||
github.com/pkg/sftp v1.13.11
|
github.com/pkg/sftp v1.13.11
|
||||||
github.com/robfig/cron/v3 v3.0.1
|
github.com/robfig/cron/v3 v3.0.1
|
||||||
github.com/russellhaering/goxmldsig v1.6.1
|
github.com/russellhaering/goxmldsig v1.6.1
|
||||||
github.com/shirou/gopsutil/v4 v4.26.7
|
github.com/shirou/gopsutil/v4 v4.26.8
|
||||||
github.com/sirupsen/logrus v1.10.2
|
github.com/sirupsen/logrus v1.10.2
|
||||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
||||||
github.com/soheilhy/cmux v0.1.5
|
github.com/soheilhy/cmux v0.1.5
|
||||||
@@ -39,13 +39,13 @@ require (
|
|||||||
github.com/swaggo/files/v2 v2.0.2
|
github.com/swaggo/files/v2 v2.0.2
|
||||||
github.com/swaggo/swag v1.16.6
|
github.com/swaggo/swag v1.16.6
|
||||||
github.com/xlzd/gotp v0.1.0
|
github.com/xlzd/gotp v0.1.0
|
||||||
golang.org/x/crypto v0.56.0
|
golang.org/x/crypto v0.57.0
|
||||||
golang.org/x/image v0.45.0
|
golang.org/x/image v0.45.0
|
||||||
golang.org/x/net v0.58.0
|
golang.org/x/net v0.58.0
|
||||||
golang.org/x/oauth2 v0.36.0
|
golang.org/x/oauth2 v0.36.0
|
||||||
golang.org/x/sys v0.47.0
|
golang.org/x/sys v0.48.0
|
||||||
golang.org/x/term v0.45.0
|
golang.org/x/term v0.46.0
|
||||||
golang.org/x/text v0.41.0
|
golang.org/x/text v0.42.0
|
||||||
gopkg.in/yaml.v2 v2.4.0
|
gopkg.in/yaml.v2 v2.4.0
|
||||||
gopkg.in/yaml.v3 v3.0.1
|
gopkg.in/yaml.v3 v3.0.1
|
||||||
gorm.io/gorm v1.31.2
|
gorm.io/gorm v1.31.2
|
||||||
@@ -129,8 +129,8 @@ require (
|
|||||||
go.mongodb.org/mongo-driver/v2 v2.5.1 // indirect
|
go.mongodb.org/mongo-driver/v2 v2.5.1 // indirect
|
||||||
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
||||||
golang.org/x/arch v0.26.0 // indirect
|
golang.org/x/arch v0.26.0 // indirect
|
||||||
golang.org/x/mod v0.40.0 // indirect
|
golang.org/x/mod v0.41.0 // indirect
|
||||||
golang.org/x/sync v0.22.0 // indirect
|
golang.org/x/sync v0.23.0 // indirect
|
||||||
golang.org/x/tools v0.49.0 // indirect
|
golang.org/x/tools v0.49.0 // indirect
|
||||||
google.golang.org/protobuf v1.36.11 // indirect
|
google.golang.org/protobuf v1.36.11 // indirect
|
||||||
modernc.org/libc v1.72.0 // indirect
|
modernc.org/libc v1.72.0 // indirect
|
||||||
|
|||||||
+14
@@ -237,6 +237,8 @@ github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88ee
|
|||||||
github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI=
|
github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI=
|
||||||
github.com/shirou/gopsutil/v4 v4.26.7 h1:IXzpHz/dkMRYAhKkOXr1HB6SuzWU3eoyyeWe7g3bNZc=
|
github.com/shirou/gopsutil/v4 v4.26.7 h1:IXzpHz/dkMRYAhKkOXr1HB6SuzWU3eoyyeWe7g3bNZc=
|
||||||
github.com/shirou/gopsutil/v4 v4.26.7/go.mod h1:5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=
|
github.com/shirou/gopsutil/v4 v4.26.7/go.mod h1:5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=
|
||||||
|
github.com/shirou/gopsutil/v4 v4.26.8 h1:YQMTF/1J50B5+Y0vlo1eDRf5DoR7Gk69hY+8wjYkQeo=
|
||||||
|
github.com/shirou/gopsutil/v4 v4.26.8/go.mod h1:5O9FjBiXoTDFatIWjZZosqj4pV0DRtLx598xGbBehzM=
|
||||||
github.com/sirupsen/logrus v1.10.2 h1:G2SED73/qrAu6YwbdxOD6peLkCBI3z7L+ykJFTXJBBo=
|
github.com/sirupsen/logrus v1.10.2 h1:G2SED73/qrAu6YwbdxOD6peLkCBI3z7L+ykJFTXJBBo=
|
||||||
github.com/sirupsen/logrus v1.10.2/go.mod h1:SLEg8TqYulVKKfIGHldVp2K2aYz2DKSVBq4g/H5bR7Q=
|
github.com/sirupsen/logrus v1.10.2/go.mod h1:SLEg8TqYulVKKfIGHldVp2K2aYz2DKSVBq4g/H5bR7Q=
|
||||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e h1:MRM5ITcdelLK2j1vwZ3Je0FKVCfqOLp5zO6trqMLYs0=
|
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e h1:MRM5ITcdelLK2j1vwZ3Je0FKVCfqOLp5zO6trqMLYs0=
|
||||||
@@ -304,11 +306,15 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
|
|||||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y=
|
golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y=
|
||||||
golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I=
|
golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I=
|
||||||
|
golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M=
|
||||||
|
golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
|
||||||
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||||
golang.org/x/image v0.45.0 h1:FMb1nTbH5H9vF55SriQHgFw5GnNL9Jg6L25BwXKzhB0=
|
golang.org/x/image v0.45.0 h1:FMb1nTbH5H9vF55SriQHgFw5GnNL9Jg6L25BwXKzhB0=
|
||||||
golang.org/x/image v0.45.0/go.mod h1:n62x/7RqlwXDvGsSU4u6IUTUf6KghUZ9Bt7cG/T9Fx4=
|
golang.org/x/image v0.45.0/go.mod h1:n62x/7RqlwXDvGsSU4u6IUTUf6KghUZ9Bt7cG/T9Fx4=
|
||||||
golang.org/x/mod v0.40.0 h1:hUv+3cXcdRHz08UmSiOob7sadHig73uo5bkXxQ/tvUs=
|
golang.org/x/mod v0.40.0 h1:hUv+3cXcdRHz08UmSiOob7sadHig73uo5bkXxQ/tvUs=
|
||||||
golang.org/x/mod v0.40.0/go.mod h1:0/weTWkPWGBikyTWAX3dkjVztMmBA5hM0DH6BElSupE=
|
golang.org/x/mod v0.40.0/go.mod h1:0/weTWkPWGBikyTWAX3dkjVztMmBA5hM0DH6BElSupE=
|
||||||
|
golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c=
|
||||||
|
golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o=
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To=
|
golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To=
|
||||||
@@ -317,6 +323,8 @@ golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
|
|||||||
golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
|
golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
|
||||||
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
|
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
|
||||||
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
|
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
|
||||||
|
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
||||||
|
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
@@ -324,12 +332,18 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w
|
|||||||
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
|
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
|
||||||
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||||
|
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
||||||
|
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
||||||
golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
|
golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
|
||||||
golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
|
golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
|
||||||
|
golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE=
|
||||||
|
golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
|
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
|
||||||
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
|
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
|
||||||
|
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
|
||||||
|
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
|
||||||
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
|
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
|
||||||
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
|
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
|
|||||||
+15
-4
@@ -230,6 +230,10 @@ func (c *CommandHelper) buildPipeCommands(ctx context.Context, commands []PipeCo
|
|||||||
cmdItem.SysProcAttr = &syscall.SysProcAttr{
|
cmdItem.SysProcAttr = &syscall.SysProcAttr{
|
||||||
Setpgid: true,
|
Setpgid: true,
|
||||||
}
|
}
|
||||||
|
cmdItem.Cancel = func() error {
|
||||||
|
_ = syscall.Kill(-cmdItem.Process.Pid, syscall.SIGKILL)
|
||||||
|
return cmdItem.Process.Kill()
|
||||||
|
}
|
||||||
cmds = append(cmds, cmdItem)
|
cmds = append(cmds, cmdItem)
|
||||||
}
|
}
|
||||||
return cmds
|
return cmds
|
||||||
@@ -305,6 +309,12 @@ func (c *CommandHelper) run(name string, arg ...string) (string, error) {
|
|||||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||||
Setpgid: true,
|
Setpgid: true,
|
||||||
}
|
}
|
||||||
|
if newContext != nil {
|
||||||
|
cmd.Cancel = func() error {
|
||||||
|
_ = syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)
|
||||||
|
return cmd.Process.Kill()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
customWriter := &CustomWriter{taskItem: c.taskItem}
|
customWriter := &CustomWriter{taskItem: c.taskItem}
|
||||||
var stdout, stderr bytes.Buffer
|
var stdout, stderr bytes.Buffer
|
||||||
@@ -357,11 +367,12 @@ func (c *CommandHelper) run(name string, arg ...string) (string, error) {
|
|||||||
}()
|
}()
|
||||||
select {
|
select {
|
||||||
case err := <-done:
|
case err := <-done:
|
||||||
if c.preserveErrorCause && newContext != nil && newContext.Err() != nil {
|
if newContext != nil && newContext.Err() != nil {
|
||||||
if cmd.Process != nil && cmd.Process.Pid > 0 {
|
resultErr := c.pipeResultErr(newContext, err)
|
||||||
_ = syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)
|
if c.preserveErrorCause {
|
||||||
|
resultErr = &commandError{message: resultErr.Error(), cause: newContext.Err()}
|
||||||
}
|
}
|
||||||
return "", newContext.Err()
|
return "", resultErr
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
out, resultErr := handleErr(&stdout, &stderr, c.IgnoreExist1, err)
|
out, resultErr := handleErr(&stdout, &stderr, c.IgnoreExist1, err)
|
||||||
|
|||||||
Generated
+101
-538
@@ -22,12 +22,12 @@
|
|||||||
"@xterm/addon-fit": "^0.10.0",
|
"@xterm/addon-fit": "^0.10.0",
|
||||||
"@xterm/xterm": "^5.5.0",
|
"@xterm/xterm": "^5.5.0",
|
||||||
"anser": "^2.3.5",
|
"anser": "^2.3.5",
|
||||||
"axios": "^1.18.0",
|
"axios": "^1.20.0",
|
||||||
"codemirror": "^6.0.2",
|
"codemirror": "^6.0.2",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dompurify": "^3.4.13",
|
"dompurify": "^3.4.16",
|
||||||
"echarts": "^6.1.0",
|
"echarts": "^6.1.0",
|
||||||
"element-plus": "2.14.4",
|
"element-plus": "2.14.6",
|
||||||
"js-base64": "^3.9.1",
|
"js-base64": "^3.9.1",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"lodash-es": "^4.18.1",
|
"lodash-es": "^4.18.1",
|
||||||
@@ -63,11 +63,11 @@
|
|||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-prettier": "^5.5.6",
|
"eslint-plugin-prettier": "^5.5.6",
|
||||||
"eslint-plugin-vue": "^10.10.0",
|
"eslint-plugin-vue": "^10.10.0",
|
||||||
"lint-staged": "^17.0.7",
|
"lint-staged": "^17.6.0",
|
||||||
"postcss": "^8.5.14",
|
"postcss": "^8.5.14",
|
||||||
"postcss-html": "^2.0.0",
|
"postcss-html": "^2.0.0",
|
||||||
"prettier": "^3.9.6",
|
"prettier": "^3.9.6",
|
||||||
"rollup-plugin-visualizer": "^7.0.1",
|
"rollup-plugin-visualizer": "^7.1.1",
|
||||||
"sass": "^1.105.0",
|
"sass": "^1.105.0",
|
||||||
"standard-version": "^9.5.0",
|
"standard-version": "^9.5.0",
|
||||||
"tailwindcss": "^4.3.3",
|
"tailwindcss": "^4.3.3",
|
||||||
@@ -932,9 +932,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ctrl/tinycolor": {
|
"node_modules/@ctrl/tinycolor": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-4.2.1.tgz",
|
||||||
"integrity": "sha512-kzyuwOAQnXJNLS9PSyrk0CWk35nWJW/zl/6KvnTBMFK65gm7U1/Z5BqjxeapjZCIhQcM/DsrEmcbRwDyXyXK4A==",
|
"integrity": "sha512-Vh5uy9Y1JBMId6J1f68TMXnZrTCvNdo9Fu2k0d1YnJngR+sM5kWTKl441c/3TFs+cG0NWOjRWgQ/iaWhbYx+7A==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=14"
|
||||||
@@ -1504,9 +1504,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/config-array/node_modules/brace-expansion": {
|
"node_modules/@eslint/config-array/node_modules/brace-expansion": {
|
||||||
"version": "5.0.9",
|
"version": "5.0.12",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
||||||
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
|
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -3271,9 +3271,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/brace-expansion": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/brace-expansion": {
|
||||||
"version": "5.0.9",
|
"version": "5.0.12",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
||||||
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
|
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -3554,9 +3554,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
||||||
"version": "5.0.9",
|
"version": "5.0.12",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
||||||
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
|
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4104,22 +4104,6 @@
|
|||||||
"integrity": "sha512-vcZjxvvVoxTeR5XBNJB38oTu/7eDCZlwdz32N1eNgpyPF7j/Z7Idf+CUwQOkKKpJ7RJyjxgLHCM7vdIK0iCNMQ==",
|
"integrity": "sha512-vcZjxvvVoxTeR5XBNJB38oTu/7eDCZlwdz32N1eNgpyPF7j/Z7Idf+CUwQOkKKpJ7RJyjxgLHCM7vdIK0iCNMQ==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/ansi-escapes": {
|
|
||||||
"version": "7.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz",
|
|
||||||
"integrity": "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"environment": "^1.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/ansi-regex": {
|
"node_modules/ansi-regex": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
||||||
@@ -4249,9 +4233,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/axios": {
|
"node_modules/axios": {
|
||||||
"version": "1.19.0",
|
"version": "1.20.0",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.19.0.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.20.0.tgz",
|
||||||
"integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==",
|
"integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.16.0",
|
"follow-redirects": "^1.16.0",
|
||||||
@@ -4297,9 +4281,9 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/brace-expansion": {
|
"node_modules/brace-expansion": {
|
||||||
"version": "1.1.18",
|
"version": "1.1.21",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",
|
||||||
"integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
|
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4487,85 +4471,6 @@
|
|||||||
"url": "https://paulmillr.com/funding/"
|
"url": "https://paulmillr.com/funding/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cli-cursor": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"restore-cursor": "^5.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/cli-truncate": {
|
|
||||||
"version": "5.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-5.2.0.tgz",
|
|
||||||
"integrity": "sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"slice-ansi": "^8.0.0",
|
|
||||||
"string-width": "^8.2.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/cli-truncate/node_modules/ansi-regex": {
|
|
||||||
"version": "6.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
|
|
||||||
"integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/cli-truncate/node_modules/string-width": {
|
|
||||||
"version": "8.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.1.tgz",
|
|
||||||
"integrity": "sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"get-east-asian-width": "^1.5.0",
|
|
||||||
"strip-ansi": "^7.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/cli-truncate/node_modules/strip-ansi": {
|
|
||||||
"version": "7.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
|
|
||||||
"integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-regex": "^6.2.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/clipboard": {
|
"node_modules/clipboard": {
|
||||||
"version": "2.0.11",
|
"version": "2.0.11",
|
||||||
"resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz",
|
||||||
@@ -5442,9 +5347,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dompurify": {
|
"node_modules/dompurify": {
|
||||||
"version": "3.4.14",
|
"version": "3.4.16",
|
||||||
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.14.tgz",
|
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.16.tgz",
|
||||||
"integrity": "sha512-dVoH9z+MY+C9IilgGCk3YfFqjLi3fChm2OiKJMzh6axrJ5qwxqWaZamgmHrpv22CN/KdbZJuGEGgfQoL00LTdg==",
|
"integrity": "sha512-sqo+pNp3qRhCIpbgRi1y8Tgk27Bo2Ry7w0dC1NBeNTdZChWjz9Xb/KOoZbRP/R6pQZ80Qw8YhXw13hWWBbMRnQ==",
|
||||||
"license": "(MPL-2.0 OR Apache-2.0)",
|
"license": "(MPL-2.0 OR Apache-2.0)",
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@types/trusted-types": "^2.0.7"
|
"@types/trusted-types": "^2.0.7"
|
||||||
@@ -5590,18 +5495,18 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/element-plus": {
|
"node_modules/element-plus": {
|
||||||
"version": "2.14.4",
|
"version": "2.14.6",
|
||||||
"resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.14.4.tgz",
|
"resolved": "https://registry.npmjs.org/element-plus/-/element-plus-2.14.6.tgz",
|
||||||
"integrity": "sha512-vMKR9tFcLeNrJgFXA3zhUn6YuRKUQW9d0btakBR8U1Iq8MfzkjMOGcgs5de2VgiLldHt69brmuBHpxc3bK4ZgQ==",
|
"integrity": "sha512-GH0fMoMgVEKkHimoaKvg5B00NmfPbQ+qxX6/JrO7F+dLAC3atrZr2Y2MoccHMxS22M7QE12/s0DG0Zs49iwJ/A==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ctrl/tinycolor": "^4.2.0",
|
"@ctrl/tinycolor": "^4.2.1",
|
||||||
"@element-plus/icons-vue": "^2.3.2",
|
"@element-plus/icons-vue": "^2.3.2",
|
||||||
"@floating-ui/dom": "^1.8.0",
|
"@floating-ui/dom": "^1.8.0",
|
||||||
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.8",
|
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.8",
|
||||||
"@types/lodash": "^4.17.24",
|
"@types/lodash": "^4.17.24",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@vueuse/core": "14.3.0",
|
"@vueuse/core": "15.0.0",
|
||||||
"async-validator": "^4.2.5",
|
"async-validator": "^4.2.5",
|
||||||
"dayjs": "^1.11.20",
|
"dayjs": "^1.11.20",
|
||||||
"lodash": "^4.18.1",
|
"lodash": "^4.18.1",
|
||||||
@@ -5609,7 +5514,7 @@
|
|||||||
"lodash-unified": "^1.0.3",
|
"lodash-unified": "^1.0.3",
|
||||||
"memoize-one": "^6.0.0",
|
"memoize-one": "^6.0.0",
|
||||||
"normalize-wheel-es": "^1.2.0",
|
"normalize-wheel-es": "^1.2.0",
|
||||||
"vue-component-type-helpers": "^3.3.9"
|
"vue-component-type-helpers": "^3.3.11"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.3.7"
|
"vue": "^3.3.7"
|
||||||
@@ -5625,14 +5530,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/element-plus/node_modules/@vueuse/core": {
|
"node_modules/element-plus/node_modules/@vueuse/core": {
|
||||||
"version": "14.3.0",
|
"version": "15.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-15.0.0.tgz",
|
||||||
"integrity": "sha512-aHfz47g0ZhMtTVHmIzMVpJy8ePhhOy68GY5bv110+5DVtZ+W7BsOx+m61UNQqfrWyPztIHIanWa3E2tib3NFIw==",
|
"integrity": "sha512-Zv67h5mrk7YHDJsRObx+DXaCBz6RKBUpxqLesJ+3xZNPG6yuQs7ja7kg3veFrrouYLWAqydQ7CwGEbLVxB43Ng==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/web-bluetooth": "^0.0.21",
|
"@types/web-bluetooth": "^0.0.21",
|
||||||
"@vueuse/metadata": "14.3.0",
|
"@vueuse/metadata": "15.0.0",
|
||||||
"@vueuse/shared": "14.3.0"
|
"@vueuse/shared": "15.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
@@ -5642,19 +5550,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/element-plus/node_modules/@vueuse/metadata": {
|
"node_modules/element-plus/node_modules/@vueuse/metadata": {
|
||||||
"version": "14.3.0",
|
"version": "15.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-15.0.0.tgz",
|
||||||
"integrity": "sha512-BwxmbAzwAVF50+MW57GXOUEV61nFBGnlBvrTqj49PqWJu3uw7hdu72ztXeZ33RdZtDY6kO+bfCAE1PCn88Tktw==",
|
"integrity": "sha512-sfWE5LADAKJ0KnjtGliMdSN8Ij/L7uP6rXIZlgPloAI4zvvefbw6H5Lt7KJA6RqQOYgVqWF5Guj50HHMIzygBg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/element-plus/node_modules/@vueuse/shared": {
|
"node_modules/element-plus/node_modules/@vueuse/shared": {
|
||||||
"version": "14.3.0",
|
"version": "15.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-15.0.0.tgz",
|
||||||
"integrity": "sha512-bZpge9eSXwa4ToSiqJ7j6KRwhAsneMFoSz3LMWKQDkqimm3D/tbFlrklrs/IOqC8tEcYmXQZJ6N0UrjhBirVCg==",
|
"integrity": "sha512-vbNXhGrbV53xPOMSyOzMHQRvhMgZf7oNDw2RChUetVxwTIEkInQ1joZ9JbT0G3z2n2AJNjvmCWeM9ySYrnvogA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
},
|
},
|
||||||
@@ -5695,19 +5609,6 @@
|
|||||||
"url": "https://github.com/fb55/entities?sponsor=1"
|
"url": "https://github.com/fb55/entities?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/environment": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/error-ex": {
|
"node_modules/error-ex": {
|
||||||
"version": "1.3.4",
|
"version": "1.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
|
||||||
@@ -6026,9 +5927,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint/node_modules/brace-expansion": {
|
"node_modules/eslint/node_modules/brace-expansion": {
|
||||||
"version": "5.0.9",
|
"version": "5.0.12",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
||||||
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
|
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -6170,13 +6071,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eventemitter3": {
|
|
||||||
"version": "5.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
|
|
||||||
"integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/exsolve": {
|
"node_modules/exsolve": {
|
||||||
"version": "1.0.8",
|
"version": "1.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz",
|
||||||
@@ -6650,13 +6544,13 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/handlebars": {
|
"node_modules/handlebars": {
|
||||||
"version": "4.7.9",
|
"version": "4.7.10",
|
||||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz",
|
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.10.tgz",
|
||||||
"integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==",
|
"integrity": "sha512-P5VJMVM7qgBn6vjXMw8WG9uVI+ncf2pi72j4de4yz5ZULLj2RGqLYaKOYGsgyrViQ0tePOVlN1tDCCXXtFqXKg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.8",
|
||||||
"neo-async": "^2.6.2",
|
"neo-async": "^2.6.2",
|
||||||
"source-map": "^0.6.1",
|
"source-map": "^0.6.1",
|
||||||
"wordwrap": "^1.0.0"
|
"wordwrap": "^1.0.0"
|
||||||
@@ -6905,22 +6799,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/is-fullwidth-code-point": {
|
|
||||||
"version": "5.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
|
|
||||||
"integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"get-east-asian-width": "^1.3.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/is-glob": {
|
"node_modules/is-glob": {
|
||||||
"version": "4.0.3",
|
"version": "4.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
||||||
@@ -7514,16 +7392,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lint-staged": {
|
"node_modules/lint-staged": {
|
||||||
"version": "17.0.7",
|
"version": "17.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-17.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-17.6.0.tgz",
|
||||||
"integrity": "sha512-JrSobt+tW3rH8IOMi8tDZd3foorM5yPEkLD/V2NxobgHrFfHWGee4MOLVuZeScgxftEwbHrPHIFA/ZL+nUJeuA==",
|
"integrity": "sha512-nOhBfYkZEwkFtNzD5pK9s9LkcWoxJ+whLzEnhqi9nl7zTB5n7tg8+9iYgMGx2Wm3VlLu8cbNj0RACzY+nWi5iQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"listr2": "^10.2.1",
|
"picomatch": "^4.0.7",
|
||||||
"picomatch": "^4.0.4",
|
|
||||||
"string-argv": "^0.3.2",
|
"string-argv": "^0.3.2",
|
||||||
"tinyexec": "^1.2.4"
|
"tinyexec": "^1.3.1"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"lint-staged": "bin/lint-staged.js"
|
"lint-staged": "bin/lint-staged.js"
|
||||||
@@ -7535,13 +7412,13 @@
|
|||||||
"url": "https://opencollective.com/lint-staged"
|
"url": "https://opencollective.com/lint-staged"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"yaml": "^2.9.0"
|
"yaml": "^2.9.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lint-staged/node_modules/picomatch": {
|
"node_modules/lint-staged/node_modules/picomatch": {
|
||||||
"version": "4.0.4",
|
"version": "4.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
|
||||||
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
"integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -7551,100 +7428,6 @@
|
|||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/listr2": {
|
|
||||||
"version": "10.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/listr2/-/listr2-10.2.1.tgz",
|
|
||||||
"integrity": "sha512-7I5knELsJKTUjXG+A6BkKAiGkW1i25fNa/xlUl9hFtk15WbE9jndA89xu5FzQKrY5llajE1hfZZFMILXkDHk/Q==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"cli-truncate": "^5.2.0",
|
|
||||||
"eventemitter3": "^5.0.4",
|
|
||||||
"log-update": "^6.1.0",
|
|
||||||
"rfdc": "^1.4.1",
|
|
||||||
"wrap-ansi": "^10.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=22.13.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/listr2/node_modules/ansi-regex": {
|
|
||||||
"version": "6.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
|
|
||||||
"integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/listr2/node_modules/ansi-styles": {
|
|
||||||
"version": "6.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
|
|
||||||
"integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/listr2/node_modules/string-width": {
|
|
||||||
"version": "8.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.1.tgz",
|
|
||||||
"integrity": "sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"get-east-asian-width": "^1.5.0",
|
|
||||||
"strip-ansi": "^7.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/listr2/node_modules/strip-ansi": {
|
|
||||||
"version": "7.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
|
|
||||||
"integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-regex": "^6.2.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/listr2/node_modules/wrap-ansi": {
|
|
||||||
"version": "10.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-10.0.0.tgz",
|
|
||||||
"integrity": "sha512-SGcvg80f0wUy2/fXES19feHMz8E0JoXv2uNgHOu4Dgi2OrCy1lqwFYEJz1BLbDI0exjPMe/ZdzZ/YpGECBG/aQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^6.2.3",
|
|
||||||
"string-width": "^8.2.0",
|
|
||||||
"strip-ansi": "^7.1.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/load-json-file": {
|
"node_modules/load-json-file": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
|
||||||
@@ -7777,128 +7560,6 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/log-update": {
|
|
||||||
"version": "6.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",
|
|
||||||
"integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-escapes": "^7.0.0",
|
|
||||||
"cli-cursor": "^5.0.0",
|
|
||||||
"slice-ansi": "^7.1.0",
|
|
||||||
"strip-ansi": "^7.1.0",
|
|
||||||
"wrap-ansi": "^9.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/ansi-regex": {
|
|
||||||
"version": "6.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
|
|
||||||
"integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/ansi-styles": {
|
|
||||||
"version": "6.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
|
|
||||||
"integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/emoji-regex": {
|
|
||||||
"version": "10.6.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
|
|
||||||
"integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/slice-ansi": {
|
|
||||||
"version": "7.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",
|
|
||||||
"integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^6.2.1",
|
|
||||||
"is-fullwidth-code-point": "^5.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/slice-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/string-width": {
|
|
||||||
"version": "7.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
|
|
||||||
"integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"emoji-regex": "^10.3.0",
|
|
||||||
"get-east-asian-width": "^1.0.0",
|
|
||||||
"strip-ansi": "^7.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/strip-ansi": {
|
|
||||||
"version": "7.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
|
|
||||||
"integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-regex": "^6.2.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/log-update/node_modules/wrap-ansi": {
|
|
||||||
"version": "9.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
|
|
||||||
"integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^6.2.1",
|
|
||||||
"string-width": "^7.0.0",
|
|
||||||
"strip-ansi": "^7.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/lru-cache": {
|
"node_modules/lru-cache": {
|
||||||
"version": "5.1.1",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
||||||
@@ -7947,9 +7608,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/markdown-it": {
|
"node_modules/markdown-it": {
|
||||||
"version": "14.3.0",
|
"version": "14.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.2.tgz",
|
||||||
"integrity": "sha512-RCEsPjR+sr0x+AuYp601tKTkgFG4YEPLCzHST3cQ/fhlJkqAkz1L2/Qbp1j9qw5SBwQHFBoW8+hoN5xssOF0Tw==",
|
"integrity": "sha512-sHHjZ5fJKlgrG4qns2YwVcdNep35h5fERrfkD2YNsb9UFk0UIHarbiTaHKVMlPuWAoiilyK8Fv/jAm11slsY7Q==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "github",
|
"type": "github",
|
||||||
@@ -8291,19 +7952,6 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mimic-function": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
|
|
||||||
"integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/min-indent": {
|
"node_modules/min-indent": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
|
||||||
@@ -8328,9 +7976,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minimist": {
|
"node_modules/minimist": {
|
||||||
"version": "1.2.7",
|
"version": "1.2.8",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
||||||
"integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==",
|
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
@@ -8390,15 +8038,6 @@
|
|||||||
"marked": "14.0.0"
|
"marked": "14.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/monaco-editor/node_modules/dompurify": {
|
|
||||||
"version": "3.4.13",
|
|
||||||
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.13.tgz",
|
|
||||||
"integrity": "sha512-2vmYIoqjze2d+kakP8S/nS5shfsl587kzwEjcGlTdiksUVgFHnFCsLYDVj/JNqJVOQZGSYBTmuycv0PodwmnMQ==",
|
|
||||||
"license": "(MPL-2.0 OR Apache-2.0)",
|
|
||||||
"optionalDependencies": {
|
|
||||||
"@types/trusted-types": "^2.0.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/ms": {
|
"node_modules/ms": {
|
||||||
"version": "2.1.3",
|
"version": "2.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||||
@@ -8531,22 +8170,6 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/onetime": {
|
|
||||||
"version": "7.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
|
|
||||||
"integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"mimic-function": "^5.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/open": {
|
"node_modules/open": {
|
||||||
"version": "11.0.0",
|
"version": "11.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/open/-/open-11.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/open/-/open-11.0.0.tgz",
|
||||||
@@ -8872,9 +8495,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss-selector-parser": {
|
"node_modules/postcss-selector-parser": {
|
||||||
"version": "7.1.4",
|
"version": "7.1.6",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz",
|
||||||
"integrity": "sha512-HeP7D2wyhkR+XaK6v4W8oRF62Dsz4flyuczALJp61GckGm42u1saSSJ/0auvcBqxs3jMRFEcPK34At/0JBKdOg==",
|
"integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -9261,23 +8884,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/restore-cursor": {
|
|
||||||
"version": "5.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
|
|
||||||
"integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"onetime": "^7.0.0",
|
|
||||||
"signal-exit": "^4.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/rfdc": {
|
"node_modules/rfdc": {
|
||||||
"version": "1.4.1",
|
"version": "1.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
|
||||||
@@ -9319,16 +8925,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup-plugin-visualizer": {
|
"node_modules/rollup-plugin-visualizer": {
|
||||||
"version": "7.0.1",
|
"version": "7.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-7.1.1.tgz",
|
||||||
"integrity": "sha512-UJUT4+1Ho4OcWmPYU3sYXgUqI8B8Ayfe06MX7y0qCJ1K8aGoKtR/NDd/2nZqM7ADkrzny+I99Ul7GgyoiVNAgg==",
|
"integrity": "sha512-ThaGiHTU8XW02OkK80TrTHATraJmM9OAduU4otal+7gyXLpYEtmGBLfx5kW+EHvvLwn03YGW2NnwKUIqsYlJAA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"open": "^11.0.0",
|
"open": "^11.0.0",
|
||||||
"picomatch": "^4.0.2",
|
"picomatch": "^4.0.5",
|
||||||
"source-map": "^0.7.4",
|
"source-map": "^0.8.0",
|
||||||
"yargs": "^18.0.0"
|
"yargs": "^18.1.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"rollup-plugin-visualizer": "dist/bin/cli.js"
|
"rollup-plugin-visualizer": "dist/bin/cli.js"
|
||||||
@@ -9350,9 +8956,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup-plugin-visualizer/node_modules/picomatch": {
|
"node_modules/rollup-plugin-visualizer/node_modules/picomatch": {
|
||||||
"version": "4.0.4",
|
"version": "4.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
|
||||||
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
"integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -9560,49 +9166,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/signal-exit": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "ISC",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/slice-ansi": {
|
|
||||||
"version": "8.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-8.0.0.tgz",
|
|
||||||
"integrity": "sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^6.2.3",
|
|
||||||
"is-fullwidth-code-point": "^5.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/slice-ansi?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/slice-ansi/node_modules/ansi-styles": {
|
|
||||||
"version": "6.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
|
|
||||||
"integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/sortablejs": {
|
"node_modules/sortablejs": {
|
||||||
"version": "1.15.7",
|
"version": "1.15.7",
|
||||||
"resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.7.tgz",
|
"resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.7.tgz",
|
||||||
@@ -9610,9 +9173,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/source-map": {
|
"node_modules/source-map": {
|
||||||
"version": "0.7.6",
|
"version": "0.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0.tgz",
|
||||||
"integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==",
|
"integrity": "sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -9620,9 +9183,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/source-map-js": {
|
"node_modules/source-map-js": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
|
||||||
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
@@ -10047,9 +9610,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/tinyexec": {
|
"node_modules/tinyexec": {
|
||||||
"version": "1.2.4",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz",
|
||||||
"integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==",
|
"integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -11167,9 +10730,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vue-component-type-helpers": {
|
"node_modules/vue-component-type-helpers": {
|
||||||
"version": "3.3.9",
|
"version": "3.3.13",
|
||||||
"resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.9.tgz",
|
"resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.13.tgz",
|
||||||
"integrity": "sha512-3c/UfMe0SqyEfcGTyH7mfshHagJ9QTCbppCb0/uGpHZpFug7+If3GeGZN7I0YheKEExemx3xldQPoO7PQSOLQg==",
|
"integrity": "sha512-02KCxSmKDhIITjKyJ4QT5csP6L0WoRborLqY/34a40+S9uvMvdNgMV0yVjO3p2Gkz3ZoPmFz/0JsGHacwJYTxw==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/vue-demi": {
|
"node_modules/vue-demi": {
|
||||||
@@ -11550,9 +11113,9 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/yaml": {
|
"node_modules/yaml": {
|
||||||
"version": "2.9.0",
|
"version": "2.9.1",
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
|
||||||
"integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",
|
"integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
|
|||||||
@@ -33,12 +33,12 @@
|
|||||||
"@xterm/addon-fit": "^0.10.0",
|
"@xterm/addon-fit": "^0.10.0",
|
||||||
"@xterm/xterm": "^5.5.0",
|
"@xterm/xterm": "^5.5.0",
|
||||||
"anser": "^2.3.5",
|
"anser": "^2.3.5",
|
||||||
"axios": "^1.18.0",
|
"axios": "^1.20.0",
|
||||||
"codemirror": "^6.0.2",
|
"codemirror": "^6.0.2",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dompurify": "^3.4.13",
|
"dompurify": "^3.4.16",
|
||||||
"echarts": "^6.1.0",
|
"echarts": "^6.1.0",
|
||||||
"element-plus": "2.14.4",
|
"element-plus": "2.14.6",
|
||||||
"js-base64": "^3.9.1",
|
"js-base64": "^3.9.1",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"lodash-es": "^4.18.1",
|
"lodash-es": "^4.18.1",
|
||||||
@@ -74,11 +74,11 @@
|
|||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-prettier": "^5.5.6",
|
"eslint-plugin-prettier": "^5.5.6",
|
||||||
"eslint-plugin-vue": "^10.10.0",
|
"eslint-plugin-vue": "^10.10.0",
|
||||||
"lint-staged": "^17.0.7",
|
"lint-staged": "^17.6.0",
|
||||||
"postcss": "^8.5.14",
|
"postcss": "^8.5.14",
|
||||||
"postcss-html": "^2.0.0",
|
"postcss-html": "^2.0.0",
|
||||||
"prettier": "^3.9.6",
|
"prettier": "^3.9.6",
|
||||||
"rollup-plugin-visualizer": "^7.0.1",
|
"rollup-plugin-visualizer": "^7.1.1",
|
||||||
"sass": "^1.105.0",
|
"sass": "^1.105.0",
|
||||||
"standard-version": "^9.5.0",
|
"standard-version": "^9.5.0",
|
||||||
"tailwindcss": "^4.3.3",
|
"tailwindcss": "^4.3.3",
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
],
|
],
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"monaco-editor": {
|
"monaco-editor": {
|
||||||
"dompurify": "3.4.13"
|
"dompurify": "3.4.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ export namespace Firewall {
|
|||||||
initialized: boolean;
|
initialized: boolean;
|
||||||
bound: boolean;
|
bound: boolean;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
forwardPolicy?: 'ACCEPT' | 'DROP';
|
|
||||||
raInterfaces?: string[];
|
raInterfaces?: string[];
|
||||||
}
|
}
|
||||||
export interface BackendGroup {
|
export interface BackendGroup {
|
||||||
|
|||||||
@@ -311,6 +311,7 @@ export namespace Website {
|
|||||||
email: string;
|
email: string;
|
||||||
url: string;
|
url: string;
|
||||||
type: string;
|
type: string;
|
||||||
|
keyType: string;
|
||||||
useProxy: boolean;
|
useProxy: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -144,8 +144,13 @@ export const imagePull = (params: Container.ImagePull) => {
|
|||||||
export const imagePush = (params: Container.ImagePush) => {
|
export const imagePush = (params: Container.ImagePush) => {
|
||||||
return http.post<string>(`/containers/image/push`, params);
|
return http.post<string>(`/containers/image/push`, params);
|
||||||
};
|
};
|
||||||
export const imageLoad = (params: Container.ImageLoad) => {
|
export const imageLoad = (params: Container.ImageLoad, currentNode?: string) => {
|
||||||
return http.post(`/containers/image/load`, params, TimeoutEnum.T_10M);
|
return http.post(
|
||||||
|
`/containers/image/load`,
|
||||||
|
params,
|
||||||
|
TimeoutEnum.T_10M,
|
||||||
|
currentNode ? { CurrentNode: currentNode } : undefined,
|
||||||
|
);
|
||||||
};
|
};
|
||||||
export const imageSave = (params: Container.ImageSave) => {
|
export const imageSave = (params: Container.ImageSave) => {
|
||||||
return http.post(`/containers/image/save`, params, TimeoutEnum.T_10M);
|
return http.post(`/containers/image/save`, params, TimeoutEnum.T_10M);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from 'vue';
|
import { onActivated, ref, watch } from 'vue';
|
||||||
defineOptions({ name: 'TableSearch' });
|
defineOptions({ name: 'TableSearch' });
|
||||||
|
|
||||||
const emit = defineEmits(['search', 'update:searchName']);
|
const emit = defineEmits(['search', 'update:searchName']);
|
||||||
@@ -42,6 +42,10 @@ watch(
|
|||||||
{ immediate: true },
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
|
onActivated(() => {
|
||||||
|
searchInfo.value = props.searchName;
|
||||||
|
});
|
||||||
|
|
||||||
const search = () => {
|
const search = () => {
|
||||||
emit('update:searchName', searchInfo.value);
|
emit('update:searchName', searchInfo.value);
|
||||||
emit('search');
|
emit('search');
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onMounted, ref, useAttrs } from 'vue';
|
import { computed, onDeactivated, onMounted, ref, useAttrs } from 'vue';
|
||||||
import { useGlobalStore } from '@/composables/useGlobalStore';
|
import { useGlobalStore } from '@/composables/useGlobalStore';
|
||||||
import { flattenVNodes, type FuTableOperationButton } from '@/components/table/shared';
|
import { flattenVNodes, type FuTableOperationButton } from '@/components/table/shared';
|
||||||
import { useCardColumns } from './useCardColumns';
|
import { useCardColumns } from './useCardColumns';
|
||||||
@@ -459,6 +459,8 @@ watch([currentViewMode, tableData, () => props.syncCardContentHeight], scheduleC
|
|||||||
flush: 'post',
|
flush: 'post',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onDeactivated(clearSelects);
|
||||||
|
|
||||||
watch([() => props.paginationConfig?.currentPage, () => props.paginationConfig?.pageSize], clearSelects, {
|
watch([() => props.paginationConfig?.currentPage, () => props.paginationConfig?.pageSize], clearSelects, {
|
||||||
flush: 'sync',
|
flush: 'sync',
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
import { reactive, type UnwrapNestedRefs } from 'vue';
|
import { reactive, type UnwrapNestedRefs } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
|
||||||
import { useGlobalStore } from '@/composables/useGlobalStore';
|
|
||||||
import { getPageState } from '@/utils/page-state-cache';
|
|
||||||
|
|
||||||
|
/** A new page visit starts from its defaults instead of restoring the previous page number. */
|
||||||
export const usePageState = <T extends object>(factory: () => T): UnwrapNestedRefs<T> => {
|
export const usePageState = <T extends object>(factory: () => T): UnwrapNestedRefs<T> => {
|
||||||
const route = useRoute();
|
return reactive(factory());
|
||||||
const { currentNode } = useGlobalStore();
|
|
||||||
const key = `${currentNode.value}:${String(route.name || route.path)}`;
|
|
||||||
return reactive(getPageState(key, factory));
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
import { storeToRefs } from 'pinia';
|
|
||||||
import { watch, type Ref } from 'vue';
|
|
||||||
import GlobalStore from '@/store/modules/global';
|
|
||||||
|
|
||||||
type SearchValue = string | number | undefined;
|
|
||||||
type SearchFields = Record<string, Ref<SearchValue>>;
|
|
||||||
|
|
||||||
export const useSearchPersistence = (page: string, fields: SearchFields, scope?: () => SearchValue) => {
|
|
||||||
const { currentNode } = storeToRefs(GlobalStore());
|
|
||||||
const defaults = Object.fromEntries(Object.entries(fields).map(([name, field]) => [name, field.value]));
|
|
||||||
let initialized = false;
|
|
||||||
let restoring = false;
|
|
||||||
let activeKey: string | undefined;
|
|
||||||
|
|
||||||
watch(
|
|
||||||
() => {
|
|
||||||
const context = scope?.();
|
|
||||||
if (scope && context === undefined) return undefined;
|
|
||||||
return `1panel:search:v1:${JSON.stringify([currentNode.value, page, context ?? ''])}`;
|
|
||||||
},
|
|
||||||
(key) => {
|
|
||||||
activeKey = key;
|
|
||||||
let saved: Record<string, unknown> = {};
|
|
||||||
try {
|
|
||||||
const parsed = activeKey ? JSON.parse(localStorage.getItem(activeKey) || '{}') : {};
|
|
||||||
if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) saved = parsed;
|
|
||||||
} catch {}
|
|
||||||
restoring = true;
|
|
||||||
for (const [name, field] of Object.entries(fields)) {
|
|
||||||
const value = saved[name];
|
|
||||||
const initial = defaults[name];
|
|
||||||
let fallback = initial;
|
|
||||||
if (initialized) {
|
|
||||||
fallback = typeof initial === 'string' ? '' : undefined;
|
|
||||||
}
|
|
||||||
const valid =
|
|
||||||
(typeof value === 'string' || (typeof value === 'number' && Number.isFinite(value))) &&
|
|
||||||
(fallback === undefined || typeof value === typeof fallback);
|
|
||||||
if (value === null) {
|
|
||||||
field.value = typeof initial === 'string' ? '' : undefined;
|
|
||||||
} else if (valid) {
|
|
||||||
field.value = value as SearchValue;
|
|
||||||
} else {
|
|
||||||
field.value = fallback;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
restoring = false;
|
|
||||||
initialized = true;
|
|
||||||
},
|
|
||||||
{ immediate: true, flush: 'sync' },
|
|
||||||
);
|
|
||||||
|
|
||||||
watch(
|
|
||||||
() => Object.fromEntries(Object.entries(fields).map(([name, field]) => [name, field.value ?? null])),
|
|
||||||
(value) => {
|
|
||||||
if (restoring || !activeKey) return;
|
|
||||||
try {
|
|
||||||
localStorage.setItem(activeKey, JSON.stringify(value));
|
|
||||||
} catch {}
|
|
||||||
},
|
|
||||||
{ flush: 'sync' },
|
|
||||||
);
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { storeToRefs } from 'pinia';
|
||||||
|
import { onActivated, onDeactivated } from 'vue';
|
||||||
|
import GlobalStore from '@/store/modules/global';
|
||||||
|
import { bindSearchReset, type SearchFields } from '@/utils/search-reset';
|
||||||
|
|
||||||
|
interface SearchResetOptions {
|
||||||
|
scope?: () => string | number | undefined;
|
||||||
|
onRevisit: () => unknown;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const useSearchReset = (fields: SearchFields, options: SearchResetOptions) => {
|
||||||
|
const { currentNode } = storeToRefs(GlobalStore());
|
||||||
|
const reset = bindSearchReset(options.scope ? [currentNode, options.scope] : [currentNode], fields);
|
||||||
|
let deactivated = false;
|
||||||
|
onDeactivated(() => {
|
||||||
|
deactivated = true;
|
||||||
|
});
|
||||||
|
onActivated(() => {
|
||||||
|
if (!deactivated) return;
|
||||||
|
deactivated = false;
|
||||||
|
reset();
|
||||||
|
return options.onRevisit();
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -216,6 +216,10 @@ export const DNSTypes = [
|
|||||||
label: 'NameSilo',
|
label: 'NameSilo',
|
||||||
value: 'NameSilo',
|
value: 'NameSilo',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Netcup',
|
||||||
|
value: 'Netcup',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'NameCheap',
|
label: 'NameCheap',
|
||||||
value: 'NameCheap',
|
value: 'NameCheap',
|
||||||
|
|||||||
@@ -570,6 +570,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'Stop keeping page session',
|
cancelKeepAlive: 'Stop keeping page session',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'User Center',
|
||||||
|
exitSystem: 'Log Out',
|
||||||
logout: 'Logout',
|
logout: 'Logout',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1065,6 +1067,13 @@ const message = {
|
|||||||
whiteListHelper: 'Restrict access to only IPs in the whitelist',
|
whiteListHelper: 'Restrict access to only IPs in the whitelist',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway supports standalone deployment',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI Gateway now supports standalone deployment. The built-in AI Gateway in 1Panel will no longer receive updates. We recommend installing the standalone version from the App Store. You can also continue using the current version.',
|
||||||
|
deploymentNoticeContinue: 'Understood, continue using',
|
||||||
|
deploymentNoticeAppStore: 'Go to App Store',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'You do not have access to the App Store. Contact your administrator to install the standalone version.',
|
||||||
title: 'AI Gateway',
|
title: 'AI Gateway',
|
||||||
apiReference: 'API Reference',
|
apiReference: 'API Reference',
|
||||||
notInstalled: 'Not installed',
|
notInstalled: 'Not installed',
|
||||||
@@ -1508,6 +1517,24 @@ const message = {
|
|||||||
extraHeaders: 'Extra Headers',
|
extraHeaders: 'Extra Headers',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/s',
|
||||||
|
requestsPerSecond: 'Requests/s',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'Normal completion',
|
||||||
|
length: 'Length limit reached',
|
||||||
|
abort: 'Aborted',
|
||||||
|
error: 'Error',
|
||||||
|
repetition: 'Repetition',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'Request analysis',
|
||||||
|
promptDistribution: 'Prompt token length distribution',
|
||||||
|
generationDistribution: 'Generation token length distribution',
|
||||||
|
finishReasons: 'Request finish reasons',
|
||||||
|
queueTime: 'Mean queue time',
|
||||||
|
averageGenerationTokens: 'Mean output tokens per request',
|
||||||
|
prefixCacheHitRate: 'Prefix cache hit rate',
|
||||||
|
distributionHelper:
|
||||||
|
'Length distributions show request rates and are unaffected by the average/peak selection.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'Clear monitoring history only for this vLLM instance? Other instances, host and GPU monitoring are unaffected.',
|
'Clear monitoring history only for this vLLM instance? Other instances, host and GPU monitoring are unaffected.',
|
||||||
overview: 'Overview',
|
overview: 'Overview',
|
||||||
@@ -1869,6 +1896,11 @@ const message = {
|
|||||||
imageName: 'Image name',
|
imageName: 'Image name',
|
||||||
pull: 'Pull',
|
pull: 'Pull',
|
||||||
path: 'Path',
|
path: 'Path',
|
||||||
|
imageUploadDrop: 'Drop an image file here, or click to upload',
|
||||||
|
imageUploadHelper:
|
||||||
|
'Any file format is allowed. Docker validates the contents. Uploaded files are retained for retrying imports or manual deletion.',
|
||||||
|
imageUploadEmpty: 'The file is empty. Select a valid image archive.',
|
||||||
|
imageImportSubmitted: 'Image import task submitted. Check the task log for the result.',
|
||||||
importImage: 'Import',
|
importImage: 'Import',
|
||||||
buildArgs: 'Build Arguments',
|
buildArgs: 'Build Arguments',
|
||||||
imageBuild: 'Build',
|
imageBuild: 'Build',
|
||||||
@@ -4166,6 +4198,9 @@ const message = {
|
|||||||
'Enabling this can avoid certificate leakage, setting a default website will invalidate this setting',
|
'Enabling this can avoid certificate leakage, setting a default website will invalidate this setting',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm:
|
||||||
|
'The following certificates will be deleted. ACME certificates will be automatically revoked. Continue?',
|
||||||
|
deleteAndRevoke: 'Delete and revoke',
|
||||||
create: 'Request',
|
create: 'Request',
|
||||||
provider: 'Type',
|
provider: 'Type',
|
||||||
manualCreate: 'Created manually',
|
manualCreate: 'Created manually',
|
||||||
@@ -4306,8 +4341,6 @@ const message = {
|
|||||||
dockerGuard: 'Container Port Guard',
|
dockerGuard: 'Container Port Guard',
|
||||||
systemFirewall: 'Host firewall',
|
systemFirewall: 'Host firewall',
|
||||||
systemFirewallHelper: 'Controls host port access and inbound firewall rules.',
|
systemFirewallHelper: 'Controls host port access and inbound firewall rules.',
|
||||||
forwardPolicyDropWarning:
|
|
||||||
'This server restricts network forwarding. Port forwarding rules may not take effect.',
|
|
||||||
forwardingHelper: 'Manages port-forwarding rules.',
|
forwardingHelper: 'Manages port-forwarding rules.',
|
||||||
dockerFirewallHelper: 'Selects how 1Panel manages container port protection.',
|
dockerFirewallHelper: 'Selects how 1Panel manages container port protection.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, experimental',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, experimental',
|
||||||
@@ -4390,9 +4423,9 @@ const message = {
|
|||||||
'Host INPUT rules do not directly protect this Docker published port. Click to open Container Port Guard.',
|
'Host INPUT rules do not directly protect this Docker published port. Click to open Container Port Guard.',
|
||||||
notInitialized: 'Not initialized',
|
notInitialized: 'Not initialized',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'IPv6 forwarding is blocked: interfaces {0} have accept_ra=1 and may rely on RA/SLAAC. Review the network configuration, persist accept_ra=2 on interfaces that need RA, then retry.',
|
'IPv6 forwarding is blocked to prevent possible network loss. See the documentation and system logs for details.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'Cannot check IPv6 RA configuration. Enabling IPv6 forwarding is blocked. Check the system network configuration and retry.',
|
'IPv6 forwarding is blocked because the network configuration could not be checked. See the system logs for details.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'IPv6 forwarding is not enabled. It will be checked and enabled when IPv6 rules are added or restored.',
|
'IPv6 forwarding is not enabled. It will be checked and enabled when IPv6 rules are added or restored.',
|
||||||
familyUnsupported: 'The system does not support {0}',
|
familyUnsupported: 'The system does not support {0}',
|
||||||
|
|||||||
@@ -570,6 +570,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'Dejar de mantener la sesión de la página',
|
cancelKeepAlive: 'Dejar de mantener la sesión de la página',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'Centro de usuario',
|
||||||
|
exitSystem: 'Cerrar sesión',
|
||||||
logout: 'Cerrar sesión',
|
logout: 'Cerrar sesión',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1069,6 +1071,13 @@ const message = {
|
|||||||
whiteListHelper: 'Restringir el acceso solo a las IP incluidas en la lista blanca',
|
whiteListHelper: 'Restringir el acceso solo a las IP incluidas en la lista blanca',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway admite la implementación independiente',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI Gateway ahora admite la implementación independiente. AI Gateway integrado en 1Panel dejará de recibir actualizaciones. Recomendamos instalar la versión independiente desde la tienda de aplicaciones. También puede seguir usando la versión actual.',
|
||||||
|
deploymentNoticeContinue: 'Entendido, seguir usando',
|
||||||
|
deploymentNoticeAppStore: 'Ir a la tienda de aplicaciones',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'No tiene acceso a la tienda de aplicaciones. Contacte con su administrador para instalar la versión independiente.',
|
||||||
title: 'Gateway de IA',
|
title: 'Gateway de IA',
|
||||||
apiReference: 'Referencia de API',
|
apiReference: 'Referencia de API',
|
||||||
notInstalled: 'No instalado',
|
notInstalled: 'No instalado',
|
||||||
@@ -1517,6 +1526,24 @@ const message = {
|
|||||||
extraHeaders: 'Encabezados adicionales',
|
extraHeaders: 'Encabezados adicionales',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/s',
|
||||||
|
requestsPerSecond: 'Solicitudes/s',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'Finalización normal',
|
||||||
|
length: 'Límite de longitud alcanzado',
|
||||||
|
abort: 'Cancelada',
|
||||||
|
error: 'Error',
|
||||||
|
repetition: 'Repetición',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'Análisis de solicitudes',
|
||||||
|
promptDistribution: 'Distribución de longitud de tokens de entrada',
|
||||||
|
generationDistribution: 'Distribución de longitud de tokens de salida',
|
||||||
|
finishReasons: 'Motivos de finalización de solicitudes',
|
||||||
|
queueTime: 'Tiempo medio en cola',
|
||||||
|
averageGenerationTokens: 'Tokens de salida medios por solicitud',
|
||||||
|
prefixCacheHitRate: 'Tasa de aciertos de caché de prefijos',
|
||||||
|
distributionHelper:
|
||||||
|
'Las distribuciones de longitud muestran tasas de solicitudes y no cambian al seleccionar media o pico.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'¿Borrar solo el historial de monitoreo de esta instancia de vLLM? No afecta a otras instancias ni al monitoreo del host o de GPU.',
|
'¿Borrar solo el historial de monitoreo de esta instancia de vLLM? No afecta a otras instancias ni al monitoreo del host o de GPU.',
|
||||||
overview: 'Resumen',
|
overview: 'Resumen',
|
||||||
@@ -1893,6 +1920,12 @@ const message = {
|
|||||||
imageName: 'Nombre de la imagen',
|
imageName: 'Nombre de la imagen',
|
||||||
pull: 'Descargar',
|
pull: 'Descargar',
|
||||||
path: 'Ruta',
|
path: 'Ruta',
|
||||||
|
imageUploadDrop: 'Arrastre un archivo de imagen aquí o haga clic para subirlo',
|
||||||
|
imageUploadHelper:
|
||||||
|
'Se permite cualquier formato de archivo. Docker valida el contenido. Los archivos subidos se conservan para reintentar la importación o eliminarlos manualmente.',
|
||||||
|
imageUploadEmpty: 'El archivo está vacío. Seleccione un archivo de imagen válido.',
|
||||||
|
imageImportSubmitted:
|
||||||
|
'Tarea de importación de imagen enviada. Consulte el registro de la tarea para ver el resultado.',
|
||||||
importImage: 'Importar',
|
importImage: 'Importar',
|
||||||
buildArgs: 'Argumentos de Construcción',
|
buildArgs: 'Argumentos de Construcción',
|
||||||
imageBuild: 'Construir',
|
imageBuild: 'Construir',
|
||||||
@@ -4216,6 +4249,9 @@ const message = {
|
|||||||
'Habilitar esto puede evitar la fuga de certificados, establecer un sitio web predeterminado invalidará esta configuración',
|
'Habilitar esto puede evitar la fuga de certificados, establecer un sitio web predeterminado invalidará esta configuración',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm:
|
||||||
|
'Se eliminarán los siguientes certificados. Los certificados ACME se revocarán automáticamente. ¿Desea continuar?',
|
||||||
|
deleteAndRevoke: 'Eliminar y revocar',
|
||||||
create: 'Solicitar',
|
create: 'Solicitar',
|
||||||
provider: 'Tipo',
|
provider: 'Tipo',
|
||||||
manualCreate: 'Creado manualmente',
|
manualCreate: 'Creado manualmente',
|
||||||
@@ -4357,8 +4393,6 @@ const message = {
|
|||||||
dockerGuard: 'Protección de puertos de contenedores',
|
dockerGuard: 'Protección de puertos de contenedores',
|
||||||
systemFirewall: 'Firewall del host',
|
systemFirewall: 'Firewall del host',
|
||||||
systemFirewallHelper: 'Controla el acceso a los puertos del host y las reglas de entrada.',
|
systemFirewallHelper: 'Controla el acceso a los puertos del host y las reglas de entrada.',
|
||||||
forwardPolicyDropWarning:
|
|
||||||
'Este servidor restringe el reenvío de red. Es posible que las reglas de reenvío de puertos no surtan efecto.',
|
|
||||||
forwardingHelper: 'Gestiona las reglas de reenvío de puertos.',
|
forwardingHelper: 'Gestiona las reglas de reenvío de puertos.',
|
||||||
dockerFirewallHelper: 'Selecciona cómo gestiona 1Panel la protección de puertos de contenedores.',
|
dockerFirewallHelper: 'Selecciona cómo gestiona 1Panel la protección de puertos de contenedores.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, experimental',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, experimental',
|
||||||
@@ -4443,9 +4477,9 @@ const message = {
|
|||||||
'Las reglas INPUT del host no protegen directamente este puerto publicado por Docker. Haz clic para abrir la protección de puertos de contenedores.',
|
'Las reglas INPUT del host no protegen directamente este puerto publicado por Docker. Haz clic para abrir la protección de puertos de contenedores.',
|
||||||
notInitialized: 'No inicializado',
|
notInitialized: 'No inicializado',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'El reenvío IPv6 está bloqueado: las interfaces {0} tienen accept_ra=1 y pueden depender de RA/SLAAC. Revise la configuración de red, configure accept_ra=2 de forma persistente en las interfaces que necesitan RA y vuelva a intentarlo.',
|
'El reenvío IPv6 está bloqueado para evitar una posible pérdida de conectividad. Consulte la documentación y los registros del sistema.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'No se puede comprobar la configuración RA de IPv6. Se ha bloqueado la activación del reenvío IPv6. Revise la configuración de red y vuelva a intentarlo.',
|
'El reenvío IPv6 está bloqueado porque no se pudo comprobar la configuración de red. Consulte los registros del sistema.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'El reenvío IPv6 no está habilitado. Se comprobará y habilitará al añadir o restaurar reglas IPv6.',
|
'El reenvío IPv6 no está habilitado. Se comprobará y habilitará al añadir o restaurar reglas IPv6.',
|
||||||
familyUnsupported: 'El sistema no admite {0}',
|
familyUnsupported: 'El sistema no admite {0}',
|
||||||
|
|||||||
@@ -565,6 +565,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'لغو حفظ نشست صفحه',
|
cancelKeepAlive: 'لغو حفظ نشست صفحه',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'مرکز کاربری',
|
||||||
|
exitSystem: 'خروج از سیستم',
|
||||||
logout: 'خروج',
|
logout: 'خروج',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1051,6 +1053,13 @@ const message = {
|
|||||||
whiteListHelper: 'دسترسی را فقط به IPهای موجود در لیست سفید محدود کنید',
|
whiteListHelper: 'دسترسی را فقط به IPهای موجود در لیست سفید محدود کنید',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'درگاه هوش مصنوعی از استقرار مستقل پشتیبانی میکند',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'درگاه هوش مصنوعی اکنون از استقرار مستقل پشتیبانی میکند. درگاه هوش مصنوعی داخلی 1Panel دیگر بهروزرسانی دریافت نخواهد کرد. توصیه میکنیم نسخه مستقل را از فروشگاه برنامه نصب کنید. همچنین میتوانید به استفاده از نسخه فعلی ادامه دهید.',
|
||||||
|
deploymentNoticeContinue: 'متوجه شدم، ادامه استفاده',
|
||||||
|
deploymentNoticeAppStore: 'رفتن به فروشگاه برنامه',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'شما به فروشگاه برنامه دسترسی ندارید. برای نصب نسخه مستقل با مدیر تماس بگیرید.',
|
||||||
title: 'دروازه AI',
|
title: 'دروازه AI',
|
||||||
apiReference: 'راهنمای API',
|
apiReference: 'راهنمای API',
|
||||||
notInstalled: 'نصب نشده',
|
notInstalled: 'نصب نشده',
|
||||||
@@ -1493,6 +1502,23 @@ const message = {
|
|||||||
extraHeaders: 'هدرهای اضافی',
|
extraHeaders: 'هدرهای اضافی',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/ثانیه',
|
||||||
|
requestsPerSecond: 'درخواست/ثانیه',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'پایان عادی',
|
||||||
|
length: 'رسیدن به حد طول',
|
||||||
|
abort: 'لغوشده',
|
||||||
|
error: 'خطا',
|
||||||
|
repetition: 'تکرار خروجی',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'تحلیل درخواستها',
|
||||||
|
promptDistribution: 'توزیع طول توکنهای ورودی',
|
||||||
|
generationDistribution: 'توزیع طول توکنهای خروجی',
|
||||||
|
finishReasons: 'دلایل پایان درخواستها',
|
||||||
|
queueTime: 'میانگین زمان انتظار در صف',
|
||||||
|
averageGenerationTokens: 'میانگین توکنهای خروجی هر درخواست',
|
||||||
|
prefixCacheHitRate: 'نرخ اصابت حافظه نهان پیشوند',
|
||||||
|
distributionHelper: 'توزیع طول، نرخ درخواستها را نشان میدهد و از انتخاب میانگین یا اوج تأثیر نمیپذیرد.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'فقط سابقه نظارت این نمونه vLLM پاک شود؟ سایر نمونه\u200cها و نظارت میزبان و GPU تغییری نمی\u200cکنند.',
|
'فقط سابقه نظارت این نمونه vLLM پاک شود؟ سایر نمونه\u200cها و نظارت میزبان و GPU تغییری نمی\u200cکنند.',
|
||||||
overview: 'نمای کلی',
|
overview: 'نمای کلی',
|
||||||
@@ -1853,6 +1879,11 @@ const message = {
|
|||||||
imageName: 'نام تصویر',
|
imageName: 'نام تصویر',
|
||||||
pull: 'دریافت',
|
pull: 'دریافت',
|
||||||
path: 'مسیر',
|
path: 'مسیر',
|
||||||
|
imageUploadDrop: 'فایل ایمیج را اینجا بکشید یا برای بارگذاری کلیک کنید',
|
||||||
|
imageUploadHelper:
|
||||||
|
'همه قالبهای فایل مجاز هستند. Docker محتوای فایل را اعتبارسنجی میکند. فایلهای بارگذاریشده برای تلاش مجدد جهت وارد کردن یا حذف دستی نگه داشته میشوند.',
|
||||||
|
imageUploadEmpty: 'فایل خالی است. یک فایل ایمیج معتبر انتخاب کنید.',
|
||||||
|
imageImportSubmitted: 'وظیفه وارد کردن ایمیج ثبت شد. برای مشاهده نتیجه، گزارش وظیفه را بررسی کنید.',
|
||||||
importImage: 'واردات',
|
importImage: 'واردات',
|
||||||
buildArgs: 'آرگومانهای ساخت',
|
buildArgs: 'آرگومانهای ساخت',
|
||||||
imageBuild: 'ساخت',
|
imageBuild: 'ساخت',
|
||||||
@@ -4132,6 +4163,8 @@ const message = {
|
|||||||
'فعالسازی این گزینه میتواند از نشت گواهی جلوگیری کند، تنظیم یک وبسایت پیشفرض این تنظیم را بیاثر میکند',
|
'فعالسازی این گزینه میتواند از نشت گواهی جلوگیری کند، تنظیم یک وبسایت پیشفرض این تنظیم را بیاثر میکند',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: 'گواهیهای زیر حذف خواهند شد. گواهیهای ACME بهطور خودکار باطل خواهند شد. آیا ادامه میدهید؟',
|
||||||
|
deleteAndRevoke: 'حذف و ابطال',
|
||||||
create: 'درخواست',
|
create: 'درخواست',
|
||||||
provider: 'نوع',
|
provider: 'نوع',
|
||||||
manualCreate: 'ایجاد دستی',
|
manualCreate: 'ایجاد دستی',
|
||||||
@@ -4271,7 +4304,6 @@ const message = {
|
|||||||
dockerGuard: 'محافظت از پورت کانتینر',
|
dockerGuard: 'محافظت از پورت کانتینر',
|
||||||
systemFirewall: 'فایروال میزبان',
|
systemFirewall: 'فایروال میزبان',
|
||||||
systemFirewallHelper: 'دسترسی پورتهای میزبان و قوانین ورودی را کنترل میکند.',
|
systemFirewallHelper: 'دسترسی پورتهای میزبان و قوانین ورودی را کنترل میکند.',
|
||||||
forwardPolicyDropWarning: 'این سرور هدایت ترافیک شبکه را محدود کرده است. ممکن است قوانین هدایت پورت کار نکنند.',
|
|
||||||
forwardingHelper: 'قوانین انتقال پورت را مدیریت میکند.',
|
forwardingHelper: 'قوانین انتقال پورت را مدیریت میکند.',
|
||||||
dockerFirewallHelper: 'روش مدیریت محافظت از پورت کانتینر در 1Panel را انتخاب میکند.',
|
dockerFirewallHelper: 'روش مدیریت محافظت از پورت کانتینر در 1Panel را انتخاب میکند.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0، آزمایشی',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0، آزمایشی',
|
||||||
@@ -4355,10 +4387,9 @@ const message = {
|
|||||||
dockerInputNotProtected:
|
dockerInputNotProtected:
|
||||||
'قوانین INPUT میزبان مستقیماً از این پورت منتشرشده Docker محافظت نمیکنند. برای باز کردن محافظت از پورت کانتینر کلیک کنید.',
|
'قوانین INPUT میزبان مستقیماً از این پورت منتشرشده Docker محافظت نمیکنند. برای باز کردن محافظت از پورت کانتینر کلیک کنید.',
|
||||||
notInitialized: 'راهاندازی نشده',
|
notInitialized: 'راهاندازی نشده',
|
||||||
ipv6RARisk:
|
ipv6RARisk: 'فعالسازی هدایت IPv6 به دلیل خطر قطع شبکه مسدود شد. مستندات و گزارشهای سیستم را بررسی کنید.',
|
||||||
'هدایت IPv6 مسدود شد: رابطهای {0} دارای accept_ra=1 هستند و ممکن است به RA/SLAAC وابسته باشند. تنظیمات شبکه را بررسی کنید، برای رابطهای نیازمند RA مقدار accept_ra=2 را بهصورت پایدار تنظیم کنید و دوباره تلاش کنید.',
|
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'بررسی تنظیمات RA در IPv6 ممکن نیست. فعالسازی هدایت IPv6 مسدود شده است. تنظیمات شبکه سیستم را بررسی کرده و دوباره تلاش کنید.',
|
'فعالسازی هدایت IPv6 به دلیل عدم امکان بررسی پیکربندی شبکه مسدود شد. جزئیات در گزارشهای سیستم موجود است.',
|
||||||
ipv6ForwardingOnDemand: 'هدایت IPv6 فعال نیست. هنگام افزودن یا بازیابی قوانین IPv6 بررسی و فعال خواهد شد.',
|
ipv6ForwardingOnDemand: 'هدایت IPv6 فعال نیست. هنگام افزودن یا بازیابی قوانین IPv6 بررسی و فعال خواهد شد.',
|
||||||
familyUnsupported: 'سیستم از {0} پشتیبانی نمیکند',
|
familyUnsupported: 'سیستم از {0} پشتیبانی نمیکند',
|
||||||
familyChainIssue: '{0} · زنجیره {1} · {2}',
|
familyChainIssue: '{0} · زنجیره {1} · {2}',
|
||||||
|
|||||||
@@ -568,6 +568,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'ページセッションの保持を解除',
|
cancelKeepAlive: 'ページセッションの保持を解除',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'ユーザーセンター',
|
||||||
|
exitSystem: 'ログアウト',
|
||||||
logout: 'ログアウト',
|
logout: 'ログアウト',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1054,6 +1056,13 @@ const message = {
|
|||||||
whiteListHelper: 'ホワイトリスト内のIPのみアクセスを許可する',
|
whiteListHelper: 'ホワイトリスト内のIPのみアクセスを許可する',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI ゲートウェイの独立したデプロイに対応',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI ゲートウェイは独立したデプロイに対応しました。1Panel 内蔵の AI ゲートウェイは今後更新されません。アプリストアから独立版をインストールすることをお勧めします。現在のバージョンを引き続き使用することもできます。',
|
||||||
|
deploymentNoticeContinue: '了解して使用を継続',
|
||||||
|
deploymentNoticeAppStore: 'アプリストアへ',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'アプリストアへのアクセス権限がありません。管理者に独立版のインストールを依頼してください。',
|
||||||
title: 'AI ゲートウェイ',
|
title: 'AI ゲートウェイ',
|
||||||
apiReference: 'API リファレンス',
|
apiReference: 'API リファレンス',
|
||||||
notInstalled: '未インストール',
|
notInstalled: '未インストール',
|
||||||
@@ -1496,6 +1505,23 @@ const message = {
|
|||||||
extraHeaders: '追加ヘッダー',
|
extraHeaders: '追加ヘッダー',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/秒',
|
||||||
|
requestsPerSecond: 'リクエスト/秒',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: '正常終了',
|
||||||
|
length: '長さ上限に到達',
|
||||||
|
abort: '中止',
|
||||||
|
error: 'エラー',
|
||||||
|
repetition: '繰り返し出力',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'リクエスト分析',
|
||||||
|
promptDistribution: '入力トークン長の分布',
|
||||||
|
generationDistribution: '出力トークン長の分布',
|
||||||
|
finishReasons: 'リクエスト終了理由',
|
||||||
|
queueTime: '平均キュー待機時間',
|
||||||
|
averageGenerationTokens: 'リクエストあたりの平均出力トークン数',
|
||||||
|
prefixCacheHitRate: 'プレフィックスキャッシュヒット率',
|
||||||
|
distributionHelper: '長さの分布はリクエストレートで集計され、平均/ピークの切り替えには影響されません。',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'この vLLM インスタンスの監視履歴のみを削除しますか?他のインスタンス、ホスト、GPU の監視には影響しません。',
|
'この vLLM インスタンスの監視履歴のみを削除しますか?他のインスタンス、ホスト、GPU の監視には影響しません。',
|
||||||
overview: '概要',
|
overview: '概要',
|
||||||
@@ -1850,6 +1876,11 @@ const message = {
|
|||||||
imageName: '画像名',
|
imageName: '画像名',
|
||||||
pull: '引く',
|
pull: '引く',
|
||||||
path: 'パス',
|
path: 'パス',
|
||||||
|
imageUploadDrop: 'イメージファイルをここにドラッグするか、クリックしてアップロードしてください',
|
||||||
|
imageUploadHelper:
|
||||||
|
'ファイル形式に制限はありません。Docker が内容を検証します。アップロードしたファイルは保持されるため、インポートを再試行したり、手動で削除したりできます。',
|
||||||
|
imageUploadEmpty: 'ファイルが空です。有効なイメージファイルを選択してください。',
|
||||||
|
imageImportSubmitted: 'イメージのインポートタスクを送信しました。結果はタスクログで確認してください。',
|
||||||
importImage: '輸入',
|
importImage: '輸入',
|
||||||
buildArgs: 'ビルド引数',
|
buildArgs: 'ビルド引数',
|
||||||
imageBuild: '建てる',
|
imageBuild: '建てる',
|
||||||
@@ -4154,6 +4185,8 @@ const message = {
|
|||||||
'有効にすると証明書の漏洩を防げますが、デフォルト Web サイトを設定するとこの設定は無効になります',
|
'有効にすると証明書の漏洩を防げますが、デフォルト Web サイトを設定するとこの設定は無効になります',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: '以下の証明書を削除します。ACME 証明書は自動的に失効されます。続行しますか?',
|
||||||
|
deleteAndRevoke: '削除して失効',
|
||||||
create: 'リクエスト',
|
create: 'リクエスト',
|
||||||
provider: 'タイプ',
|
provider: 'タイプ',
|
||||||
manualCreate: '手動で作成されます',
|
manualCreate: '手動で作成されます',
|
||||||
@@ -4294,8 +4327,6 @@ const message = {
|
|||||||
dockerGuard: 'コンテナポート保護',
|
dockerGuard: 'コンテナポート保護',
|
||||||
systemFirewall: 'ホストファイアウォール',
|
systemFirewall: 'ホストファイアウォール',
|
||||||
systemFirewallHelper: 'ホストのポートアクセスと受信ルールを管理します。',
|
systemFirewallHelper: 'ホストのポートアクセスと受信ルールを管理します。',
|
||||||
forwardPolicyDropWarning:
|
|
||||||
'このサーバーではネットワーク転送が制限されているため、ポート転送ルールが機能しない可能性があります。',
|
|
||||||
forwardingHelper: 'ポート転送ルールを管理します。',
|
forwardingHelper: 'ポート転送ルールを管理します。',
|
||||||
dockerFirewallHelper: '1Panel のコンテナポート保護の管理方法を選択します。',
|
dockerFirewallHelper: '1Panel のコンテナポート保護の管理方法を選択します。',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0、実験的',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0、実験的',
|
||||||
@@ -4377,9 +4408,9 @@ const message = {
|
|||||||
'ホストの INPUT ルールでは、この Docker 公開ポートを直接保護できません。クリックしてコンテナポート保護を開きます。',
|
'ホストの INPUT ルールでは、この Docker 公開ポートを直接保護できません。クリックしてコンテナポート保護を開きます。',
|
||||||
notInitialized: '未初期化',
|
notInitialized: '未初期化',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'IPv6 転送がブロックされています。インターフェース {0} は accept_ra=1 で、RA/SLAAC に依存している可能性があります。ネットワーク設定を確認し、RA が必要なインターフェースで accept_ra=2 を永続的に設定してから再試行してください。',
|
'ネットワーク切断のおそれがあるため、IPv6 転送の有効化をブロックしました。ドキュメントとシステムログをご確認ください。',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'IPv6 RA 設定を確認できないため、IPv6 転送の有効化をブロックしました。システムのネットワーク設定を確認して再試行してください。',
|
'ネットワーク設定を確認できないため、IPv6 転送の有効化をブロックしました。詳細はシステムログをご確認ください。',
|
||||||
ipv6ForwardingOnDemand: 'IPv6 転送は無効です。IPv6 ルールの追加または復元時に確認して有効化します。',
|
ipv6ForwardingOnDemand: 'IPv6 転送は無効です。IPv6 ルールの追加または復元時に確認して有効化します。',
|
||||||
familyUnsupported: 'システムは {0} をサポートしていません',
|
familyUnsupported: 'システムは {0} をサポートしていません',
|
||||||
familyChainIssue: '{0} · {1} チェーン · {2}',
|
familyChainIssue: '{0} · {1} チェーン · {2}',
|
||||||
|
|||||||
@@ -562,6 +562,8 @@ const message = {
|
|||||||
cancelKeepAlive: '페이지 세션 유지 해제',
|
cancelKeepAlive: '페이지 세션 유지 해제',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: '사용자 센터',
|
||||||
|
exitSystem: '로그아웃',
|
||||||
logout: '로그아웃',
|
logout: '로그아웃',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1043,6 +1045,12 @@ const message = {
|
|||||||
whiteListHelper: '화이트리스트에 있는 IP만 접근 허용',
|
whiteListHelper: '화이트리스트에 있는 IP만 접근 허용',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI 게이트웨이 독립 배포 지원',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI 게이트웨이가 독립 배포를 지원합니다. 1Panel 내장 AI 게이트웨이는 더 이상 업데이트되지 않습니다. 앱 스토어에서 독립 버전을 설치하는 것을 권장합니다. 현재 버전을 계속 사용할 수도 있습니다.',
|
||||||
|
deploymentNoticeContinue: '확인, 계속 사용',
|
||||||
|
deploymentNoticeAppStore: '앱 스토어로 이동',
|
||||||
|
deploymentNoticeNoAppPermission: '앱 스토어 접근 권한이 없습니다. 관리자에게 독립 버전 설치를 요청하세요.',
|
||||||
title: 'AI 게이트웨이',
|
title: 'AI 게이트웨이',
|
||||||
apiReference: 'API 안내',
|
apiReference: 'API 안내',
|
||||||
notInstalled: '설치되지 않음',
|
notInstalled: '설치되지 않음',
|
||||||
@@ -1482,6 +1490,23 @@ const message = {
|
|||||||
extraHeaders: '추가 헤더',
|
extraHeaders: '추가 헤더',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/초',
|
||||||
|
requestsPerSecond: '요청/초',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: '정상 종료',
|
||||||
|
length: '길이 제한 도달',
|
||||||
|
abort: '중단',
|
||||||
|
error: '오류',
|
||||||
|
repetition: '반복 출력',
|
||||||
|
},
|
||||||
|
requestAnalysis: '요청 분석',
|
||||||
|
promptDistribution: '입력 토큰 길이 분포',
|
||||||
|
generationDistribution: '출력 토큰 길이 분포',
|
||||||
|
finishReasons: '요청 종료 사유',
|
||||||
|
queueTime: '평균 대기 시간',
|
||||||
|
averageGenerationTokens: '요청당 평균 출력 토큰 수',
|
||||||
|
prefixCacheHitRate: '접두사 캐시 적중률',
|
||||||
|
distributionHelper: '길이 분포는 요청 속도로 집계되며 평균/최댓값 선택의 영향을 받지 않습니다.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'현재 vLLM 인스턴스의 모니터링 기록만 삭제하시겠습니까? 다른 인스턴스, 호스트 및 GPU 모니터링에는 영향을 주지 않습니다.',
|
'현재 vLLM 인스턴스의 모니터링 기록만 삭제하시겠습니까? 다른 인스턴스, 호스트 및 GPU 모니터링에는 영향을 주지 않습니다.',
|
||||||
overview: '개요',
|
overview: '개요',
|
||||||
@@ -1833,6 +1858,11 @@ const message = {
|
|||||||
imageName: '이미지 이름',
|
imageName: '이미지 이름',
|
||||||
pull: '풀',
|
pull: '풀',
|
||||||
path: '경로',
|
path: '경로',
|
||||||
|
imageUploadDrop: '이미지 파일을 여기로 끌어 놓거나 클릭하여 업로드하세요',
|
||||||
|
imageUploadHelper:
|
||||||
|
'파일 형식에는 제한이 없습니다. Docker가 내용을 검증합니다. 업로드한 파일은 보관되므로 가져오기를 다시 시도하거나 수동으로 삭제할 수 있습니다.',
|
||||||
|
imageUploadEmpty: '빈 파일입니다. 유효한 이미지 파일을 선택하세요.',
|
||||||
|
imageImportSubmitted: '이미지 가져오기 작업이 제출되었습니다. 작업 로그에서 결과를 확인하세요.',
|
||||||
importImage: '가져오기',
|
importImage: '가져오기',
|
||||||
buildArgs: '빌드 인수',
|
buildArgs: '빌드 인수',
|
||||||
imageBuild: '이미지 빌드',
|
imageBuild: '이미지 빌드',
|
||||||
@@ -4078,6 +4108,8 @@ const message = {
|
|||||||
'활성화하면 인증서 누출을 방지할 수 있지만, 기본 웹사이트를 설정하면 이 설정이 무효화됩니다',
|
'활성화하면 인증서 누출을 방지할 수 있지만, 기본 웹사이트를 설정하면 이 설정이 무효화됩니다',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: '다음 인증서를 삭제합니다. ACME 인증서는 자동으로 폐기됩니다. 계속하시겠습니까?',
|
||||||
|
deleteAndRevoke: '삭제 및 폐기',
|
||||||
create: '요청',
|
create: '요청',
|
||||||
provider: '유형',
|
provider: '유형',
|
||||||
manualCreate: '수동 생성됨',
|
manualCreate: '수동 생성됨',
|
||||||
@@ -4215,7 +4247,6 @@ const message = {
|
|||||||
dockerGuard: '컨테이너 포트 보호',
|
dockerGuard: '컨테이너 포트 보호',
|
||||||
systemFirewall: '호스트 방화벽',
|
systemFirewall: '호스트 방화벽',
|
||||||
systemFirewallHelper: '호스트 포트 접근과 인바운드 규칙을 관리합니다.',
|
systemFirewallHelper: '호스트 포트 접근과 인바운드 규칙을 관리합니다.',
|
||||||
forwardPolicyDropWarning: '현재 서버에서 네트워크 전달이 제한되어 포트 전달 규칙이 작동하지 않을 수 있습니다.',
|
|
||||||
forwardingHelper: '포트 포워딩 규칙을 관리합니다.',
|
forwardingHelper: '포트 포워딩 규칙을 관리합니다.',
|
||||||
dockerFirewallHelper: '1Panel 컨테이너 포트 보호 관리 방식을 선택합니다.',
|
dockerFirewallHelper: '1Panel 컨테이너 포트 보호 관리 방식을 선택합니다.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, 실험적',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, 실험적',
|
||||||
@@ -4296,9 +4327,9 @@ const message = {
|
|||||||
'호스트 INPUT 규칙은 이 Docker 게시 포트를 직접 보호하지 않습니다. 클릭하여 컨테이너 포트 보호를 여세요.',
|
'호스트 INPUT 규칙은 이 Docker 게시 포트를 직접 보호하지 않습니다. 클릭하여 컨테이너 포트 보호를 여세요.',
|
||||||
notInitialized: '초기화되지 않음',
|
notInitialized: '초기화되지 않음',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'IPv6 전달이 차단되었습니다. 인터페이스 {0}의 accept_ra=1 설정으로 인해 RA/SLAAC에 의존할 수 있습니다. 네트워크 설정을 확인하고 RA가 필요한 인터페이스에 accept_ra=2를 영구 설정한 후 다시 시도하세요.',
|
'네트워크 연결이 끊길 위험이 있어 IPv6 전달 활성화를 차단했습니다. 문서와 시스템 로그를 확인하세요.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'IPv6 RA 설정을 확인할 수 없어 IPv6 전달 활성화를 차단했습니다. 시스템 네트워크 설정을 확인한 후 다시 시도하세요.',
|
'네트워크 구성을 확인할 수 없어 IPv6 전달 활성화를 차단했습니다. 자세한 내용은 시스템 로그를 확인하세요.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'IPv6 전달이 활성화되지 않았습니다. IPv6 규칙을 추가하거나 복원할 때 확인 후 활성화됩니다.',
|
'IPv6 전달이 활성화되지 않았습니다. IPv6 규칙을 추가하거나 복원할 때 확인 후 활성화됩니다.',
|
||||||
familyUnsupported: '시스템에서 {0}을 지원하지 않습니다',
|
familyUnsupported: '시스템에서 {0}을 지원하지 않습니다',
|
||||||
|
|||||||
@@ -563,6 +563,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'ຍົກເລີກການຮັກສາເຊັດຊັນໜ້າ',
|
cancelKeepAlive: 'ຍົກເລີກການຮັກສາເຊັດຊັນໜ້າ',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'ສູນຜູ້ໃຊ້',
|
||||||
|
exitSystem: 'ອອກຈາກລະບົບ',
|
||||||
logout: 'ອອກຈາກລະບົບ',
|
logout: 'ອອກຈາກລະບົບ',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1040,6 +1042,13 @@ const message = {
|
|||||||
whiteListHelper: 'ຈຳກັດການເຂົ້າເຖິງສະເພາະ IP ໃນລາຍຊື່ທີ່ອະນຸຍາດ',
|
whiteListHelper: 'ຈຳກັດການເຂົ້າເຖິງສະເພາະ IP ໃນລາຍຊື່ທີ່ອະນຸຍາດ',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway ຮອງຮັບການຕິດຕັ້ງແບບແຍກຕ່າງຫາກ',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI Gateway ຮອງຮັບການຕິດຕັ້ງແບບແຍກຕ່າງຫາກແລ້ວ. AI Gateway ທີ່ມາພ້ອມກັບ 1Panel ຈະບໍ່ໄດ້ຮັບການອັບເດດອີກ. ແນະນຳໃຫ້ຕິດຕັ້ງລຸ້ນແຍກຕ່າງຫາກຈາກຮ້ານແອັບ. ທ່ານຍັງສາມາດໃຊ້ລຸ້ນປັດຈຸບັນຕໍ່ໄດ້.',
|
||||||
|
deploymentNoticeContinue: 'ຮັບຊາບ, ໃຊ້ຕໍ່',
|
||||||
|
deploymentNoticeAppStore: 'ໄປທີ່ຮ້ານແອັບ',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'ທ່ານບໍ່ມີສິດເຂົ້າເຖິງຮ້ານແອັບ. ກະລຸນາຕິດຕໍ່ຜູ້ດູແລເພື່ອຕິດຕັ້ງລຸ້ນແຍກຕ່າງຫາກ.',
|
||||||
title: 'AI Gateway',
|
title: 'AI Gateway',
|
||||||
apiReference: 'ຄູ່ມື API',
|
apiReference: 'ຄູ່ມື API',
|
||||||
notInstalled: 'ຍັງບໍ່ໄດ້ຕິດຕັ້ງ',
|
notInstalled: 'ຍັງບໍ່ໄດ້ຕິດຕັ້ງ',
|
||||||
@@ -1475,6 +1484,23 @@ const message = {
|
|||||||
extraHeaders: 'Headers ເພີ່ມເຕີມ',
|
extraHeaders: 'Headers ເພີ່ມເຕີມ',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/ວິນາທີ',
|
||||||
|
requestsPerSecond: 'ຄຳຮ້ອງຂໍ/ວິນາທີ',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'ສຳເລັດປົກກະຕິ',
|
||||||
|
length: 'ເຖິງຂີດຈຳກັດຄວາມຍາວ',
|
||||||
|
abort: 'ຍົກເລີກ',
|
||||||
|
error: 'ຂໍ້ຜິດພາດ',
|
||||||
|
repetition: 'ຜົນອອກຊ້ຳ',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'ການວິເຄາະຄຳຮ້ອງຂໍ',
|
||||||
|
promptDistribution: 'ການແຈກຢາຍຄວາມຍາວໂທເຄັນຂາເຂົ້າ',
|
||||||
|
generationDistribution: 'ການແຈກຢາຍຄວາມຍາວໂທເຄັນຂາອອກ',
|
||||||
|
finishReasons: 'ເຫດຜົນທີ່ຄຳຮ້ອງຂໍສິ້ນສຸດ',
|
||||||
|
queueTime: 'ເວລາລໍຖ້າໃນຄິວສະເລ່ຍ',
|
||||||
|
averageGenerationTokens: 'ຈຳນວນໂທເຄັນຂາອອກສະເລ່ຍຕໍ່ຄຳຮ້ອງຂໍ',
|
||||||
|
prefixCacheHitRate: 'ອັດຕາການພົບໃນແຄດຄຳນຳໜ້າ',
|
||||||
|
distributionHelper: 'ການແຈກຢາຍຄວາມຍາວສະແດງອັດຕາຄຳຮ້ອງຂໍ ແລະ ບໍ່ປ່ຽນຕາມການເລືອກຄ່າສະເລ່ຍ ຫຼື ຄ່າສູງສຸດ.',
|
||||||
cleanHelper: 'ລຶບສະເພາະປະຫວັດການຕິດຕາມຂອງ vLLM ນີ້ບໍ? ບໍ່ກະທົບຕໍ່ອິນສະແຕນອື່ນ, ໂຮສ ຫຼື GPU.',
|
cleanHelper: 'ລຶບສະເພາະປະຫວັດການຕິດຕາມຂອງ vLLM ນີ້ບໍ? ບໍ່ກະທົບຕໍ່ອິນສະແຕນອື່ນ, ໂຮສ ຫຼື GPU.',
|
||||||
overview: 'ພາບລວມ',
|
overview: 'ພາບລວມ',
|
||||||
latencyAnalysis: 'ການວິເຄາະຄວາມລ່າຊ້າ',
|
latencyAnalysis: 'ການວິເຄາະຄວາມລ່າຊ້າ',
|
||||||
@@ -1822,6 +1848,11 @@ const message = {
|
|||||||
imageName: 'ຊື່ Image',
|
imageName: 'ຊື່ Image',
|
||||||
pull: 'ດຶງຂໍ້ມູນ (Pull)',
|
pull: 'ດຶງຂໍ້ມູນ (Pull)',
|
||||||
path: 'ເສັ້ນທາງ',
|
path: 'ເສັ້ນທາງ',
|
||||||
|
imageUploadDrop: 'ລາກໄຟລ໌ອິມເມຈມາວາງບ່ອນນີ້ ຫຼື ຄລິກເພື່ອອັບໂຫຼດ',
|
||||||
|
imageUploadHelper:
|
||||||
|
'ບໍ່ຈຳກັດຮູບແບບໄຟລ໌. Docker ຈະກວດສອບເນື້ອຫາ. ໄຟລ໌ທີ່ອັບໂຫຼດຈະຖືກເກັບໄວ້ ເພື່ອໃຫ້ສາມາດລອງນຳເຂົ້າອີກຄັ້ງ ຫຼື ລຶບດ້ວຍຕົນເອງ.',
|
||||||
|
imageUploadEmpty: 'ໄຟລ໌ຫວ່າງເປົ່າ. ກະລຸນາເລືອກໄຟລ໌ອິມເມຈທີ່ຖືກຕ້ອງ.',
|
||||||
|
imageImportSubmitted: 'ສົ່ງວຽກນຳເຂົ້າອິມເມຈແລ້ວ. ກະລຸນາເບິ່ງບັນທຶກວຽກເພື່ອກວດສອບຜົນ.',
|
||||||
importImage: 'ນຳເຂົ້າ',
|
importImage: 'ນຳເຂົ້າ',
|
||||||
buildArgs: 'Build Arguments',
|
buildArgs: 'Build Arguments',
|
||||||
imageBuild: 'ສ້າງ (Build)',
|
imageBuild: 'ສ້າງ (Build)',
|
||||||
@@ -4049,6 +4080,8 @@ const message = {
|
|||||||
'ການເປີດໃຊ້ສິ່ງນີ້ສາມາດຫຼີກລ່ຽງການຮົ່ວໄຫຼຂອງໃບຢັ້ງຢືນ, ແຕ່ການຕັ້ງເວັບໄຊເລີ່ມຕົ້ນຈະເຮັດໃຫ້ການຕັ້ງຄ່ານີ້ບໍ່ມີຜົນ',
|
'ການເປີດໃຊ້ສິ່ງນີ້ສາມາດຫຼີກລ່ຽງການຮົ່ວໄຫຼຂອງໃບຢັ້ງຢືນ, ແຕ່ການຕັ້ງເວັບໄຊເລີ່ມຕົ້ນຈະເຮັດໃຫ້ການຕັ້ງຄ່ານີ້ບໍ່ມີຜົນ',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: 'ຈະລຶບໃບຢັ້ງຢືນຕໍ່ໄປນີ້. ໃບຢັ້ງຢືນ ACME ຈະຖືກຖອນໂດຍອັດຕະໂນມັດ. ຕ້ອງການສືບຕໍ່ບໍ?',
|
||||||
|
deleteAndRevoke: 'ລຶບ ແລະ ຖອນ',
|
||||||
create: 'ຮ້ອງຂໍ',
|
create: 'ຮ້ອງຂໍ',
|
||||||
provider: 'ປະເພດ',
|
provider: 'ປະເພດ',
|
||||||
manualCreate: 'ສ້າງດ້ວຍຕົນເອງ',
|
manualCreate: 'ສ້າງດ້ວຍຕົນເອງ',
|
||||||
@@ -4182,7 +4215,6 @@ const message = {
|
|||||||
dockerGuard: 'ການປ້ອງກັນພອດຄອນເທນເນີ',
|
dockerGuard: 'ການປ້ອງກັນພອດຄອນເທນເນີ',
|
||||||
systemFirewall: 'ໄຟວໍໂຮສ',
|
systemFirewall: 'ໄຟວໍໂຮສ',
|
||||||
systemFirewallHelper: 'ຄວບຄຸມການເຂົ້າເຖິງພອດໂຮສ ແລະ ກົດຂາເຂົ້າ.',
|
systemFirewallHelper: 'ຄວບຄຸມການເຂົ້າເຖິງພອດໂຮສ ແລະ ກົດຂາເຂົ້າ.',
|
||||||
forwardPolicyDropWarning: 'ເຊີບເວີນີ້ຈຳກັດການສົ່ງຕໍ່ເຄືອຂ່າຍ. ກົດການສົ່ງຕໍ່ພອດອາດບໍ່ເຮັດວຽກ.',
|
|
||||||
forwardingHelper: 'ຈັດການກົດການສົ່ງຕໍ່ພອດ.',
|
forwardingHelper: 'ຈັດການກົດການສົ່ງຕໍ່ພອດ.',
|
||||||
dockerFirewallHelper: 'ເລືອກວິທີທີ່ 1Panel ຈັດການການປ້ອງກັນພອດຄອນເທນເນີ.',
|
dockerFirewallHelper: 'ເລືອກວິທີທີ່ 1Panel ຈັດການການປ້ອງກັນພອດຄອນເທນເນີ.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, ທົດລອງ',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, ທົດລອງ',
|
||||||
@@ -4260,9 +4292,9 @@ const message = {
|
|||||||
'ກົດ INPUT ຂອງໂຮສບໍ່ໄດ້ປ້ອງກັນພອດ Docker ນີ້ໂດຍກົງ. ຄລິກເພື່ອເປີດການປ້ອງກັນພອດຄອນເທນເນີ.',
|
'ກົດ INPUT ຂອງໂຮສບໍ່ໄດ້ປ້ອງກັນພອດ Docker ນີ້ໂດຍກົງ. ຄລິກເພື່ອເປີດການປ້ອງກັນພອດຄອນເທນເນີ.',
|
||||||
notInitialized: 'ຍັງບໍ່ໄດ້ເລີ່ມຕົ້ນ',
|
notInitialized: 'ຍັງບໍ່ໄດ້ເລີ່ມຕົ້ນ',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'ການສົ່ງຕໍ່ IPv6 ຖືກບລັອກ: ອິນເຕີເຟດ {0} ມີ accept_ra=1 ແລະອາດອາໄສ RA/SLAAC. ກວດສອບການຕັ້ງຄ່າເຄືອຂ່າຍ, ຕັ້ງ accept_ra=2 ແບບຖາວອນໃຫ້ອິນເຕີເຟດທີ່ຕ້ອງການ RA ແລ້ວລອງໃໝ່.',
|
'ການສົ່ງຕໍ່ IPv6 ຖືກບລັອກເພື່ອປ້ອງກັນຄວາມສ່ຽງທີ່ເຄືອຂ່າຍຈະຂາດການເຊື່ອມຕໍ່. ເບິ່ງເອກະສານ ແລະ ບັນທຶກລະບົບ.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'ບໍ່ສາມາດກວດສອບການຕັ້ງຄ່າ IPv6 RA ໄດ້. ການເປີດໃຊ້ການສົ່ງຕໍ່ IPv6 ຖືກບລັອກ. ກວດສອບການຕັ້ງຄ່າເຄືອຂ່າຍແລ້ວລອງໃໝ່.',
|
'ການສົ່ງຕໍ່ IPv6 ຖືກບລັອກເນື່ອງຈາກບໍ່ສາມາດກວດສອບການຕັ້ງຄ່າເຄືອຂ່າຍໄດ້. ເບິ່ງລາຍລະອຽດໃນບັນທຶກລະບົບ.',
|
||||||
ipv6ForwardingOnDemand: 'ຍັງບໍ່ໄດ້ເປີດໃຊ້ການສົ່ງຕໍ່ IPv6. ລະບົບຈະກວດສອບແລະເປີດໃຊ້ເມື່ອເພີ່ມຫຼືກູ້ຄືນກົດ IPv6.',
|
ipv6ForwardingOnDemand: 'ຍັງບໍ່ໄດ້ເປີດໃຊ້ການສົ່ງຕໍ່ IPv6. ລະບົບຈະກວດສອບແລະເປີດໃຊ້ເມື່ອເພີ່ມຫຼືກູ້ຄືນກົດ IPv6.',
|
||||||
familyUnsupported: 'ລະບົບບໍ່ຮອງຮັບ {0}',
|
familyUnsupported: 'ລະບົບບໍ່ຮອງຮັບ {0}',
|
||||||
familyChainIssue: '{0} · chain {1} · {2}',
|
familyChainIssue: '{0} · chain {1} · {2}',
|
||||||
|
|||||||
@@ -575,6 +575,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'Hentikan pengekalan sesi halaman',
|
cancelKeepAlive: 'Hentikan pengekalan sesi halaman',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'Pusat Pengguna',
|
||||||
|
exitSystem: 'Log keluar',
|
||||||
logout: 'Log keluar',
|
logout: 'Log keluar',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1077,6 +1079,13 @@ const message = {
|
|||||||
whiteListHelper: 'Hadkan akses kepada hanya IP dalam senarai putih',
|
whiteListHelper: 'Hadkan akses kepada hanya IP dalam senarai putih',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway menyokong penggunaan kendiri',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI Gateway kini menyokong penggunaan kendiri. AI Gateway terbina dalam 1Panel tidak lagi akan menerima kemas kini. Kami mengesyorkan pemasangan versi kendiri daripada gedung aplikasi. Anda juga boleh terus menggunakan versi semasa.',
|
||||||
|
deploymentNoticeContinue: 'Faham, terus gunakan',
|
||||||
|
deploymentNoticeAppStore: 'Pergi ke gedung aplikasi',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'Anda tidak mempunyai akses ke gedung aplikasi. Hubungi pentadbir untuk memasang versi kendiri.',
|
||||||
title: 'Gateway AI',
|
title: 'Gateway AI',
|
||||||
apiReference: 'Rujukan API',
|
apiReference: 'Rujukan API',
|
||||||
notInstalled: 'Belum dipasang',
|
notInstalled: 'Belum dipasang',
|
||||||
@@ -1522,6 +1531,24 @@ const message = {
|
|||||||
extraHeaders: 'Pengepala Tambahan',
|
extraHeaders: 'Pengepala Tambahan',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/s',
|
||||||
|
requestsPerSecond: 'Permintaan/s',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'Selesai secara normal',
|
||||||
|
length: 'Had panjang dicapai',
|
||||||
|
abort: 'Dibatalkan',
|
||||||
|
error: 'Ralat',
|
||||||
|
repetition: 'Pengulangan',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'Analisis permintaan',
|
||||||
|
promptDistribution: 'Taburan panjang token input',
|
||||||
|
generationDistribution: 'Taburan panjang token output',
|
||||||
|
finishReasons: 'Sebab permintaan tamat',
|
||||||
|
queueTime: 'Purata masa dalam baris gilir',
|
||||||
|
averageGenerationTokens: 'Purata token output setiap permintaan',
|
||||||
|
prefixCacheHitRate: 'Kadar padanan cache awalan',
|
||||||
|
distributionHelper:
|
||||||
|
'Taburan panjang menunjukkan kadar permintaan dan tidak dipengaruhi oleh pilihan purata/puncak.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'Padamkan sejarah pemantauan untuk instans vLLM ini sahaja? Instans lain serta pemantauan hos dan GPU tidak terjejas.',
|
'Padamkan sejarah pemantauan untuk instans vLLM ini sahaja? Instans lain serta pemantauan hos dan GPU tidak terjejas.',
|
||||||
overview: 'Gambaran keseluruhan',
|
overview: 'Gambaran keseluruhan',
|
||||||
@@ -1882,6 +1909,11 @@ const message = {
|
|||||||
imageName: 'Nama imej',
|
imageName: 'Nama imej',
|
||||||
pull: 'Tarik',
|
pull: 'Tarik',
|
||||||
path: 'Laluan',
|
path: 'Laluan',
|
||||||
|
imageUploadDrop: 'Seret fail imej ke sini atau klik untuk memuat naik',
|
||||||
|
imageUploadHelper:
|
||||||
|
'Semua format fail dibenarkan. Docker mengesahkan kandungannya. Fail yang dimuat naik disimpan untuk mencuba semula import atau dipadam secara manual.',
|
||||||
|
imageUploadEmpty: 'Fail kosong. Pilih arkib imej yang sah.',
|
||||||
|
imageImportSubmitted: 'Tugas import imej telah dihantar. Semak log tugas untuk melihat hasilnya.',
|
||||||
importImage: 'Import',
|
importImage: 'Import',
|
||||||
buildArgs: 'Argumen Binaan',
|
buildArgs: 'Argumen Binaan',
|
||||||
imageBuild: 'Bina',
|
imageBuild: 'Bina',
|
||||||
@@ -4231,6 +4263,8 @@ const message = {
|
|||||||
'Mengaktifkan ini boleh mengelakkan kebocoran sijil, menetapkan laman web lalai akan membatalkan tetapan ini',
|
'Mengaktifkan ini boleh mengelakkan kebocoran sijil, menetapkan laman web lalai akan membatalkan tetapan ini',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: 'Sijil berikut akan dipadamkan. Sijil ACME akan dibatalkan secara automatik. Teruskan?',
|
||||||
|
deleteAndRevoke: 'Padam dan batalkan',
|
||||||
create: 'Permintaan',
|
create: 'Permintaan',
|
||||||
provider: 'Jenis',
|
provider: 'Jenis',
|
||||||
manualCreate: 'Dicipta secara manual',
|
manualCreate: 'Dicipta secara manual',
|
||||||
@@ -4374,8 +4408,6 @@ const message = {
|
|||||||
dockerGuard: 'Perlindungan port bekas',
|
dockerGuard: 'Perlindungan port bekas',
|
||||||
systemFirewall: 'Tembok api hos',
|
systemFirewall: 'Tembok api hos',
|
||||||
systemFirewallHelper: 'Mengawal akses port hos dan peraturan masuk.',
|
systemFirewallHelper: 'Mengawal akses port hos dan peraturan masuk.',
|
||||||
forwardPolicyDropWarning:
|
|
||||||
'Pelayan ini mengehadkan pemajuan rangkaian. Peraturan pemajuan port mungkin tidak berfungsi.',
|
|
||||||
forwardingHelper: 'Mengurus peraturan pemajuan port.',
|
forwardingHelper: 'Mengurus peraturan pemajuan port.',
|
||||||
dockerFirewallHelper: 'Memilih cara 1Panel mengurus perlindungan port bekas.',
|
dockerFirewallHelper: 'Memilih cara 1Panel mengurus perlindungan port bekas.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, percubaan',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, percubaan',
|
||||||
@@ -4459,9 +4491,9 @@ const message = {
|
|||||||
'Peraturan INPUT hos tidak melindungi port terbitan Docker ini secara langsung. Klik untuk membuka perlindungan port bekas.',
|
'Peraturan INPUT hos tidak melindungi port terbitan Docker ini secara langsung. Klik untuk membuka perlindungan port bekas.',
|
||||||
notInitialized: 'Belum dimulakan',
|
notInitialized: 'Belum dimulakan',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'Pemajuan IPv6 disekat: antara muka {0} mempunyai accept_ra=1 dan mungkin bergantung pada RA/SLAAC. Semak konfigurasi rangkaian, tetapkan accept_ra=2 secara kekal pada antara muka yang memerlukan RA, kemudian cuba lagi.',
|
'Pemajuan IPv6 disekat bagi mengelakkan risiko kehilangan sambungan rangkaian. Rujuk dokumentasi dan log sistem.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'Konfigurasi RA IPv6 tidak dapat diperiksa. Pengaktifan pemajuan IPv6 disekat. Semak konfigurasi rangkaian sistem dan cuba lagi.',
|
'Pemajuan IPv6 disekat kerana konfigurasi rangkaian tidak dapat diperiksa. Lihat log sistem untuk butiran.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'Pemajuan IPv6 belum diaktifkan. Ia akan diperiksa dan diaktifkan apabila peraturan IPv6 ditambah atau dipulihkan.',
|
'Pemajuan IPv6 belum diaktifkan. Ia akan diperiksa dan diaktifkan apabila peraturan IPv6 ditambah atau dipulihkan.',
|
||||||
familyUnsupported: 'Sistem tidak menyokong {0}',
|
familyUnsupported: 'Sistem tidak menyokong {0}',
|
||||||
|
|||||||
@@ -568,6 +568,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'Parar de manter a sessão da página',
|
cancelKeepAlive: 'Parar de manter a sessão da página',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'Central do usuário',
|
||||||
|
exitSystem: 'Sair',
|
||||||
logout: 'Logout',
|
logout: 'Logout',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1072,6 +1074,13 @@ const message = {
|
|||||||
'Após ativar, você pode desativar o acesso externo à porta em Loja de Apps - Instalado - Ollama - Parâmetros para melhorar a segurança.',
|
'Após ativar, você pode desativar o acesso externo à porta em Loja de Apps - Instalado - Ollama - Parâmetros para melhorar a segurança.',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway permite implantação independente',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'O AI Gateway agora permite implantação independente. O AI Gateway integrado ao 1Panel não receberá mais atualizações. Recomendamos instalar a versão independente pela loja de aplicativos. Você também pode continuar usando a versão atual.',
|
||||||
|
deploymentNoticeContinue: 'Entendido, continuar usando',
|
||||||
|
deploymentNoticeAppStore: 'Ir à loja de aplicativos',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'Você não tem acesso à loja de aplicativos. Contate o administrador para instalar a versão independente.',
|
||||||
title: 'Gateway de IA',
|
title: 'Gateway de IA',
|
||||||
apiReference: 'Referência da API',
|
apiReference: 'Referência da API',
|
||||||
notInstalled: 'Não instalado',
|
notInstalled: 'Não instalado',
|
||||||
@@ -1518,6 +1527,24 @@ const message = {
|
|||||||
extraHeaders: 'Cabeçalhos extras',
|
extraHeaders: 'Cabeçalhos extras',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/s',
|
||||||
|
requestsPerSecond: 'Solicitações/s',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'Conclusão normal',
|
||||||
|
length: 'Limite de comprimento atingido',
|
||||||
|
abort: 'Abortada',
|
||||||
|
error: 'Erro',
|
||||||
|
repetition: 'Repetição',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'Análise de solicitações',
|
||||||
|
promptDistribution: 'Distribuição do comprimento dos tokens de entrada',
|
||||||
|
generationDistribution: 'Distribuição do comprimento dos tokens de saída',
|
||||||
|
finishReasons: 'Motivos de conclusão das solicitações',
|
||||||
|
queueTime: 'Tempo médio na fila',
|
||||||
|
averageGenerationTokens: 'Média de tokens de saída por solicitação',
|
||||||
|
prefixCacheHitRate: 'Taxa de acertos do cache de prefixos',
|
||||||
|
distributionHelper:
|
||||||
|
'As distribuições de comprimento mostram taxas de solicitações e não mudam com a seleção de média ou pico.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'Limpar apenas o histórico de monitoramento desta instância do vLLM? Outras instâncias e o monitoramento do host e da GPU não serão afetados.',
|
'Limpar apenas o histórico de monitoramento desta instância do vLLM? Outras instâncias e o monitoramento do host e da GPU não serão afetados.',
|
||||||
overview: 'Visão geral',
|
overview: 'Visão geral',
|
||||||
@@ -1884,6 +1911,11 @@ const message = {
|
|||||||
imageName: 'Nome da imagem',
|
imageName: 'Nome da imagem',
|
||||||
pull: 'Puxar',
|
pull: 'Puxar',
|
||||||
path: 'Caminho',
|
path: 'Caminho',
|
||||||
|
imageUploadDrop: 'Arraste um arquivo de imagem para cá ou clique para enviar',
|
||||||
|
imageUploadHelper:
|
||||||
|
'Qualquer formato de arquivo é permitido. O Docker valida o conteúdo. Os arquivos enviados são mantidos para novas tentativas de importação ou exclusão manual.',
|
||||||
|
imageUploadEmpty: 'O arquivo está vazio. Selecione um arquivo de imagem válido.',
|
||||||
|
imageImportSubmitted: 'Tarefa de importação de imagem enviada. Consulte o log da tarefa para ver o resultado.',
|
||||||
importImage: 'Importar',
|
importImage: 'Importar',
|
||||||
buildArgs: 'Argumentos de Build',
|
buildArgs: 'Argumentos de Build',
|
||||||
imageBuild: 'Construção de imagem',
|
imageBuild: 'Construção de imagem',
|
||||||
@@ -4250,6 +4282,9 @@ const message = {
|
|||||||
'Ativar isso pode evitar vazamento de certificados, definir um site padrão invalidará esta configuração',
|
'Ativar isso pode evitar vazamento de certificados, definir um site padrão invalidará esta configuração',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm:
|
||||||
|
'Os certificados a seguir serão excluídos. Os certificados ACME serão revogados automaticamente. Continuar?',
|
||||||
|
deleteAndRevoke: 'Excluir e revogar',
|
||||||
create: 'Solicitar',
|
create: 'Solicitar',
|
||||||
provider: 'Tipo',
|
provider: 'Tipo',
|
||||||
manualCreate: 'Criado manualmente',
|
manualCreate: 'Criado manualmente',
|
||||||
@@ -4395,8 +4430,6 @@ const message = {
|
|||||||
dockerGuard: 'Proteção de portas de contêineres',
|
dockerGuard: 'Proteção de portas de contêineres',
|
||||||
systemFirewall: 'Firewall do host',
|
systemFirewall: 'Firewall do host',
|
||||||
systemFirewallHelper: 'Controla o acesso às portas do host e as regras de entrada.',
|
systemFirewallHelper: 'Controla o acesso às portas do host e as regras de entrada.',
|
||||||
forwardPolicyDropWarning:
|
|
||||||
'Este servidor restringe o encaminhamento de rede. As regras de encaminhamento de portas podem não funcionar.',
|
|
||||||
forwardingHelper: 'Gerencia regras de encaminhamento de portas.',
|
forwardingHelper: 'Gerencia regras de encaminhamento de portas.',
|
||||||
dockerFirewallHelper: 'Seleciona como o 1Panel gerencia a proteção de portas de contêineres.',
|
dockerFirewallHelper: 'Seleciona como o 1Panel gerencia a proteção de portas de contêineres.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, experimental',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, experimental',
|
||||||
@@ -4482,9 +4515,9 @@ const message = {
|
|||||||
'As regras INPUT do host não protegem diretamente esta porta publicada pelo Docker. Clique para abrir a proteção de portas de contêineres.',
|
'As regras INPUT do host não protegem diretamente esta porta publicada pelo Docker. Clique para abrir a proteção de portas de contêineres.',
|
||||||
notInitialized: 'Não inicializado',
|
notInitialized: 'Não inicializado',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'O encaminhamento IPv6 foi bloqueado: as interfaces {0} têm accept_ra=1 e podem depender de RA/SLAAC. Verifique a configuração de rede, configure accept_ra=2 de forma persistente nas interfaces que precisam de RA e tente novamente.',
|
'O encaminhamento IPv6 foi bloqueado para evitar uma possível perda de conexão. Consulte a documentação e os logs do sistema.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'Não foi possível verificar a configuração RA do IPv6. A ativação do encaminhamento IPv6 foi bloqueada. Verifique a configuração de rede e tente novamente.',
|
'O encaminhamento IPv6 foi bloqueado porque não foi possível verificar a configuração de rede. Consulte os logs do sistema.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'O encaminhamento IPv6 não está ativado. Ele será verificado e ativado ao adicionar ou restaurar regras IPv6.',
|
'O encaminhamento IPv6 não está ativado. Ele será verificado e ativado ao adicionar ou restaurar regras IPv6.',
|
||||||
familyUnsupported: 'O sistema não oferece suporte a {0}',
|
familyUnsupported: 'O sistema não oferece suporte a {0}',
|
||||||
|
|||||||
@@ -566,6 +566,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'Не сохранять сеанс страницы',
|
cancelKeepAlive: 'Не сохранять сеанс страницы',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'Центр пользователя',
|
||||||
|
exitSystem: 'Выйти из системы',
|
||||||
logout: 'Выход',
|
logout: 'Выход',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1065,6 +1067,13 @@ const message = {
|
|||||||
whiteListHelper: 'Ограничить доступ только для IP-адресов из белого списка',
|
whiteListHelper: 'Ограничить доступ только для IP-адресов из белого списка',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway поддерживает отдельное развёртывание',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI Gateway теперь поддерживает отдельное развёртывание. Встроенный AI Gateway в 1Panel больше не будет получать обновления. Рекомендуем установить отдельную версию из магазина приложений. Вы также можете продолжить использовать текущую версию.',
|
||||||
|
deploymentNoticeContinue: 'Понятно, продолжить использование',
|
||||||
|
deploymentNoticeAppStore: 'Перейти в магазин приложений',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'У вас нет доступа к магазину приложений. Обратитесь к администратору для установки отдельной версии.',
|
||||||
title: 'AI-шлюз',
|
title: 'AI-шлюз',
|
||||||
apiReference: 'Справочник API',
|
apiReference: 'Справочник API',
|
||||||
notInstalled: 'Не установлен',
|
notInstalled: 'Не установлен',
|
||||||
@@ -1511,6 +1520,24 @@ const message = {
|
|||||||
extraHeaders: 'Дополнительные заголовки',
|
extraHeaders: 'Дополнительные заголовки',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/с',
|
||||||
|
requestsPerSecond: 'Запросов/с',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'Нормальное завершение',
|
||||||
|
length: 'Достигнут лимит длины',
|
||||||
|
abort: 'Прервано',
|
||||||
|
error: 'Ошибка',
|
||||||
|
repetition: 'Повторение',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'Анализ запросов',
|
||||||
|
promptDistribution: 'Распределение длины входных токенов',
|
||||||
|
generationDistribution: 'Распределение длины выходных токенов',
|
||||||
|
finishReasons: 'Причины завершения запросов',
|
||||||
|
queueTime: 'Среднее время в очереди',
|
||||||
|
averageGenerationTokens: 'Среднее число выходных токенов на запрос',
|
||||||
|
prefixCacheHitRate: 'Доля попаданий в кэш префиксов',
|
||||||
|
distributionHelper:
|
||||||
|
'Распределения длины показывают частоту запросов и не зависят от выбора среднего или пикового значения.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'Удалить историю мониторинга только этого экземпляра vLLM? Другие экземпляры, мониторинг хоста и GPU не будут затронуты.',
|
'Удалить историю мониторинга только этого экземпляра vLLM? Другие экземпляры, мониторинг хоста и GPU не будут затронуты.',
|
||||||
overview: 'Обзор',
|
overview: 'Обзор',
|
||||||
@@ -1874,6 +1901,11 @@ const message = {
|
|||||||
imageName: 'Имя образа',
|
imageName: 'Имя образа',
|
||||||
pull: 'Загрузить',
|
pull: 'Загрузить',
|
||||||
path: 'Путь',
|
path: 'Путь',
|
||||||
|
imageUploadDrop: 'Перетащите файл образа сюда или нажмите для загрузки',
|
||||||
|
imageUploadHelper:
|
||||||
|
'Допускаются файлы любого формата. Docker проверяет содержимое. Загруженные файлы сохраняются для повторного импорта или удаления вручную.',
|
||||||
|
imageUploadEmpty: 'Файл пуст. Выберите корректный архив образа.',
|
||||||
|
imageImportSubmitted: 'Задача импорта образа отправлена. Результат можно посмотреть в журнале задачи.',
|
||||||
importImage: 'Импорт',
|
importImage: 'Импорт',
|
||||||
buildArgs: 'Аргументы Сборки',
|
buildArgs: 'Аргументы Сборки',
|
||||||
imageBuild: 'Сборка',
|
imageBuild: 'Сборка',
|
||||||
@@ -4217,6 +4249,9 @@ const message = {
|
|||||||
'Включение этого может предотвратить утечку сертификатов, установка веб-сайта по умолчанию сделает эту настройку недействительной',
|
'Включение этого может предотвратить утечку сертификатов, установка веб-сайта по умолчанию сделает эту настройку недействительной',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm:
|
||||||
|
'Следующие сертификаты будут удалены. Сертификаты ACME будут автоматически отозваны. Продолжить?',
|
||||||
|
deleteAndRevoke: 'Удалить и отозвать',
|
||||||
create: 'Запросить',
|
create: 'Запросить',
|
||||||
provider: 'Тип',
|
provider: 'Тип',
|
||||||
manualCreate: 'Создан вручную',
|
manualCreate: 'Создан вручную',
|
||||||
@@ -4361,8 +4396,6 @@ const message = {
|
|||||||
dockerGuard: 'Защита портов контейнеров',
|
dockerGuard: 'Защита портов контейнеров',
|
||||||
systemFirewall: 'Брандмауэр хоста',
|
systemFirewall: 'Брандмауэр хоста',
|
||||||
systemFirewallHelper: 'Управляет доступом к портам хоста и входящими правилами.',
|
systemFirewallHelper: 'Управляет доступом к портам хоста и входящими правилами.',
|
||||||
forwardPolicyDropWarning:
|
|
||||||
'На этом сервере ограничена пересылка сетевого трафика. Правила перенаправления портов могут не работать.',
|
|
||||||
forwardingHelper: 'Управляет правилами перенаправления портов.',
|
forwardingHelper: 'Управляет правилами перенаправления портов.',
|
||||||
dockerFirewallHelper: 'Выбирает способ управления защитой портов контейнеров в 1Panel.',
|
dockerFirewallHelper: 'Выбирает способ управления защитой портов контейнеров в 1Panel.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, экспериментально',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, экспериментально',
|
||||||
@@ -4447,9 +4480,9 @@ const message = {
|
|||||||
'Правила INPUT хоста не защищают этот опубликованный Docker-порт напрямую. Нажмите, чтобы открыть защиту портов контейнеров.',
|
'Правила INPUT хоста не защищают этот опубликованный Docker-порт напрямую. Нажмите, чтобы открыть защиту портов контейнеров.',
|
||||||
notInitialized: 'Не инициализировано',
|
notInitialized: 'Не инициализировано',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'Пересылка IPv6 заблокирована: интерфейсы {0} имеют accept_ra=1 и могут зависеть от RA/SLAAC. Проверьте настройки сети, сохраните accept_ra=2 для интерфейсов, которым нужен RA, и повторите попытку.',
|
'Включение переадресации IPv6 заблокировано из-за риска потери связи. См. документацию и системные журналы.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'Не удалось проверить настройки RA для IPv6. Включение пересылки IPv6 заблокировано. Проверьте настройки сети и повторите попытку.',
|
'Включение переадресации IPv6 заблокировано: не удалось проверить настройки сети. Подробности в системных журналах.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'Пересылка IPv6 не включена. Проверка и включение выполняются при добавлении или восстановлении правил IPv6.',
|
'Пересылка IPv6 не включена. Проверка и включение выполняются при добавлении или восстановлении правил IPv6.',
|
||||||
familyUnsupported: 'Система не поддерживает {0}',
|
familyUnsupported: 'Система не поддерживает {0}',
|
||||||
|
|||||||
@@ -570,6 +570,8 @@ const message = {
|
|||||||
cancelKeepAlive: 'Sayfa oturumunu korumayı bırak',
|
cancelKeepAlive: 'Sayfa oturumunu korumayı bırak',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: 'Kullanıcı Merkezi',
|
||||||
|
exitSystem: 'Çıkış yap',
|
||||||
logout: 'Çıkış',
|
logout: 'Çıkış',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1076,6 +1078,13 @@ const message = {
|
|||||||
whiteListHelper: 'Erişimi yalnızca beyaz listedeki IPlerle sınırlayın',
|
whiteListHelper: 'Erişimi yalnızca beyaz listedeki IPlerle sınırlayın',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI Gateway bağımsız dağıtımı destekliyor',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI Gateway artık bağımsız dağıtımı destekliyor. 1Panel içindeki AI Gateway artık güncelleme almayacak. Uygulama mağazasından bağımsız sürümü yüklemenizi öneririz. Mevcut sürümü kullanmaya da devam edebilirsiniz.',
|
||||||
|
deploymentNoticeContinue: 'Anladım, kullanmaya devam et',
|
||||||
|
deploymentNoticeAppStore: 'Uygulama mağazasına git',
|
||||||
|
deploymentNoticeNoAppPermission:
|
||||||
|
'Uygulama mağazasına erişim izniniz yok. Bağımsız sürümü yüklemek için yöneticinizle iletişime geçin.',
|
||||||
title: 'AI Ağ Geçidi',
|
title: 'AI Ağ Geçidi',
|
||||||
apiReference: 'API Referansı',
|
apiReference: 'API Referansı',
|
||||||
notInstalled: 'Kurulu değil',
|
notInstalled: 'Kurulu değil',
|
||||||
@@ -1518,6 +1527,23 @@ const message = {
|
|||||||
extraHeaders: 'Ek Başlıklar',
|
extraHeaders: 'Ek Başlıklar',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/sn',
|
||||||
|
requestsPerSecond: 'İstek/sn',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: 'Normal tamamlanma',
|
||||||
|
length: 'Uzunluk sınırına ulaşıldı',
|
||||||
|
abort: 'İptal edildi',
|
||||||
|
error: 'Hata',
|
||||||
|
repetition: 'Tekrarlama',
|
||||||
|
},
|
||||||
|
requestAnalysis: 'İstek analizi',
|
||||||
|
promptDistribution: 'Girdi belirteci uzunluk dağılımı',
|
||||||
|
generationDistribution: 'Çıktı belirteci uzunluk dağılımı',
|
||||||
|
finishReasons: 'İstek bitiş nedenleri',
|
||||||
|
queueTime: 'Ortalama kuyruk süresi',
|
||||||
|
averageGenerationTokens: 'İstek başına ortalama çıktı belirteci',
|
||||||
|
prefixCacheHitRate: 'Önek önbelleği isabet oranı',
|
||||||
|
distributionHelper: 'Uzunluk dağılımları istek hızlarını gösterir ve ortalama/tepe seçiminden etkilenmez.',
|
||||||
cleanHelper:
|
cleanHelper:
|
||||||
'Yalnızca bu vLLM örneğinin izleme geçmişi temizlensin mi? Diğer örnekler, ana makine ve GPU izlemesi etkilenmez.',
|
'Yalnızca bu vLLM örneğinin izleme geçmişi temizlensin mi? Diğer örnekler, ana makine ve GPU izlemesi etkilenmez.',
|
||||||
overview: 'Genel bakış',
|
overview: 'Genel bakış',
|
||||||
@@ -1883,6 +1909,11 @@ const message = {
|
|||||||
imageName: 'İmaj adı',
|
imageName: 'İmaj adı',
|
||||||
pull: 'Çek',
|
pull: 'Çek',
|
||||||
path: 'Yol',
|
path: 'Yol',
|
||||||
|
imageUploadDrop: 'Bir imaj dosyasını buraya sürükleyin veya yüklemek için tıklayın',
|
||||||
|
imageUploadHelper:
|
||||||
|
'Tüm dosya biçimlerine izin verilir. Docker içeriği doğrular. Yüklenen dosyalar, içe aktarmayı yeniden denemek veya elle silmek için saklanır.',
|
||||||
|
imageUploadEmpty: 'Dosya boş. Geçerli bir imaj arşivi seçin.',
|
||||||
|
imageImportSubmitted: 'İmajı içe aktarma görevi gönderildi. Sonuç için görev günlüğünü kontrol edin.',
|
||||||
importImage: 'İçe aktar',
|
importImage: 'İçe aktar',
|
||||||
buildArgs: 'Derleme Argümanları',
|
buildArgs: 'Derleme Argümanları',
|
||||||
imageBuild: 'Oluştur',
|
imageBuild: 'Oluştur',
|
||||||
@@ -4235,6 +4266,9 @@ const message = {
|
|||||||
'Etkinleştirilmesi sertifika sızıntısını önleyebilir, varsayılan bir web sitesi ayarlamak bu ayarı geçersiz kılar',
|
'Etkinleştirilmesi sertifika sızıntısını önleyebilir, varsayılan bir web sitesi ayarlamak bu ayarı geçersiz kılar',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm:
|
||||||
|
'Aşağıdaki sertifikalar silinecek. ACME sertifikaları otomatik olarak iptal edilecek. Devam edilsin mi?',
|
||||||
|
deleteAndRevoke: 'Sil ve iptal et',
|
||||||
create: 'İstek',
|
create: 'İstek',
|
||||||
provider: 'Tür',
|
provider: 'Tür',
|
||||||
manualCreate: 'Manuel olarak oluşturuldu',
|
manualCreate: 'Manuel olarak oluşturuldu',
|
||||||
@@ -4379,7 +4413,6 @@ const message = {
|
|||||||
dockerGuard: 'Konteyner portu koruması',
|
dockerGuard: 'Konteyner portu koruması',
|
||||||
systemFirewall: 'Ana makine güvenlik duvarı',
|
systemFirewall: 'Ana makine güvenlik duvarı',
|
||||||
systemFirewallHelper: 'Ana makine port erişimini ve gelen kuralları yönetir.',
|
systemFirewallHelper: 'Ana makine port erişimini ve gelen kuralları yönetir.',
|
||||||
forwardPolicyDropWarning: 'Bu sunucu ağ yönlendirmesini kısıtlıyor. Port yönlendirme kuralları çalışmayabilir.',
|
|
||||||
forwardingHelper: 'Port yönlendirme kurallarını yönetir.',
|
forwardingHelper: 'Port yönlendirme kurallarını yönetir.',
|
||||||
dockerFirewallHelper: '1Panel konteyner portu korumasının nasıl yönetileceğini seçer.',
|
dockerFirewallHelper: '1Panel konteyner portu korumasının nasıl yönetileceğini seçer.',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0, deneysel',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0, deneysel',
|
||||||
@@ -4466,9 +4499,9 @@ const message = {
|
|||||||
'Ana makine INPUT kuralları bu Docker yayımlanmış portunu doğrudan korumaz. Konteyner portu korumasını açmak için tıklayın.',
|
'Ana makine INPUT kuralları bu Docker yayımlanmış portunu doğrudan korumaz. Konteyner portu korumasını açmak için tıklayın.',
|
||||||
notInitialized: 'Başlatılmadı',
|
notInitialized: 'Başlatılmadı',
|
||||||
ipv6RARisk:
|
ipv6RARisk:
|
||||||
'IPv6 yönlendirme engellendi: {0} arayüzlerinde accept_ra=1 ayarlı ve bu arayüzler RA/SLAAC kullanıyor olabilir. Ağ yapılandırmasını kontrol edin, RA gereken arayüzlerde accept_ra=2 ayarını kalıcı olarak uygulayın ve yeniden deneyin.',
|
'Ağ bağlantısının kesilme riski nedeniyle IPv6 yönlendirmesi engellendi. Belgeleri ve sistem günlüklerini inceleyin.',
|
||||||
ipv6RACheckFailed:
|
ipv6RACheckFailed:
|
||||||
'IPv6 RA yapılandırması kontrol edilemedi. IPv6 yönlendirmeyi etkinleştirme engellendi. Sistem ağ yapılandırmasını kontrol edip yeniden deneyin.',
|
'Ağ yapılandırması denetlenemediği için IPv6 yönlendirmesi engellendi. Ayrıntılar için sistem günlüklerini inceleyin.',
|
||||||
ipv6ForwardingOnDemand:
|
ipv6ForwardingOnDemand:
|
||||||
'IPv6 yönlendirme etkin değil. IPv6 kuralları eklenirken veya geri yüklenirken kontrol edilip etkinleştirilecektir.',
|
'IPv6 yönlendirme etkin değil. IPv6 kuralları eklenirken veya geri yüklenirken kontrol edilip etkinleştirilecektir.',
|
||||||
familyUnsupported: 'Sistem {0} desteğini sunmuyor',
|
familyUnsupported: 'Sistem {0} desteğini sunmuyor',
|
||||||
|
|||||||
@@ -548,6 +548,8 @@ const message = {
|
|||||||
cancelKeepAlive: '取消保持頁面工作階段',
|
cancelKeepAlive: '取消保持頁面工作階段',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: '使用者中心',
|
||||||
|
exitSystem: '登出系統',
|
||||||
logout: '登出',
|
logout: '登出',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1006,6 +1008,12 @@ const message = {
|
|||||||
whiteListHelper: '限制僅白名單中的 IP 可瀏覽',
|
whiteListHelper: '限制僅白名單中的 IP 可瀏覽',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI 網關已支援獨立部署',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI 網關現已支援獨立部署,1Panel 內建 AI 網關後續將不再更新。建議前往應用程式商店安裝獨立版本,您也可以繼續使用目前版本。',
|
||||||
|
deploymentNoticeContinue: '已知悉,繼續使用',
|
||||||
|
deploymentNoticeAppStore: '前往應用程式商店',
|
||||||
|
deploymentNoticeNoAppPermission: '您沒有應用程式商店存取權限,請聯絡管理員安裝獨立版本。',
|
||||||
title: 'AI 閘道',
|
title: 'AI 閘道',
|
||||||
apiReference: '介面說明',
|
apiReference: '介面說明',
|
||||||
notInstalled: '未安裝',
|
notInstalled: '未安裝',
|
||||||
@@ -1429,6 +1437,23 @@ const message = {
|
|||||||
extraHeaders: '額外請求標頭',
|
extraHeaders: '額外請求標頭',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/秒',
|
||||||
|
requestsPerSecond: '請求/秒',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: '正常結束',
|
||||||
|
length: '達到長度限制',
|
||||||
|
abort: '中止',
|
||||||
|
error: '錯誤',
|
||||||
|
repetition: '重複輸出',
|
||||||
|
},
|
||||||
|
requestAnalysis: '請求分析',
|
||||||
|
promptDistribution: '輸入 Token 長度分佈',
|
||||||
|
generationDistribution: '輸出 Token 長度分佈',
|
||||||
|
finishReasons: '請求結束原因',
|
||||||
|
queueTime: '平均排隊耗時',
|
||||||
|
averageGenerationTokens: '每請求平均輸出 Token 數',
|
||||||
|
prefixCacheHitRate: '前綴快取命中率',
|
||||||
|
distributionHelper: '長度分佈按請求速率彙總,不受平均/峰值切換影響。',
|
||||||
cleanHelper: '僅清空目前 vLLM 實例的監控歷史,不影響其他實例、主機或 GPU 監控,是否繼續?',
|
cleanHelper: '僅清空目前 vLLM 實例的監控歷史,不影響其他實例、主機或 GPU 監控,是否繼續?',
|
||||||
overview: '概覽',
|
overview: '概覽',
|
||||||
latencyAnalysis: '延遲分析',
|
latencyAnalysis: '延遲分析',
|
||||||
@@ -1773,6 +1798,10 @@ const message = {
|
|||||||
delInsecureHelper: '刪除授信需要重新啟動 docker 服務,是否刪除?',
|
delInsecureHelper: '刪除授信需要重新啟動 docker 服務,是否刪除?',
|
||||||
pull: '拉取',
|
pull: '拉取',
|
||||||
path: '路徑',
|
path: '路徑',
|
||||||
|
imageUploadDrop: '拖曳映像檔案至此處,或點擊上傳',
|
||||||
|
imageUploadHelper: '不限制檔案格式,由 Docker 驗證內容。上傳的檔案會保留,可重試匯入或手動刪除。',
|
||||||
|
imageUploadEmpty: '不能上傳空檔案,請選擇有效的映像檔案。',
|
||||||
|
imageImportSubmitted: '映像匯入任務已提交,請查看任務日誌',
|
||||||
importImage: '匯入映像',
|
importImage: '匯入映像',
|
||||||
imageBuild: '構建映像',
|
imageBuild: '構建映像',
|
||||||
buildArgs: '構建參數',
|
buildArgs: '構建參數',
|
||||||
@@ -3890,6 +3919,8 @@ const message = {
|
|||||||
sslRejectHandshakeHelper: '開啟之後可以避免憑證洩露,設置預設網站會讓此設置失效',
|
sslRejectHandshakeHelper: '開啟之後可以避免憑證洩露,設置預設網站會讓此設置失效',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: '將對以下憑證進行 刪除 操作,ACME 類型憑證會被自動撤銷,是否繼續?',
|
||||||
|
deleteAndRevoke: '刪除並撤銷',
|
||||||
create: '申請憑證',
|
create: '申請憑證',
|
||||||
provider: '類型',
|
provider: '類型',
|
||||||
manualCreate: '手動建立',
|
manualCreate: '手動建立',
|
||||||
@@ -4020,7 +4051,6 @@ const message = {
|
|||||||
dockerGuard: '容器連接埠防護',
|
dockerGuard: '容器連接埠防護',
|
||||||
systemFirewall: '主機防火牆',
|
systemFirewall: '主機防火牆',
|
||||||
systemFirewallHelper: '用於管理主機連接埠存取和入站規則。',
|
systemFirewallHelper: '用於管理主機連接埠存取和入站規則。',
|
||||||
forwardPolicyDropWarning: '目前伺服器限制了網路轉送,轉送規則可能無法生效。',
|
|
||||||
forwardingHelper: '用於管理連接埠轉發規則。',
|
forwardingHelper: '用於管理連接埠轉發規則。',
|
||||||
dockerFirewallHelper: '用於選擇 1Panel 容器連接埠防護的管理方式。',
|
dockerFirewallHelper: '用於選擇 1Panel 容器連接埠防護的管理方式。',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0,實驗性',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0,實驗性',
|
||||||
@@ -4092,9 +4122,8 @@ const message = {
|
|||||||
dockerInputUseHostFirewall: '此連接埠需要透過主機防火牆設定存取規則,請前往主機防火牆進行設定。',
|
dockerInputUseHostFirewall: '此連接埠需要透過主機防火牆設定存取規則,請前往主機防火牆進行設定。',
|
||||||
dockerInputNotProtected: '主機 INPUT 規則無法直接保護此 Docker 發佈連接埠,點擊前往容器連接埠防護。',
|
dockerInputNotProtected: '主機 INPUT 規則無法直接保護此 Docker 發佈連接埠,點擊前往容器連接埠防護。',
|
||||||
notInitialized: '未初始化',
|
notInitialized: '未初始化',
|
||||||
ipv6RARisk:
|
ipv6RARisk: 'IPv6 轉送可能導致網路中斷,已阻止啟用。請參閱文件,詳情見系統日誌。',
|
||||||
'IPv6 轉送已阻止:網路介面 {0} 的 accept_ra=1,可能依賴 RA/SLAAC。請確認網路設定,為需要接收 RA 的介面持久化設定 accept_ra=2 後重試。',
|
ipv6RACheckFailed: '無法檢查 IPv6 網路設定,已阻止啟用轉送。詳情見系統日誌。',
|
||||||
ipv6RACheckFailed: '無法檢查 IPv6 RA 設定,已阻止啟用 IPv6 轉送。請檢查系統網路設定後重試。',
|
|
||||||
ipv6ForwardingOnDemand: 'IPv6 轉送尚未啟用,將在新增或還原 IPv6 規則時檢查並啟用。',
|
ipv6ForwardingOnDemand: 'IPv6 轉送尚未啟用,將在新增或還原 IPv6 規則時檢查並啟用。',
|
||||||
familyUnsupported: '系統不支援 {0}',
|
familyUnsupported: '系統不支援 {0}',
|
||||||
familyChainIssue: '{0} · {1} 鏈 · {2}',
|
familyChainIssue: '{0} · {1} 鏈 · {2}',
|
||||||
|
|||||||
@@ -552,6 +552,8 @@ const message = {
|
|||||||
cancelKeepAlive: '取消保持页面会话',
|
cancelKeepAlive: '取消保持页面会话',
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
userCenter: '用户中心',
|
||||||
|
exitSystem: '退出系统',
|
||||||
logout: '退出登录',
|
logout: '退出登录',
|
||||||
},
|
},
|
||||||
database: {
|
database: {
|
||||||
@@ -1019,6 +1021,12 @@ const message = {
|
|||||||
whiteListHelper: '限制仅白名单中的 IP 可访问',
|
whiteListHelper: '限制仅白名单中的 IP 可访问',
|
||||||
},
|
},
|
||||||
aiProxy: {
|
aiProxy: {
|
||||||
|
deploymentNoticeTitle: 'AI 网关已支持独立部署',
|
||||||
|
deploymentNoticeDescription:
|
||||||
|
'AI 网关现已支持独立部署,1Panel 内置 AI 网关后续将不再更新。建议前往应用商店安装独立版本,您也可以继续使用当前版本。',
|
||||||
|
deploymentNoticeContinue: '已知晓,继续使用',
|
||||||
|
deploymentNoticeAppStore: '前往应用商店',
|
||||||
|
deploymentNoticeNoAppPermission: '您没有应用商店访问权限,请联系管理员安装独立版本。',
|
||||||
title: 'AI 网关',
|
title: 'AI 网关',
|
||||||
apiReference: '接口说明',
|
apiReference: '接口说明',
|
||||||
notInstalled: '未安装',
|
notInstalled: '未安装',
|
||||||
@@ -1442,6 +1450,23 @@ const message = {
|
|||||||
extraHeaders: '额外请求头',
|
extraHeaders: '额外请求头',
|
||||||
},
|
},
|
||||||
vllmMonitor: {
|
vllmMonitor: {
|
||||||
|
tokensPerSecond: 'tokens/秒',
|
||||||
|
requestsPerSecond: '请求/秒',
|
||||||
|
finishReasonLabels: {
|
||||||
|
stop: '正常结束',
|
||||||
|
length: '达到长度限制',
|
||||||
|
abort: '中止',
|
||||||
|
error: '错误',
|
||||||
|
repetition: '重复输出',
|
||||||
|
},
|
||||||
|
requestAnalysis: '请求分析',
|
||||||
|
promptDistribution: '输入 Token 长度分布',
|
||||||
|
generationDistribution: '输出 Token 长度分布',
|
||||||
|
finishReasons: '请求结束原因',
|
||||||
|
queueTime: '平均排队耗时',
|
||||||
|
averageGenerationTokens: '每请求平均输出 Token 数',
|
||||||
|
prefixCacheHitRate: '前缀缓存命中率',
|
||||||
|
distributionHelper: '长度分布按请求速率汇总,不受平均/峰值切换影响。',
|
||||||
cleanHelper: '仅清空当前 vLLM 实例的监控历史,不影响其他实例、主机或 GPU 监控,是否继续?',
|
cleanHelper: '仅清空当前 vLLM 实例的监控历史,不影响其他实例、主机或 GPU 监控,是否继续?',
|
||||||
overview: '概览',
|
overview: '概览',
|
||||||
latencyAnalysis: '延迟分析',
|
latencyAnalysis: '延迟分析',
|
||||||
@@ -1793,6 +1818,10 @@ const message = {
|
|||||||
delInsecureHelper: '删除授信需要重启 docker 服务,是否删除?',
|
delInsecureHelper: '删除授信需要重启 docker 服务,是否删除?',
|
||||||
pull: '拉取',
|
pull: '拉取',
|
||||||
path: '路径',
|
path: '路径',
|
||||||
|
imageUploadDrop: '拖拽镜像文件到此处,或点击上传',
|
||||||
|
imageUploadHelper: '不限制文件格式,由 Docker 校验内容。上传的文件会保留,可重试导入或手动删除。',
|
||||||
|
imageUploadEmpty: '不能上传空文件,请选择有效的镜像文件。',
|
||||||
|
imageImportSubmitted: '镜像导入任务已提交,请查看任务日志',
|
||||||
importImage: '导入镜像',
|
importImage: '导入镜像',
|
||||||
imageBuild: '构建镜像',
|
imageBuild: '构建镜像',
|
||||||
buildArgs: '构建参数',
|
buildArgs: '构建参数',
|
||||||
@@ -3935,6 +3964,8 @@ const message = {
|
|||||||
sslRejectHandshakeHelper: '开启之后可以避免证书泄露,设置默认网站会让此设置失效',
|
sslRejectHandshakeHelper: '开启之后可以避免证书泄露,设置默认网站会让此设置失效',
|
||||||
},
|
},
|
||||||
ssl: {
|
ssl: {
|
||||||
|
deleteConfirm: '将对以下证书进行 删除 操作,ACME类型证书会被自动吊销,是否继续?',
|
||||||
|
deleteAndRevoke: '删除并吊销',
|
||||||
create: '申请证书',
|
create: '申请证书',
|
||||||
provider: '类型',
|
provider: '类型',
|
||||||
manualCreate: '手动创建',
|
manualCreate: '手动创建',
|
||||||
@@ -4066,7 +4097,6 @@ const message = {
|
|||||||
dockerGuard: '容器端口防护',
|
dockerGuard: '容器端口防护',
|
||||||
systemFirewall: '主机防火墙',
|
systemFirewall: '主机防火墙',
|
||||||
systemFirewallHelper: '用于管理主机端口访问和入站规则。',
|
systemFirewallHelper: '用于管理主机端口访问和入站规则。',
|
||||||
forwardPolicyDropWarning: '当前服务器限制了网络转发,转发规则可能无法生效。',
|
|
||||||
forwardingHelper: '用于管理端口转发规则。',
|
forwardingHelper: '用于管理端口转发规则。',
|
||||||
dockerFirewallHelper: '用于选择 1Panel 容器端口防护的管理方式。',
|
dockerFirewallHelper: '用于选择 1Panel 容器端口防护的管理方式。',
|
||||||
dockerNftablesRequirement: 'Docker ≥ 29.0.0,实验性',
|
dockerNftablesRequirement: 'Docker ≥ 29.0.0,实验性',
|
||||||
@@ -4138,9 +4168,8 @@ const message = {
|
|||||||
dockerInputUseHostFirewall: '该端口需要通过主机防火墙设置访问规则,请前往主机防火墙进行配置。',
|
dockerInputUseHostFirewall: '该端口需要通过主机防火墙设置访问规则,请前往主机防火墙进行配置。',
|
||||||
dockerInputNotProtected: '宿主机 INPUT 规则不能直接保护此 Docker 发布端口,点击前往容器端口防护。',
|
dockerInputNotProtected: '宿主机 INPUT 规则不能直接保护此 Docker 发布端口,点击前往容器端口防护。',
|
||||||
notInitialized: '未初始化',
|
notInitialized: '未初始化',
|
||||||
ipv6RARisk:
|
ipv6RARisk: 'IPv6 转发存在断网风险,已阻止启用。请参阅文档,详情见系统日志。',
|
||||||
'IPv6 转发已阻止:网卡 {0} 的 accept_ra=1,可能依赖 RA/SLAAC。请确认网络配置,为需要接收 RA 的网卡持久化设置 accept_ra=2 后重试。',
|
ipv6RACheckFailed: '无法检查 IPv6 网络配置,已阻止启用转发。详情见系统日志。',
|
||||||
ipv6RACheckFailed: '无法检查 IPv6 RA 配置,已阻止启用 IPv6 转发。请检查系统网络配置后重试。',
|
|
||||||
ipv6ForwardingOnDemand: 'IPv6 转发尚未启用,将在添加或恢复 IPv6 规则时检查并启用。',
|
ipv6ForwardingOnDemand: 'IPv6 转发尚未启用,将在添加或恢复 IPv6 规则时检查并启用。',
|
||||||
familyUnsupported: '系统不支持 {0}',
|
familyUnsupported: '系统不支持 {0}',
|
||||||
familyChainIssue: '{0} · {1} 链 · {2}',
|
familyChainIssue: '{0} · {1} 链 · {2}',
|
||||||
|
|||||||
@@ -26,12 +26,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="dropdown-menu" v-loading="loading || switchingNode">
|
<div class="dropdown-menu" v-loading="loading || switchingNode">
|
||||||
<div class="dropdown-item" v-if="currentUser" @click="changeUserInfo">
|
|
||||||
<SvgIcon class="icon" iconName="p-gerenzhongxin1" />
|
|
||||||
{{ currentUser.name }}
|
|
||||||
</div>
|
|
||||||
<el-divider class="divider" />
|
|
||||||
|
|
||||||
<div class="dropdown-item" @click="openTask">
|
<div class="dropdown-item" @click="openTask">
|
||||||
<SvgIcon class="icon" iconName="p-renwuzhongxin1" />
|
<SvgIcon class="icon" iconName="p-renwuzhongxin1" />
|
||||||
{{ $t('menu.msgCenter') }}
|
{{ $t('menu.msgCenter') }}
|
||||||
@@ -74,11 +68,6 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-divider class="divider" />
|
|
||||||
<div class="dropdown-item" @click="logout">
|
|
||||||
<SvgIcon class="icon" iconName="p-tuichudenglu3" />
|
|
||||||
{{ $t('commons.login.logout') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<NodeDrawer
|
<NodeDrawer
|
||||||
@@ -129,7 +118,7 @@ const props = defineProps({
|
|||||||
|
|
||||||
const defaultNodeLimit = 8;
|
const defaultNodeLimit = 8;
|
||||||
|
|
||||||
const emit = defineEmits(['openTask', 'refresh']);
|
const emit = defineEmits(['openTask', 'refresh', 'userChange']);
|
||||||
bus.on('refreshTask', () => {
|
bus.on('refreshTask', () => {
|
||||||
checkTask();
|
checkTask();
|
||||||
});
|
});
|
||||||
@@ -272,6 +261,7 @@ const openNodeDashboard = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const logout = () => {
|
const logout = () => {
|
||||||
|
popoverVisible.value = false;
|
||||||
ElMessageBox.confirm(i18n.global.t('commons.msg.sureLogOut'), i18n.global.t('commons.msg.infoTitle'), {
|
ElMessageBox.confirm(i18n.global.t('commons.msg.sureLogOut'), i18n.global.t('commons.msg.infoTitle'), {
|
||||||
confirmButtonText: i18n.global.t('commons.button.confirm'),
|
confirmButtonText: i18n.global.t('commons.button.confirm'),
|
||||||
cancelButtonText: i18n.global.t('commons.button.cancel'),
|
cancelButtonText: i18n.global.t('commons.button.cancel'),
|
||||||
@@ -297,13 +287,17 @@ const loadCurrentUser = async (currentNode?: string) => {
|
|||||||
const authInfo = await syncAuthInfo(currentNode);
|
const authInfo = await syncAuthInfo(currentNode);
|
||||||
if (authInfo) {
|
if (authInfo) {
|
||||||
currentUser.value = authInfo;
|
currentUser.value = authInfo;
|
||||||
|
emit('userChange', authInfo);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const changeUserInfo = () => {
|
const changeUserInfo = () => {
|
||||||
|
popoverVisible.value = false;
|
||||||
loadCurrentUser();
|
loadCurrentUser();
|
||||||
userInfoRef.value?.openDrawer();
|
userInfoRef.value?.openDrawer();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
defineExpose({ openUserInfo: changeUserInfo, logout });
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
loadNodes();
|
loadNodes();
|
||||||
checkTask();
|
checkTask();
|
||||||
|
|||||||
@@ -23,7 +23,42 @@
|
|||||||
<SubItem :menuList="routerMenus" :level="0" />
|
<SubItem :menuList="routerMenus" :level="0" />
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
<Collapse :version="version" @open-task="openTask" @refresh="search" />
|
<Collapse
|
||||||
|
ref="nodeSelectorRef"
|
||||||
|
class="node-selector"
|
||||||
|
:version="version"
|
||||||
|
@open-task="openTask"
|
||||||
|
@refresh="search"
|
||||||
|
@user-change="currentUser = $event"
|
||||||
|
/>
|
||||||
|
<div class="user-actions" :class="{ 'is-collapsed': isCollapse }">
|
||||||
|
<el-tooltip
|
||||||
|
v-if="currentUser"
|
||||||
|
:content="$t('xpack.user.userInfo')"
|
||||||
|
placement="top"
|
||||||
|
popper-class="sidebar-user-tooltip"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="user-entry"
|
||||||
|
:aria-label="$t('xpack.user.userInfo') + ' ' + currentUser.name"
|
||||||
|
@click="nodeSelectorRef?.openUserInfo()"
|
||||||
|
>
|
||||||
|
<SvgIcon class="icon" iconName="p-gerenzhongxin1" />
|
||||||
|
<span v-if="!isCollapse" class="user-name">{{ currentUser.name }}</span>
|
||||||
|
</button>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip :content="$t('header.exitSystem')" placement="top" popper-class="sidebar-user-tooltip">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="user-entry logout-entry"
|
||||||
|
:aria-label="$t('header.exitSystem')"
|
||||||
|
@click="nodeSelectorRef?.logout()"
|
||||||
|
>
|
||||||
|
<SvgIcon class="icon" iconName="p-tuichudenglu3" />
|
||||||
|
</button>
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -40,12 +75,15 @@ import { getSettingBaseInfo } from '@/api/modules/setting';
|
|||||||
import PrimaryMenu from '@/assets/images/menu-bg.svg?component';
|
import PrimaryMenu from '@/assets/images/menu-bg.svg?component';
|
||||||
import { hasPermissionMetaAccess, hasRouteRoleAccess } from '@/utils/rbac';
|
import { hasPermissionMetaAccess, hasRouteRoleAccess } from '@/utils/rbac';
|
||||||
import { useGlobalStore } from '@/composables/useGlobalStore';
|
import { useGlobalStore } from '@/composables/useGlobalStore';
|
||||||
|
import type { Login } from '@/api/interface/auth';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const menuStore = MenuStore();
|
const menuStore = MenuStore();
|
||||||
const { currentNode, isAdmin, menuAccordion, permissions } = useGlobalStore();
|
const { currentNode, isAdmin, menuAccordion, permissions } = useGlobalStore();
|
||||||
const version = ref();
|
const version = ref();
|
||||||
|
const nodeSelectorRef = ref<InstanceType<typeof Collapse>>();
|
||||||
|
const currentUser = ref<Login.AuthInfo>();
|
||||||
|
|
||||||
const activeMenu = computed(() => {
|
const activeMenu = computed(() => {
|
||||||
const { meta, path } = route;
|
const { meta, path } = route;
|
||||||
@@ -324,8 +362,14 @@ watch(
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background: var(--panel-menu-bg-color) no-repeat top;
|
background: var(--panel-menu-bg-color) no-repeat top;
|
||||||
|
|
||||||
|
.logo,
|
||||||
|
.node-selector {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.el-scrollbar {
|
.el-scrollbar {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
.el-menu {
|
.el-menu {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@@ -337,4 +381,76 @@ watch(
|
|||||||
.ico {
|
.ico {
|
||||||
height: 20px !important;
|
height: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-shrink: 0;
|
||||||
|
border-top: 1px solid var(--panel-footer-border);
|
||||||
|
|
||||||
|
&.is-collapsed .user-entry {
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-collapsed .logout-entry {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-entry {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
position: relative;
|
||||||
|
height: 48px;
|
||||||
|
padding: 0 0 0 25px;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--panel-main-bg-color-1);
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: var(--el-font-size-base);
|
||||||
|
line-height: 1.5;
|
||||||
|
text-align: left;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-size: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-name {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus-visible {
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
background: var(--el-menu-item-bg-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.logout-entry {
|
||||||
|
flex: 0 0 42px;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0;
|
||||||
|
border-left: 1px solid var(--panel-footer-border);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.el-popper.sidebar-user-tooltip {
|
||||||
|
background: var(--el-menu-item-bg-color);
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
border-color: var(--panel-footer-border);
|
||||||
|
|
||||||
|
.el-popper__arrow::before {
|
||||||
|
background: var(--el-menu-item-bg-color);
|
||||||
|
border-color: var(--panel-footer-border);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { bindSearchReset } from '@/utils/search-reset';
|
||||||
|
import router from '@/routers/router';
|
||||||
|
import { useGlobalStore } from '@/composables/useGlobalStore';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { ref, reactive, toRef } from 'vue';
|
import { ref, reactive, toRef } from 'vue';
|
||||||
import { MsgError } from '@/utils/message';
|
import { MsgError } from '@/utils/message';
|
||||||
@@ -47,12 +49,12 @@ export const ProcessStore = defineStore('ProcessStore', () => {
|
|||||||
port: undefined,
|
port: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
useSearchPersistence('host/process/process', {
|
const { currentNode } = useGlobalStore();
|
||||||
|
bindSearchReset([() => router.currentRoute.value.path, currentNode], {
|
||||||
pid: toRef(psSearch, 'pid'),
|
pid: toRef(psSearch, 'pid'),
|
||||||
name: toRef(psSearch, 'name'),
|
name: toRef(psSearch, 'name'),
|
||||||
username: toRef(psSearch, 'username'),
|
username: toRef(psSearch, 'username'),
|
||||||
});
|
|
||||||
useSearchPersistence('host/process/network', {
|
|
||||||
processID: toRef(netSearch, 'processID'),
|
processID: toRef(netSearch, 'processID'),
|
||||||
processName: toRef(netSearch, 'processName'),
|
processName: toRef(netSearch, 'processName'),
|
||||||
port: toRef(netSearch, 'port'),
|
port: toRef(netSearch, 'port'),
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
import { chunkUploadFileData, type FileUploadRequestConfig } from '@/api/modules/files';
|
||||||
|
|
||||||
|
export const CHUNK_SIZE = 5 * 1024 * 1024;
|
||||||
|
const MAX_CHUNK_RETRIES = 3;
|
||||||
|
|
||||||
|
const shouldRetryChunkUpload = (error: unknown) => {
|
||||||
|
const item = error as {
|
||||||
|
code?: string | number;
|
||||||
|
data?: { retryable?: boolean };
|
||||||
|
response?: { status?: number };
|
||||||
|
};
|
||||||
|
if (item?.code === 'ERR_CANCELED') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (typeof item?.data?.retryable === 'boolean') {
|
||||||
|
return item.data.retryable;
|
||||||
|
}
|
||||||
|
const status = item?.response?.status ?? (typeof item?.code === 'number' ? item.code : undefined);
|
||||||
|
return !status || status === 408 || status === 429 || status >= 500;
|
||||||
|
};
|
||||||
|
|
||||||
|
const waitForChunkRetry = (attempt: number, signal: AbortSignal) => {
|
||||||
|
return new Promise<void>((resolve) => {
|
||||||
|
if (signal.aborted) {
|
||||||
|
resolve();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const timer = window.setTimeout(done, 500 * 2 ** attempt);
|
||||||
|
function done() {
|
||||||
|
window.clearTimeout(timer);
|
||||||
|
signal.removeEventListener('abort', done);
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
signal.addEventListener('abort', done, { once: true });
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
export const uploadChunkWithRetry = async (
|
||||||
|
formData: FormData,
|
||||||
|
config: FileUploadRequestConfig,
|
||||||
|
signal: AbortSignal,
|
||||||
|
) => {
|
||||||
|
let retryCount = 0;
|
||||||
|
while (true) {
|
||||||
|
signal.throwIfAborted();
|
||||||
|
try {
|
||||||
|
await chunkUploadFileData(formData, config);
|
||||||
|
return;
|
||||||
|
} catch (error) {
|
||||||
|
if (signal.aborted || retryCount >= MAX_CHUNK_RETRIES || !shouldRetryChunkUpload(error)) {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
await waitForChunkRetry(retryCount, signal);
|
||||||
|
retryCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { watch, type Ref, type WatchSource } from 'vue';
|
||||||
|
|
||||||
|
export type SearchFields = Record<string, Ref<string | number | undefined>>;
|
||||||
|
|
||||||
|
export const bindSearchReset = (sources: WatchSource[], fields: SearchFields) => {
|
||||||
|
const defaults = Object.values(fields).map((field) => ({ field, value: field.value }));
|
||||||
|
const reset = () => {
|
||||||
|
for (const { field, value } of defaults) field.value = value;
|
||||||
|
};
|
||||||
|
watch(sources, reset, { flush: 'sync' });
|
||||||
|
return reset;
|
||||||
|
};
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import { Refresh, Search } from '@element-plus/icons-vue';
|
import { Refresh, Search } from '@element-plus/icons-vue';
|
||||||
import { ElMessageBox } from 'element-plus';
|
import { ElMessageBox } from 'element-plus';
|
||||||
@@ -193,10 +193,16 @@ const searching = ref(false);
|
|||||||
const operating = ref('');
|
const operating = ref('');
|
||||||
const keyword = ref('');
|
const keyword = ref('');
|
||||||
const marketKeyword = ref('');
|
const marketKeyword = ref('');
|
||||||
useSearchPersistence(
|
useSearchReset(
|
||||||
'ai/agents/agent/config/tabs/plugins',
|
|
||||||
{ keyword, marketKeyword },
|
{ keyword, marketKeyword },
|
||||||
() => agentId.value || undefined,
|
{
|
||||||
|
scope: () => agentId.value || undefined,
|
||||||
|
onRevisit: () => {
|
||||||
|
page.value = 1;
|
||||||
|
marketResults.value = [];
|
||||||
|
marketSearched.value = false;
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
const origin = ref('');
|
const origin = ref('');
|
||||||
const status = ref('');
|
const status = ref('');
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import { Refresh, Search } from '@element-plus/icons-vue';
|
import { Refresh, Search } from '@element-plus/icons-vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
@@ -169,10 +169,15 @@ const getDefaultMarketSource = (): HermesSkillMarketSource => {
|
|||||||
const marketSource = ref<HermesSkillMarketSource>(getDefaultMarketSource());
|
const marketSource = ref<HermesSkillMarketSource>(getDefaultMarketSource());
|
||||||
const marketSearched = ref(false);
|
const marketSearched = ref(false);
|
||||||
const agentId = ref(0);
|
const agentId = ref(0);
|
||||||
useSearchPersistence(
|
useSearchReset(
|
||||||
'ai/agents/agent/config/tabs/skills/hermes',
|
|
||||||
{ installedKeyword, marketKeyword },
|
{ installedKeyword, marketKeyword },
|
||||||
() => agentId.value || undefined,
|
{
|
||||||
|
scope: () => agentId.value || undefined,
|
||||||
|
onRevisit: () => {
|
||||||
|
marketResults.value = [];
|
||||||
|
marketSearched.value = false;
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
const installedSkills = ref<AI.AgentSkillItem[]>([]);
|
const installedSkills = ref<AI.AgentSkillItem[]>([]);
|
||||||
const marketResults = ref<AI.AgentSkillSearchItem[]>([]);
|
const marketResults = ref<AI.AgentSkillSearchItem[]>([]);
|
||||||
|
|||||||
@@ -142,7 +142,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import { Refresh, Search } from '@element-plus/icons-vue';
|
import { Refresh, Search } from '@element-plus/icons-vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
@@ -181,10 +181,15 @@ const getDefaultMarketSource = (): SkillMarketSource => {
|
|||||||
const marketSource = ref<SkillMarketSource>(getDefaultMarketSource());
|
const marketSource = ref<SkillMarketSource>(getDefaultMarketSource());
|
||||||
const marketSearched = ref(false);
|
const marketSearched = ref(false);
|
||||||
const agentId = ref(0);
|
const agentId = ref(0);
|
||||||
useSearchPersistence(
|
useSearchReset(
|
||||||
'ai/agents/agent/config/tabs/skills/openclaw',
|
|
||||||
{ installedKeyword, marketKeyword },
|
{ installedKeyword, marketKeyword },
|
||||||
() => agentId.value || undefined,
|
{
|
||||||
|
scope: () => agentId.value || undefined,
|
||||||
|
onRevisit: () => {
|
||||||
|
marketResults.value = [];
|
||||||
|
marketSearched.value = false;
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
const skills = ref<AI.AgentSkillItem[]>([]);
|
const skills = ref<AI.AgentSkillItem[]>([]);
|
||||||
const marketResults = ref<AI.AgentSkillSearchItem[]>([]);
|
const marketResults = ref<AI.AgentSkillSearchItem[]>([]);
|
||||||
|
|||||||
@@ -272,8 +272,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
import { toRef, defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
import { deleteAgentCheck, pageAgents, resetAgentToken, unbindAgentWebsite, updateAgentRemark } from '@/api/modules/ai';
|
import { deleteAgentCheck, pageAgents, resetAgentToken, unbindAgentWebsite, updateAgentRemark } from '@/api/modules/ai';
|
||||||
import { checkAppInstalled, installedOp, searchApp, searchAppInstalled } from '@/api/modules/app';
|
import { checkAppInstalled, installedOp, searchApp, searchAppInstalled } from '@/api/modules/app';
|
||||||
@@ -341,7 +341,6 @@ const isActive = ref(false);
|
|||||||
const isExist = ref(false);
|
const isExist = ref(false);
|
||||||
const noApp = ref(false);
|
const noApp = ref(false);
|
||||||
const searchName = ref('');
|
const searchName = ref('');
|
||||||
useSearchPersistence('ai/agents/agent/index', { search: searchName });
|
|
||||||
const defaultHttpsPort = ref(443);
|
const defaultHttpsPort = ref(443);
|
||||||
const openrestyPortLoaded = ref(false);
|
const openrestyPortLoaded = ref(false);
|
||||||
const websiteDomainsMap = ref<Record<number, Website.Domain[]>>({});
|
const websiteDomainsMap = ref<Record<number, Website.Domain[]>>({});
|
||||||
@@ -401,6 +400,7 @@ const paginationConfig = reactive({
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const checkNoApp = async () => {
|
const checkNoApp = async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -69,8 +69,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import { deleteAgentAccount, getAgentProviders, pageAgentAccounts } from '@/api/modules/ai';
|
import { deleteAgentAccount, getAgentProviders, pageAgentAccounts } from '@/api/modules/ai';
|
||||||
import { AI } from '@/api/interface/ai';
|
import { AI } from '@/api/interface/ai';
|
||||||
import AddDialog from '@/views/ai/agents/model/add/index.vue';
|
import AddDialog from '@/views/ai/agents/model/add/index.vue';
|
||||||
@@ -86,7 +86,6 @@ const items = ref<AI.AgentAccountItem[]>([]);
|
|||||||
const addRef = ref();
|
const addRef = ref();
|
||||||
const modelPoolRef = ref();
|
const modelPoolRef = ref();
|
||||||
const searchName = ref('');
|
const searchName = ref('');
|
||||||
useSearchPersistence('ai/agents/model/index', { search: searchName });
|
|
||||||
const apiType = ref('');
|
const apiType = ref('');
|
||||||
const apiTypeOptions = ref<string[]>([]);
|
const apiTypeOptions = ref<string[]>([]);
|
||||||
|
|
||||||
@@ -112,6 +111,7 @@ const paginationConfig = reactive({
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const search = async () => {
|
const search = async () => {
|
||||||
const req: AI.AgentAccountSearch = {
|
const req: AI.AgentAccountSearch = {
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import AppStatus from '@/components/app-status/index.vue';
|
import AppStatus from '@/components/app-status/index.vue';
|
||||||
import AddDialog from '@/views/ai/model/ollama/add/index.vue';
|
import AddDialog from '@/views/ai/model/ollama/add/index.vue';
|
||||||
import Conn from '@/views/ai/model/ollama/conn/index.vue';
|
import Conn from '@/views/ai/model/ollama/conn/index.vue';
|
||||||
@@ -195,7 +195,7 @@ import Terminal from '@/views/ai/model/ollama/terminal/index.vue';
|
|||||||
import Del from '@/views/ai/model/ollama/del/index.vue';
|
import Del from '@/views/ai/model/ollama/del/index.vue';
|
||||||
import PortJumpDialog from '@/components/port-jump/index.vue';
|
import PortJumpDialog from '@/components/port-jump/index.vue';
|
||||||
import CodemirrorDrawer from '@/components/codemirror-pro/drawer.vue';
|
import CodemirrorDrawer from '@/components/codemirror-pro/drawer.vue';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import i18n from '@/lang';
|
import i18n from '@/lang';
|
||||||
import { App } from '@/api/interface/app';
|
import { App } from '@/api/interface/app';
|
||||||
import {
|
import {
|
||||||
@@ -237,7 +237,7 @@ const paginationConfig = reactive({
|
|||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('ai/model/ollama/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
const appInstallID = ref(0);
|
const appInstallID = ref(0);
|
||||||
|
|
||||||
const opRef = ref();
|
const opRef = ref();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { App } from '@/api/interface/app';
|
import { App } from '@/api/interface/app';
|
||||||
import { toRef, onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import { searchApp, syncApp, syncCutomAppStore, syncLocalApp, getCurrentNodeCustomAppConfig } from '@/api/modules/app';
|
import { searchApp, syncApp, syncCutomAppStore, syncLocalApp, getCurrentNodeCustomAppConfig } from '@/api/modules/app';
|
||||||
@@ -105,7 +105,10 @@ const req = reactive({
|
|||||||
resource: 'all',
|
resource: 'all',
|
||||||
showCurrentArch: false,
|
showCurrentArch: false,
|
||||||
});
|
});
|
||||||
useSearchPersistence('app-store/apps/index', { search: toRef(req, 'name') });
|
useSearchReset(
|
||||||
|
{ search: toRef(req, 'name'), page: toRef(paginationConfig, 'currentPage') },
|
||||||
|
{ onRevisit: () => search(req) },
|
||||||
|
);
|
||||||
|
|
||||||
const apps = ref<App.AppItem[]>([]);
|
const apps = ref<App.AppItem[]>([]);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import AppCard from '@/views/app-store/installed/app/card.vue';
|
import AppCard from '@/views/app-store/installed/app/card.vue';
|
||||||
import Backups from '@/components/backup/index.vue';
|
import Backups from '@/components/backup/index.vue';
|
||||||
import Uploads from '@/components/upload/index.vue';
|
import Uploads from '@/components/upload/index.vue';
|
||||||
@@ -211,7 +211,10 @@ const searchReq = reactive({
|
|||||||
update: false,
|
update: false,
|
||||||
sync: false,
|
sync: false,
|
||||||
});
|
});
|
||||||
useSearchPersistence('app-store/installed/index', { search: toRef(searchReq, 'name') });
|
useSearchReset(
|
||||||
|
{ search: toRef(searchReq, 'name'), page: toRef(paginationConfig, 'currentPage') },
|
||||||
|
{ onRevisit: () => search() },
|
||||||
|
);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const activeName = ref(i18n.global.t('app.installed'));
|
const activeName = ref(i18n.global.t('app.installed'));
|
||||||
const mode = ref('installed');
|
const mode = ref('installed');
|
||||||
|
|||||||
@@ -521,7 +521,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { computed, h, ref } from 'vue';
|
import { computed, h, ref } from 'vue';
|
||||||
import CodemirrorPro from '@/components/codemirror-pro/index.vue';
|
import CodemirrorPro from '@/components/codemirror-pro/index.vue';
|
||||||
import ContainerLog from '@/components/log/container/index.vue';
|
import ContainerLog from '@/components/log/container/index.vue';
|
||||||
@@ -576,7 +576,7 @@ const dialogBackupRef = ref();
|
|||||||
const uploadRef = ref();
|
const uploadRef = ref();
|
||||||
|
|
||||||
const searchName = ref('');
|
const searchName = ref('');
|
||||||
useSearchPersistence('container/compose/index', { search: searchName });
|
useSearchReset({ search: searchName }, { onRevisit: () => search() });
|
||||||
const includeAppStore = ref(localStorage.getItem('includeAppStore') !== 'false');
|
const includeAppStore = ref(localStorage.getItem('includeAppStore') !== 'false');
|
||||||
const showType = ref('compose');
|
const showType = ref('compose');
|
||||||
const containerStats = ref<any[]>([]);
|
const containerStats = ref<any[]>([]);
|
||||||
|
|||||||
@@ -474,7 +474,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import PruneDialog from '@/views/container/container/prune/index.vue';
|
import PruneDialog from '@/views/container/container/prune/index.vue';
|
||||||
import RenameDialog from '@/views/container/container/rename/index.vue';
|
import RenameDialog from '@/views/container/container/rename/index.vue';
|
||||||
import UpgradeDialog from '@/views/container/container/upgrade/index.vue';
|
import UpgradeDialog from '@/views/container/container/upgrade/index.vue';
|
||||||
@@ -490,7 +490,7 @@ import Uploads from '@/components/upload/index.vue';
|
|||||||
import DockerStatus from '@/views/container/docker-status/index.vue';
|
import DockerStatus from '@/views/container/docker-status/index.vue';
|
||||||
import ContainerLogDialog from '@/components/log/container-drawer/index.vue';
|
import ContainerLogDialog from '@/components/log/container-drawer/index.vue';
|
||||||
import Status from '@/components/status/index.vue';
|
import Status from '@/components/status/index.vue';
|
||||||
import { computed, reactive, ref } from 'vue';
|
import { toRef, computed, reactive, ref } from 'vue';
|
||||||
import {
|
import {
|
||||||
containerItemStats,
|
containerItemStats,
|
||||||
containerListStats,
|
containerListStats,
|
||||||
@@ -536,7 +536,7 @@ const paginationConfig = reactive({
|
|||||||
order: 'ascending',
|
order: 'ascending',
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('container/container/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
const dialogUpgradeRef = ref();
|
const dialogUpgradeRef = ref();
|
||||||
const dialogCommitRef = ref();
|
const dialogCommitRef = ref();
|
||||||
const dialogPortJumpRef = ref();
|
const dialogPortJumpRef = ref();
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { toRef, reactive, ref, computed } from 'vue';
|
import { toRef, reactive, ref, computed } from 'vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { newUUID } from '@/utils/id';
|
import { newUUID } from '@/utils/id';
|
||||||
@@ -200,7 +200,10 @@ const paginationConfig = reactive({
|
|||||||
orderBy: 'createdAt',
|
orderBy: 'createdAt',
|
||||||
order: 'null',
|
order: 'null',
|
||||||
});
|
});
|
||||||
useSearchPersistence('container/image/index', { search: toRef(paginationConfig, 'name') });
|
useSearchReset(
|
||||||
|
{ search: toRef(paginationConfig, 'name'), page: toRef(paginationConfig, 'currentPage') },
|
||||||
|
{ onRevisit: () => search() },
|
||||||
|
);
|
||||||
const columns = ref([]);
|
const columns = ref([]);
|
||||||
|
|
||||||
const isActive = ref(false);
|
const isActive = ref(false);
|
||||||
|
|||||||
@@ -1,105 +1,254 @@
|
|||||||
<template>
|
<template>
|
||||||
<DrawerPro v-model="loadVisible" :header="$t('container.importImage')" @close="handleClose" size="small">
|
<DrawerPro
|
||||||
<el-form @submit.prevent v-loading="loading" ref="formRef" :model="form" label-position="top">
|
v-model="loadVisible"
|
||||||
<el-form-item :label="$t('container.path')" :rules="Rules.requiredInput" prop="path">
|
:header="$t('container.importImage')"
|
||||||
<el-input v-model="form.path" @input="handlePathChange">
|
:auto-close="!busy"
|
||||||
<template #prepend>
|
:confirm-before-close="true"
|
||||||
<el-button icon="Folder" @click="fileRef.acceptParams({ dir: false, multiple: true })" />
|
@before-close="beforeClose"
|
||||||
</template>
|
size="small"
|
||||||
</el-input>
|
>
|
||||||
|
<el-form @submit.prevent label-position="top">
|
||||||
|
<div class="flex items-center gap-3 mb-5">
|
||||||
|
<el-button :disabled="busy" @click="source = 'local'">
|
||||||
|
{{ $t('database.localUpload') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button :disabled="busy" @click="onServerSelect">
|
||||||
|
{{ $t('database.hostSelect') }}
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
<el-form-item v-if="source === 'server'" :label="$t('container.path')">
|
||||||
|
<el-input v-model="form.path" :disabled="busy" @input="handlePathChange" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<template v-else>
|
||||||
|
<el-upload
|
||||||
|
ref="uploadRef"
|
||||||
|
drag
|
||||||
|
:limit="1"
|
||||||
|
:auto-upload="false"
|
||||||
|
:show-file-list="false"
|
||||||
|
:disabled="busy"
|
||||||
|
:on-change="onFileChange"
|
||||||
|
:on-exceed="onFileExceed"
|
||||||
|
>
|
||||||
|
<el-icon class="el-icon--upload"><UploadFilled /></el-icon>
|
||||||
|
<div class="el-upload__text">{{ $t('container.imageUploadDrop') }}</div>
|
||||||
|
</el-upload>
|
||||||
|
<p class="input-help">{{ $t('container.imageUploadHelper') }}</p>
|
||||||
|
<template v-if="localFile">
|
||||||
|
<p class="break-all">{{ localFile.name }} ({{ computeSize(localFile.size) }})</p>
|
||||||
|
<el-progress
|
||||||
|
:percentage="uploadPercent"
|
||||||
|
:status="uploadFailed ? 'exception' : uploadedPath ? 'success' : undefined"
|
||||||
|
/>
|
||||||
|
<p v-if="uploadedPath" class="input-help break-all">{{ uploadedPath }}</p>
|
||||||
|
<el-button v-if="uploadFailed" :disabled="busy" @click="uploadLocalFile">
|
||||||
|
{{ $t('commons.button.retry') }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
<el-button v-if="submittedTaskID" link type="primary" @click="openTaskLog">
|
||||||
|
{{ $t('commons.button.log') }}
|
||||||
|
</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<el-button :disabled="busy" @click="loadVisible = false">{{ $t('commons.button.cancel') }}</el-button>
|
||||||
<el-button :disabled="loading" @click="loadVisible = false">
|
|
||||||
{{ $t('commons.button.cancel') }}
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="loading || !form.path.trim() || form.paths.length === 0"
|
v-if="source === 'server'"
|
||||||
|
:disabled="busy || !!submittedTaskID || !form.paths.length"
|
||||||
|
:loading="loading"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="onSubmit(formRef)"
|
@click="onSubmit"
|
||||||
>
|
>
|
||||||
{{ $t('commons.button.import') }}
|
{{ $t('commons.button.import') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
|
||||||
</template>
|
</template>
|
||||||
</DrawerPro>
|
</DrawerPro>
|
||||||
<FileList ref="fileRef" @choose="loadLoadDir" />
|
<FileList v-if="loadVisible" ref="fileRef" @choose="loadLoadDir" />
|
||||||
<TaskLog ref="taskLogRef" width="70%" />
|
<TaskLog ref="taskLogRef" width="70%" @close="emit('search')" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import FileList from '@/components/file-list/index.vue';
|
import FileList from '@/components/file-list/index.vue';
|
||||||
import { reactive, ref } from 'vue';
|
import { computed, onBeforeUnmount, reactive, ref, watch } from 'vue';
|
||||||
import { Rules } from '@/global/form-rules';
|
import { genFileId, type UploadFile, type UploadInstance, type UploadProps, type UploadRawFile } from 'element-plus';
|
||||||
import TaskLog from '@/components/log/task/index.vue';
|
import TaskLog from '@/components/log/task/index.vue';
|
||||||
import i18n from '@/lang';
|
import i18n from '@/lang';
|
||||||
import { ElForm } from 'element-plus';
|
|
||||||
import { imageLoad } from '@/api/modules/container';
|
import { imageLoad } from '@/api/modules/container';
|
||||||
import { MsgSuccess } from '@/utils/message';
|
import { stopChunkUpload } from '@/api/modules/files';
|
||||||
|
import { loadBaseDir } from '@/api/modules/setting';
|
||||||
|
import { useGlobalStore } from '@/composables/useGlobalStore';
|
||||||
|
import { MsgError, MsgSuccess } from '@/utils/message';
|
||||||
|
import { computeSize } from '@/utils/size';
|
||||||
import { newUUID } from '@/utils/id';
|
import { newUUID } from '@/utils/id';
|
||||||
|
import { CHUNK_SIZE, uploadChunkWithRetry } from '@/utils/chunk-upload';
|
||||||
|
|
||||||
|
const { currentNode } = useGlobalStore();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
const uploading = ref(false);
|
||||||
|
const busy = computed(() => loading.value || uploading.value);
|
||||||
const fileRef = ref();
|
const fileRef = ref();
|
||||||
const taskLogRef = ref();
|
const taskLogRef = ref();
|
||||||
|
const uploadRef = ref<UploadInstance>();
|
||||||
const loadVisible = ref(false);
|
const loadVisible = ref(false);
|
||||||
const form = reactive({
|
const source = ref<'server' | 'local'>('local');
|
||||||
path: '',
|
const operateNode = ref('');
|
||||||
paths: [] as string[],
|
const form = reactive({ path: '', paths: [] as string[] });
|
||||||
taskID: '',
|
const localFile = ref<UploadRawFile>();
|
||||||
});
|
const uploadPercent = ref(0);
|
||||||
|
const uploadFailed = ref(false);
|
||||||
const acceptParams = () => {
|
const uploadedPath = ref('');
|
||||||
loadVisible.value = true;
|
const submittedTaskID = ref('');
|
||||||
form.path = '';
|
let uploadID = '';
|
||||||
form.paths = [];
|
let uploadController: AbortController | undefined;
|
||||||
};
|
let disposed = false;
|
||||||
const handleClose = () => {
|
|
||||||
loadVisible.value = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
const emit = defineEmits<{ (e: 'search'): void }>();
|
const emit = defineEmits<{ (e: 'search'): void }>();
|
||||||
|
|
||||||
type FormInstance = InstanceType<typeof ElForm>;
|
const acceptParams = () => {
|
||||||
const formRef = ref<FormInstance>();
|
if (busy.value) return;
|
||||||
|
operateNode.value = currentNode.value;
|
||||||
const onSubmit = async (formEl: FormInstance | undefined) => {
|
source.value = 'local';
|
||||||
if (!formEl || !form.path.trim() || form.paths.length === 0) return;
|
form.path = '';
|
||||||
formEl.validate(async (valid) => {
|
|
||||||
if (!valid) return;
|
|
||||||
loading.value = true;
|
|
||||||
form.taskID = newUUID();
|
|
||||||
await imageLoad({ paths: form.paths, taskID: form.taskID })
|
|
||||||
.then(() => {
|
|
||||||
loading.value = false;
|
|
||||||
loadVisible.value = false;
|
|
||||||
openTaskLog(form.taskID);
|
|
||||||
emit('search');
|
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
loading.value = false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
const openTaskLog = (taskID: string) => {
|
|
||||||
taskLogRef.value.openWithTaskID(taskID);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handlePathChange = () => {
|
|
||||||
if (!form.path.trim()) {
|
|
||||||
form.paths = [];
|
form.paths = [];
|
||||||
|
localFile.value = undefined;
|
||||||
|
uploadedPath.value = '';
|
||||||
|
uploadPercent.value = 0;
|
||||||
|
uploadFailed.value = false;
|
||||||
|
submittedTaskID.value = '';
|
||||||
|
uploadRef.value?.clearFiles();
|
||||||
|
loadVisible.value = true;
|
||||||
|
};
|
||||||
|
const beforeClose = (done: () => void) => {
|
||||||
|
if (!busy.value) done();
|
||||||
|
};
|
||||||
|
const onServerSelect = () => {
|
||||||
|
if (busy.value) return;
|
||||||
|
source.value = 'server';
|
||||||
|
fileRef.value.acceptParams({ dir: false, multiple: true });
|
||||||
|
};
|
||||||
|
const onFileChange = (file: UploadFile) => {
|
||||||
|
if (!file.raw || busy.value) return;
|
||||||
|
if (file.raw.size === 0) {
|
||||||
|
MsgError(i18n.global.t('container.imageUploadEmpty'));
|
||||||
|
uploadRef.value?.clearFiles();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
localFile.value = file.raw;
|
||||||
|
uploadedPath.value = '';
|
||||||
|
submittedTaskID.value = '';
|
||||||
|
void uploadLocalFile();
|
||||||
|
};
|
||||||
|
const onFileExceed: UploadProps['onExceed'] = (files) => {
|
||||||
|
if (busy.value || !files.length) return;
|
||||||
|
uploadRef.value?.clearFiles();
|
||||||
|
const file = files[0] as UploadRawFile;
|
||||||
|
file.uid = genFileId();
|
||||||
|
uploadRef.value?.handleStart(file);
|
||||||
|
};
|
||||||
|
|
||||||
|
const uploadLocalFile = async () => {
|
||||||
|
const file = localFile.value;
|
||||||
|
if (!file || busy.value) return;
|
||||||
|
uploading.value = true;
|
||||||
|
uploadFailed.value = false;
|
||||||
|
uploadPercent.value = 0;
|
||||||
|
const node = operateNode.value;
|
||||||
|
const id = newUUID();
|
||||||
|
uploadID = id;
|
||||||
|
const controller = new AbortController();
|
||||||
|
uploadController = controller;
|
||||||
|
try {
|
||||||
|
const { data: baseDir } = await loadBaseDir(node);
|
||||||
|
controller.signal.throwIfAborted();
|
||||||
|
const directory = `${baseDir}/uploads/image/${id}`;
|
||||||
|
const count = Math.ceil(file.size / CHUNK_SIZE);
|
||||||
|
for (let index = 0; index < count; index++) {
|
||||||
|
const data = new FormData();
|
||||||
|
data.append('filename', file.name);
|
||||||
|
data.append('path', directory);
|
||||||
|
data.append('uploadID', id);
|
||||||
|
data.append('chunk', file.slice(index * CHUNK_SIZE, (index + 1) * CHUNK_SIZE));
|
||||||
|
data.append('chunkIndex', String(index));
|
||||||
|
data.append('chunkCount', String(count));
|
||||||
|
data.append('offset', String(index * CHUNK_SIZE));
|
||||||
|
data.append('fileSize', String(file.size));
|
||||||
|
await uploadChunkWithRetry(
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
headers: { CurrentNode: node },
|
||||||
|
signal: controller.signal,
|
||||||
|
skipErrorMessage: true,
|
||||||
|
timeout: 0,
|
||||||
|
onUploadProgress: (event: { total?: number; loaded: number }) => {
|
||||||
|
const fraction = event.total ? Math.min(1, event.loaded / event.total) : 0;
|
||||||
|
uploadPercent.value = Math.min(99, Math.floor(((index + fraction) * 100) / count));
|
||||||
|
},
|
||||||
|
},
|
||||||
|
controller.signal,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
controller.signal.throwIfAborted();
|
||||||
|
uploadedPath.value = `${directory}/${file.name}`;
|
||||||
|
uploadPercent.value = 100;
|
||||||
|
} catch {
|
||||||
|
if (!controller.signal.aborted) uploadFailed.value = true;
|
||||||
|
await stopChunkUpload(id, node).catch(() => {});
|
||||||
|
return;
|
||||||
|
} finally {
|
||||||
|
uploading.value = false;
|
||||||
|
uploadController = undefined;
|
||||||
|
uploadID = '';
|
||||||
|
}
|
||||||
|
if (!disposed && currentNode.value === node) await onSubmit();
|
||||||
|
};
|
||||||
|
|
||||||
|
const openTaskLog = () => {
|
||||||
|
taskLogRef.value.openWithTaskID(submittedTaskID.value, true, operateNode.value);
|
||||||
|
};
|
||||||
|
const onSubmit = async () => {
|
||||||
|
const paths = source.value === 'local' ? [uploadedPath.value].filter(Boolean) : [...form.paths];
|
||||||
|
if (busy.value || submittedTaskID.value || !paths.length) return;
|
||||||
|
loading.value = true;
|
||||||
|
const taskID = newUUID();
|
||||||
|
const node = operateNode.value;
|
||||||
|
submittedTaskID.value = taskID;
|
||||||
|
try {
|
||||||
|
await imageLoad({ paths, taskID }, node);
|
||||||
|
if (disposed || currentNode.value !== node) return;
|
||||||
|
loadVisible.value = false;
|
||||||
|
openTaskLog();
|
||||||
|
MsgSuccess(i18n.global.t('container.imageImportSubmitted'));
|
||||||
|
} catch {
|
||||||
|
return;
|
||||||
|
} finally {
|
||||||
|
loading.value = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const handlePathChange = () => {
|
||||||
const loadLoadDir = async (paths: string | string[]) => {
|
submittedTaskID.value = '';
|
||||||
const newPaths = Array.isArray(paths) ? paths : [paths];
|
form.paths = [
|
||||||
form.paths = [...new Set(newPaths)];
|
...new Set(
|
||||||
|
form.path
|
||||||
|
.split(';')
|
||||||
|
.map((path) => path.trim())
|
||||||
|
.filter(Boolean),
|
||||||
|
),
|
||||||
|
];
|
||||||
|
};
|
||||||
|
const loadLoadDir = (paths: string | string[]) => {
|
||||||
|
if (currentNode.value !== operateNode.value) return;
|
||||||
|
source.value = 'server';
|
||||||
|
submittedTaskID.value = '';
|
||||||
|
form.paths = [...new Set(Array.isArray(paths) ? paths : [paths])];
|
||||||
form.path = form.paths.join('; ');
|
form.path = form.paths.join('; ');
|
||||||
};
|
};
|
||||||
|
watch(currentNode, () => {
|
||||||
defineExpose({
|
loadVisible.value = false;
|
||||||
acceptParams,
|
uploadController?.abort();
|
||||||
});
|
});
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
disposed = true;
|
||||||
|
uploadController?.abort();
|
||||||
|
if (uploadID) void stopChunkUpload(uploadID, operateNode.value).catch(() => {});
|
||||||
|
});
|
||||||
|
defineExpose({ acceptParams });
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -95,10 +95,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import CreateDialog from '@/views/container/network/create/index.vue';
|
import CreateDialog from '@/views/container/network/create/index.vue';
|
||||||
import DetailDrawer from '@/views/container/network/detail/index.vue';
|
import DetailDrawer from '@/views/container/network/detail/index.vue';
|
||||||
import { reactive, ref } from 'vue';
|
import { toRef, reactive, ref } from 'vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { newUUID } from '@/utils/id';
|
import { newUUID } from '@/utils/id';
|
||||||
import { deleteNetwork, searchNetwork, inspect, containerPrune } from '@/api/modules/container';
|
import { deleteNetwork, searchNetwork, inspect, containerPrune } from '@/api/modules/container';
|
||||||
@@ -121,7 +121,7 @@ const paginationConfig = reactive({
|
|||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('container/network/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const opRef = ref();
|
const opRef = ref();
|
||||||
const isActive = ref(false);
|
const isActive = ref(false);
|
||||||
|
|||||||
@@ -59,9 +59,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import OperatorDialog from '@/views/container/repo/operator/index.vue';
|
import OperatorDialog from '@/views/container/repo/operator/index.vue';
|
||||||
import { reactive, ref } from 'vue';
|
import { toRef, reactive, ref } from 'vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { Container } from '@/api/interface/container';
|
import { Container } from '@/api/interface/container';
|
||||||
import { checkRepoStatus, deleteImageRepo, searchImageRepo } from '@/api/modules/container';
|
import { checkRepoStatus, deleteImageRepo, searchImageRepo } from '@/api/modules/container';
|
||||||
@@ -78,7 +78,7 @@ const paginationConfig = reactive({
|
|||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('container/repo/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const opRef = ref();
|
const opRef = ref();
|
||||||
const confirmDialog = ref();
|
const confirmDialog = ref();
|
||||||
|
|||||||
@@ -81,8 +81,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { reactive, ref } from 'vue';
|
import { toRef, reactive, ref } from 'vue';
|
||||||
import { dateFormat, getCurrentDateFormatted } from '@/utils/date';
|
import { dateFormat, getCurrentDateFormatted } from '@/utils/date';
|
||||||
import { downloadWithContent } from '@/utils/file';
|
import { downloadWithContent } from '@/utils/file';
|
||||||
import { Container } from '@/api/interface/container';
|
import { Container } from '@/api/interface/container';
|
||||||
@@ -111,7 +111,7 @@ const paginationConfig = reactive({
|
|||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('container/template/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const search = async () => {
|
const search = async () => {
|
||||||
if (!isActive.value || !isExist.value) {
|
if (!isActive.value || !isExist.value) {
|
||||||
|
|||||||
@@ -124,11 +124,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import CreateDialog from '@/views/container/volume/create/index.vue';
|
import CreateDialog from '@/views/container/volume/create/index.vue';
|
||||||
import CodemirrorDrawer from '@/components/codemirror-pro/drawer.vue';
|
import CodemirrorDrawer from '@/components/codemirror-pro/drawer.vue';
|
||||||
import DockerStatus from '@/views/container/docker-status/index.vue';
|
import DockerStatus from '@/views/container/docker-status/index.vue';
|
||||||
import { reactive, ref } from 'vue';
|
import { toRef, reactive, ref } from 'vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { newUUID } from '@/utils/id';
|
import { newUUID } from '@/utils/id';
|
||||||
import { deleteVolume, searchVolume, inspect, containerPrune } from '@/api/modules/container';
|
import { deleteVolume, searchVolume, inspect, containerPrune } from '@/api/modules/container';
|
||||||
@@ -158,7 +158,7 @@ const paginationConfig = reactive({
|
|||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('container/volume/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
const isActive = ref(false);
|
const isActive = ref(false);
|
||||||
const isExist = ref(false);
|
const isExist = ref(false);
|
||||||
|
|
||||||
|
|||||||
@@ -272,11 +272,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import Records from '@/views/cronjob/cronjob/record/index.vue';
|
import Records from '@/views/cronjob/cronjob/record/index.vue';
|
||||||
import Backups from '@/views/cronjob/cronjob/backup/index.vue';
|
import Backups from '@/views/cronjob/cronjob/backup/index.vue';
|
||||||
import Import from '@/views/cronjob/cronjob/import/index.vue';
|
import Import from '@/views/cronjob/cronjob/import/index.vue';
|
||||||
import { onMounted, ref, toRefs } from 'vue';
|
import { toRef, onMounted, ref, toRefs } from 'vue';
|
||||||
import {
|
import {
|
||||||
deleteCronjob,
|
deleteCronjob,
|
||||||
editCronjobGroup,
|
editCronjobGroup,
|
||||||
@@ -332,7 +332,7 @@ const pageState = usePageState(() => ({
|
|||||||
}));
|
}));
|
||||||
const paginationConfig = pageState.paginationConfig;
|
const paginationConfig = pageState.paginationConfig;
|
||||||
const { defaultGroupID, searchName, searchGroupID } = toRefs(pageState);
|
const { defaultGroupID, searchName, searchGroupID } = toRefs(pageState);
|
||||||
useSearchPersistence('cronjob/cronjob/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const search = async (column?: any) => {
|
const search = async (column?: any) => {
|
||||||
if (column) {
|
if (column) {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { dateFormat, getCurrentDateFormatted } from '@/utils/date';
|
import { dateFormat, getCurrentDateFormatted } from '@/utils/date';
|
||||||
import { deepCopy } from '@/utils/misc';
|
import { deepCopy } from '@/utils/misc';
|
||||||
import { newUUID } from '@/utils/id';
|
import { newUUID } from '@/utils/id';
|
||||||
@@ -141,7 +141,7 @@ import TaskLog from '@/components/log/task/index.vue';
|
|||||||
import OperateDialog from '@/views/cronjob/library/operate/index.vue';
|
import OperateDialog from '@/views/cronjob/library/operate/index.vue';
|
||||||
import TerminalDialog from '@/views/cronjob/library/run/index.vue';
|
import TerminalDialog from '@/views/cronjob/library/run/index.vue';
|
||||||
import { deleteScript, searchScript, syncScript } from '@/api/modules/cronjob';
|
import { deleteScript, searchScript, syncScript } from '@/api/modules/cronjob';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import { Cronjob } from '@/api/interface/cronjob';
|
import { Cronjob } from '@/api/interface/cronjob';
|
||||||
import i18n from '@/lang';
|
import i18n from '@/lang';
|
||||||
import { useGlobalStore } from '@/composables/useGlobalStore';
|
import { useGlobalStore } from '@/composables/useGlobalStore';
|
||||||
@@ -170,7 +170,7 @@ const paginationConfig = reactive({
|
|||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
const searchInfo = ref<string>('');
|
const searchInfo = ref<string>('');
|
||||||
useSearchPersistence('cronjob/library/index', { search: searchInfo });
|
useSearchReset({ search: searchInfo, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
const group = ref<string>('');
|
const group = ref<string>('');
|
||||||
const groupOptions = ref();
|
const groupOptions = ref();
|
||||||
|
|
||||||
|
|||||||
@@ -323,8 +323,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { nextTick, onMounted, reactive, ref } from 'vue';
|
import { toRef, nextTick, onMounted, reactive, ref } from 'vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { getRandomStr } from '@/utils/id';
|
import { getRandomStr } from '@/utils/id';
|
||||||
import { Position } from '@element-plus/icons-vue';
|
import { Position } from '@element-plus/icons-vue';
|
||||||
@@ -366,7 +366,6 @@ const loading = ref(false);
|
|||||||
const maskShow = ref(true);
|
const maskShow = ref(true);
|
||||||
const submitLoading = ref(false);
|
const submitLoading = ref(false);
|
||||||
const searchName = ref('');
|
const searchName = ref('');
|
||||||
useSearchPersistence('database/mongodb/index', { search: searchName });
|
|
||||||
const createVisible = ref(false);
|
const createVisible = ref(false);
|
||||||
const appStatusRef = ref();
|
const appStatusRef = ref();
|
||||||
const bindRef = ref();
|
const bindRef = ref();
|
||||||
@@ -400,6 +399,7 @@ const paginationConfig = reactive({
|
|||||||
orderBy: 'createdAt',
|
orderBy: 'createdAt',
|
||||||
order: 'null',
|
order: 'null',
|
||||||
});
|
});
|
||||||
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
type FormInstance = InstanceType<typeof ElForm>;
|
type FormInstance = InstanceType<typeof ElForm>;
|
||||||
const formRef = ref<FormInstance>();
|
const formRef = ref<FormInstance>();
|
||||||
|
|||||||
@@ -75,9 +75,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import { deleteCheckDatabase, searchDatabases } from '@/api/modules/database';
|
import { deleteCheckDatabase, searchDatabases } from '@/api/modules/database';
|
||||||
import AppResources from '@/views/database/postgresql/check/index.vue';
|
import AppResources from '@/views/database/postgresql/check/index.vue';
|
||||||
import OperateDialog from '@/views/database/mongodb/remote/operate/index.vue';
|
import OperateDialog from '@/views/database/mongodb/remote/operate/index.vue';
|
||||||
@@ -101,7 +101,7 @@ const paginationConfig = reactive({
|
|||||||
order: 'null',
|
order: 'null',
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('database/mongodb/remote/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const search = async (column?: any) => {
|
const search = async (column?: any) => {
|
||||||
paginationConfig.orderBy = column?.order ? column.prop : paginationConfig.orderBy;
|
paginationConfig.orderBy = column?.order ? column.prop : paginationConfig.orderBy;
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import BindDialog from '@/views/database/mysql/bind/index.vue';
|
import BindDialog from '@/views/database/mysql/bind/index.vue';
|
||||||
import UserDialog from '@/views/database/mysql/user/index.vue';
|
import UserDialog from '@/views/database/mysql/user/index.vue';
|
||||||
import OperateDialog from '@/views/database/mysql/create/index.vue';
|
import OperateDialog from '@/views/database/mysql/create/index.vue';
|
||||||
@@ -241,7 +241,7 @@ import PortJumpDialog from '@/components/port-jump/index.vue';
|
|||||||
import Tooltip from '@/components/tooltip/index.vue';
|
import Tooltip from '@/components/tooltip/index.vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { ElMessageBox } from 'element-plus';
|
import { ElMessageBox } from 'element-plus';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import {
|
import {
|
||||||
deleteCheckMysqlDB,
|
deleteCheckMysqlDB,
|
||||||
listDatabases,
|
listDatabases,
|
||||||
@@ -301,7 +301,7 @@ const paginationConfig = reactive({
|
|||||||
order: 'null',
|
order: 'null',
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('database/mysql/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const mysqlContainer = ref();
|
const mysqlContainer = ref();
|
||||||
const mysqlStatus = ref();
|
const mysqlStatus = ref();
|
||||||
|
|||||||
@@ -74,9 +74,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import { deleteCheckDatabase, searchDatabases } from '@/api/modules/database';
|
import { deleteCheckDatabase, searchDatabases } from '@/api/modules/database';
|
||||||
import AppResources from '@/views/database/mysql/check/index.vue';
|
import AppResources from '@/views/database/mysql/check/index.vue';
|
||||||
import OperateDialog from '@/views/database/mysql/remote/operate/index.vue';
|
import OperateDialog from '@/views/database/mysql/remote/operate/index.vue';
|
||||||
@@ -100,7 +100,7 @@ const paginationConfig = reactive({
|
|||||||
order: 'null',
|
order: 'null',
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('database/mysql/remote/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const search = async (column?: any) => {
|
const search = async (column?: any) => {
|
||||||
paginationConfig.orderBy = column?.order ? column.prop : paginationConfig.orderBy;
|
paginationConfig.orderBy = column?.order ? column.prop : paginationConfig.orderBy;
|
||||||
|
|||||||
@@ -241,7 +241,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useSearchPersistence } from '@/composables/useSearchPersistence';
|
import { useSearchReset } from '@/composables/useSearchReset';
|
||||||
import BindDialog from '@/views/database/postgresql/bind/index.vue';
|
import BindDialog from '@/views/database/postgresql/bind/index.vue';
|
||||||
import OperateDialog from '@/views/database/postgresql/create/index.vue';
|
import OperateDialog from '@/views/database/postgresql/create/index.vue';
|
||||||
import DeleteDialog from '@/views/database/postgresql/delete/index.vue';
|
import DeleteDialog from '@/views/database/postgresql/delete/index.vue';
|
||||||
@@ -256,7 +256,7 @@ import UploadDialog from '@/components/upload/index.vue';
|
|||||||
import PortJumpDialog from '@/components/port-jump/index.vue';
|
import PortJumpDialog from '@/components/port-jump/index.vue';
|
||||||
import Tooltip from '@/components/tooltip/index.vue';
|
import Tooltip from '@/components/tooltip/index.vue';
|
||||||
import { dateFormat } from '@/utils/date';
|
import { dateFormat } from '@/utils/date';
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { toRef, onMounted, reactive, ref } from 'vue';
|
||||||
import {
|
import {
|
||||||
deleteCheckPostgresqlDB,
|
deleteCheckPostgresqlDB,
|
||||||
listDatabases,
|
listDatabases,
|
||||||
@@ -313,7 +313,7 @@ const paginationConfig = reactive({
|
|||||||
order: 'null',
|
order: 'null',
|
||||||
});
|
});
|
||||||
const searchName = ref();
|
const searchName = ref();
|
||||||
useSearchPersistence('database/postgresql/index', { search: searchName });
|
useSearchReset({ search: searchName, page: toRef(paginationConfig, 'currentPage') }, { onRevisit: () => search() });
|
||||||
|
|
||||||
const postgresqlContainer = ref();
|
const postgresqlContainer = ref();
|
||||||
const postgresqlStatus = ref();
|
const postgresqlStatus = ref();
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user