Skip to content

Modern Docker Management, Designed for Everyone

feat: redeisgned templates pages (#648)

Chase Baucom82715fd125dc
diff --git a/backend/internal/api/container_handler.go b/backend/internal/api/container_handler.go
index d3094c396..af13bc0b1 100644
--- a/backend/internal/api/container_handler.go
+++ b/backend/internal/api/container_handler.go
@@ -317,8 +317,8 @@ func (h *ContainerHandler) List(c *gin.Context) {
pagination.ApplyFilterResultsHeaders(&c.Writer, pagination.FilterResult[dto.ContainerSummaryDto]{
Items: containers,
- TotalCount: int(paginationResp.TotalItems),
- TotalAvailable: int(paginationResp.GrandTotalItems),
+ TotalCount: paginationResp.TotalItems,
+ TotalAvailable: paginationResp.GrandTotalItems,
})
c.JSON(http.StatusOK, gin.H{
diff --git a/backend/internal/api/image_handler.go b/backend/internal/api/image_handler.go
index fb7e452a5..d7e7eb41b 100644
--- a/backend/internal/api/image_handler.go
+++ b/backend/internal/api/image_handler.go
@@ -52,8 +52,8 @@ func (h *ImageHandler) List(c *gin.Context) {
pagination.ApplyFilterResultsHeaders(&c.Writer, pagination.FilterResult[dto.ImageSummaryDto]{
Items: images,
- TotalCount: int(paginationResp.TotalItems),
- TotalAvailable: int(paginationResp.GrandTotalItems),
+ TotalCount: paginationResp.TotalItems,
+ TotalAvailable: paginationResp.GrandTotalItems,
})
c.JSON(http.StatusOK, gin.H{
diff --git a/backend/internal/api/network_handler.go b/backend/internal/api/network_handler.go
index 5c0ea320e..13b3bfe82 100644
--- a/backend/internal/api/network_handler.go
+++ b/backend/internal/api/network_handler.go
@@ -49,8 +49,8 @@ func (h *NetworkHandler) List(c *gin.Context) {
pagination.ApplyFilterResultsHeaders(&c.Writer, pagination.FilterResult[dto.NetworkSummaryDto]{
Items: networks,
- TotalCount: int(paginationResp.TotalItems),
- TotalAvailable: int(paginationResp.GrandTotalItems),
+ TotalCount: paginationResp.TotalItems,
+ TotalAvailable: paginationResp.GrandTotalItems,
})
c.JSON(http.StatusOK, gin.H{
diff --git a/backend/internal/api/template_handler.go b/backend/internal/api/template_handler.go
index 2b63ed937..8c2668096 100644
--- a/backend/internal/api/template_handler.go
+++ b/backend/internal/api/template_handler.go
@@ -9,6 +9,7 @@ import (
"github.com/ofkm/arcane-backend/internal/middleware"
"github.com/ofkm/arcane-backend/internal/models"
"github.com/ofkm/arcane-backend/internal/services"
+ "github.com/ofkm/arcane-backend/internal/utils/pagination"
)
type TemplateHandler struct {
@@ -22,7 +23,8 @@ func NewTemplateHandler(group *gin.RouterGroup, templateService *services.Templa
apiGroup.GET("/fetch", handler.FetchRegistry)
- apiGroup.GET("", authMiddleware.WithAdminNotRequired().WithSuccessOptional().Add(), handler.GetAllTemplates)
+ apiGroup.GET("", authMiddleware.WithAdminNotRequired().WithSuccessOptional().Add(), handler.GetAllTemplatesPaginated)
+ apiGroup.GET("/all", authMiddleware.WithAdminNotRequired().WithSuccessOptional().Add(), handler.GetAllTemplates)
apiGroup.GET("/:id", authMiddleware.WithAdminNotRequired().WithSuccessOptional().Add(), handler.GetTemplate)
apiGroup.GET("/:id/content", authMiddleware.WithAdminNotRequired().WithSuccessOptional().Add(), handler.GetTemplateContent)
@@ -43,6 +45,35 @@ func NewTemplateHandler(group *gin.RouterGroup, templateService *services.Templa
}
}
+func (h *TemplateHandler) GetAllTemplatesPaginated(c *gin.Context) {
+ params := pagination.ExtractListModifiersQueryParams(c)
+
+ if params.Limit == 0 {
+ params.Limit = 20
+ }
+
+ templates, paginationResp, err := h.templateService.GetAllTemplatesPaginated(c.Request.Context(), params)
+ if err != nil {
+ c.JSON(http.StatusInternalServerError, gin.H{
+ "success": false,
+ "data": gin.H{"error": "Failed to get templates: " + err.Error()},
+ })
+ return
+ }
+
+ pagination.ApplyFilterResultsHeaders(&c.Writer, pagination.FilterResult[dto.ComposeTemplateDto]{
+ Items: templates,
+ TotalCount: paginationResp.TotalItems,
+ TotalAvailable: paginationResp.GrandTotalItems,
+ })
+
+ c.JSON(http.StatusOK, gin.H{
+ "success": true,
+ "data": templates,
+ "pagination": paginationResp,
+ })
+}
+
func (h *TemplateHandler) GetAllTemplates(c *gin.Context) {
templates, err := h.templateService.GetAllTemplates(c.Request.Context())
if err != nil {
@@ -120,48 +151,18 @@ func (h *TemplateHandler) GetTemplateContent(c *gin.Context) {
return
}
- template, err := h.templateService.GetTemplate(c.Request.Context(), id)
+ contentData, err := h.templateService.GetTemplateContentWithParsedData(c.Request.Context(), id)
if err != nil {
- c.JSON(http.StatusNotFound, gin.H{
- "success": false,
- "data": gin.H{"error": "Template not found"},
- })
- return
- }
-
- var outTemplate dto.ComposeTemplateDto
- if mapErr := dto.MapStruct(template, &outTemplate); mapErr != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"success": false,
- "data": gin.H{"error": "Failed to map template: " + mapErr.Error()},
+ "data": gin.H{"error": "Failed to get template content: " + err.Error()},
})
return
}
- var composeContent, envContent string
- if template.IsRemote {
- composeContent, envContent, err = h.templateService.FetchTemplateContent(c.Request.Context(), template)
- if err != nil {
- c.JSON(http.StatusInternalServerError, gin.H{
- "success": false,
- "data": gin.H{"error": "Failed to fetch template content: " + err.Error()},
- })
- return
- }
- } else {
- composeContent = template.Content
- if template.EnvContent != nil {
- envContent = *template.EnvContent
- }
- }
-
c.JSON(http.StatusOK, gin.H{
"success": true,
- "data": gin.H{
- "content": composeContent,
- "envContent": envContent,
- "template": outTemplate,
- },
+ "data": contentData,
})
}
diff --git a/backend/internal/api/volume_handler.go b/backend/internal/api/volume_handler.go
index 9b7159416..4fe63b861 100644
--- a/backend/internal/api/volume_handler.go
+++ b/backend/internal/api/volume_handler.go
@@ -50,8 +50,8 @@ func (h *VolumeHandler) List(c *gin.Context) {
pagination.ApplyFilterResultsHeaders(&c.Writer, pagination.FilterResult[dto.VolumeDto]{
Items: volumes,
- TotalCount: int(paginationResp.TotalItems),
- TotalAvailable: int(paginationResp.GrandTotalItems),
+ TotalCount: paginationResp.TotalItems,
+ TotalAvailable: paginationResp.GrandTotalItems,
})
c.JSON(http.StatusOK, gin.H{
diff --git a/backend/internal/dto/template_dto.go b/backend/internal/dto/template_dto.go
index abbf5b3fd..42ea4a89d 100644
--- a/backend/internal/dto/template_dto.go
+++ b/backend/internal/dto/template_dto.go
@@ -31,13 +31,26 @@ type TemplateRegistryDto struct {
}
type ComposeTemplateMetadataDto struct {
- Version *string `json:"version,omitempty"`
- Author *string `json:"author,omitempty"`
- Tags *string `json:"tags,omitempty"`
- RemoteURL *string `json:"remoteUrl,omitempty"`
- EnvURL *string `json:"envUrl,omitempty"`
- DocumentationURL *string `json:"documentationUrl,omitempty"`
- UpdatedAt *string `json:"updatedAt,omitempty"`
+ Version *string `json:"version,omitempty"`
+ Author *string `json:"author,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ RemoteURL *string `json:"remoteUrl,omitempty"`
+ EnvURL *string `json:"envUrl,omitempty"`
+ DocumentationURL *string `json:"documentationUrl,omitempty"`
+ UpdatedAt *string `json:"updatedAt,omitempty"`
+}
+
+type EnvVariable struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+}
+
+type ComposeTemplateContentDto struct {
+ Template ComposeTemplateDto `json:"template"`
+ Content string `json:"content"`
+ EnvContent string `json:"envContent"`
+ Services []string `json:"services"`
+ EnvVariables []EnvVariable `json:"envVariables"`
}
type ComposeTemplateDto struct {
diff --git a/backend/internal/models/template.go b/backend/internal/models/template.go
index c22e262f3..eec0a8a88 100644
--- a/backend/internal/models/template.go
+++ b/backend/internal/models/template.go
@@ -22,12 +22,12 @@ type ComposeTemplate struct {
}
type ComposeTemplateMetadata struct {
- Version *string `json:"version,omitempty"`
- Author *string `json:"author,omitempty"`
- Tags *string `json:"tags,omitempty"`
- RemoteURL *string `json:"remoteUrl,omitempty"`
- EnvURL *string `json:"envUrl,omitempty"`
- DocumentationURL *string `json:"documentationUrl,omitempty"`
+ Version *string `json:"version,omitempty"`
+ Author *string `json:"author,omitempty"`
+ Tags []string `json:"tags,omitempty" gorm:"serializer:json"`
+ RemoteURL *string `json:"remoteUrl,omitempty"`
+ EnvURL *string `json:"envUrl,omitempty"`
+ DocumentationURL *string `json:"documentationUrl,omitempty"`
}
func (TemplateRegistry) TableName() string { return "template_registries" }
diff --git a/backend/internal/services/template_service.go b/backend/internal/services/template_service.go
index 910e1009c..1dccbd11d 100644
--- a/backend/internal/services/template_service.go
+++ b/backend/internal/services/template_service.go
@@ -16,11 +16,15 @@ import (
"sync"
"time"
+ composeloader "github.com/compose-spec/compose-go/v2/loader"
+ composetypes "github.com/compose-spec/compose-go/v2/types"
"github.com/google/uuid"
"github.com/ofkm/arcane-backend/internal/database"
"github.com/ofkm/arcane-backend/internal/dto"
"github.com/ofkm/arcane-backend/internal/models"
appfs "github.com/ofkm/arcane-backend/internal/utils/fs"
+ "github.com/ofkm/arcane-backend/internal/utils/pagination"
+ "github.com/ofkm/arcane-backend/internal/utils/template"
"gorm.io/gorm"
)
@@ -125,6 +129,121 @@ func (s *TemplateService) GetAllTemplates(ctx context.Context) ([]models.Compose
return templates, nil
}
+func (s *TemplateService) GetAllTemplatesPaginated(ctx context.Context, params pagination.QueryParams) ([]dto.ComposeTemplateDto, pagination.Response, error) {
+ if err := s.syncFilesystemTemplatesInternal(ctx); err != nil {
+ slog.WarnContext(ctx, "failed to sync filesystem templates", "error", err)
+ }
+
+ var templates []models.ComposeTemplate
+ if err := s.db.WithContext(ctx).Preload("Registry").Find(&templates).Error; err != nil {
+ return nil, pagination.Response{}, fmt.Errorf("failed to get local templates: %w", err)
+ }
+
+ // Trim heavy fields in list responses
+ for i := range templates {
+ templates[i].Content = ""
+ templates[i].EnvContent = nil
+ }
+
+ if err := s.ensureRemoteTemplatesLoaded(ctx); err != nil {
+ slog.WarnContext(ctx, "failed to load remote templates for GetAllTemplatesPaginated", "error", err)
+ } else {
+ s.remoteMu.RLock()
+ copied := make([]models.ComposeTemplate, len(s.remoteCache.templates))
+ copy(copied, s.remoteCache.templates)
+ s.remoteMu.RUnlock()
+
+ if len(copied) > 0 {
+ templates = append(templates, copied...)
+ }
+ }
+
+ items := make([]dto.ComposeTemplateDto, 0, len(templates))
+ for _, t := range templates {
+ var dtoItem dto.ComposeTemplateDto
+ if err := dto.MapStruct(&t, &dtoItem); err != nil {
+ slog.WarnContext(ctx, "failed to map template to DTO", "error", err, "templateID", t.ID)
+ continue
+ }
+ items = append(items, dtoItem)
+ }
+
+ config := pagination.Config[dto.ComposeTemplateDto]{
+ SearchAccessors: []pagination.SearchAccessor[dto.ComposeTemplateDto]{
+ func(t dto.ComposeTemplateDto) (string, error) { return t.Name, nil },
+ func(t dto.ComposeTemplateDto) (string, error) { return t.Description, nil },
+ func(t dto.ComposeTemplateDto) (string, error) {
+ if t.Metadata != nil && len(t.Metadata.Tags) > 0 {
+ return strings.Join(t.Metadata.Tags, " "), nil
+ }
+ return "", nil
+ },
+ },
+ SortBindings: []pagination.SortBinding[dto.ComposeTemplateDto]{
+ {
+ Key: "name",
+ Fn: func(a, b dto.ComposeTemplateDto) int {
+ return strings.Compare(strings.ToLower(a.Name), strings.ToLower(b.Name))
+ },
+ },
+ {
+ Key: "description",
+ Fn: func(a, b dto.ComposeTemplateDto) int {
+ return strings.Compare(strings.ToLower(a.Description), strings.ToLower(b.Description))
+ },
+ },
+ {
+ Key: "isRemote",
+ Fn: func(a, b dto.ComposeTemplateDto) int {
+ if a.IsRemote == b.IsRemote {
+ return 0
+ }
+ if a.IsRemote {
+ return 1
+ }
+ return -1
+ },
+ },
+ },
+ FilterAccessors: []pagination.FilterAccessor[dto.ComposeTemplateDto]{
+ {
+ Key: "type",
+ Fn: func(item dto.ComposeTemplateDto, filterValue string) bool {
+ switch filterValue {
+ case "true":
+ return item.IsRemote
+ case "false":
+ return !item.IsRemote
+ }
+ return true
+ },
+ },
+ },
+ }
+
+ result := pagination.SearchOrderAndPaginate(items, params, config)
+
+ totalPages := int64(0)
+ if params.Limit > 0 {
+ totalPages = (int64(result.TotalCount) + int64(params.Limit) - 1) / int64(params.Limit)
+ }
+
+ currentPage := 1
+ if params.Limit > 0 && params.Start > 0 {
+ currentPage = (params.Start / params.Limit) + 1
+ }
+
+ paginationResp := pagination.Response{
+ TotalPages: totalPages,
+ TotalItems: int64(result.TotalCount),
+ CurrentPage: currentPage,
+ ItemsPerPage: params.Limit,
+ GrandTotalItems: int64(result.TotalAvailable),
+ }
+
+ return result.Items, paginationResp, nil
+}
+
var ErrTemplateNotFound = errors.New("template not found")
func (s *TemplateService) GetTemplate(ctx context.Context, id string) (*models.ComposeTemplate, error) {
@@ -210,6 +329,22 @@ func (s *TemplateService) DeleteTemplate(ctx context.Context, id string) error {
return fmt.Errorf("cannot delete remote template directly")
}
+ baseDir, err := appfs.GetTemplatesDirectory(ctx)
+ if err != nil {
+ return fmt.Errorf("failed to get templates directory: %w", err)
+ } else {
+ templatePath := filepath.Join(baseDir, existing.Name)
+
+ if stat, err := os.Stat(templatePath); err == nil && stat.IsDir() {
+ composeFile := filepath.Join(templatePath, "compose.yaml")
+ if _, err := os.Stat(composeFile); err == nil {
+ if err := os.RemoveAll(templatePath); err != nil {
+ return fmt.Errorf("failed to delete template directory: %w", err)
+ }
+ }
+ }
+ }
+
result := s.db.WithContext(ctx).Where("id = ?", id).Delete(&models.ComposeTemplate{})
if result.Error != nil {
return fmt.Errorf("failed to delete template: %w", result.Error)
@@ -335,7 +470,9 @@ func (s *TemplateService) UpdateRegistry(ctx context.Context, id string, updates
}
}
- result := s.db.WithContext(ctx).Model(&models.TemplateRegistry{}).Where("id = ?", id).Updates(updates)
+ result := s.db.WithContext(ctx).Model(&models.TemplateRegistry{}).Where("id = ?", id).
+ Select("Name", "URL", "Description", "Enabled").
+ Updates(updates)
if result.Error != nil {
return result.Error
}
@@ -484,13 +621,6 @@ func (s *TemplateService) fetchRegistryManifest(ctx context.Context, url string)
}
func (s *TemplateService) convertRemoteToLocal(remote dto.RemoteTemplate, registry *models.TemplateRegistry) models.ComposeTemplate {
- tagsJSON := ""
- if len(remote.Tags) > 0 {
- if data, err := json.Marshal(remote.Tags); err == nil {
- tagsJSON = string(data)
- }
- }
-
publicID := makeRemoteID(registry.ID, remote.ID)
return models.ComposeTemplate{
@@ -506,7 +636,7 @@ func (s *TemplateService) convertRemoteToLocal(remote dto.RemoteTemplate, regist
Metadata: &models.ComposeTemplateMetadata{
Version: &remote.Version,
Author: &remote.Author,
- Tags: &tagsJSON,
+ Tags: remote.Tags,
RemoteURL: &remote.ComposeURL,
EnvURL: &remote.EnvURL,
DocumentationURL: &remote.DocumentationURL,
@@ -849,3 +979,88 @@ func (s *TemplateService) UpdateGlobalVariables(ctx context.Context, vars []dto.
return nil
}
+
+// ParseComposeServices extracts service names from a compose file content using compose-go
+func (s *TemplateService) ParseComposeServices(ctx context.Context, composeContent string) []string {
+ if composeContent == "" {
+ return []string{}
+ }
+
+ // Create a temp directory with dummy .env file to satisfy env_file references
+ tmpDir, err := os.MkdirTemp("", "arcane-compose-parse-*")
+ if err != nil {
+ slog.WarnContext(ctx, "Failed to create temp dir for compose parsing", "error", err)
+ return []string{}
+ }
+ defer os.RemoveAll(tmpDir)
+
+ // Create a dummy .env file to prevent env file errors
+ envPath := filepath.Join(tmpDir, ".env")
+ if err := os.WriteFile(envPath, []byte(""), 0600); err != nil {
+ slog.WarnContext(ctx, "Failed to create dummy env file", "error", err)
+ }
+
+ // Parse using compose-go
+ configDetails := composetypes.ConfigDetails{
+ ConfigFiles: []composetypes.ConfigFile{
+ {
+ Content: []byte(composeContent),
+ },
+ },
+ WorkingDir: tmpDir,
+ Environment: composetypes.Mapping{},
+ }
+
+ project, err := composeloader.LoadWithContext(ctx, configDetails, composeloader.WithSkipValidation)
+ if err != nil {
+ slog.WarnContext(ctx, "Failed to parse compose services", "error", err)
+ return []string{}
+ }
+
+ serviceNames := make([]string, 0, len(project.Services))
+ for _, service := range project.Services {
+ serviceNames = append(serviceNames, service.Name)
+ }
+
+ return serviceNames
+}
+
+// GetTemplateContentWithParsedData returns template content along with parsed metadata
+func (s *TemplateService) GetTemplateContentWithParsedData(ctx context.Context, id string) (*dto.ComposeTemplateContentDto, error) {
+ tmpl, err := s.GetTemplate(ctx, id)
+ if err != nil {
+ return nil, err
+ }
+
+ var outTemplate dto.ComposeTemplateDto
+ if mapErr := dto.MapStruct(tmpl, &outTemplate); mapErr != nil {
+ return nil, fmt.Errorf("failed to map template: %w", mapErr)
+ }
+
+ var composeContent, envContent string
+ if tmpl.IsRemote {
+ composeContent, envContent, err = s.FetchTemplateContent(ctx, tmpl)
+ if err != nil {
+ return nil, fmt.Errorf("failed to fetch template content: %w", err)
+ }
+ } else {
+ composeContent = tmpl.Content
+ if tmpl.EnvContent != nil {
+ envContent = *tmpl.EnvContent
+ }
+ }
+
+ // Parse services from compose content using compose-go library
+ services := s.ParseComposeServices(ctx, composeContent)
+
+ // Parse environment variables
+ envVars := template.ParseEnvContent(envContent)
+
+ return &dto.ComposeTemplateContentDto{
+ Template: outTemplate,
+ Content: composeContent,
+ EnvContent: envContent,
+ Services: services,
+ EnvVariables: envVars,
+ }, nil
+}
diff --git a/backend/internal/utils/pagination/filters.go b/backend/internal/utils/pagination/filters.go
index 39f1c0e60..101fb75ec 100644
--- a/backend/internal/utils/pagination/filters.go
+++ b/backend/internal/utils/pagination/filters.go
@@ -8,8 +8,8 @@ import (
type FilterResult[T any] struct {
Items []T
- TotalCount int
- TotalAvailable int
+ TotalCount int64
+ TotalAvailable int64
}
type FilterAccessor[T any] struct {
@@ -35,8 +35,8 @@ func SearchOrderAndPaginate[T any](items []T, params QueryParams, searchConfig C
return FilterResult[T]{
Items: items,
- TotalCount: totalCount,
- TotalAvailable: totalAvailable,
+ TotalCount: int64(totalCount),
+ TotalAvailable: int64(totalAvailable),
}
}
@@ -74,6 +74,6 @@ func filterFn[T any](items []T, filters map[string]string, accessors []FilterAcc
}
func ApplyFilterResultsHeaders[T any](w *gin.ResponseWriter, result FilterResult[T]) {
- (*w).Header().Set("X-Arcane-Total-Items", strconv.Itoa(result.TotalCount))
- (*w).Header().Set("X-Arcane-Total-Available", strconv.Itoa(result.TotalAvailable))
+ (*w).Header().Set("X-Arcane-Total-Items", strconv.FormatInt(result.TotalCount, 10))
+ (*w).Header().Set("X-Arcane-Total-Available", strconv.FormatInt(result.TotalAvailable, 10))
}
diff --git a/backend/internal/utils/template/parser.go b/backend/internal/utils/template/parser.go
new file mode 100644
index 000000000..c2c1d9301
--- /dev/null
+++ b/backend/internal/utils/template/parser.go
@@ -0,0 +1,59 @@
+package template
+
+import (
+ "bufio"
+ "strings"
+
+ "github.com/ofkm/arcane-backend/internal/dto"
+)
+
+// ParseEnvContent parses environment variables from .env file content
+func ParseEnvContent(content string) []dto.EnvVariable {
+ if content == "" {
+ return []dto.EnvVariable{}
+ }
+
+ var vars []dto.EnvVariable
+ scanner := bufio.NewScanner(strings.NewReader(content))
+
+ for scanner.Scan() {
+ line := strings.TrimSpace(scanner.Text())
+
+ // Skip empty lines and comments
+ if line == "" || strings.HasPrefix(line, "#") {
+ continue
+ }
+
+ // Split on first '='
+ parts := strings.SplitN(line, "=", 2)
+ if len(parts) != 2 {
+ continue
+ }
+
+ key := strings.TrimSpace(parts[0])
+ value := ""
+ if len(parts) == 2 {
+ value = strings.TrimSpace(parts[1])
+ }
+
+ // Strip surrounding quotes and handle escapes
+ if len(value) >= 2 {
+ if strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`) {
+ value = value[1 : len(value)-1]
+ value = strings.ReplaceAll(value, `\"`, `"`)
+ } else if strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`) {
+ value = value[1 : len(value)-1]
+ value = strings.ReplaceAll(value, `\'`, `'`)
+ }
+ }
+
+ if key != "" {
+ vars = append(vars, dto.EnvVariable{
+ Key: key,
+ Value: value,
+ })
+ }
+ }
+
+ return vars
+}
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
index 7caeacf3e..db3811438 100644
--- a/frontend/messages/en.json
+++ b/frontend/messages/en.json
@@ -1,31 +1,21 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
+
+ "_comment_layout": "=== LAYOUT & UI ===",
"layout_title": "Arcane",
"accent_color": "Accent Color",
"accent_color_description": "Select an accent color to customize the appearance of Arcane",
"custom_accent_color": "Custom Accent Color",
"custom_accent_color_description": "Enter a custom color using valid CSS color formats (e.g., hex, rgb, hsl).",
"color_value": "Color value",
+
+ "_comment_errors": "=== ERROR PAGES ===",
"error_occurred": "An Error Occured",
"error_not_found": "Not Found",
"error_generic": "Something went wrong",
- "volumes_title": "Volumes",
- "volumes_subtitle": "Manage your Docker volumes",
- "volumes_create_button": "Create Volume",
- "volumes_stat_total": "Total Volumes",
- "volumes_stat_used": "Used Volumes",
- "volumes_stat_unused": "Unused Volumes",
- "volumes_created_success": "Volume \"{name}\" Created Successfully.",
- "volumes_create_failed": "Failed to Create Volume \"{name}\"",
- "volumes_refresh_failed": "Failed to Refresh Volumes",
- "volumes_remove_title": "Remove Volume",
- "volumes_remove_confirm_message": "Are you sure you want to remove the volume \"{name}\"? This action cannot be undone and will permanently delete all data stored in this volume.",
- "volumes_remove_failed": "Failed to Remove Volume \"{name}\"",
- "volumes_remove_success": "Volume \"{name}\" Removed Successfully.",
- "volumes_bulk_remove_success_one": "Successfully removed 1 volume",
- "volumes_bulk_remove_success_many": "Successfully removed {count} volumes",
- "volumes_bulk_remove_failed_one": "Failed to remove 1 volume",
- "volumes_bulk_remove_failed_many": "Failed to remove {count} volumes",
+ "error_go_to_dashboard": "Go to Dashboard",
+
+ "_comment_common_generic": "=== COMMON - GENERIC ===",
"common_refresh": "Refresh",
"common_unknown": "Unknown",
"common_remove": "Remove",
@@ -36,6 +26,38 @@
"common_created": "Created",
"common_in_use": "In Use",
"common_unused": "Unused",
+ "common_total": "Total",
+ "common_running": "Running",
+ "common_stopped": "Stopped",
+ "common_size": "Size",
+ "common_overview": "Overview",
+ "common_configuration": "Configuration",
+ "common_limit": "Limit",
+ "common_tags": "Tags",
+ "common_subnet": "Subnet",
+ "common_shell": "Shell",
+ "common_ports": "Ports",
+ "common_type": "Type",
+ "common_environment_variables": "Environment Variables",
+ "common_always": "Always",
+ "common_never": "Never",
+ "common_working_directory": "Working Directory",
+ "common_test_connection": "Test Connection",
+ "common_select_shell": "Select shell",
+ "common_select_driver": "Select a driver",
+ "common_save_changes": "Save Changes",
+ "common_remove_selected": "Remove Selected",
+ "common_registry_url_required": "Registry URL is required",
+ "common_update_available": "Update available",
+ "common_restart_policy": "Restart Policy",
+ "common_gateway": "Gateway",
+ "common_driver_required": "Driver is required",
+ "common_command": "Command",
+ "common_cpus": "CPUs",
+ "common_basic": "Basic",
+ "common_architecture": "Architecture",
+ "common_port_mappings": "Port Mappings",
+ "common_exposed_ports": "Exposed Ports",
"common_open_menu": "Open menu",
"common_inspect": "Inspect",
"common_view": "View",
@@ -43,29 +65,11 @@
"common_mountpoint": "Mountpoint",
"common_labels": "Labels",
"common_driver_options": "Driver Options",
- "volumes_remove_in_use_warning": "Warning: This volume is currently in use by containers. Forcing removal may cause data loss or container issues.",
- "volumes_details_title": "Volume Details",
- "volumes_details_description": "Basic information about this Docker volume",
- "volumes_containers_using_title": "Containers Using This Volume",
- "volumes_containers_using_description": "List of containers currently referencing this volume",
- "volumes_no_containers_using": "No containers are currently using this volume.",
- "volumes_labels_description": "User-defined metadata attached to this volume",
- "volumes_driver_options_description": "Volume driver-specific options",
- "volumes_no_labels_or_options": "This volume has no additional labels or driver options.",
- "volumes_not_found_title": "Volume Not Found",
- "volumes_not_found_description": "The requested volume could not be found or is no longer available.",
- "common_back_to_volumes": "Back to Volumes",
- "users_title": "Users",
- "users_subtitle": "Manage system users and permissions",
- "users_create_button": "Create User",
- "users_total": "Total Users",
- "users_administrators": "Administrators",
- "users_regular": "Regular Users",
- "users_update_failed": "Failed to update user \"{username}\"",
- "users_update_success": "User \"{username}\" updated successfully.",
- "users_create_failed": "Failed to create user \"{username}\"",
- "users_create_success": "User \"{username}\" created successfully.",
- "common_username_required": "Username is required",
+ "common_back_to": "Back to {resource}",
+ "common_back": "Back",
+ "common_refresh_failed": "Failed to Refresh {resource}",
+ "common_not_found_title": "{resource} Not Found",
+ "common_not_found_description": "The requested {resource} could not be found or is no longer available.",
"common_username": "Username",
"common_display_name": "Display Name",
"common_email": "Email",
@@ -74,313 +78,250 @@
"common_delete": "Delete",
"common_admin": "Admin",
"common_user": "User",
- "users_delete_selected_title": "Delete {count} user(s)",
- "users_delete_selected_message": "Are you sure you want to delete the selected user(s)? This action cannot be undone.",
- "users_delete_selected_item_failed": "Failed to delete user {id}",
- "users_delete_success_one": "Successfully deleted 1 user",
- "users_delete_success_many": "Successfully deleted {count} users",
- "users_delete_failed_one": "Failed to delete 1 user",
- "users_delete_failed_many": "Failed to delete {count} users",
- "users_delete_user_title": "Delete User \"{username}\"",
- "users_delete_user_message": "Are you sure you want to delete the user \"{username}\"? This action cannot be undone.",
- "users_delete_user_failed": "Failed to delete user \"{username}\"",
- "users_delete_user_success": "User \"{username}\" deleted successfully.",
- "security_title": "Security",
- "security_description": "Configure authentication methods, session timeouts, and other security-related options.",
- "general_title": "General",
- "general_description": "Core configuration settings for the application",
- "security_authentication_heading": "Authentication",
- "security_local_auth_label": "Local Authentication",
- "security_local_auth_description": "Username and password stored by Arcane. Keep enabled as a fallback.",
- "security_oidc_auth_label": "OIDC Authentication",
- "security_oidc_auth_description": "Use an external OIDC provider",
- "security_oidc_auth_description_forced": "Use an external OIDC provider (forced by server)",
- "security_server_forces_oidc_missing_env": "Server forces OIDC, but env vars missing. Configure or fix server env.",
- "security_oidc_configured_forced_view": "OIDC configured & forced by server. View status.",
- "security_manage_oidc_config": "Manage OIDC configuration",
- "security_session_heading": "Session",
- "security_session_timeout_label": "Session Timeout (minutes)",
- "security_session_timeout_placeholder": "60",
- "security_session_timeout_description": "Inactive sessions will be logged out automatically (15–1440 minutes).",
- "security_session_timeout_required": "Session timeout is required",
- "security_session_timeout_integer": "Must be an integer",
- "security_session_timeout_min": "Minimum is 15 minutes",
- "security_session_timeout_max": "Maximum is 1440 minutes",
- "security_password_policy_label": "Password Policy",
- "security_password_policy_basic": "Basic",
- "security_password_policy_standard": "Standard",
- "security_password_policy_strong": "Strong",
- "security_password_policy_basic_tooltip": "Minimum 8 characters.",
- "security_password_policy_standard_tooltip": "10+ chars with upper, lower, and a number.",
- "security_password_policy_strong_tooltip": "12+ chars with upper, lower, number, and symbol.",
- "security_enable_one_provider": "Enable at least one authentication provider.",
- "security_enable_one_provider_error": "At least one authentication provider must be enabled.",
- "security_settings_saved": "Settings saved successfully.",
- "security_local_enabled_info": "Local Authentication enabled to ensure at least one provider is active.",
- "security_oidc_saved": "OIDC configuration saved successfully.",
- "security_save_instructions": "Save your updated settings.",
- "common_save": "Save",
- "common_saving": "Saving…",
- "environments_switch_to_edit_title": "Switch Environment",
- "environments_switch_to_edit_message": "In order to change these settings, you must first switch to this environment. Would you like to switch now?",
- "environments_switch_and_edit": "Switch & Edit Settings",
- "general_projects_heading": "Project Paths",
- "general_projects_description": "Configure where Arcane looks for your Compose files.",
- "general_projects_directory_label": "Projects Directory",
- "general_projects_directory_placeholder": "data/projects",
- "general_projects_directory_help": "Directory where Docker Compose files are stored (this is inside the container)",
- "general_projects_directory_required": "Projects directory is required",
- "general_base_url_label": "Base Server URL",
- "general_base_url_placeholder": "localhost",
- "general_base_url_help": "The Base URL for your docker host. Used when opening containers from the service links",
- "general_base_url_required": "Base server URL is required",
- "general_user_avatars_heading": "User Avatars",
- "general_user_avatars_description": "Control Gravatar usage for profile images.",
- "general_enable_gravatar_label": "Enable Gravatar",
- "general_enable_gravatar_description": "Whether to use Gravatar-based avatars for user accounts",
- "general_settings_saved": "Settings Updated Successfully",
- "general_save_instructions": "Save your updated settings.",
- "docker_enable_polling_label": "Enable Image Polling",
- "docker_enable_polling_description": "Periodically check registries for newer image versions",
- "docker_image_polling_title": "Image Polling",
- "docker_image_polling_description": "Configure automatic image update checking",
- "docker_polling_interval_label": "Polling Interval",
- "docker_polling_interval_placeholder": "60",
- "docker_polling_interval_placeholder_select": "Select interval",
- "docker_polling_interval_description": "How often to check for new images (5-10080 minutes)",
- "docker_auto_update_label": "Auto-update Containers",
- "docker_auto_update_description": "Automatically update containers when newer images are found",
- "docker_auto_update_interval_label": "Auto-update Interval (minutes)",
- "docker_auto_update_interval_placeholder": "60",
- "docker_auto_update_interval_description": "How often to perform automatic updates (5-1440 minutes)",
- "docker_auto_update_alert_title": "Auto-update Enabled",
- "docker_auto_update_alert_description": "Automatic container updates are active with polling enabled",
- "docker_rate_limit_warning_title": "Rate Limiting Warning",
- "docker_rate_limit_warning_description": "Polling intervals below 30 minutes may trigger registry rate limits. Prefer longer intervals in production.",
- "docker_prune_all": "All",
- "docker_prune_all_description": "Remove all images not referenced by containers and include named, unused volumes during System Prune.",
- "docker_prune_dangling": "Dangling",
- "docker_prune_dangling_description": "Remove only dangling (untagged) images and anonymous volumes during System Prune.",
- "docker_prune_mode_description": "Choose how unused images and volumes should be pruned.",
- "docker_prune_action_label": "Docker Prune Action Behavior",
- "docker_prune_placeholder": "Docker PruneMode",
- "docker_prune_group_label": "Prune Modes",
- "docker_title": "Docker",
- "docker_description": "Configure Docker automation behavior and settings.",
- "docker_terminal_settings_title": "Terminal Settings",
- "docker_terminal_settings_description": "Configure default shell for container terminals",
- "docker_default_shell_label": "Default Shell",
- "docker_default_shell_description": "The default shell to use when opening a terminal in a container",
- "docker_default_shell_placeholder": "Select shell",
- "docker_shell_sh_description": "/bin/sh",
- "docker_shell_bash_description": "/bin/bash",
- "docker_shell_ash_description": "/bin/ash",
- "docker_shell_zsh_description": "/bin/zsh",
- "docker_shell_custom_description": "Specify a custom shell path",
- "docker_shell_custom_path_placeholder": "/bin/sh",
- "docker_shell_custom_path_help": "Enter the full path to the shell executable",
- "docker_cleanup_settings_title": "Cleanup Settings",
- "docker_cleanup_settings_description": "Configure how Docker images are pruned",
- "docker_auto_updates_title": "Auto Updates",
- "docker_auto_updates_description": "Automatically update containers when new images are available",
- "networks_delete_title": "Delete Network",
- "networks_delete_confirm_message": "Are you sure you want to delete network \"{name}\"? This action cannot be undone.",
- "networks_delete_failed": "Failed to Remove Network \"{name}\"",
- "networks_delete_success": "Network \"{name}\" Removed Successfully.",
- "networks_delete_selected_title": "Delete {count} network(s)",
- "networks_delete_selected_message": "Are you sure you want to delete {count} selected network(s)? This action cannot be undone.",
- "networks_cannot_delete_default": "Cannot delete default network: {name}",
- "networks_cannot_delete_default_many": "Cannot delete default networks: {names}",
- "networks_empty_title": "No networks found",
- "networks_empty_description": "Create a new network using the Create Network button above or use the Docker CLI.",
- "networks_title": "Networks",
- "networks_subtitle": "Manage your Docker networks",
- "networks_create_button": "Create Network",
- "networks_created_success": "Network \"{name}\" Created Successfully.",
- "networks_create_failed": "Failed to Create Network \"{name}\"",
- "networks_refresh_failed": "Failed to Refresh Networks",
- "networks_total": "Total Networks",
- "unused_networks": "Unused Networks",
- "networks_host": "Host",
- "networks_overlay": "Overlay",
- "networks_macvlan": "Macvlan",
- "networks_none": "None",
- "networks_driver": "Driver",
- "networks_name": "Name",
- "networks_id": "ID",
- "networks_created": "Created",
- "networks_scope": "Scope",
- "networks_labels": "Labels",
- "networks_options": "Options",
- "networks_details_title": "Network Details",
- "networks_details_description": "Basic information about this Docker network",
- "networks_no_additional_info": "No additional information available for this network.",
- "networks_not_found_title": "Network Not Found",
- "networks_not_found_description": "The requested network could not be found or is no longer available.",
- "networks_remove_title": "Remove Network",
- "networks_remove_confirm_message": "Are you sure you want to remove the network \"{name}\"? This action cannot be undone.",
- "networks_remove_failed": "Failed to Remove Network \"{name}\"",
- "networks_remove_success": "Network \"{name}\" Removed Successfully.",
- "networks_bulk_remove_success_one": "Successfully removed 1 network",
- "networks_bulk_remove_success_many": "Successfully removed {count} networks",
- "networks_bulk_remove_failed_one": "Failed to remove 1 network",
- "networks_bulk_remove_failed_many": "Failed to remove {count} networks",
- "common_back_to_networks": "Back to Networks",
+ "common_description": "Description",
+ "common_no_description": "No description provided",
+ "common_no_default_value": "No default value",
"common_view_details": "View Details",
- "common_no_networks_found": "No networks found. Create a new network to get started.",
- "networks_missing_id": "Network ID is missing",
- "networks_in_use_count": "In Use ({count})",
- "networks_predefined": "Predefined",
"common_yes": "Yes",
"common_no": "No",
- "networks_ipam_title": "IPAM Configuration",
- "networks_ipam_description": "IP Address Management settings for this network",
- "networks_ipam_subnet_label": "Subnet",
- "networks_ipam_gateway_label": "Gateway",
- "networks_ipam_iprange_label": "IP Range",
- "networks_ipam_aux_addresses_label": "Auxiliary Addresses",
- "networks_ipam_driver_label": "IPAM Driver",
- "networks_ipam_options_label": "IPAM Options",
- "networks_connected_containers_title": "Connected Containers",
- "networks_connected_containers_description": "{count} container(s) connected to this network",
- "networks_labels_title": "Labels",
- "networks_labels_description": "User-defined metadata attached to this network",
- "networks_options_title": "Options",
- "networks_options_description": "Network driver-specific options",
- "action_failed": "Action Failed",
- "attachable": "Attachable",
- "ipv6_enabled": "IPv6 Enabled",
- "internal": "Internal",
- "images_remove_selected_title": "Remove {count} Image(s)",
- "images_remove_selected_message": "Are you sure you want to remove the selected image(s)? This action cannot be undone.",
- "images_remove_failed": "Failed to remove image",
- "images_remove_success_one": "Successfully removed 1 image",
- "images_remove_success_many": "Successfully removed {count} images",
- "images_remove_failed_one": "Failed to remove 1 image",
- "images_remove_failed_many": "Failed to remove {count} images",
- "images_remove_title": "Remove Image",
- "images_remove_message": "Are you sure you want to remove this image? This action cannot be undone.",
- "images_remove_success": "Image removed successfully",
- "images_pull_no_tag": "Cannot pull image without repository tag",
- "images_pull_failed": "Failed to pull image",
- "images_pull_success": "Successfully pulled {repoTag}",
- "images_pulling": "Pulling…",
- "images_pull": "Pull",
- "images_untagged": "Untagged",
"common_na": "N/A",
- "images_repository": "Repository",
- "images_image_id": "Image ID",
- "images_size": "Size",
- "images_updates": "Updates",
- "images_title": "Images",
- "images_subtitle": "View and Manage your Container Images",
- "images_pull_image": "Pull Image",
- "images_check_updates": "Check Updates",
- "images_prune_unused": "Prune Unused",
- "images_total": "Total Images",
- "images_total_size": "Total Size",
- "images_prune_failed": "Failed to Prune Images",
- "images_pruned_success": "Images Pruned Successfully",
- "images_update_check_completed": "Update check completed",
- "images_update_check_failed": "Failed to check for updates",
- "images_refresh_failed": "Failed to Refresh Images",
- "images_prune_confirm_title": "Prune Unused Images",
- "images_prune_confirm_description": "Removes unused Docker images (prune mode: {mode}). This frees disk space and cannot be undone. Images referenced by any container will not be removed.",
"common_cancel": "Cancel",
- "images_prune_action": "Prune Images",
- "images_pruning": "Pruning…",
- "images_checking": "Checking…",
- "images_details_title": "Image Details",
- "images_details_description": "Essential information about this image",
- "images_tags_description": "Repository tags associated with this image",
- "images_env_vars_description": "Environment variables defined in this image",
- "images_tags_title": "Tags",
- "images_env_vars_title": "Environment Variables",
- "images_architecture": "Architecture",
- "images_os": "OS",
- "images_not_found_title": "Image not found.",
- "common_back_to_images": "Back to Images",
- "events_delete_title": "Delete Event",
- "events_delete_confirm_message": "Are you sure you want to delete the event \"{title}\"? This action cannot be undone.",
- "events_delete_failed": "Failed to delete event \"{title}\"",
- "events_delete_success": "Event \"{title}\" deleted successfully.",
- "events_col_severity": "Severity",
- "events_col_type": "Type",
- "events_col_resource": "Resource",
- "events_col_time": "Time",
- "events_title": "Event Log",
- "events_subtitle": "Monitor events that have taken place in Arcane.",
- "events_refresh_failed": "Failed to refresh events",
- "events_remove_selected": "Remove Selected",
- "events_delete_selected_title": "Delete {count} Event(s)",
- "events_delete_selected_message": "Are you sure you want to delete the selected event(s)? This action cannot be undone.",
- "events_delete_item_failed": "Failed to delete event {id}",
- "events_delete_success_one": "Successfully deleted 1 event",
- "events_delete_success_many": "Successfully deleted {count} events",
- "events_delete_failed_one": "Failed to delete 1 event",
- "events_delete_failed_many": "Failed to delete {count} events",
- "events_total": "Total Events",
- "events_total_subtitle": "All recorded events",
- "events_info": "Info",
- "events_info_subtitle": "Information events",
- "events_success": "Success",
- "events_success_subtitle": "Successful operations",
- "events_warning": "Warning",
- "events_warning_subtitle": "Warning events",
- "events_error": "Error",
- "events_error_subtitle": "Error events",
- "environments_remove_selected_title": "Remove {count} Environment(s)",
- "environments_remove_selected_message": "Are you sure you want to remove the selected environment(s)? This action cannot be undone.",
- "environments_bulk_remove_success_one": "Removed 1 environment",
- "environments_bulk_remove_success_many": "Removed {count} environments",
- "environments_bulk_remove_failed_one": "Failed to remove 1 environment",
- "environments_bulk_remove_failed_many": "Failed to remove {count} environments",
- "environments_delete_title": "Remove Environment",
- "environments_delete_message": "Are you sure you want to remove \"{name}\"? This action cannot be undone.",
- "environments_delete_failed": "Failed to remove environment \"{name}\"",
- "environments_delete_success": "Removed \"{name}\"",
- "environments_test_connection": "Test Connection",
- "environments_test_connection_failed": "Failed to test connection",
- "environments_test_connection_success": "Connection successful",
- "environments_test_connection_error": "Connection failed",
- "environments_api_url": "API URL",
+ "common_confirm": "Confirm",
+ "common_image": "Image",
+ "common_state": "State",
+ "common_start": "Start",
+ "common_restart": "Restart",
+ "common_stop": "Stop",
+ "common_up": "Up",
+ "common_down": "Down",
+ "common_retry": "Retry",
+ "common_autoscroll": "Auto-scroll",
+ "common_live": "Live",
+ "common_rw": "RW",
+ "common_ro": "RO",
+ "common_save": "Save",
+ "common_saving": "Saving…",
+ "common_clear": "Clear",
+ "common_view_all": "View All",
+ "common_password": "Password",
+ "common_author": "Author",
+ "common_working_dir": "Working Dir",
+ "common_docker_version": "Docker Version",
+ "common_docker_compose": "Docker Compose",
+ "common_view_on_github": "View on GitHub",
+ "common_loading": "Loading...",
"common_enabled": "Enabled",
"common_disabled": "Disabled",
"common_online": "Online",
"common_offline": "Offline",
- "environments_title": "Environments",
- "environments_subtitle": "Manage and monitor your Arcane environments",
- "environments_remove_selected_button": "Remove Selected",
- "environments_add_button": "Add Environment",
- "environments_refresh_failed": "Failed to refresh environments",
- "environments_created_success": "Environment added successfully",
- "environments_page_subtitle": "Environment details and management",
- "environments_sections_title": "Sections",
- "environments_section_overview": "Overview",
- "environments_section_connection": "Connection",
- "environments_section_pairing": "Pair/Rotate",
- "environments_overview_title": "Environment Overview",
- "environments_environment_id_label": "Environment ID",
- "environments_connection_title": "Connection Details",
- "environments_testing_connection": "Testing Connection...",
- "environments_pair_rotate_title": "Pair / Rotate Agent Token",
- "environments_pair_rotate_description": "The token is stored securely on the server and not displayed. Use a Bootstrap Token to pair or rotate.",
- "environments_bootstrap_label": "Bootstrap Token",
- "environments_bootstrap_placeholder": "Enter AGENT_BOOTSTRAP_TOKEN",
- "environments_pair_rotate_action": "Pair / Rotate",
- "environments_refreshing": "Refreshing...",
- "common_clear": "Clear",
- "dashboard_title": "Dashboard",
- "dashboard_subtitle": "Overview of your Container Environment",
- "dashboard_system_overview": "System Overview",
- "dashboard_start_all_failed": "Failed to start all containers",
- "dashboard_start_all_success": "All containers started successfully",
- "dashboard_stop_all_title": "Stop All Containers",
- "dashboard_stop_all_confirm": "Are you sure you want to stop all running containers? This will not stop arcane itself.",
- "dashboard_stop_all_failed": "Failed to stop all running containers",
- "dashboard_stop_all_success": "All containers stopped successfully",
- "dashboard_prune_failed": "Failed to prune {types}",
- "dashboard_prune_success_one": "{types} was pruned successfully.",
+ "common_copy": "Copy",
+ "common_copy_json": "Copy JSON",
+ "common_copied": "Copied to clipboard",
+ "common_copy_failed": "Failed to copy",
+ "common_close": "Close",
+ "common_invalid_url": "Must be a valid URL",
+ "common_invalid_email": "Must be a valid email",
+ "common_select_option": "Select an option",
+ "common_sort_by": "Sort by",
+ "common_no_results_found": "No results found.",
+ "common_clear_filters": "Clear filters",
+ "common_selected_count": "{count} selected",
+ "common_search": "Search...",
+ "common_usage": "Usage",
+ "common_reset": "Reset",
+ "common_remove_selected_count": "Remove Selected ({count})",
+ "common_toggle_columns": "Toggle columns",
+ "common_select_all": "Select all",
+ "common_select_row": "Select row",
+ "common_showing_of_total": "Showing {shown} of {total} item(s).",
+ "common_rows_per_page": "Rows per page",
+ "common_go_first_page": "Go to first page",
+ "common_go_prev_page": "Go to previous page",
+ "common_go_next_page": "Go to next page",
+ "common_go_last_page": "Go to last page",
+ "common_page_of": "Page {page} of {total}",
+ "common_sort_asc": "Asc",
+ "common_sort_desc": "Desc",
+ "common_hide": "Hide",
+ "common_processing": "Processing...",
+ "common_loading_label": "Loading - {label}",
+ "common_create": "Create",
+ "common_duplicate": "Duplicate",
+ "common_logs": "Logs",
+ "common_select_locale": "Select locale",
+ "common_continue": "Continue",
+ "common_skip": "Skip",
+ "common_show": "Show",
+ "common_registry": "Registry",
+ "common_toggle_theme": "Toggle theme",
+ "common_logout": "Logout",
+ "common_redeploy": "Redeploy",
+ "common_use_template": "Use Template",
+
+ "_comment_common_actions": "=== COMMON - ACTION STATES ===",
+ "common_action_creating": "Creating...",
+ "common_action_deleting": "Deleting...",
+ "common_action_starting": "Starting...",
+ "common_action_stopping": "Stopping...",
+ "common_action_pulling": "Pulling...",
+ "common_action_checking": "Checking...",
+ "common_action_pruning": "Pruning...",
+ "common_action_deploying": "Deploying...",
+ "common_action_downloading": "Downloading...",
+ "common_action_restarting": "Restarting...",
+ "common_action_removing": "Removing...",
+ "common_action_redeploying": "Redeploying...",
+ "common_action_inspecting": "Inspecting...",
+ "common_action_confirming": "Confirming...",
+ "common_action_cancelling": "Cancelling...",
+ "common_action_fetching_logs": "Fetching...",
+ "common_action_failed": "Action Failed",
+ "common_action_failed_with_type": "Failed to {action} {type}",
+
+ "_comment_common_crud": "=== COMMON - CRUD MESSAGES ===",
+ "common_create_success": "{resource} created successfully",
+ "common_create_failed": "Failed to create {resource}",
+ "common_update_success": "{resource} updated successfully",
+ "common_update_failed": "Failed to update {resource}",
+ "common_delete_success": "{resource} deleted successfully",
+ "common_delete_failed": "Failed to delete {resource}",
+ "common_remove_success": "{resource} removed successfully",
+ "common_remove_failed": "Failed to remove {resource}",
+ "common_started_success": "{type} Started Successfully",
+ "common_stopped_success": "{type} Stopped Successfully",
+ "common_restarted_success": "{type} Restarted Successfully",
+ "common_removed_success": "{type} Removed Successfully",
+ "common_destroyed_success": "{type} Destroyed Successfully",
+ "common_redeploy_success": "{type} Redeployed Successfully",
+ "common_bulk_remove_success": "Successfully removed {count} {resource}",
+ "common_bulk_remove_failed": "Failed to remove {count} {resource}",
+ "common_bulk_delete_success": "Successfully deleted {count} {resource}",
+ "common_bulk_delete_failed": "Failed to delete {count} {resource}",
+
+ "_comment_common_confirmations": "=== COMMON - CONFIRMATION DIALOGS ===",
+ "common_delete_title": "Delete {resource}",
+ "common_delete_selected_title": "Delete {count} {resource}",
+ "common_delete_confirm": "Are you sure you want to delete {resource}? This action cannot be undone.",
+ "common_remove_title": "Remove {resource}",
+ "common_remove_confirm": "Are you sure you want to remove {resource}? This action cannot be undone.",
+ "common_confirm_removal_title": "Confirm Removal",
+ "common_confirm_removal_message": "Are you sure you want to remove this {type}? This action is DESTRUCTIVE and cannot be undone.",
+ "common_confirm_destroy_message": "Are you sure you want to destroy this {type}? This action is DESTRUCTIVE and will remove associated resources and cannot be undone.",
+ "common_confirm_redeploy_title": "Confirm Redeploy",
+ "common_confirm_redeploy_message": "Are you sure you want to redeploy this project? This will pull the latest images and recreate containers as needed.",
+ "confirm_remove_project_files": "Remove project files",
+ "confirm_remove_volumes_warning": "Remove volumes (Warning: Data will be lost)",
+
+ "_comment_common_ui": "=== COMMON - UI COMPONENTS ===",
+ "common_no_items_found": "No {resource} found",
+ "common_empty_state_description": "Create a new {resource} using the button above.",
+ "common_details_title": "{resource} Details",
+ "common_details_description": "Basic information about this {resource}",
+ "common_labels_description": "Metadata labels attached to this {resource} for organization and automation",
+ "common_create_button": "Create {resource}",
+ "common_add_button": "Add {resource}",
+
+ "_comment_common_validation": "=== COMMON - VALIDATION ===",
+ "common_field_required": "{field} is required",
+ "common_invalid_format": "{field} must be a valid {format}",
+ "common_field_too_long": "{field} is too long (max {max} characters)",
+ "common_username_required": "Username is required",
+
+ "_comment_resources": "=== RESOURCE NAMES ===",
+ "resource_volume": "volume",
+ "resource_volume_cap": "Volume",
+ "resource_volumes": "volumes",
+ "resource_volumes_cap": "Volumes",
+ "resource_network": "network",
+ "resource_network_cap": "Network",
+ "resource_networks": "networks",
+ "resource_networks_cap": "Networks",
+ "resource_user": "user",
+ "resource_user_cap": "User",
+ "resource_users": "users",
+ "resource_users_cap": "Users",
+ "resource_registry": "registry",
+ "resource_registry_cap": "Registry",
+ "resource_registries": "registries",
+ "resource_registries_cap": "Registries",
+ "resource_environment": "environment",
+ "resource_environment_cap": "Environment",
+ "resource_environments": "environments",
+ "resource_environments_cap": "Environments",
+ "resource_project": "project",
+ "resource_project_cap": "Project",
+ "resource_projects": "projects",
+ "resource_projects_cap": "Projects",
+ "resource_container": "container",
+ "resource_container_cap": "Container",
+ "resource_containers": "containers",
+ "resource_containers_cap": "Containers",
+ "resource_image": "image",
+ "resource_image_cap": "Image",
+ "resource_images": "images",
+ "resource_images_cap": "Images",
+ "resource_template": "template",
+ "resource_template_cap": "Template",
+ "resource_templates": "templates",
+ "resource_templates_cap": "Templates",
+
+ "_comment_auth": "=== AUTHENTICATION ===",
+ "auth_welcome_back_title": "Welcome back",
+ "auth_login_subtitle": "Sign in to manage your containers",
+ "auth_login_problem_title": "Login Problem",
+ "auth_failed_title": "Authentication Failed",
+ "auth_no_login_methods_title": "No Login Methods Configured",
+ "auth_no_login_methods_description": "There are currently no login methods enabled. Please contact an administrator.",
+ "auth_enter_credentials_required": "Please enter both username and password",
+ "auth_welcome_back_toast": "Welcome Back, {name}",
+ "auth_username_placeholder": "Enter your username or email",
+ "auth_password_placeholder": "Enter your password",
+ "auth_signing_in": "Signing in...",
+ "auth_signin_button": "Sign in to Arcane",
+ "auth_or_continue": "Or continue with",
+ "auth_tagline": "Modern Docker Management, Designed for Everyone.",
+ "auth_login_failed": "Login failed",
+ "auth_processing_login": "Processing Login...",
+ "auth_processing_login_description": "Please wait while we complete your authentication.",
+ "auth_authentication_error_title": "Authentication Error",
+ "auth_redirecting_to_login": "Redirecting you back to login...",
+ "auth_oidc_signin": "Sign in with OIDC Provider",
+ "auth_oidc_invalid_response": "There was an issue with the OIDC login response. Please try again.",
+ "auth_oidc_misconfigured": "OIDC is not configured correctly on the server. Please contact an administrator.",
+ "auth_oidc_userinfo_failed": "Could not retrieve your user information from the OIDC provider.",
+ "auth_oidc_missing_sub": "Your OIDC provider did not return a subject identifier.",
+ "auth_oidc_email_collision": "An account with your email already exists but is linked to a different OIDC identity. Please contact an administrator.",
+ "auth_oidc_token_error": "There was an error obtaining tokens from the OIDC provider.",
+ "auth_user_processing_failed": "An error occurred while processing your user account.",
+ "auth_unexpected_error": "An unexpected error occurred. Please try again.",
+ "auth_oidc_provider_error": "Authentication was cancelled or failed.",
+ "auth_oidc_access_denied": "Access was denied. You may have cancelled the login or lack permission.",
+ "auth_oidc_invalid_request": "Invalid authentication request. Please try again.",
+ "auth_oidc_auth_failed": "Authentication failed. Please try again.",
+ "auth_oidc_state_mismatch": "Security validation failed. Please try logging in again.",
+ "auth_oidc_session_expired": "Authentication session expired. Please try again.",
+ "auth_oidc_user_info_missing": "Authentication succeeded but user information is missing.",
+ "auth_oidc_callback_error": "An error occurred during authentication. Please try again.",
+ "auth_oidc_network_error": "Network error during authentication. Please check your connection and try again.",
+ "auth_oidc_url_generation_failed": "Unable to generate authentication URL. Please try again or contact your administrator.",
+ "auth_oidc_init_failed": "Failed to initiate OIDC login. Please try again.",
+ "auth_oidc_redirecting_title": "Redirecting to Login...",
+ "auth_oidc_redirecting_description": "Please wait while we redirect you to your identity provider.",
+
+ "_comment_dashboard": "=== DASHBOARD ===",
+ "dashboard_title": "Dashboard",
+ "dashboard_subtitle": "Overview of your Container Environment",
+ "dashboard_system_overview": "System Overview",
+ "dashboard_docker_overview": "Docker Overview",
+ "dashboard_docker_details_title": "Docker Details",
+ "dashboard_start_all_failed": "Failed to start all containers",
+ "dashboard_start_all_success": "All containers started successfully",
+ "dashboard_stop_all_title": "Stop All Containers",
+ "dashboard_stop_all_confirm": "Are you sure you want to stop all running containers? This will not stop arcane itself.",
+ "dashboard_stop_all_failed": "Failed to stop all running containers",
+ "dashboard_stop_all_success": "All containers stopped successfully",
+ "dashboard_prune_failed": "Failed to prune {types}",
+ "dashboard_prune_success_one": "{types} was pruned successfully.",
"dashboard_prune_success_many": "{types} were pruned successfully.",
"dashboard_meter_running": "Running Containers",
"dashboard_meter_running_desc": "Active containers",
@@ -393,128 +334,39 @@
"dashboard_meter_disk_used": "Used",
"dashboard_meter_disk_free": "Free",
"dashboard_meter_disk_monitoring": "Monitoring: {path}",
- "disk_usage_settings": "Disk Usage Settings",
- "disk_usage_settings_description": "Configure which directory to monitor for disk usage metrics.",
- "disk_usage_save": "Disk usage path updated successfully",
- "disk_usage_save_failed": "Failed to update disk usage path",
- "directory_path": "Directory Path",
- "dashboard_docker_details_title": "Docker Details",
- "common_confirm": "Confirm",
+ "dashboard_meter_disk_total": "Total",
+
+ "_comment_containers": "=== CONTAINERS ===",
"containers_title": "Containers",
+ "containers_subtitle": "View and Manage your Containers",
"containers_recent": "Recent containers",
- "common_view_all": "View All",
- "common_image": "Image",
- "common_state": "State",
"containers_showing_of_total": "Showing {shown} of {total} containers",
- "images_tag": "Tag",
- "images_top_largest": "Top 5 Largest Images",
- "images_showing_of_total": "Showing {shown} of {total} images",
- "images_none_label": "<none>",
- "images_tag_latest": "latest",
- "registry_docker_hub": "Docker Hub",
- "registry_github_container_registry": "GitHub Container Registry",
- "registry_google_container_registry": "Google Container Registry",
- "registry_quay_io": "Quay.io Registry",
- "registries_remove_selected_title": "Remove {count} Registry(ies)",
- "registries_remove_selected_message": "Are you sure you want to remove the selected registry(ies)? This action cannot be undone.",
- "registries_bulk_remove_success": "Removed {count} registries",
- "registries_bulk_remove_failed": "Failed to remove {count} registries",
- "registries_remove_title": "Remove Registry",
- "registries_remove_message": "Are you sure you want to remove the registry \"{url}\"? This action cannot be undone.",
- "registries_delete_failed": "Failed to delete registry \"{url}\"",
- "registries_delete_success": "Registry \"{url}\" removed successfully.",
- "registries_test_connection": "Test Connection",
- "registries_test_failed": "Failed to test registry \"{url}\"",
- "registries_test_success": "Registry test passed: {url} - {message}",
- "registries_url": "Registry URL",
- "common_description": "Description",
- "common_no_description": "No description provided",
- "registries_title": "Container Registries",
- "registries_subtitle": "Configure access credentials for private Docker registries and container repositories",
- "registries_add_button": "Add Registry",
- "registries_refreshed": "Registries Refreshed!",
- "registries_refresh_failed": "Failed to Refresh Registries",
- "registries_credentials_title": "Docker Registry Credentials",
- "registries_credentials_description": "Manage authentication credentials for private Docker registries like Docker Hub, GitHub Container Registry, Google Container Registry, and custom registries",
- "registries_info_title": "Registry Information",
- "registries_info_description": "Common registry URLs and authentication requirements",
- "registries_popular_public_title": "Popular Public Registries",
- "registry_docker_hub_url": "docker.io",
- "registry_github_url": "ghcr.io",
- "registry_google_url": "gcr.io",
- "registry_quay_url": "quay.io",
- "registries_auth_notes_title": "Authentication Notes",
- "registries_auth_notes_bullet_docker_hub": "Docker Hub requires credentials for private repositories",
- "registries_auth_notes_bullet_github": "GitHub uses personal access tokens as passwords",
- "registries_auth_notes_bullet_anonymous": "Some registries support anonymous access for public images",
- "registries_auth_notes_bullet_encrypted": "Credentials are encrypted and stored securely",
- "registries_update_success": "Registry updated successfully",
- "registries_create_success": "Registry created successfully",
- "registries_save_failed": "Failed to save registry",
- "templates_title": "Template Registries",
- "templates_subtitle": "Manage Docker Compose template sources and registries",
- "templates_learn_more": "Learn more",
- "templates_refresh": "Refresh Templates",
- "templates_local_templates": "Local Templates",
- "templates_remote_templates": "Remote Templates",
- "templates_registries": "Registries",
- "templates_registries_section_title": "Template Registries",
- "templates_alert_remote_registries_title": "Remote Registries",
- "templates_alert_remote_registries_description": "Add remote template registries to access community templates. Registries should provide a JSON manifest with template definitions and download URLs.",
- "templates_community_registry_title": "Community Registry",
- "templates_community_registry_description": "Get started quickly with our community registry containing popular templates:",
- "templates_no_registries_title": "No registries configured",
- "templates_no_registries_description": "Add a remote template registry to access community templates",
- "templates_registry_not_found": "Registry not found",
- "templates_registry_removed_success": "Registry removed successfully",
- "templates_refreshed": "Templates refreshed successfully",
- "templates_refresh_failed": "Failed to refresh templates",
+ "containers_create_failed": "Failed to Create Container",
"containers_start_failed": "Failed to start container",
"containers_start_success": "Container started successfully",
"containers_stop_failed": "Failed to stop container",
"containers_stop_success": "Container stopped successfully",
"containers_restart_failed": "Failed to restart container",
"containers_restart_success": "Container restarted successfully",
+ "containers_check_updates": "Update Containers",
+ "containers_check_updates_failed": "Failed to Check Containers for Updates",
+ "containers_check_updates_success": "Containers Updated Successfully.",
"containers_remove_confirm_title": "Confirm Container Removal",
"containers_remove_confirm_message": "Are you sure you want to remove this container? This action cannot be undone.",
"containers_remove_force_label": "Force remove (kill the container if running)",
"containers_remove_volumes_label": "Remove container volumes",
- "containers_remove_failed": "Failed to remove container",
- "containers_remove_success": "Container removed successfully",
+ "containers_remove_files_label": "Remove project files from storage",
"containers_action_error": "An error occurred while performing the action",
- "common_start": "Start",
- "common_restart": "Restart",
- "common_stop": "Stop",
- "containers_subtitle": "View and Manage your Containers",
- "containers_create_button": "Create Container",
- "containers_check_updates": "Update Containers",
- "containers_total": "Total",
- "containers_running": "Running",
- "containers_stopped": "Stopped",
- "containers_check_updates_failed": "Failed to Check Containers for Updates",
- "containers_check_updates_success": "Containers Updated Successfully.",
- "containers_refresh_failed": "Failed to Refresh Containers",
- "containers_create_failed": "Failed to Create Container",
- "containers_create_success": "Container Created Successfully.",
- "common_back": "Back",
- "common_back_to_containers": "Back to Containers",
- "common_retry": "Retry",
- "common_autoscroll": "Auto-scroll",
- "common_live": "Live",
- "common_rw": "RW",
- "common_ro": "RO",
- "containers_nav_overview": "Overview",
+ "containers_group_by_project": "Group by Project",
"containers_nav_metrics": "Metrics",
"containers_nav_logs": "Logs",
- "containers_nav_config": "Configuration",
"containers_nav_networks": "Networks",
"containers_nav_storage": "Storage",
- "containers_details_title": "Container Details",
- "containers_details_description": "Essential information about this container instance",
"containers_ip_address": "IP Address",
- "containers_command": "Command",
"containers_system": "System",
- "containers_working_directory": "Working Directory",
+ "containers_mac_address": "MAC Address",
+ "containers_subnet": "Subnet",
+ "containers_aliases": "Aliases",
"containers_health_label": "Health",
"containers_health_last_check": "Last check: {time}",
"containers_resource_metrics": "Resource Metrics",
@@ -539,8 +391,6 @@
"containers_stats_errors": "Errors",
"containers_stats_dropped": "Dropped",
"containers_stats_memory_details": "Memory Details",
- "containers_stats_memory_usage": "Usage",
- "containers_stats_memory_limit": "Limit",
"containers_stats_memory_rss": "RSS",
"containers_stats_memory_active_file": "Active File",
"containers_stats_memory_inactive_file": "Inactive File",
@@ -549,26 +399,21 @@
"containers_stats_cpu_details": "CPU Details",
"containers_stats_cpu_limit": "CPU Limit",
"containers_stats_cpu_unit_singular": "CPU",
- "containers_stats_cpu_unit_plural": "CPUs",
- "containers_stats_cpu_usage": "Usage",
"containers_stats_cpu_user_mode": "User Mode",
"containers_stats_cpu_kernel_mode": "Kernel Mode",
"containers_stats_cpu_throttled_periods": "Throttled Periods",
"containers_stats_cpu_throttled_time": "Throttled Time",
"containers_logs_title": "Container Logs",
"containers_logs_description": "Real-time container logs",
- "containers_configuration_title": "Configuration",
"containers_env_ports_labels_title": "Environment, Ports & Labels",
"containers_env_ports_labels_description": "Runtime configuration and metadata for this container",
- "containers_env_vars_title": "Environment Variables",
"containers_env_vars_description": "Runtime environment variables for your container",
"containers_no_env_vars": "No environment variables",
- "containers_port_mappings": "Port Mappings",
"containers_port_mappings_description": "Network ports exposed by this container for external access",
"containers_not_published": "Not published",
"containers_no_ports": "No ports",
- "common_labels_description": "Metadata labels attached to this container for organization and automation",
"containers_no_labels_defined": "No labels defined",
+ "containers_labels_description": "Enter metadata labels as key=value pairs, one per line",
"containers_networks_title": "Networks",
"containers_networks_description": "Network interfaces and connectivity configuration for this container",
"containers_no_networks_connected": "No networks connected",
@@ -582,258 +427,553 @@
"containers_mount_label_host": "Host:",
"containers_mount_label_source": "Source:",
"containers_no_mounts_configured": "No volumes or mounts configured",
- "containers_not_found_title": "Container Not Found",
- "containers_not_found_description": "Could not load container data. It may have been removed or the Docker engine is not accessible.",
- "containers_gateway": "Gateway",
- "containers_mac_address": "MAC Address",
- "containers_subnet": "Subnet",
- "containers_aliases": "Aliases",
- "compose_services": "Services",
- "compose_services_description": "Docker Compose services and their current status",
- "compose_active_container": "Active container",
- "compose_start_failed": "Failed to start project",
- "compose_start_success": "Project started successfully.",
- "compose_stop_failed": "Failed to stop project",
- "compose_stop_success": "Project stopped successfully.",
- "compose_restart_failed": "Failed to restart project",
- "compose_restart_success": "Project restarted successfully.",
- "compose_pull_failed": "Failed to pull project",
- "compose_pull_success": "Project pulled successfully.",
- "compose_pull_redeploy": "Pull & Redeploy",
- "compose_confirm_removal_title": "Confirm Removal",
- "compose_confirm_removal_message": "Are you sure you want to remove this Project? This action cannot be undone.",
- "compose_destroy_failed": "Failed to remove project",
- "compose_destroy_success": "Project removed successfully.",
- "compose_destroy": "Destroy",
- "projects_title": "Projects",
- "compose_subtitle": "View and Manage Compose Projects",
- "compose_update_projects": "Update Projects",
- "compose_create_project": "Create Project",
- "compose_total": "Total Projects",
- "compose_running": "Running",
- "compose_stopped": "Stopped",
- "compose_update_failed": "Failed to Check Compose Projects for Updates",
- "compose_update_success": "Compose Projects Updated Successfully.",
- "compose_refresh_failed": "Failed to Refresh Projects",
- "compose_new_title": "Create New Project",
- "compose_converter_title": "Docker Run to Compose Converter",
- "compose_converter_description": "Convert existing docker run commands to Docker Compose format",
- "compose_docker_run_command_label": "Docker Run Command",
- "compose_docker_run_placeholder": "docker run -d --name my-app -p 8080:80 nginx:alpine",
- "compose_example_commands_label": "Example Commands:",
- "compose_example_command_1": "docker run -d --name nginx -p 8080:80 -v nginx_data:/usr/share/nginx/html nginx:alpine",
- "compose_example_command_2": "docker run -d --name postgres -e POSTGRES_DB=mydb -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pass -v postgres_data:/var/lib/postgresql/data postgres:15",
- "compose_example_command_3": "docker run -d --name redis -p 6379:6379 --restart unless-stopped redis:alpine",
- "compose_converting": "Converting...",
- "compose_convert_action": "Convert to Compose",
- "compose_use_template": "Use Template",
- "compose_convert_from_docker_run": "Convert from Docker Run",
- "compose_creating": "Creating...",
- "compose_project_name_required": "Project name is required",
- "compose_project_name_invalid": "Only letters, numbers, and hyphens are allowed",
- "compose_compose_content_required": "Compose content is required",
- "compose_name_placeholder": "e.g., my-web-app",
- "compose_name_hint": "Use letters, numbers, and hyphens only.",
- "compose_compose_file_title": "Docker Compose File",
- "compose_yaml_label": "YAML",
- "compose_env_title": "Environment (.env)",
- "compose_env_kv_label": "Key=Value",
- "compose_compose_placeholder": "Enter YAML...",
- "compose_env_placeholder": "Enter environment variables...",
- "compose_convert_failed": "Failed to Convert Docker Run Command",
- "compose_convert_success": "Docker run command converted successfully!",
- "compose_enter_docker_run_command": "Please enter a docker run command",
- "compose_template_loaded": "Template \"{name}\" loaded successfully!",
- "compose_create_failed": "Failed to Create Project",
- "compose_create_success": "Project \"{name}\" created successfully.",
- "compose_name_label": "Project Name",
- "compose_nav_overview": "Overview",
- "compose_nav_services": "Services",
- "compose_nav_config": "Configuration",
- "compose_nav_logs": "Logs",
- "compose_overview_title": "Overview",
- "compose_exposed_ports": "Exposed Ports",
- "compose_services_header": "Services ({count})",
- "compose_no_services_found": "No services found for this project",
- "compose_service_not_created": "Not created",
- "compose_configuration_title": "Configuration",
- "compose_name_change_not_allowed": "Project name cannot be changed while running. Please stop the project first.",
- "compose_logs_title": "Project Logs",
- "compose_error_loading_stack_title": "Error Loading Project",
- "compose_not_found_title": "Project Not Found",
- "compose_not_found_description": "Could not load Project data. It may have been removed or the Docker engine is not accessible.",
- "compose_back_to_projects": "Back to Projects",
- "auth_welcome_back_title": "Welcome back",
- "auth_login_subtitle": "Sign in to manage your containers",
- "auth_login_problem_title": "Login Problem",
- "auth_oidc_invalid_response": "There was an issue with the OIDC login response. Please try again.",
- "auth_oidc_misconfigured": "OIDC is not configured correctly on the server. Please contact an administrator.",
- "auth_oidc_userinfo_failed": "Could not retrieve your user information from the OIDC provider.",
- "auth_oidc_missing_sub": "Your OIDC provider did not return a subject identifier.",
- "auth_oidc_email_collision": "An account with your email already exists but is linked to a different OIDC identity. Please contact an administrator.",
- "auth_oidc_token_error": "There was an error obtaining tokens from the OIDC provider.",
- "auth_user_processing_failed": "An error occurred while processing your user account.",
- "auth_unexpected_error": "An unexpected error occurred. Please try again.",
- "auth_failed_title": "Authentication Failed",
- "auth_no_login_methods_title": "No Login Methods Configured",
- "auth_no_login_methods_description": "There are currently no login methods enabled. Please contact an administrator.",
- "auth_oidc_signin": "Sign in with OIDC Provider",
- "auth_enter_credentials_required": "Please enter both username and password",
- "auth_welcome_back_toast": "Welcome Back, {name}",
- "auth_username_placeholder": "Enter your username or email",
- "auth_password_placeholder": "Enter your password",
- "auth_signing_in": "Signing in...",
- "auth_signin_button": "Sign in to Arcane",
- "auth_or_continue": "Or continue with",
- "auth_tagline": "Modern Docker Management, Designed for Everyone.",
- "common_password": "Password",
- "common_author": "Author",
- "common_working_dir": "Working Dir",
- "common_docker_version": "Docker Version",
- "common_view_on_github": "View on GitHub",
- "auth_login_failed": "Login failed",
- "auth_processing_login": "Processing Login...",
- "auth_processing_login_description": "Please wait while we complete your authentication.",
- "auth_authentication_error_title": "Authentication Error",
- "auth_redirecting_to_login": "Redirecting you back to login...",
- "auth_oidc_provider_error": "Authentication was cancelled or failed.",
- "auth_oidc_access_denied": "Access was denied. You may have cancelled the login or lack permission.",
- "auth_oidc_invalid_request": "Invalid authentication request. Please try again.",
- "auth_oidc_auth_failed": "Authentication failed. Please try again.",
- "auth_oidc_state_mismatch": "Security validation failed. Please try logging in again.",
- "auth_oidc_session_expired": "Authentication session expired. Please try again.",
- "auth_oidc_user_info_missing": "Authentication succeeded but user information is missing.",
- "auth_oidc_callback_error": "An error occurred during authentication. Please try again.",
- "auth_oidc_network_error": "Network error during authentication. Please check your connection and try again.",
- "auth_oidc_url_generation_failed": "Unable to generate authentication URL. Please try again or contact your administrator.",
- "auth_oidc_init_failed": "Failed to initiate OIDC login. Please try again.",
- "auth_oidc_redirecting_title": "Redirecting to Login...",
- "auth_oidc_redirecting_description": "Please wait while we redirect you to your identity provider.",
- "quick_actions_title": "Quick Actions",
- "quick_actions_start_all": "Start All Stopped",
- "quick_actions_stop_all": "Stop All Running",
- "quick_actions_prune_system": "Prune System",
- "quick_actions_prune_description": "Clean unused resources",
- "quick_actions_containers": "{count} containers",
- "progress_title": "Progress",
- "progress_subtitle": "Working…",
- "progress_preparing": "Preparing...",
- "progress_pull_completed": "Pull Completed",
- "progress_in_progress_note": "This may take a while depending on size and connection.",
- "progress_completed_success": "Completed successfully!",
- "meter_footer_usage": "{percent}% of resources being used",
- "log_stream_connection_lost": "Connection to {type} log stream lost",
- "log_stream_closed_by_server": "{type} log stream was closed by server",
- "log_stream_failed_connect": "Failed to connect to {type} log stream",
- "log_stream_no_project_selected": "No project selected. Please select a project to view logs.",
- "log_stream_no_container_selected": "No container selected. Please select a container to view logs.",
- "log_viewer_stopping": "Stopping {type} log stream",
- "log_viewer_connected": "{type} log stream connected",
- "log_viewer_no_selection": "No {type} selected",
- "log_viewer_no_logs_available": "No logs available. Start streaming to see logs.",
- "log_viewer_waiting_for_logs": "Waiting for logs...",
- "log_tail_50_lines": "50 lines",
- "log_tail_100_lines": "100 lines",
- "log_tail_200_lines": "200 lines",
- "log_tail_500_lines": "500 lines",
- "log_tail_1000_lines": "1000 lines",
- "log_tail_all_lines": "All logs",
- "log_refresh_aria_label": "Refresh logs",
"container": "Container",
- "project": "Project",
- "common_loading": "Loading...",
- "image_update_auth_credential": "Credential",
- "image_update_auth_credential_with_user": "Credential ({username})",
- "image_update_auth_anonymous": "Anonymous",
- "image_update_auth_none": "No Auth",
- "image_update_check_failed_title": "Update Check Failed",
- "image_update_could_not_query_registry": "Could not query the registry",
- "image_update_error_label": "Error:",
- "image_update_image_label": "Image:",
- "image_update_up_to_date_title": "Up to Date",
- "image_update_up_to_date_desc": "No updates available",
- "image_update_running_prefix": "Running",
- "image_update_digest_title": "Digest Update",
- "image_update_digest_desc": "Security or bug fixes available",
- "image_update_current_label": "Current",
- "image_update_latest_digest_label": "Latest Digest",
- "image_update_version_title": "Version Update",
- "image_update_version_desc": "New version available",
- "image_update_latest_label": "Latest",
- "image_update_tag_description": "Update available",
- "image_update_tag_description_new": "Update to {version} available",
- "image_update_unknown_type": "Update type unknown",
- "image_update_recheck_button": "Re-check Updates",
- "image_update_checking_title": "Checking Updates",
- "image_update_querying_registry": "Querying registry for latest version...",
- "image_update_status_unknown": "Status Unknown",
- "image_update_click_to_check": "Click to check for updates from registry.",
- "image_update_unable_check_tags": "Unable to check updates for images without proper tags.",
- "image_update_auth": "Auth: {label}",
- "error_go_to_dashboard": "Go to Dashboard",
- "docker_engine_title": "Docker Engine",
- "docker_engine_subtitle": "{os} • {arch}",
- "docker_containers_running_badge": "{count} running",
- "docker_containers_total_badge": "total {count}",
- "docker_containers_stopped_badge": "stopped {count}",
- "docker_images_subtitle": "Total images discovered",
- "action_confirm_removal_title": "Confirm Removal",
- "action_confirm_removal_message": "Are you sure you want to remove this {type}? This action is DESTRUCTIVE and cannot be undone.",
- "confirm_remove_project_files": "Remove project files",
- "confirm_remove_volumes_warning": "Remove volumes (Warning: Data will be lost)",
- "action_confirm_redeploy_title": "Confirm Redeploy",
- "action_confirm_redeploy_message": "Are you sure you want to redeploy this project? This will pull the latest images and recreate containers as needed.",
- "action_redeploy": "Redeploy",
- "action_redeploy_success": "{type} Redeployed Successfully",
- "action_started_success": "{type} Started Successfully",
- "action_stopped_success": "{type} Stopped Successfully",
- "action_restarted_success": "{type} Restarted Successfully",
- "action_removed_success": "{type} Removed Successfully",
- "action_destroyed_success": "{type} Destroyed Successfully",
- "action_failed_generic": "Failed to {action} {type}",
+ "container_name_required": "Container name is required",
+ "container_image_required": "Image is required",
+
+ "_comment_images": "=== IMAGES ===",
+ "images_title": "Images",
+ "images_subtitle": "View and Manage your Container Images",
+ "images_total": "Total Images",
+ "images_total_size": "Total Size",
+ "images_top_largest": "Top 5 Largest Images",
+ "images_showing_of_total": "Showing {shown} of {total} images",
+ "images_pull": "Pull",
+ "images_pull_image": "Pull Image",
+ "images_check_updates": "Check Updates",
+ "images_prune_unused": "Prune Unused",
+ "images_prune_failed": "Failed to Prune Images",
+ "images_pruned_success": "Images Pruned Successfully",
+ "images_prune_confirm_title": "Prune Unused Images",
+ "images_prune_confirm_description": "Removes unused Docker images (prune mode: {mode}). This frees disk space and cannot be undone. Images referenced by any container will not be removed.",
+ "images_prune_action": "Prune Images",
+ "images_update_check_completed": "Update check completed",
+ "images_update_check_failed": "Failed to check for updates",
+ "images_remove_selected_title": "Remove {count} Image(s)",
+ "images_remove_selected_message": "Are you sure you want to remove the selected image(s)? This action cannot be undone.",
+ "images_remove_message": "Are you sure you want to remove this image? This action cannot be undone.",
+ "images_pull_no_tag": "Cannot pull image without repository tag",
+ "images_untagged": "Untagged",
+ "images_repository": "Repository",
+ "images_image_id": "Image ID",
+ "images_updates": "Updates",
+ "images_architecture": "Architecture",
+ "images_os": "OS",
+ "images_tag": "Tag",
+ "images_none_label": "<none>",
+ "images_tag_latest": "latest",
+ "images_has_updates": "Has Updates",
+ "images_no_updates": "No Updates",
+ "images_tags_description": "Repository tags associated with this image",
+ "images_env_vars_description": "Environment variables defined in this image",
+ "images_pull_description": "Enter the image reference you want to pull from a registry.",
+ "images_image_name_label": "Image Name *",
+ "images_image_name_placeholder": "nginx, redis, ubuntu, etc.",
+ "images_image_name_description": "Enter the image name from Docker Hub or other registries",
+ "images_tag_description": "Specify a tag version (defaults to 'latest')",
+ "images_pull_unexpected_error": "An unexpected error occurred while pulling the image.",
+ "images_pull_in_progress_toast": "Pull operation is in progress.",
+ "images_pull_wait_message": "This may take a while depending on the image size and your internet connection.",
"images_pulled_success": "Images pulled successfully!",
"images_pull_initiating": "Initiating pull...",
"images_pull_processing_final_layers": "Processing final layers...",
"images_pull_server_error": "Failed to pull images. Server returned an error.",
"images_pull_stream_error": "An error occurred during pull stream",
"images_pull_failed_with_error": "Failed: {error}",
- "progress_pulling_images": "Pulling Images",
- "action_down": "Down",
- "action_confirm_destroy_message": "Are you sure you want to destroy this {type}? This action is DESTRUCTIVE and will remove associated resources and cannot be undone.",
- "sidebar_environment_label": "Environment",
- "sidebar_select_environment": "Select Environment",
- "sidebar_no_environments": "No environments available",
- "sidebar_no_environment": "No Environment",
- "sidebar_select_one": "Select one",
- "sidebar_local_docker_socket": "unix:///var/run/docker.sock",
- "sidebar_manage_environments": "Manage Environments",
- "sidebar_version": "v{version}",
- "sidebar_update_available": "Update available",
- "sidebar_update_available_tooltip": "Update available: {version}",
- "common_toggle_theme": "Toggle theme",
- "common_logout": "Logout",
- "sidebar_management": "Management",
- "sidebar_customization": "Customization",
- "sidebar_environments": "Environments",
- "sidebar_administration": "Administration",
+ "images_image_required": "Image name is required",
+
+ "_comment_volumes": "=== VOLUMES ===",
+ "volumes_title": "Volumes",
+ "volumes_subtitle": "Manage your Docker volumes",
+ "volumes_stat_total": "Total Volumes",
+ "volumes_stat_used": "Used Volumes",
+ "volumes_stat_unused": "Unused Volumes",
+ "volumes_remove_in_use_warning": "Warning: This volume is currently in use by containers. Forcing removal may cause data loss or container issues.",
+ "volumes_containers_using_title": "Containers Using This Volume",
+ "volumes_containers_using_description": "List of containers currently referencing this volume",
+ "volumes_no_containers_using": "No containers are currently using this volume.",
+ "volumes_labels_description": "User-defined metadata attached to this volume",
+ "volumes_driver_options_description": "Volume driver-specific options",
+ "volumes_no_labels_or_options": "This volume has no additional labels or driver options.",
+ "volume_name_required": "Volume name is required",
+ "volume_driver_required": "Driver is required",
+
+ "_comment_networks": "=== NETWORKS ===",
+ "networks_title": "Networks",
+ "networks_subtitle": "Manage your Docker networks",
+ "networks_total": "Total Networks",
+ "networks_delete_selected_title": "Delete {count} network(s)",
+ "networks_delete_selected_message": "Are you sure you want to delete {count} selected network(s)? This action cannot be undone.",
+ "networks_cannot_delete_default": "Cannot delete default network: {name}",
+ "networks_cannot_delete_default_many": "Cannot delete default networks: {names}",
+ "networks_empty_title": "No networks found",
+ "networks_empty_description": "Create a new network using the Create Network button above or use the Docker CLI.",
+ "common_no_networks_found": "No networks found. Create a new network to get started.",
+ "networks_missing_id": "Network ID is missing",
+ "networks_in_use_count": "In Use ({count})",
+ "networks_predefined": "Predefined",
+ "networks_no_additional_info": "No additional information available for this network.",
+ "networks_host": "Host",
+ "networks_overlay": "Overlay",
+ "networks_macvlan": "Macvlan",
+ "networks_ipvlan": "IPvlan",
+ "networks_none": "None",
+ "networks_ipam_title": "IPAM Configuration",
+ "networks_ipam_description": "IP Address Management settings for this network",
+ "networks_ipam_iprange_label": "IP Range",
+ "networks_ipam_aux_addresses_label": "Auxiliary Addresses",
+ "networks_ipam_driver_label": "IPAM Driver",
+ "networks_ipam_options_label": "IPAM Options",
+ "networks_connected_containers_title": "Connected Containers",
+ "networks_connected_containers_description": "{count} container(s) connected to this network",
+ "networks_labels_description": "User-defined metadata attached to this network",
+ "networks_options_title": "Options",
+ "networks_options_description": "Network driver-specific options",
+ "attachable": "Attachable",
+ "ipv6_enabled": "IPv6 Enabled",
+ "internal": "Internal",
+ "network_name_required": "Network name is required",
+ "network_driver_required": "Driver is required",
+ "unused_networks": "Unused Networks",
+
+ "_comment_projects": "=== PROJECTS (COMPOSE) ===",
+ "projects_title": "Projects",
+ "compose_subtitle": "View and Manage Compose Projects",
+ "compose_services": "Services",
+ "compose_services_description": "Docker Compose services and their current status",
+ "compose_active_container": "Active container",
+ "compose_total": "Total Projects",
+ "compose_create_project": "Create Project",
+ "compose_update_projects": "Update Projects",
+ "compose_update_failed": "Failed to Check Compose Projects for Updates",
+ "compose_update_success": "Compose Projects Updated Successfully.",
+ "compose_start_failed": "Failed to start project",
+ "compose_start_success": "Project started successfully.",
+ "compose_stop_failed": "Failed to stop project",
+ "compose_stop_success": "Project stopped successfully.",
+ "compose_restart_failed": "Failed to restart project",
+ "compose_restart_success": "Project restarted successfully.",
+ "compose_pull_failed": "Failed to pull project",
+ "compose_pull_success": "Project pulled successfully.",
+ "compose_pull_redeploy": "Pull & Redeploy",
+ "compose_confirm_removal_title": "Confirm Removal",
+ "compose_confirm_removal_message": "Are you sure you want to remove this Project? This action cannot be undone.",
+ "compose_destroy_failed": "Failed to remove project",
+ "compose_destroy_success": "Project removed successfully.",
+ "compose_destroy": "Destroy",
+ "compose_new_title": "Create New Project",
+ "compose_converter_title": "Docker Run to Compose Converter",
+ "compose_converter_description": "Convert existing docker run commands to Docker Compose format",
+ "compose_docker_run_command_label": "Docker Run Command",
+ "compose_docker_run_placeholder": "docker run -d --name my-app -p 8080:80 nginx:alpine",
+ "compose_example_commands_label": "Example Commands:",
+ "compose_example_command_1": "docker run -d --name nginx -p 8080:80 -v nginx_data:/usr/share/nginx/html nginx:alpine",
+ "compose_example_command_2": "docker run -d --name postgres -e POSTGRES_DB=mydb -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pass -v postgres_data:/var/lib/postgresql/data postgres:15",
+ "compose_example_command_3": "docker run -d --name redis -p 6379:6379 --restart unless-stopped redis:alpine",
+ "compose_converting": "Converting...",
+ "compose_convert_action": "Convert to Compose",
+ "compose_use_template": "Use Template",
+ "compose_convert_from_docker_run": "Convert from Docker Run",
+ "compose_project_name_invalid": "Only letters, numbers, and hyphens are allowed",
+ "compose_name_placeholder": "e.g., my-web-app",
+ "compose_name_hint": "Use letters, numbers, and hyphens only.",
+ "compose_compose_file_title": "Docker Compose File",
+ "compose_yaml_label": "YAML",
+ "compose_yaml_description": "YAML configuration for services",
+ "compose_env_title": "Environment (.env)",
+ "compose_env_kv_label": "Key=Value",
+ "compose_compose_placeholder": "Enter YAML...",
+ "compose_env_placeholder": "Enter environment variables...",
+ "compose_convert_failed": "Failed to Convert Docker Run Command",
+ "compose_convert_success": "Docker run command converted successfully!",
+ "compose_enter_docker_run_command": "Please enter a docker run command",
+ "compose_template_loaded": "Template \"{name}\" loaded successfully!",
+ "compose_name_label": "Project Name",
+ "compose_project_name_placeholder": "My New Project",
+ "compose_project_name_required": "Project name is required",
+ "compose_compose_content_required": "Compose content is required",
+ "compose_nav_services": "Services",
+ "compose_nav_logs": "Logs",
+ "compose_exposed_ports": "Exposed Ports",
+ "compose_services_header": "Services ({count})",
+ "compose_no_services_found": "No services found for this project",
+ "compose_service_not_created": "Not created",
+ "compose_name_change_not_allowed": "Project name cannot be changed while running. Please stop the project first.",
+ "compose_logs_title": "Project Logs",
+ "compose_error_loading_stack_title": "Error Loading Project",
+ "project": "Project",
+
+ "_comment_environments": "=== ENVIRONMENTS ===",
+ "environments_title": "Environments",
+ "environments_subtitle": "Manage and monitor your Arcane environments",
+ "environments_manage_description": "Add and manage remote Arcane servers in Agent Mode.",
+ "environments_page_subtitle": "Environment details and management",
+ "environments_remove_selected_title": "Remove {count} Environment(s)",
+ "environments_remove_selected_message": "Are you sure you want to remove the selected environment(s)? This action cannot be undone.",
+ "environments_remove_selected_button": "Remove Selected",
+ "environments_test_connection": "Test Connection",
+ "environments_test_connection_failed": "Failed to test connection",
+ "environments_test_connection_success": "Connection successful",
+ "environments_test_connection_error": "Connection failed",
+ "environments_testing_connection": "Testing Connection...",
+ "environments_api_url": "API URL",
+ "environments_sections_title": "Sections",
+ "environments_section_overview": "Overview",
+ "environments_section_connection": "Connection",
+ "environments_section_pairing": "Pair/Rotate",
+ "environments_overview_title": "Environment Overview",
+ "environments_environment_id_label": "Environment ID",
+ "environments_connection_title": "Connection Details",
+ "environments_pair_rotate_title": "Pair / Rotate Agent Token",
+ "environments_pair_rotate_description": "The token is stored securely on the server and not displayed. Use a Bootstrap Token to pair or rotate.",
+ "environments_bootstrap_label": "Bootstrap Token",
+ "environments_bootstrap_placeholder": "Enter AGENT_BOOTSTRAP_TOKEN",
+ "environments_pair_rotate_action": "Pair / Rotate",
+ "environments_refreshing": "Refreshing...",
+ "environments_name_placeholder": "My Lab Server",
+ "environments_name_too_long": "Name too long (max 25 characters)",
+ "environments_api_url_placeholder": "http://192.168.1.100:3553",
+ "environments_api_url_description": "Full URL to the Arcane server endpoint",
+ "environments_name_required": "Environment name is required",
+ "environments_server_url_required": "Server URL is required",
+ "environments_create_failed": "Failed to create environment",
+ "environments_switch_to_edit_title": "Switch Environment",
+ "environments_switch_to_edit_message": "In order to change these settings, you must first switch to this environment. Would you like to switch now?",
+ "environments_switch_and_edit": "Switch & Edit Settings",
+
+ "_comment_users": "=== USERS ===",
+ "users_title": "Users",
+ "users_subtitle": "Manage system users and permissions",
+ "users_total": "Total Users",
+ "users_administrators": "Administrators",
+ "users_regular": "Regular Users",
+ "users_delete_selected_item_failed": "Failed to delete user {id}",
+ "users_edit_title": "Edit User",
+ "users_create_new_title": "Create New User",
+ "users_edit_description": "Update the details for {username}",
+ "users_create_description": "Add a new user to your system with the required permissions",
+ "users_password_required_label": "Password *",
+ "users_password_managed_oidc": "Managed by your identity provider",
+ "users_password_leave_empty": "Leave empty to keep current password",
+ "users_password_enter": "Enter password",
+ "users_password_description_oidc": "Password is managed by your OIDC provider",
+ "users_password_description_edit": "Leave empty to keep current password",
+ "users_password_description_create": "Password for the user account",
+ "users_display_name_placeholder": "Full name or display name",
+ "users_display_name_description": "Optional display name for the user",
+ "users_email_placeholder": "[email protected]",
+ "users_email_description": "Email address for the user",
+ "users_username_description": "Unique username for the user",
+ "users_administrator_description": "Grant administrator privileges to this user",
+ "users_save_changes": "Save Changes",
+
+ "_comment_events": "=== EVENTS ===",
+ "events_title": "Event Log",
+ "events_subtitle": "Monitor events that have taken place in Arcane.",
+ "events_remove_selected": "Remove Selected",
+ "events_total": "Total Events",
+ "events_total_subtitle": "All recorded events",
+ "events_info": "Info",
+ "events_info_subtitle": "Information events",
+ "events_success": "Success",
+ "events_success_subtitle": "Successful operations",
+ "events_warning": "Warning",
+ "events_warning_subtitle": "Warning events",
+ "events_error": "Error",
+ "events_error_subtitle": "Error events",
+ "events_delete_item_failed": "Failed to delete event {id}",
+ "events_col_severity": "Severity",
+ "events_col_resource": "Resource",
+ "events_col_time": "Time",
+ "events_details_title": "Event Details",
+ "events_resource_id_label": "Resource ID",
+ "events_resource_name_label": "Resource Name",
+ "events_metadata_title": "Metadata",
+ "events_raw_event_title": "Raw Event",
+ "events_no_metadata_provided": "No metadata provided.",
+ "events_copy_resource_id_title": "Copy resource id",
+ "events_copy_resource_name_title": "Copy resource name",
+ "events_copy_metadata_json_title": "Copy metadata JSON",
+ "events_copy_full_event_json_title": "Copy full event JSON",
+ "events_environment_label": "Environment",
+
+ "_comment_settings": "=== SETTINGS ===",
+ "settings_title": "Settings",
+ "settings_description": "Configure the application settings",
+
+ "_comment_settings_general": "=== SETTINGS - GENERAL ===",
+ "general_title": "General",
+ "general_description": "Core configuration settings for the application",
+ "general_projects_heading": "Project Paths",
+ "general_projects_description": "Configure where Arcane looks for your Compose files.",
+ "general_projects_directory_label": "Projects Directory",
+ "general_projects_directory_placeholder": "data/projects",
+ "general_projects_directory_help": "Directory where Docker Compose files are stored (this is inside the container)",
+ "general_projects_directory_required": "Projects directory is required",
+ "general_base_url_label": "Base Server URL",
+ "general_base_url_placeholder": "localhost",
+ "general_base_url_help": "The Base URL for your docker host. Used when opening containers from the service links",
+ "general_base_url_required": "Base server URL is required",
+ "general_user_avatars_heading": "User Avatars",
+ "general_user_avatars_description": "Control Gravatar usage for profile images.",
+ "general_enable_gravatar_label": "Enable Gravatar",
+ "general_enable_gravatar_description": "Whether to use Gravatar-based avatars for user accounts",
+ "general_settings_saved": "Settings Updated Successfully",
+ "general_save_instructions": "Save your updated settings.",
+ "general_settings_save_failed": "Failed to Save General Settings",
+
+ "_comment_settings_security": "=== SETTINGS - SECURITY ===",
+ "security_title": "Security",
+ "security_description": "Configure authentication methods, session timeouts, and other security-related options.",
+ "security_authentication_heading": "Authentication",
+ "security_local_auth_label": "Local Authentication",
+ "security_local_auth_description": "Username and password stored by Arcane. Keep enabled as a fallback.",
+ "security_oidc_auth_label": "OIDC Authentication",
+ "security_oidc_auth_description": "Use an external OIDC provider",
+ "security_oidc_auth_description_forced": "Use an external OIDC provider (forced by server)",
+ "security_server_forces_oidc_missing_env": "Server forces OIDC, but env vars missing. Configure or fix server env.",
+ "security_oidc_configured_forced_view": "OIDC configured & forced by server. View status.",
+ "security_manage_oidc_config": "Manage OIDC configuration",
+ "security_session_heading": "Session",
+ "security_session_timeout_label": "Session Timeout (minutes)",
+ "security_session_timeout_placeholder": "60",
+ "security_session_timeout_description": "Inactive sessions will be logged out automatically (15–1440 minutes).",
+ "security_session_timeout_required": "Session timeout is required",
+ "security_session_timeout_integer": "Must be an integer",
+ "security_session_timeout_min": "Minimum is 15 minutes",
+ "security_session_timeout_max": "Maximum is 1440 minutes",
+ "security_password_policy_label": "Password Policy",
+ "security_password_policy_basic": "Basic",
+ "security_password_policy_standard": "Standard",
+ "security_password_policy_strong": "Strong",
+ "security_password_policy_basic_tooltip": "Minimum 8 characters.",
+ "security_password_policy_standard_tooltip": "10+ chars with upper, lower, and a number.",
+ "security_password_policy_strong_tooltip": "12+ chars with upper, lower, number, and symbol.",
+ "security_enable_one_provider": "Enable at least one authentication provider.",
+ "security_enable_one_provider_error": "At least one authentication provider must be enabled.",
+ "security_settings_saved": "Settings saved successfully.",
+ "security_local_enabled_info": "Local Authentication enabled to ensure at least one provider is active.",
+ "security_oidc_saved": "OIDC configuration saved successfully.",
+ "security_save_instructions": "Save your updated settings.",
+ "security_settings_save_failed": "Failed to save security settings",
+
+ "_comment_settings_docker": "=== SETTINGS - DOCKER ===",
+ "docker_title": "Docker",
+ "docker_description": "Configure Docker automation behavior and settings.",
+ "docker_terminal_settings_title": "Terminal Settings",
+ "docker_terminal_settings_description": "Configure default shell for container terminals",
+ "docker_default_shell_label": "Default Shell",
+ "docker_default_shell_description": "The default shell to use when opening a terminal in a container",
+ "docker_default_shell_placeholder": "Select shell",
+ "docker_shell_sh_description": "/bin/sh",
+ "docker_shell_bash_description": "/bin/bash",
+ "docker_shell_ash_description": "/bin/ash",
+ "docker_shell_zsh_description": "/bin/zsh",
+ "docker_shell_custom_description": "Specify a custom shell path",
+ "docker_shell_custom_path_placeholder": "/bin/sh",
+ "docker_shell_custom_path_help": "Enter the full path to the shell executable",
+ "docker_cleanup_settings_title": "Cleanup Settings",
+ "docker_cleanup_settings_description": "Configure how Docker images are pruned",
+ "docker_prune_all": "All",
+ "docker_prune_all_description": "Remove all images not referenced by containers and include named, unused volumes during System Prune.",
+ "docker_prune_dangling": "Dangling",
+ "docker_prune_dangling_description": "Remove only dangling (untagged) images and anonymous volumes during System Prune.",
+ "docker_prune_mode_description": "Choose how unused images and volumes should be pruned.",
+ "docker_prune_action_label": "Docker Prune Action Behavior",
+ "docker_prune_placeholder": "Docker PruneMode",
+ "docker_prune_group_label": "Prune Modes",
+ "docker_auto_updates_title": "Auto Updates",
+ "docker_auto_updates_description": "Automatically update containers when new images are available",
+ "docker_enable_polling_label": "Enable Image Polling",
+ "docker_enable_polling_description": "Periodically check registries for newer image versions",
+ "docker_image_polling_title": "Image Polling",
+ "docker_image_polling_description": "Configure automatic image update checking",
+ "docker_polling_interval_label": "Polling Interval",
+ "docker_polling_interval_placeholder": "60",
+ "docker_polling_interval_placeholder_select": "Select interval",
+ "docker_polling_interval_description": "How often to check for new images (5-10080 minutes)",
+ "docker_auto_update_label": "Auto-update Containers",
+ "docker_auto_update_description": "Automatically update containers when newer images are found",
+ "docker_auto_update_interval_label": "Auto-update Interval (minutes)",
+ "docker_auto_update_interval_placeholder": "60",
+ "docker_auto_update_interval_description": "How often to perform automatic updates (5-1440 minutes)",
+ "docker_auto_update_alert_title": "Auto-update Enabled",
+ "docker_auto_update_alert_description": "Automatic container updates are active with polling enabled",
+ "docker_rate_limit_warning_title": "Rate Limiting Warning",
+ "docker_rate_limit_warning_description": "Polling intervals below 30 minutes may trigger registry rate limits. Prefer longer intervals in production.",
+
+ "_comment_settings_navigation": "=== SETTINGS - NAVIGATION ===",
+ "navigation_title": "Navigation",
+ "navigation_description": "Customize navigation behavior and appearance",
+ "navigation_mobile_behavior_title": "Mobile Behavior",
+ "navigation_mobile_behavior_description": "Configure global defaults and personal overrides for mobile behavior",
+ "navigation_mobile_appearance_title": "Mobile Appearance",
+ "navigation_mobile_appearance_description": "Configure the visual style and presentation of mobile interface",
+ "navigation_mode_label": "Navigation Mode",
+ "navigation_mode_description": "Choose between floating navigation that overlays content or docked navigation that takes up screen space",
+ "navigation_mode_floating": "Floating",
+ "navigation_mode_docked": "Docked",
+ "navigation_show_labels_label": "Show Labels",
+ "navigation_show_labels_description": "Display text labels below navigation icons for better clarity and accessibility",
+ "navigation_scroll_to_hide_label": "Scroll to Hide",
+ "navigation_scroll_to_hide_description": "Automatically hide the navigation bar when scrolling down for a cleaner viewing experience",
+ "navigation_tap_to_hide_label": "Tap to Hide",
+ "navigation_tap_to_hide_description": "Allow users to tap outside the navigation area to quickly show or hide the navigation bar",
+ "navigation_settings_saved": "Navigation settings saved successfully",
+ "server_default": "Server Default",
+ "applies_to_all_users": "Applies to all users",
+ "this_device": "This Device",
+ "override": "Override",
+ "current_state": "Current State",
+ "local_override": "Local Override",
+ "clear_local_override": "Clear local override",
+ "overriding_server_default": "Overriding server default",
+ "using_server_default": "Using server default",
+ "mobile_navigation": "Mobile navigation",
+ "on": "On",
+ "off": "Off",
+ "tap_to_edit": "Tap to edit",
+ "cannot_edit": "Cannot edit",
+
+ "_comment_settings_disk": "=== SETTINGS - DISK USAGE ===",
+ "disk_usage_settings": "Disk Usage Settings",
+ "disk_usage_settings_description": "Configure which directory to monitor for disk usage metrics.",
+ "disk_usage_save": "Disk usage path updated successfully",
+ "disk_usage_save_failed": "Failed to update disk usage path",
+ "directory_path": "Directory Path",
+
+ "_comment_customize_overview": "=== CUSTOMIZATION - OVERVIEW ===",
+ "customize_title": "Customization",
+ "customize_subtitle": "Customize templates, registries, and configuration defaults",
+ "customize_search_placeholder": "Search customization options...",
+ "customize_search_results": "Search Results for \"{query}\"",
+ "customize_result": "result",
+ "customize_results": "results",
+ "customize_no_options": "No customization options found",
+ "customize_try_adjusting": "Try adjusting your search terms or browse categories above.",
+ "customize_available_options": "Available Options:",
+ "customize_button": "Customize",
+ "customize_more": "more",
+ "customize_category_defaults_description": "Configure default settings and templates for new projects",
+ "customize_category_templates_description": "Create and manage custom project templates and projects",
+ "customize_category_registries_description": "Configure container registries and authentication",
+ "customize_category_variables_description": "Manage environment variables and configuration templates",
+ "customize_fallback_description": "Customize and configure application settings",
+ "customize_default_project_template": "Default Project Template",
+ "customize_default_container_settings": "Default Container Settings",
+ "customize_default_network_mode": "Default Network Mode",
+ "customize_template_categories": "Template Categories",
+ "customize_template_validation": "Template Validation",
+ "customize_registry_credentials": "Registry Credentials",
+ "customize_registry_mirrors": "Registry Mirrors",
+ "customize_secret_variables": "Secret Variables",
+ "customize_variable_templates": "Variable Templates",
+
+ "_comment_customize_templates": "=== CUSTOMIZATION - TEMPLATES ===",
+ "templates_title": "Templates",
+ "templates_subtitle": "Manage compose registries, templates, and defaults",
+ "templates_learn_more": "Learn more",
+ "templates_refresh": "Refresh Templates",
+ "templates_local_templates": "Local Templates",
+ "templates_remote_templates": "Remote Templates",
+ "templates_registries": "Registries",
+ "templates_registries_section_title": "Template Registries",
+ "templates_registries_section_description": "Connect to remote sources for community and custom templates",
+ "templates_alert_remote_registries_title": "Remote Registries",
+ "templates_alert_remote_registries_description": "Add remote template registries to access community templates. Registries should provide a JSON manifest with template definitions and download URLs.",
+ "templates_community_registry_title": "Community Registry",
+ "templates_community_registry_description": "Get started quickly with our community registry containing popular templates:",
+ "templates_no_registries_title": "No registries configured",
+ "templates_no_registries_description": "Add a remote template registry to access community templates",
+ "templates_registry_not_found": "Registry not found",
+ "templates_refreshed": "Templates refreshed successfully",
+ "templates_group_by_registry": "Group by Registry",
+ "templates_add_registry_button": "Add Registry",
"templates_add_registry_title": "Add Template Registry",
"templates_add_registry_description": "Add a remote template registry to access community templates.",
"templates_registry_url_label": "Registry URL *",
+ "templates_registry_url_required": "Registry URL is required",
"templates_registry_url_placeholder": "https://registry.getarcane.app/registry.json",
"templates_registry_url_description": "URL to the registry JSON manifest",
- "templates_registry_url_required": "Registry URL is required",
"templates_enable_registry_label": "Enable Registry",
"templates_enable_registry_description": "Enable this registry to fetch templates",
"templates_registry_validation_error_title": "Validation Error",
"templates_registry_validate_failed": "Failed to validate registry URL",
"templates_registry_invalid_format": "Invalid registry format: missing required fields (name, templates)",
- "templates_add_registry_button": "Add Registry",
+ "templates_choose_title": "Choose a Template",
+ "templates_choose_description": "Browse templates from your registries or local downloads. Scroll to see more, select to use immediately, or download for offline use.",
+ "templates_group_by_registry_label": "Group by registry",
+ "templates_group_by_registry_description": "Enable Collapsible Sections for each registry",
+ "templates_sort_name_asc": "Name (A-Z)",
+ "templates_sort_name_desc": "Name (Z-A)",
+ "templates_no_templates": "No templates available",
+ "templates_add_registry_prompt_part1": "Add a template registry in ",
+ "templates_add_registry_prompt_part2": " to access community templates.",
+ "templates_template_settings": "Template Settings",
+ "templates_remote": "Remote",
+ "templates_local": "Local",
+ "templates_remote_template_label": "Remote template",
+ "templates_local_template_label": "Local template",
+ "templates_download": "Download",
+ "templates_use_now": "Use Now",
+ "templates_load_failed": "Failed to load template content",
+ "templates_download_failed": "Failed to download template",
+ "templates_delete_template": "Delete Template",
+ "templates_browse_templates": "Browse Templates",
+ "templates_manage_registries": "Manage Registries",
+ "templates_refresh_templates": "Refresh Templates",
+ "templates_edit_default": "Edit Default",
+ "templates_search_placeholder": "Search templates...",
+ "templates_all": "All Templates",
+ "templates_local_only": "Local Only",
+ "templates_remote_only": "Remote Only",
+ "templates_unknown_registry": "Unknown Registry",
+ "templates_view_local_version": "View Local Version",
+ "templates_configurable_settings": "Configurable settings",
+ "templates_service_definitions": "Service definitions and configurations",
+ "templates_containers_to_create": "Containers that will be created",
+ "templates_default_config_values": "Default configuration values",
+ "templates_raw_env_config": "Raw .env configuration",
+ "templates_defaults_title": "Customize Default Templates",
+ "templates_defaults_heading": "Default Templates Configuration",
+ "templates_defaults_description": "Customize the default Docker Compose and environment templates used when creating new projects. These templates will be pre-populated in the new project form.",
+ "templates_compose_template_label": "Docker Compose Template (YAML)",
+ "templates_env_template_label": "Environment Template (.env)",
+ "templates_validation_error": "Please fix validation errors before saving",
+ "templates_save_failed": "Failed to save default templates",
+ "templates_save_success": "Default templates saved successfully",
+ "templates_reset_success": "Changes reset",
+ "default_templates": "Default Templates",
+
+ "_comment_customize_registries": "=== CUSTOMIZATION - REGISTRIES ===",
+ "registries_title": "Container Registries",
+ "registries_subtitle": "Configure access credentials for private Docker registries and container repositories",
+ "registries_refreshed": "Registries Refreshed!",
+ "registries_remove_selected_title": "Remove {count} Registry(ies)",
+ "registries_remove_selected_message": "Are you sure you want to remove the selected registry(ies)? This action cannot be undone.",
+ "registries_bulk_remove_success": "Removed {count} registries",
+ "registries_bulk_remove_failed": "Failed to remove {count} registries",
+ "registries_test_connection": "Test Connection",
+ "registries_test_failed": "Failed to test registry \"{url}\"",
+ "registries_test_success": "Registry test passed: {url} - {message}",
+ "registries_url": "Registry URL",
+ "registries_url_required": "Registry URL is required",
+ "registries_credentials_title": "Docker Registry Credentials",
+ "registries_credentials_description": "Manage authentication credentials for private Docker registries like Docker Hub, GitHub Container Registry, Google Container Registry, and custom registries",
+ "registries_info_title": "Registry Information",
+ "registries_info_description": "Common registry URLs and authentication requirements",
+ "registries_popular_public_title": "Popular Public Registries",
+ "registries_auth_notes_title": "Authentication Notes",
+ "registries_auth_notes_bullet_docker_hub": "Docker Hub requires credentials for private repositories",
+ "registries_auth_notes_bullet_github": "GitHub uses personal access tokens as passwords",
+ "registries_auth_notes_bullet_anonymous": "Some registries support anonymous access for public images",
+ "registries_auth_notes_bullet_encrypted": "Credentials are encrypted and stored securely",
+ "registries_save_failed": "Failed to save registry",
"registries_edit_title": "Edit Container Registry",
"registries_add_description": "Enter the details for the new container registry.",
"registries_edit_description": "Update the details for this container registry.",
"registries_url_placeholder": "e.g., docker.io, ghcr.io, gcr.io, quay.io",
"registries_url_description": "Leave empty or use 'docker.io' for Docker Hub",
- "registries_url_required": "Registry URL is required",
"registries_token_label": "Token",
"registries_token_keep_placeholder": "Leave empty to keep current token",
"registries_token_placeholder": "Your registry password or token",
@@ -843,102 +983,154 @@
"registries_allow_insecure_label": "Allow Insecure Connection",
"registries_allow_insecure_description": "Allow HTTP connections",
"registries_save_changes": "Save Changes",
- "create_network_title": "Create New Network",
- "create_network_description": "Configure and create a new Docker network.",
- "network_name_label": "Network Name *",
- "network_name_placeholder": "e.g., my-app-network",
- "network_name_description": "Unique name for the network",
- "network_name_required": "Network name is required",
- "network_driver_label": "Network Driver",
- "network_driver_description": "Choose the network driver type",
- "network_driver_placeholder": "Select a driver",
- "network_driver_required": "Driver is required",
- "networks_ipvlan": "IPvlan",
- "network_check_duplicate_label": "Check Duplicate",
- "network_internal_label": "Internal Network",
- "add_label_button": "Add Label",
- "labels_key_value_label": "Key-Value Labels",
- "network_labels_text_label": "Additional Labels (Text Format)",
- "network_labels_placeholder": "com.example.description=Production network\ncom.example.department=Backend",
- "network_labels_description": "Enter additional labels as key=value pairs, one per line",
- "network_enable_ipam_label": "Enable IPAM Configuration",
- "network_subnet_description": "Network subnet in CIDR notation",
- "network_gateway_description": "Gateway IP address for the network",
- "networks_creating": "Creating...",
- "create_volume_title": "Create New Volume",
- "create_volume_description": "Enter the details for the new Docker volume.",
- "volume_name_label": "Volume Name *",
- "volume_name_placeholder": "e.g., my-app-data",
- "volume_name_description": "Unique name for the volume",
- "volume_name_required": "Volume name is required",
- "volume_driver_label": "Volume Driver",
- "volume_driver_placeholder": "Select a driver",
- "volume_driver_description": "Choose the storage driver for your volume",
- "volume_driver_required": "Driver is required",
- "volume_driver_local": "Local",
- "volume_driver_nfs": "NFS",
- "volume_driver_aws_ebs": "AWS EBS",
- "volume_driver_azure_disk": "Azure Disk",
- "volume_driver_gce_pd": "GCE Persistent Disk",
- "volume_advanced_settings": "Advanced Settings",
- "volume_driver_options_placeholder": "key=value\nkey2=value2",
- "volume_driver_options_description": "Enter driver-specific options as key=value pairs, one per line",
- "volume_labels_placeholder": "com.example.description=Production data\ncom.example.department=Finance",
- "volumes_creating": "Creating...",
- "images_pull_description": "Enter the image reference you want to pull from a registry.",
- "images_image_name_label": "Image Name *",
- "images_image_name_placeholder": "nginx, redis, ubuntu, etc.",
- "images_image_name_description": "Enter the image name from Docker Hub or other registries",
- "images_image_required": "Image name is required",
- "images_tag_description": "Specify a tag version (defaults to 'latest')",
- "images_pull_unexpected_error": "An unexpected error occurred while pulling the image.",
- "images_pull_in_progress_toast": "Pull operation is in progress.",
- "images_pull_wait_message": "This may take a while depending on the image size and your internet connection.",
- "environments_manage_description": "Add and manage remote Arcane servers in Agent Mode.",
- "environments_name_placeholder": "My Lab Server",
- "environments_name_required": "Environment name is required",
- "environments_name_too_long": "Name too long (max 25 characters)",
- "common_invalid_url": "Must be a valid URL",
- "environments_server_url_required": "Server URL is required",
- "environments_api_url_placeholder": "http://192.168.1.100:3553",
- "environments_api_url_description": "Full URL to the Arcane server endpoint",
- "environments_create_failed": "Failed to create environment",
- "users_edit_title": "Edit User",
- "users_create_new_title": "Create New User",
- "users_edit_description": "Update the details for {username}",
- "users_create_description": "Add a new user to your system with the required permissions",
- "users_password_required_label": "Password *",
- "users_password_managed_oidc": "Managed by your identity provider",
- "users_password_leave_empty": "Leave empty to keep current password",
- "users_password_enter": "Enter password",
- "users_password_description_oidc": "Password is managed by your OIDC provider",
- "users_password_description_edit": "Leave empty to keep current password",
- "users_password_description_create": "Password for the user account",
- "users_display_name_placeholder": "Full name or display name",
- "users_display_name_description": "Optional display name for the user",
- "users_email_placeholder": "[email protected]",
- "users_email_description": "Email address for the user",
- "users_username_description": "Unique username for the user",
- "users_administrator_description": "Grant administrator privileges to this user",
- "users_save_changes": "Save Changes",
- "common_invalid_email": "Must be a valid email",
- "common_select_option": "Select an option",
- "events_details_title": "Event Details",
- "events_resource_id_label": "Resource ID",
- "events_resource_name_label": "Resource Name",
- "events_metadata_title": "Metadata",
- "events_raw_event_title": "Raw Event",
- "events_no_metadata_provided": "No metadata provided.",
- "events_copy_resource_id_title": "Copy resource id",
- "events_copy_resource_name_title": "Copy resource name",
- "events_copy_metadata_json_title": "Copy metadata JSON",
- "events_copy_full_event_json_title": "Copy full event JSON",
- "events_environment_label": "Environment",
- "common_copy": "Copy",
- "common_copy_json": "Copy JSON",
- "common_copied": "Copied to clipboard",
- "common_copy_failed": "Failed to copy",
- "common_close": "Close",
+ "registry_docker_hub": "Docker Hub",
+ "registry_github_container_registry": "GitHub Container Registry",
+ "registry_google_container_registry": "Google Container Registry",
+ "registry_quay_io": "Quay.io Registry",
+ "registry_docker_hub_url": "docker.io",
+ "registry_github_url": "ghcr.io",
+ "registry_google_url": "gcr.io",
+ "registry_quay_url": "quay.io",
+
+ "_comment_customize_variables": "=== CUSTOMIZATION - VARIABLES ===",
+ "variables_title": "Variables",
+ "variables_subtitle": "Manage global environment variables that are available to all projects",
+ "variables_about_title": "About Global Environment Variables",
+ "variables_about_description": "These variables are stored in .env.global at the root of your projects directory and are available to all Docker Compose projects.",
+ "variables_count_configured": "{count} variable configured",
+ "variables_count_configured_plural": "{count} variables configured",
+ "variables_add_button": "Add",
+ "variables_no_variables_title": "No environment variables yet",
+ "variables_no_variables_description": "Click \"Add\" to create your first variable",
+ "variables_no_results_title": "No variables found",
+ "variables_no_results_description": "Try a different search term",
+ "variables_key_placeholder": "KEY",
+ "variables_value_placeholder": "value",
+ "variables_duplicate_keys_error": "Duplicate keys found. Please ensure all keys are unique.",
+ "variables_save_success": "Global variables saved successfully",
+ "variables_save_failed": "Failed to save. Please try again.",
+
+ "_comment_logs": "=== LOGS ===",
+ "log_stream_connection_lost": "Connection to {type} log stream lost",
+ "log_stream_closed_by_server": "{type} log stream was closed by server",
+ "log_stream_failed_connect": "Failed to connect to {type} log stream",
+ "log_stream_no_project_selected": "No project selected. Please select a project to view logs.",
+ "log_stream_no_container_selected": "No container selected. Please select a container to view logs.",
+ "log_viewer_stopping": "Stopping {type} log stream",
+ "log_viewer_connected": "{type} log stream connected",
+ "log_viewer_no_selection": "No {type} selected",
+ "log_viewer_no_logs_available": "No logs available. Start streaming to see logs.",
+ "log_viewer_waiting_for_logs": "Waiting for logs...",
+ "log_tail_50_lines": "50 lines",
+ "log_tail_100_lines": "100 lines",
+ "log_tail_200_lines": "200 lines",
+ "log_tail_500_lines": "500 lines",
+ "log_tail_1000_lines": "1000 lines",
+ "log_tail_all_lines": "All logs",
+ "log_refresh_aria_label": "Refresh logs",
+
+ "_comment_terminal": "=== TERMINAL/SHELL ===",
+ "shell_interactive_access": "Interactive shell access to container",
+ "shell_custom_placeholder": "/usr/bin/fish",
+ "terminal_websocket_error": "WebSocket error occurred",
+ "terminal_connection_closed": "Connection closed",
+ "apply": "Apply",
+
+ "_comment_docker_info": "=== DOCKER INFO ===",
+ "docker_engine_title": "Docker Engine",
+ "docker_engine_subtitle": "{os} • {arch}",
+ "docker_containers_running_badge": "{count} running",
+ "docker_containers_total_badge": "total {count}",
+ "docker_containers_stopped_badge": "stopped {count}",
+ "docker_images_subtitle": "Total images discovered",
+ "docker_info_dialog_title": "Docker Engine",
+ "docker_info_dialog_description": "Detailed information about your Docker installation",
+ "docker_info_version_section": "Version Information",
+ "docker_info_system_section": "System Information",
+ "docker_info_drivers_section": "Drivers & Storage",
+ "docker_info_stats_section": "Container Statistics",
+ "docker_info_version_label": "Version",
+ "docker_info_api_version_label": "API Version",
+ "docker_info_server_version_label": "Server Version",
+ "docker_info_git_commit_label": "Git Commit",
+ "docker_info_go_version_label": "Go Version",
+ "docker_info_build_time_label": "Build Time",
+ "docker_info_os_label": "Operating System",
+ "docker_info_os_type_label": "OS Type",
+ "docker_info_os_version_label": "OS Version",
+ "docker_info_kernel_version_label": "Kernel Version",
+ "docker_info_memory_label": "Total Memory",
+ "docker_info_storage_driver_label": "Storage Driver",
+ "docker_info_logging_driver_label": "Logging Driver",
+ "docker_info_cgroup_driver_label": "Cgroup Driver",
+ "docker_info_cgroup_version_label": "Cgroup Version",
+ "docker_info_total_containers_label": "Total Containers",
+ "docker_info_paused_label": "Paused",
+ "docker_info_images_label": "Images",
+
+ "_comment_sidebar": "=== SIDEBAR ===",
+ "sidebar_environment_label": "Environment",
+ "sidebar_select_environment": "Select Environment",
+ "sidebar_no_environments": "No environments available",
+ "sidebar_no_environment": "No Environment",
+ "sidebar_select_one": "Select one",
+ "sidebar_local_docker_socket": "unix:///var/run/docker.sock",
+ "sidebar_manage_environments": "Manage Environments",
+ "sidebar_version": "v{version}",
+ "sidebar_update_available": "Update available",
+ "sidebar_update_available_tooltip": "Update available: {version}",
+ "sidebar_management": "Management",
+ "sidebar_customization": "Customization",
+ "sidebar_environments": "Environments",
+ "sidebar_administration": "Administration",
+ "sidebar_settings": "Settings",
+
+ "_comment_quick_actions": "=== QUICK ACTIONS & PROGRESS ===",
+ "quick_actions_title": "Quick Actions",
+ "quick_actions_start_all": "Start All Stopped",
+ "quick_actions_stop_all": "Stop All Running",
+ "quick_actions_prune_system": "Prune System",
+ "quick_actions_prune_description": "Clean unused resources",
+ "quick_actions_containers": "{count} containers",
+ "progress_title": "Progress",
+ "progress_subtitle": "Working…",
+ "progress_preparing": "Preparing...",
+ "progress_pull_completed": "Pull Completed",
+ "progress_in_progress_note": "This may take a while depending on size and connection.",
+ "progress_completed_success": "Completed successfully!",
+ "progress_pulling_images": "Pulling Images",
+ "meter_footer_usage": "{percent}% of resources being used",
+
+ "_comment_image_updates": "=== IMAGE UPDATES ===",
+ "image_update_auth_credential": "Credential",
+ "image_update_auth_credential_with_user": "Credential ({username})",
+ "image_update_auth_anonymous": "Anonymous",
+ "image_update_auth_none": "No Auth",
+ "image_update_check_failed_title": "Update Check Failed",
+ "image_update_could_not_query_registry": "Could not query the registry",
+ "image_update_error_label": "Error:",
+ "image_update_image_label": "Image:",
+ "image_update_up_to_date_title": "Up to Date",
+ "image_update_up_to_date_desc": "No updates available",
+ "image_update_digest_title": "Digest Update",
+ "image_update_digest_desc": "Security or bug fixes available",
+ "image_update_current_label": "Current",
+ "image_update_latest_digest_label": "Latest Digest",
+ "image_update_version_title": "Version Update",
+ "image_update_version_desc": "New version available",
+ "image_update_latest_label": "Latest",
+ "image_update_tag_description": "Update available",
+ "image_update_tag_description_new": "Update to {version} available",
+ "image_update_unknown_type": "Update type unknown",
+ "image_update_recheck_button": "Re-check Updates",
+ "image_update_checking_title": "Checking Updates",
+ "image_update_querying_registry": "Querying registry for latest version...",
+ "image_update_status_unknown": "Status Unknown",
+ "image_update_click_to_check": "Click to check for updates from registry.",
+ "image_update_unable_check_tags": "Unable to check updates for images without proper tags.",
+ "image_update_auth": "Auth: {label}",
+
+ "_comment_oidc": "=== OIDC CONFIGURATION ===",
"oidc_viewmode_description": "OIDC authentication is configured and forced ON by server-side environment variables. These settings are read-only.",
"oidc_configure_description": "Configure the OIDC settings for your application. These settings will be saved to the database and used for OIDC authentication.",
"oidc_server_env_config_title": "Server Environment Configuration",
@@ -965,7 +1157,6 @@
"oidc_server_override_warning_title": "Server Override Warning",
"oidc_redirect_uri_title": "Redirect URI Configuration",
"oidc_redirect_uri_description": "Configure this redirect URI in your OIDC provider:",
- "oidc_status_title": "Status",
"oidc_status_env_forced": "Env Forced",
"oidc_status_env_forced_hint": "Server forces OIDC",
"oidc_status_env_configured": "Env Configured",
@@ -976,6 +1167,8 @@
"oidc_tip_3": "Keep client secrets out of the UI when possible.",
"oidc_basic_configuration_title": "Basic Configuration",
"oidc_basic_description": "Essential OIDC provider settings",
+
+ "_comment_prune": "=== PRUNE ===",
"prune_confirm_system_title": "Confirm System Prune",
"prune_confirm_description": "Select the resources you want to prune. This action permanently removes unused data and cannot be undone.",
"prune_stopped_containers": "Stopped Containers",
@@ -989,87 +1182,58 @@
"prune_volumes_warning_title": "Warning: Pruning Volumes",
"prune_volumes_warning_description": "Pruning volumes permanently deletes data. Ensure you have backups if necessary.",
"prune_button": "Prune Selected ({count})",
- "templates_choose_title": "Choose a Template",
- "templates_choose_description": "Browse templates from your registries or local downloads. Scroll to see more, select to use immediately, or download for offline use.",
- "templates_group_by_registry_label": "Group by registry",
- "templates_group_by_registry_description": "Enable Collapsible Sections for each registry",
- "templates_sort_name_asc": "Name (A-Z)",
- "templates_sort_name_desc": "Name (Z-A)",
- "templates_no_templates": "No templates available",
- "templates_add_registry_prompt_part1": "Add a template registry in ",
- "templates_add_registry_prompt_part2": " to access community templates.",
- "templates_template_settings": "Template Settings",
- "templates_remote": "Remote",
- "templates_local": "Local",
- "templates_remote_template_label": "Remote template",
- "templates_local_template_label": "Local template",
- "templates_downloading": "Downloading...",
- "templates_download": "Download",
- "templates_loading": "Loading...",
- "templates_use_now": "Use Now",
- "templates_load_failed": "Failed to load template content",
- "templates_loaded_success": "Template \"{name}\" loaded successfully!",
- "templates_download_failed": "Failed to download template",
- "templates_downloaded_success": "Template \"{name}\" downloaded successfully!",
- "common_sort_by": "Sort by",
- "editor_placeholder": "Enter code...",
- "common_no_results_found": "No results found.",
- "common_clear_filters": "Clear filters",
- "common_selected_count": "{count} selected",
- "common_search": "Search...",
- "common_usage": "Usage",
- "common_reset": "Reset",
- "common_remove_selected": "Remove Selected ({count})",
- "common_toggle_columns": "Toggle columns",
- "common_select_all": "Select all",
- "common_select_row": "Select row",
- "common_showing_of_total": "Showing {shown} of {total} item(s).",
- "common_rows_per_page": "Rows per page",
- "common_go_first_page": "Go to first page",
- "common_go_prev_page": "Go to previous page",
- "common_go_next_page": "Go to next page",
- "common_go_last_page": "Go to last page",
- "common_page_of": "Page {page} of {total}",
- "common_sort_asc": "Asc",
- "common_sort_desc": "Desc",
- "common_hide": "Hide",
- "images_has_updates": "Has Updates",
- "images_no_updates": "No Updates",
- "common_processing": "Processing...",
- "common_loading_label": "Loading - {label}",
- "action_up": "Up",
- "action_deploying": "Deploying...",
- "action_starting": "Starting...",
- "action_stopping": "Stopping...",
- "action_removing": "Removing...",
- "action_restarting": "Restarting...",
- "action_redeploying": "Redeploying...",
- "action_inspecting": "Inspecting...",
- "action_confirming": "Confirming...",
- "common_create": "Create",
- "common_creating": "Creating...",
- "action_use_template": "Use Template",
- "common_logs": "Logs",
- "action_cancelling": "Cancelling...",
- "action_fetching_logs": "Fetching...",
- "sidebar_settings": "Settings",
- "common_select_locale": "Select locale",
+
+ "_comment_form_network": "=== FORM - CREATE NETWORK ===",
+ "create_network_title": "Create New Network",
+ "create_network_description": "Configure and create a new Docker network.",
+ "network_name_label": "Network Name *",
+ "network_name_placeholder": "e.g., my-app-network",
+ "network_name_description": "Unique name for the network",
+ "network_driver_label": "Network Driver",
+ "network_driver_description": "Choose the network driver type",
+ "network_driver_placeholder": "Select a driver",
+ "network_check_duplicate_label": "Check Duplicate",
+ "network_internal_label": "Internal Network",
+ "network_labels_text_label": "Additional Labels (Text Format)",
+ "network_labels_placeholder": "com.example.description=Production network\ncom.example.department=Backend",
+ "network_labels_description": "Enter additional labels as key=value pairs, one per line",
+ "network_enable_ipam_label": "Enable IPAM Configuration",
+ "network_subnet_description": "Network subnet in CIDR notation",
+ "network_gateway_description": "Gateway IP address for the network",
+ "network_interface": "Network interface",
+
+ "_comment_form_volume": "=== FORM - CREATE VOLUME ===",
+ "create_volume_title": "Create New Volume",
+ "create_volume_description": "Enter the details for the new Docker volume.",
+ "volume_name_label": "Volume Name *",
+ "volume_name_placeholder": "e.g., my-app-data",
+ "volume_name_description": "Unique name for the volume",
+ "volume_driver_label": "Volume Driver",
+ "volume_driver_placeholder": "Select a driver",
+ "volume_driver_description": "Choose the storage driver for your volume",
+ "volume_driver_local": "Local",
+ "volume_driver_nfs": "NFS",
+ "volume_driver_aws_ebs": "AWS EBS",
+ "volume_driver_azure_disk": "Azure Disk",
+ "volume_driver_gce_pd": "GCE Persistent Disk",
+ "volume_advanced_settings": "Advanced Settings",
+ "volume_driver_options_placeholder": "key=value\nkey2=value2",
+ "volume_driver_options_description": "Enter driver-specific options as key=value pairs, one per line",
+ "volume_labels_placeholder": "com.example.description=Production data\ncom.example.department=Finance",
+
+ "_comment_form_container": "=== FORM - CREATE CONTAINER ===",
"create_container_title": "Create New Container",
"create_container_description": "Configure and create a new Docker container.",
- "tabs_basic": "Basic",
"tabs_environment": "Environment",
- "tabs_ports": "Ports",
"tabs_volumes": "Volumes",
"tabs_network_security": "Network & Security",
"tabs_advanced": "Advanced",
"container_name_label": "Container Name *",
"container_name_placeholder": "e.g., my-app-container",
"container_name_description": "Unique name for the container",
- "container_name_required": "Container name is required",
"container_image_label": "Image *",
"container_image_placeholder": "e.g., nginx:latest",
"container_image_description": "Docker image to use for the container",
- "container_image_required": "Image is required",
"container_command_label": "Command",
"container_command_placeholder": "e.g., /bin/bash -c 'echo hello'",
"container_command_description": "Command to run in the container",
@@ -1116,28 +1280,18 @@
"privileged_label": "Privileged",
"readonly_rootfs_label": "Read-only Root Filesystem",
"auto_remove_label": "Auto Remove",
- "restart_policy_title": "Restart Policy",
- "restart_policy_label": "Restart Policy",
"restart_policy_description": "Container restart behavior",
"restart_policy_placeholder": "Select restart policy",
- "restart_policy_no": "No",
- "restart_policy_always": "Always",
"restart_policy_unless_stopped": "Unless Stopped",
"restart_policy_on_failure": "On Failure",
"max_retry_label": "Maximum Retry Count",
"max_retry_placeholder": "5",
"max_retry_description": "Maximum number of restart attempts",
- "containers_labels_description": "Enter metadata labels as key=value pairs, one per line",
- "containers_creating": "Creating...",
- "containers_remove_files_label": "Remove project files from storage",
- "general_settings_save_failed": "Failed to Save General Settings",
- "common_continue": "Continue",
- "security_settings_save_failed": "Failed to save security settings",
- "common_skip": "Skip",
+
+ "_comment_misc": "=== MISCELLANEOUS ===",
+ "editor_placeholder": "Enter code...",
"language": "Language",
"bridge": "Bridge",
- "ports": "Ports",
- "common_show": "Show",
"custom": "Custom",
"weekly": "Weekly",
"daily": "Daily",
@@ -1150,132 +1304,9 @@
"build_cache": "Build Cache",
"ui_config_disabled_title": "UI configuration is disabled",
"ui_config_disabled_description": "Settings must be managed via environment variables.",
- "navigation_title": "Navigation",
- "navigation_description": "Customize navigation behavior and appearance",
- "navigation_mobile_behavior_title": "Mobile Behavior",
- "navigation_mobile_behavior_description": "Configure global defaults and personal overrides for mobile behavior",
- "navigation_mobile_appearance_title": "Mobile Appearance",
- "navigation_mobile_appearance_description": "Configure the visual style and presentation of mobile interface",
- "navigation_mode_label": "Navigation Mode",
- "navigation_mode_description": "Choose between floating navigation that overlays content or docked navigation that takes up screen space",
- "navigation_mode_floating": "Floating",
- "navigation_mode_docked": "Docked",
- "navigation_show_labels_label": "Show Labels",
- "navigation_show_labels_description": "Display text labels below navigation icons for better clarity and accessibility",
- "navigation_scroll_to_hide_label": "Scroll to Hide",
- "navigation_scroll_to_hide_description": "Automatically hide the navigation bar when scrolling down for a cleaner viewing experience",
- "navigation_tap_to_hide_label": "Tap to Hide",
- "navigation_tap_to_hide_description": "Allow users to tap outside the navigation area to quickly show or hide the navigation bar",
- "navigation_settings_saved": "Navigation settings saved successfully",
- "server_default": "Server Default",
- "applies_to_all_users": "Applies to all users",
- "this_device": "This Device",
- "override": "Override",
- "current_state": "Current State",
- "local_override": "Local Override",
- "clear_local_override": "Clear local override",
- "overriding_server_default": "Overriding server default",
- "using_server_default": "Using server default",
- "mobile_navigation": "Mobile navigation",
- "on": "On",
- "off": "Off",
- "tap_to_edit": "Tap to edit",
- "cannot_edit": "Cannot edit",
- "network_interface": "Network interface",
- "docker_info_dialog_title": "Docker Engine",
- "docker_info_dialog_description": "Detailed information about your Docker installation",
- "docker_info_version_section": "Version Information",
- "docker_info_system_section": "System Information",
- "docker_info_drivers_section": "Drivers & Storage",
- "docker_info_stats_section": "Container Statistics",
- "docker_info_version_label": "Version",
- "docker_info_api_version_label": "API Version",
- "docker_info_server_version_label": "Server Version",
- "docker_info_git_commit_label": "Git Commit",
- "docker_info_go_version_label": "Go Version",
- "docker_info_build_time_label": "Build Time",
- "docker_info_os_label": "Operating System",
- "docker_info_os_type_label": "OS Type",
- "docker_info_os_version_label": "OS Version",
- "docker_info_architecture_label": "Architecture",
- "docker_info_kernel_version_label": "Kernel Version",
- "docker_info_cpus_label": "CPUs",
- "docker_info_memory_label": "Total Memory",
- "docker_info_storage_driver_label": "Storage Driver",
- "docker_info_logging_driver_label": "Logging Driver",
- "docker_info_cgroup_driver_label": "Cgroup Driver",
- "docker_info_cgroup_version_label": "Cgroup Version",
- "docker_info_total_containers_label": "Total Containers",
- "docker_info_running_label": "Running",
- "docker_info_paused_label": "Paused",
- "docker_info_stopped_label": "Stopped",
- "docker_info_images_label": "Images",
- "dashboard_meter_disk_total": "Total",
- "dashboard_docker_overview": "Docker Overview",
+ "environment_file": "Environment File",
+ "add_label_button": "Add Label",
+ "labels_key_value_label": "Key-Value Labels",
"services": "Services",
- "updated": "Updated",
- "common_registry": "Registry",
- "shell_title": "Shell",
- "shell_interactive_access": "Interactive shell access to container",
- "shell_select_placeholder": "Select shell",
- "shell_custom_placeholder": "/usr/bin/fish",
- "apply": "Apply",
- "terminal_websocket_error": "WebSocket error occurred",
- "terminal_connection_closed": "Connection closed",
- "shell": "Shell",
- "customize_defaults_title": "Customize Default Templates",
- "customize_defaults_heading": "Default Templates Configuration",
- "customize_defaults_description": "Customize the default Docker Compose and environment templates used when creating new projects. These templates will be pre-populated in the new project form.",
- "customize_compose_template_label": "Docker Compose Template (YAML)",
- "customize_env_template_label": "Environment Template (.env)",
- "customize_validation_error": "Please fix validation errors before saving",
- "customize_save_failed": "Failed to save default templates",
- "customize_save_success": "Default templates saved successfully",
- "customize_reset_success": "Changes reset",
- "default_templates": "Default Templates",
- "variables_title": "Global Variables",
- "variables_subtitle": "Manage global environment variables that are available to all projects",
- "variables_about_title": "About Global Environment Variables",
- "variables_about_description": "These variables are stored in .env.global at the root of your projects directory and are available to all Docker Compose projects.",
- "variables_env_vars_title": "Environment Variables",
- "variables_count_configured": "{count} variable configured",
- "variables_count_configured_plural": "{count} variables configured",
- "variables_add_button": "Add",
- "variables_no_variables_title": "No environment variables yet",
- "variables_no_variables_description": "Click \"Add\" to create your first variable",
- "variables_no_results_title": "No variables found",
- "variables_no_results_description": "Try a different search term",
- "variables_key_placeholder": "KEY",
- "variables_value_placeholder": "value",
- "variables_duplicate_keys_error": "Duplicate keys found. Please ensure all keys are unique.",
- "variables_save_success": "Global variables saved successfully",
- "variables_save_failed": "Failed to save. Please try again.",
- "containers_group_by_project": "Group by Project",
- "customize_subtitle": "Customize templates, registries, and configuration defaults",
- "customize_search_placeholder": "Search customization options...",
- "customize_search_results": "Search Results for \"{query}\"",
- "customize_result": "result",
- "customize_results": "results",
- "customize_no_options": "No customization options found",
- "customize_try_adjusting": "Try adjusting your search terms or browse categories above.",
- "customize_available_options": "Available Options:",
- "customize_button": "Customize",
- "customize_more": "more",
- "customize_category_defaults_description": "Configure default settings and templates for new projects",
- "customize_category_templates_description": "Create and manage custom project templates and projects",
- "customize_category_registries_description": "Configure container registries and authentication",
- "customize_category_variables_description": "Manage environment variables and configuration templates",
- "customize_fallback_description": "Customize and configure application settings",
- "customize_default_project_template": "Default Project Template",
- "customize_default_container_settings": "Default Container Settings",
- "customize_default_network_mode": "Default Network Mode",
- "customize_template_categories": "Template Categories",
- "customize_template_validation": "Template Validation",
- "customize_registry_credentials": "Registry Credentials",
- "customize_registry_mirrors": "Registry Mirrors",
- "customize_secret_variables": "Secret Variables",
- "customize_variable_templates": "Variable Templates",
- "duplicate": "Duplicate",
- "cancel": "Cancel",
- "compose_project_name_placeholder": "My New Project"
+ "updated": "Updated"
}
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index f5255c503..67f3cac76 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -143,11 +143,11 @@
function confirmAction(action: string) {
if (action === 'remove') {
openConfirmDialog({
- title: type === 'project' ? m.compose_destroy() : m.action_confirm_removal_title(),
+ title: type === 'project' ? m.compose_destroy() : m.common_confirm_removal_title(),
message:
type === 'project'
- ? m.action_confirm_destroy_message({ type: m.project() })
- : m.action_confirm_removal_message({ type: m.container() }),
+ ? m.common_confirm_destroy_message({ type: m.project() })
+ : m.common_confirm_removal_message({ type: m.container() }),
confirm: {
label: type === 'project' ? m.compose_destroy() : m.common_remove(),
destructive: true,
@@ -162,7 +162,7 @@
? containerService.deleteContainer(id)
: projectService.destroyProject(id, removeVolumes, removeFiles)
),
- message: m.action_failed_generic({
+ message: m.common_action_failed_with_type({
action: type === 'project' ? m.compose_destroy() : m.common_remove(),
type: type
}),
@@ -170,8 +170,8 @@
onSuccess: async () => {
toast.success(
type === 'project'
- ? m.action_destroyed_success({ type: m.project() })
- : m.action_removed_success({ type: m.container() })
+ ? m.common_destroyed_success({ type: m.project() })
+ : m.common_removed_success({ type: m.container() })
);
await invalidateAll();
goto(type === 'project' ? '/projects' : '/containers');
@@ -190,18 +190,18 @@
});
} else if (action === 'redeploy') {
openConfirmDialog({
- title: m.action_confirm_redeploy_title(),
- message: m.action_confirm_redeploy_message(),
+ title: m.common_confirm_redeploy_title(),
+ message: m.common_confirm_redeploy_message(),
confirm: {
- label: m.action_redeploy(),
+ label: m.common_redeploy(),
action: async () => {
setLoading('redeploy', true);
handleApiResultWithCallbacks({
result: await tryCatch(projectService.redeployProject(id)),
- message: m.action_failed_generic({ action: m.action_redeploy(), type }),
+ message: m.common_action_failed_with_type({ action: m.common_redeploy(), type }),
setLoadingState: (value) => setLoading('redeploy', value),
onSuccess: async () => {
- toast.success(m.action_redeploy_success({ type: name || type }));
+ toast.success(m.common_redeploy_success({ type: name || type }));
onActionComplete('running');
}
});
@@ -215,11 +215,11 @@
setLoading('start', true);
await handleApiResultWithCallbacks({
result: await tryCatch(type === 'container' ? containerService.startContainer(id) : projectService.deployProject(id)),
- message: m.action_failed_generic({ action: m.common_start(), type }),
+ message: m.common_action_failed_with_type({ action: m.common_start(), type }),
setLoadingState: (value) => setLoading('start', value),
onSuccess: async () => {
itemState = 'running';
- toast.success(m.action_started_success({ type: name || type }));
+ toast.success(m.common_started_success({ type: name || type }));
onActionComplete('running');
}
});
@@ -296,10 +296,10 @@
// Deploy already completed successfully
itemState = 'running';
- toast.success(m.action_started_success({ type: name || type }));
+ toast.success(m.common_started_success({ type: name || type }));
onActionComplete('running');
} catch (e: any) {
- const message = e?.message || m.action_failed_generic({ action: m.common_start(), type });
+ const message = e?.message || m.common_action_failed_with_type({ action: m.common_start(), type });
if (openedPopover) {
pullError = message;
pullStatusText = m.images_pull_failed_with_error({ error: message });
@@ -315,11 +315,11 @@
setLoading('stop', true);
await handleApiResultWithCallbacks({
result: await tryCatch(type === 'container' ? containerService.stopContainer(id) : projectService.downProject(id)),
- message: m.action_failed_generic({ action: m.common_stop(), type }),
+ message: m.common_action_failed_with_type({ action: m.common_stop(), type }),
setLoadingState: (value) => setLoading('stop', value),
onSuccess: async () => {
itemState = 'stopped';
- toast.success(m.action_stopped_success({ type: name || type }));
+ toast.success(m.common_stopped_success({ type: name || type }));
onActionComplete('stopped');
}
});
@@ -329,11 +329,11 @@
setLoading('restart', true);
await handleApiResultWithCallbacks({
result: await tryCatch(type === 'container' ? containerService.restartContainer(id) : projectService.restartProject(id)),
- message: m.action_failed_generic({ action: m.common_restart(), type }),
+ message: m.common_action_failed_with_type({ action: m.common_restart(), type }),
setLoadingState: (value) => setLoading('restart', value),
onSuccess: async () => {
itemState = 'running';
- toast.success(m.action_restarted_success({ type: name || type }));
+ toast.success(m.common_restarted_success({ type: name || type }));
onActionComplete('running');
}
});
@@ -439,7 +439,7 @@
{#if isRunning}
<ArcaneButton
action="stop"
- customLabel={type === 'project' ? (m.action_down ? m.action_down() : 'Down') : undefined}
+ customLabel={type === 'project' ? m.common_down() : undefined}
onclick={() => handleStop()}
loading={uiLoading.stop}
/>
@@ -493,12 +493,12 @@
</DropdownMenu.Item>
{:else}
<DropdownMenu.Item onclick={handleDeploy} disabled={uiLoading.start}>
- {m.action_up()}
+ {m.common_up()}
</DropdownMenu.Item>
{/if}
{:else}
<DropdownMenu.Item onclick={handleStop} disabled={uiLoading.stop}>
- {type === 'project' && m.action_down ? m.action_down() : m.common_stop()}
+ {type === 'project' ? m.common_down() : m.common_stop()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={handleRestart} disabled={uiLoading.restart}>
{m.common_restart()}
@@ -511,7 +511,7 @@
</DropdownMenu.Item>
{:else}
<DropdownMenu.Item onclick={() => confirmAction('redeploy')} disabled={uiLoading.redeploy}>
- {m.action_redeploy()}
+ {m.common_redeploy()}
</DropdownMenu.Item>
{#if type === 'project'}
diff --git a/frontend/src/lib/components/arcane-button/variants.ts b/frontend/src/lib/components/arcane-button/variants.ts
index 6a11ec3a4..2da3c1d50 100644
--- a/frontend/src/lib/components/arcane-button/variants.ts
+++ b/frontend/src/lib/components/arcane-button/variants.ts
@@ -78,69 +78,79 @@ export type ActionConfig = {
};
export const actionConfigs: Record<Action, ActionConfig> = {
- start: { defaultLabel: m.common_start(), IconComponent: PlayIcon, tone: 'outline-primary', loadingLabel: m.action_starting() },
+ start: {
+ defaultLabel: m.common_start(),
+ IconComponent: PlayIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.common_action_starting()
+ },
deploy: {
- defaultLabel: m.action_up(),
+ defaultLabel: m.common_up(),
IconComponent: PlayIcon,
tone: 'outline-primary',
- loadingLabel: m.action_deploying()
+ loadingLabel: m.common_action_deploying()
},
stop: {
defaultLabel: m.common_stop(),
IconComponent: CircleStopIcon,
tone: 'outline-destructive',
- loadingLabel: m.action_stopping()
+ loadingLabel: m.common_action_stopping()
},
remove: {
defaultLabel: m.common_remove(),
IconComponent: Trash2Icon,
tone: 'outline-destructive',
- loadingLabel: m.action_removing()
+ loadingLabel: m.common_action_removing()
},
restart: {
defaultLabel: m.common_restart(),
IconComponent: RotateCcwIcon,
tone: 'outline-primary',
- loadingLabel: m.action_restarting()
+ loadingLabel: m.common_action_restarting()
+ },
+ pull: {
+ defaultLabel: m.images_pull(),
+ IconComponent: DownloadIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.common_action_pulling()
},
- pull: { defaultLabel: m.images_pull(), IconComponent: DownloadIcon, tone: 'outline-primary', loadingLabel: m.images_pulling() },
redeploy: {
- defaultLabel: m.action_redeploy(),
+ defaultLabel: m.common_redeploy(),
IconComponent: RefreshCcwDotIcon,
tone: 'outline-primary',
- loadingLabel: m.action_redeploying()
+ loadingLabel: m.common_action_redeploying()
},
inspect: {
defaultLabel: m.common_inspect(),
IconComponent: ScanSearchIcon,
tone: 'outline-primary',
- loadingLabel: m.action_inspecting()
+ loadingLabel: m.common_action_inspecting()
},
edit: { defaultLabel: m.common_edit(), IconComponent: EditIcon, tone: 'outline-primary', loadingLabel: m.common_saving() },
confirm: {
defaultLabel: m.common_confirm(),
IconComponent: CheckIcon,
tone: 'outline-primary',
- loadingLabel: m.action_confirming()
+ loadingLabel: m.common_action_confirming()
},
save: { defaultLabel: m.common_save(), IconComponent: SaveIcon, tone: 'outline-primary', loadingLabel: m.common_saving() },
create: {
defaultLabel: m.common_create(),
IconComponent: PlusCircleIcon,
tone: 'outline-primary',
- loadingLabel: m.common_creating()
+ loadingLabel: m.common_action_creating()
},
template: {
- defaultLabel: m.action_use_template(),
+ defaultLabel: m.common_use_template(),
IconComponent: LayoutTemplateIcon,
tone: 'outline-primary',
- loadingLabel: m.common_creating()
+ loadingLabel: m.common_action_creating()
},
logs: {
defaultLabel: m.common_logs(),
IconComponent: FileTextIcon,
tone: 'ghost',
- loadingLabel: m.action_fetching_logs ? m.action_fetching_logs() : m.common_processing()
+ loadingLabel: m.common_action_fetching_logs()
},
- cancel: { defaultLabel: m.common_cancel(), IconComponent: XIcon, tone: 'ghost', loadingLabel: m.action_cancelling() }
+ cancel: { defaultLabel: m.common_cancel(), IconComponent: XIcon, tone: 'ghost', loadingLabel: m.common_action_cancelling() }
};
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
index 5369c3646..bb1e422c2 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
@@ -4,9 +4,9 @@
import { DataTableFacetedFilter, DataTableViewOptions } from './index.js';
import Button from '$lib/components/ui/button/button.svelte';
import { Input } from '$lib/components/ui/input/index.js';
- import { imageUpdateFilters, usageFilters, severityFilters } from './data.js';
+ import { imageUpdateFilters, usageFilters, severityFilters, templateTypeFilters } from './data.js';
import { debounced } from '$lib/utils/utils.js';
- import { ArcaneButton } from '$lib/components/arcane-button/index.js';
+ import { ArcaneButton } from '$lib/components/arcane-button';
import { m } from '$lib/paraglide/messages';
import type { Snippet } from 'svelte';
@@ -36,6 +36,7 @@
const severityColumn = $derived(
table.getAllColumns().some((col) => col.id === 'severity') ? table.getColumn('severity') : undefined
);
+ const typeColumn = $derived(table.getAllColumns().some((col) => col.id === 'type') ? table.getColumn('type') : undefined);
const debouncedSetGlobal = debounced((v: string) => table.setGlobalFilter(v), 300);
const hasSelection = $derived(!selectionDisabled && (selectedIds?.length ?? 0) > 0);
@@ -66,6 +67,9 @@
</div>
<div class="flex flex-wrap items-center gap-2 sm:gap-0 sm:space-x-2">
+ {#if typeColumn}
+ <DataTableFacetedFilter column={typeColumn} title={m.common_type()} options={templateTypeFilters} />
+ {/if}
{#if usageColumn}
<DataTableFacetedFilter column={usageColumn} title={m.common_usage()} options={usageFilters} />
{/if}
@@ -103,7 +107,7 @@
<ArcaneButton
action="remove"
size="sm"
- customLabel={m.common_remove_selected({ count: selectedIds?.length ?? 0 })}
+ customLabel={m.common_remove_selected_count({ count: selectedIds?.length ?? 0 })}
onclick={() => onRemoveSelected?.(selectedIds!)}
/>
{/if}
diff --git a/frontend/src/lib/components/arcane-table/data.ts b/frontend/src/lib/components/arcane-table/data.ts
index b57092a75..7b26a8430 100644
--- a/frontend/src/lib/components/arcane-table/data.ts
+++ b/frontend/src/lib/components/arcane-table/data.ts
@@ -6,6 +6,8 @@ import InfoIcon from '@lucide/svelte/icons/info';
import TriangleAlertIcon from '@lucide/svelte/icons/triangle-alert';
import CircleXIcon from '@lucide/svelte/icons/circle-x';
import CircleCheckIcon from '@lucide/svelte/icons/circle-check';
+import FolderOpenIcon from '@lucide/svelte/icons/folder-open';
+import GlobeIcon from '@lucide/svelte/icons/globe';
import { m } from '$lib/paraglide/messages';
export const usageFilters = [
@@ -56,3 +58,16 @@ export const severityFilters = [
icon: CircleXIcon
}
];
+
+export const templateTypeFilters = [
+ {
+ value: 'false',
+ label: m.templates_local(),
+ icon: FolderOpenIcon
+ },
+ {
+ value: 'true',
+ label: m.templates_remote(),
+ icon: GlobeIcon
+ }
+];
diff --git a/frontend/src/lib/components/code-editor/editor.svelte b/frontend/src/lib/components/code-editor/editor.svelte
index 1944d529f..13966c9a8 100644
--- a/frontend/src/lib/components/code-editor/editor.svelte
+++ b/frontend/src/lib/components/code-editor/editor.svelte
@@ -19,18 +19,9 @@
language = 'yaml' as CodeLanguage,
placeholder = m.editor_placeholder(),
readOnly = false,
- height = '550px',
- fontSize = '12px',
- class: className = ''
+ fontSize = '12px'
} = $props();
- const dynamicHeight = $derived(() => {
- if (height === 'full' || height === 'auto') {
- return 'calc(100dvh - 300px)';
- }
- return height;
- });
-
let editorView: EditorView;
function getLanguageExtension(lang: CodeLanguage): Extension[] {
@@ -78,7 +69,6 @@
const styles = $derived({
'&': {
- height: dynamicHeight(),
fontSize
},
'&.cm-editor[contenteditable=false]': {
@@ -94,19 +84,26 @@
}
</script>
-<div class={`overflow-hidden rounded-md border ${className}`}>
- <CodeMirror
- bind:value
- onready={(view) => handleReady(view)}
- {extensions}
- {styles}
- {placeholder}
- readonly={readOnly}
- nodebounce={true}
- />
-</div>
+<CodeMirror
+ bind:value
+ onready={(view) => handleReady(view)}
+ {extensions}
+ {styles}
+ {placeholder}
+ readonly={readOnly}
+ nodebounce={true}
+/>
<style>
+ :global(.cm-editor) {
+ height: 100%;
+ }
+ :global(.codemirror-wrapper) {
+ height: 100%;
+ }
+ :global(.cm-editor .cm-scroller) {
+ overflow: auto;
+ }
:global(.cm-editor .cm-gutters) {
background-color: #18181b;
border-right: none;
diff --git a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
index 2c0c2061e..591310869 100644
--- a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
@@ -121,7 +121,7 @@
<span class="font-mono text-sm">{dockerInfo?.osVersion ?? '-'}</span>
</div>
<div class="flex items-center justify-between">
- <span class="text-muted-foreground text-sm">{m.docker_info_architecture_label()}</span>
+ <span class="text-muted-foreground text-sm">{m.common_architecture()}</span>
<Badge>{dockerInfo?.architecture ?? '-'}</Badge>
</div>
<div class="flex items-center justify-between">
@@ -129,7 +129,7 @@
<span class="font-mono text-sm">{dockerInfo?.kernelVersion ?? '-'}</span>
</div>
<div class="flex items-center justify-between">
- <span class="text-muted-foreground text-sm">{m.docker_info_cpus_label()}</span>
+ <span class="text-muted-foreground text-sm">{m.common_cpus()}</span>
<Badge variant="secondary">{dockerInfo?.cpus ?? 0}</Badge>
</div>
<div class="flex items-center justify-between">
@@ -176,7 +176,7 @@
<Badge variant="secondary">{dockerInfo?.containers ?? 0}</Badge>
</div>
<div class="flex items-center justify-between">
- <span class="text-muted-foreground text-sm">{m.docker_info_running_label()}</span>
+ <span class="text-muted-foreground text-sm">{m.common_running()}</span>
<Badge class="border-emerald-500/30 bg-emerald-500/15 text-emerald-600">
{dockerInfo?.containersRunning ?? 0}
</Badge>
@@ -188,7 +188,7 @@
</Badge>
</div>
<div class="flex items-center justify-between">
- <span class="text-muted-foreground text-sm">{m.docker_info_stopped_label()}</span>
+ <span class="text-muted-foreground text-sm">{m.common_stopped()}</span>
<Badge variant="outline">{dockerInfo?.containersStopped ?? 0}</Badge>
</div>
<div class="flex items-center justify-between">
diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
index c4ee44454..1a0cca22a 100644
--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
@@ -141,7 +141,7 @@
disabled={selectedTypes.length === 0 || isPruning}
>
{#if isPruning}
- <Spinner class="mr-2 size-4" /> {m.images_pruning()}
+ <Spinner class="mr-2 size-4" /> {m.common_action_pruning()}
{:else}
<Trash2Icon class="mr-2 size-4" /> {m.prune_button({ count: selectedTypes.length })}
{/if}
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index f5102a091..67865f2f7 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -197,7 +197,7 @@
>
{#if loadingStates.has(`download-${template.id}`)}
<Spinner class="mr-1 size-3" />
- {m.templates_downloading()}
+ {m.common_action_downloading()}
{:else}
<DownloadIcon class="mr-1 size-3" />
{m.templates_download()}
@@ -207,7 +207,7 @@
<Button size="sm" onclick={() => handleSelect(template)} disabled={loadingStates.has(template.id)}>
{#if loadingStates.has(template.id)}
<Spinner class="mr-1 size-3" />
- {m.templates_loading()}
+ {m.common_loading()}
{:else}
{m.templates_use_now()}
{/if}
diff --git a/frontend/src/lib/components/image-update-item.svelte b/frontend/src/lib/components/image-update-item.svelte
index 5484a3090..eb8f88416 100644
--- a/frontend/src/lib/components/image-update-item.svelte
+++ b/frontend/src/lib/components/image-update-item.svelte
@@ -182,7 +182,7 @@
>
{#if isChecking}
<Spinner class="size-3" />
- {m.images_checking()}
+ {m.common_action_checking()}
{:else}
<RefreshCwIcon class="size-3 transition-transform group-hover:rotate-45" />
{m.image_update_recheck_button()}
@@ -235,7 +235,7 @@
<div class="bg-white/90 p-4 dark:bg-gray-950/90">
<div class="text-center">
<div class="mb-2 text-xs text-gray-600 dark:text-gray-400">
- {m.image_update_running_prefix()}
+ {m.common_running()}
<span class="rounded bg-gray-100 px-1.5 py-0.5 font-mono text-xs font-medium dark:bg-gray-800">{currentVersion}</span>
</div>
<div class="text-xs leading-relaxed text-gray-500 dark:text-gray-400">
diff --git a/frontend/src/lib/components/sheets/container-registry-sheet.svelte b/frontend/src/lib/components/sheets/container-registry-sheet.svelte
index 1209f2bd0..3d71a33d6 100644
--- a/frontend/src/lib/components/sheets/container-registry-sheet.svelte
+++ b/frontend/src/lib/components/sheets/container-registry-sheet.svelte
@@ -58,7 +58,7 @@
</div>
<div>
<Sheet.Title class="text-xl font-semibold">
- {isEditMode ? m.registries_edit_title() : m.registries_add_button()}
+ {isEditMode ? m.registries_edit_title() : m.common_add_button({ resource: m.resource_registry_cap() })}
</Sheet.Title>
<Sheet.Description class="text-muted-foreground mt-1 text-sm">
{isEditMode ? m.registries_edit_description() : m.registries_add_description()}
@@ -121,7 +121,7 @@
{#if isLoading}
<Spinner class="mr-2 size-4" />
{/if}
- {isEditMode ? m.registries_save_changes() : m.registries_add_button()}
+ {isEditMode ? m.registries_save_changes() : m.common_add_button({ resource: m.resource_registry_cap() })}
</Button>
</Sheet.Footer>
</form>
diff --git a/frontend/src/lib/components/sheets/create-container-sheet.svelte b/frontend/src/lib/components/sheets/create-container-sheet.svelte
index 2f7327d3e..15f5fa0e8 100644
--- a/frontend/src/lib/components/sheets/create-container-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-container-sheet.svelte
@@ -36,8 +36,8 @@
}: CreateContainerFormProps = $props();
const restartPolicies = [
- { value: 'no', label: m.restart_policy_no() },
- { value: 'always', label: m.restart_policy_always() },
+ { value: 'no', label: m.common_no() },
+ { value: 'always', label: m.common_always() },
{ value: 'unless-stopped', label: m.restart_policy_unless_stopped() },
{ value: 'on-failure', label: m.restart_policy_on_failure() }
];
@@ -299,9 +299,9 @@
<div class="flex-1">
<Tabs.Root value="basic" class="flex h-full flex-col">
<Tabs.List class="bg-muted/30 grid w-full shrink-0 grid-cols-6 border-b">
- <Tabs.Trigger value="basic" class="py-3">{m.tabs_basic()}</Tabs.Trigger>
+ <Tabs.Trigger value="basic" class="py-3">{m.common_basic()}</Tabs.Trigger>
<Tabs.Trigger value="environment" class="py-3">{m.tabs_environment()}</Tabs.Trigger>
- <Tabs.Trigger value="ports" class="py-3">{m.tabs_ports()}</Tabs.Trigger>
+ <Tabs.Trigger value="ports" class="py-3">{m.common_ports()}</Tabs.Trigger>
<Tabs.Trigger value="volumes" class="py-3">{m.tabs_volumes()}</Tabs.Trigger>
<Tabs.Trigger value="network" class="py-3">{m.tabs_network_security()}</Tabs.Trigger>
<Tabs.Trigger value="advanced" class="py-3">{m.tabs_advanced()}</Tabs.Trigger>
@@ -360,7 +360,7 @@
<div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
<div class="space-y-3">
<FormInput
- label={m.container_working_directory_label()}
+ label={m.common_working_directory()}
type="text"
placeholder={m.container_working_directory_placeholder()}
description={m.container_working_directory_description()}
@@ -497,7 +497,7 @@
<div class="grid grid-cols-1 gap-8 xl:grid-cols-2">
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">{m.port_mappings_title()}</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.common_port_mappings()}</h3>
<div class="space-y-3">
{#each portMappings as mapping, index (index)}
<div class="flex items-center gap-3">
@@ -564,7 +564,7 @@
<h3 class="mb-4 text-lg font-semibold">{m.port_configuration_title()}</h3>
<div class="space-y-4">
<FormInput
- label={m.exposed_ports_label()}
+ label={m.common_exposed_ports()}
type="text"
placeholder={m.exposed_ports_placeholder()}
description={m.exposed_ports_description()}
@@ -770,10 +770,10 @@
<Button type="submit" disabled={isLoading}>
{#if isLoading}
<Spinner class="mr-2 size-4" />
- {m.containers_creating()}
+ {m.common_action_creating()}
{:else}
<ContainerIcon class="mr-2 size-4" />
- {m.containers_create_button()}
+ {m.common_create_button({ resource: m.resource_container_cap() })}
{/if}
</Button>
</div>
diff --git a/frontend/src/lib/components/sheets/create-network-sheet.svelte b/frontend/src/lib/components/sheets/create-network-sheet.svelte
index 7e6ddbb56..b3d9b8546 100644
--- a/frontend/src/lib/components/sheets/create-network-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-network-sheet.svelte
@@ -33,7 +33,7 @@
const formSchema = z.object({
networkName: z.string().min(1, m.network_name_required()),
- networkDriver: z.string().min(1, m.network_driver_required()),
+ networkDriver: z.string().min(1, m.common_driver_required()),
checkDuplicate: z.boolean().default(true),
internal: z.boolean().default(false),
networkLabels: z.string().optional().default(''),
@@ -205,7 +205,7 @@
<Accordion.Root type="single" class="w-full">
<Accordion.Item value="labels">
- <Accordion.Trigger class="text-sm font-medium">{m.networks_labels()}</Accordion.Trigger>
+ <Accordion.Trigger class="text-sm font-medium">{m.common_labels()}</Accordion.Trigger>
<Accordion.Content class="pt-4">
<div class="space-y-4">
<div class="space-y-2">
@@ -263,7 +263,7 @@
{#if $inputs.enableIpam.value}
<div class="border-muted space-y-4 border-l-2 pl-6">
<div class="space-y-2">
- <Label for="subnet" class="text-sm font-medium">{m.networks_ipam_subnet_label()}</Label>
+ <Label for="subnet" class="text-sm font-medium">{m.common_subnet()}</Label>
<Input
id="subnet"
type="text"
@@ -311,10 +311,10 @@
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<Spinner class="mr-2 size-4" />
- {m.networks_creating()}
+ {m.common_action_creating()}
{:else}
<NetworkIcon class="mr-2 size-4" />
- {m.networks_create_button()}
+ {m.common_create_button({ resource: m.resource_network_cap() })}
{/if}
</Button>
</Sheet.Footer>
diff --git a/frontend/src/lib/components/sheets/create-volume-sheet.svelte b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
index ca62e5c71..8d130d3f7 100644
--- a/frontend/src/lib/components/sheets/create-volume-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
@@ -29,7 +29,7 @@
const formSchema = z.object({
volumeName: z.string().min(1, m.volume_name_required()),
- volumeDriver: z.string().min(1, m.volume_driver_required()),
+ volumeDriver: z.string().min(1, m.common_driver_required()),
volumeOptText: z.string().optional().default(''),
volumeLabels: z.string().optional().default('')
});
@@ -166,10 +166,10 @@
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<Spinner class="mr-2 size-4" />
- {m.volumes_creating()}
+ {m.common_action_creating()}
{:else}
<HardDriveIcon class="mr-2 size-4" />
- {m.volumes_create_button()}
+ {m.common_create_button({ resource: m.resource_volume_cap() })}
{/if}
</Button>
</Sheet.Footer>
diff --git a/frontend/src/lib/components/sheets/image-pull-sheet.svelte b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
index fb54a12c4..c2a319a65 100644
--- a/frontend/src/lib/components/sheets/image-pull-sheet.svelte
+++ b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
@@ -92,7 +92,7 @@
const fullImageName = `${imageName}:${imageTag}`;
const envId = await environmentStore.getCurrentEnvironmentId();
- pullStatusText = `${m.images_pulling()} ${fullImageName}`;
+ pullStatusText = `${m.common_action_pulling()} ${fullImageName}`;
try {
const response = await fetch(`/api/environments/${envId}/images/pull`, {
@@ -262,7 +262,7 @@
<div class="mt-4">
{#if isPulling}
<div class="mb-1 flex justify-between text-xs">
- <span>{pullStatusText || m.images_pulling()}</span>
+ <span>{pullStatusText || m.common_action_pulling()}</span>
<span>{Math.round(pullProgress)}%</span>
</div>
<div class="bg-secondary h-2 w-full overflow-hidden rounded-full">
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index dfe7c965c..32b92f555 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -94,7 +94,7 @@
<Card.Header
class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
- <Card.Title class="text-lg">{m.environments_add_button()}</Card.Title>
+ <Card.Title class="text-lg">{m.common_add_button({ resource: m.resource_environment_cap() })}</Card.Title>
</Card.Header>
<Card.Content class="px-6">
<form onsubmit={preventDefault(handleSubmit)} class="space-y-4">
@@ -120,7 +120,7 @@
{#if isSubmitting}
<Spinner class="mr-2 size-4" />
{/if}
- {m.environments_add_button()}
+ {m.common_add_button({ resource: m.resource_environment_cap() })}
</Button>
</form>
</Card.Content>
diff --git a/frontend/src/lib/components/sheets/user-form-sheet.svelte b/frontend/src/lib/components/sheets/user-form-sheet.svelte
index 8556c7204..2eb05b625 100644
--- a/frontend/src/lib/components/sheets/user-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/user-form-sheet.svelte
@@ -172,7 +172,7 @@
<Spinner class="mr-2 size-4" />
{/if}
<SubmitIcon class="mr-2 size-4" />
- {isEditMode ? m.users_save_changes() : m.users_create_button()}
+ {isEditMode ? m.users_save_changes() : m.common_create_button({ resource: m.resource_user_cap() })}
</Button>
</Sheet.Footer>
</form>
diff --git a/frontend/src/lib/config/navigation-config.ts b/frontend/src/lib/config/navigation-config.ts
index a8be4292a..653c48d2a 100644
--- a/frontend/src/lib/config/navigation-config.ts
+++ b/frontend/src/lib/config/navigation-config.ts
@@ -1,4 +1,5 @@
import type { Icon as IconType } from '@lucide/svelte';
+import PaletteIcon from '@lucide/svelte/icons/palette';
import FileStackIcon from '@lucide/svelte/icons/file-stack';
import HardDriveIcon from '@lucide/svelte/icons/hard-drive';
import HouseIcon from '@lucide/svelte/icons/home';
@@ -14,7 +15,6 @@ import ComputerIcon from '@lucide/svelte/icons/computer';
import LockKeyholeIcon from '@lucide/svelte/icons/lock-keyhole';
import AlarmClockIcon from '@lucide/svelte/icons/alarm-clock';
import NavigationIcon from '@lucide/svelte/icons/navigation';
-import PaletteIcon from '@lucide/svelte/icons/palette';
import FileTextIcon from '@lucide/svelte/icons/file-text';
import { m } from '$lib/paraglide/messages';
@@ -36,11 +36,10 @@ export const navigationItems: Record<string, NavigationItem[]> = {
],
customizationItems: [
{
- title: m.sidebar_customization(),
+ title: m.customize_title(),
url: '/customize',
icon: PaletteIcon,
items: [
- { title: m.default_templates(), url: '/customize/defaults', icon: PaletteIcon },
{ title: m.templates_title(), url: '/customize/templates', icon: LayoutTemplateIcon },
{ title: m.registries_title(), url: '/customize/registries', icon: LockKeyholeIcon },
{ title: m.variables_title(), url: '/customize/variables', icon: FileTextIcon }
@@ -61,7 +60,7 @@ export const navigationItems: Record<string, NavigationItem[]> = {
icon: AlarmClockIcon
},
{
- title: m.sidebar_settings(),
+ title: m.settings_title(),
url: '/settings',
icon: SettingsIcon,
items: [
diff --git a/frontend/src/lib/services/template-service.ts b/frontend/src/lib/services/template-service.ts
index 3cb6adc0b..188e3bc59 100644
--- a/frontend/src/lib/services/template-service.ts
+++ b/frontend/src/lib/services/template-service.ts
@@ -1,26 +1,25 @@
import BaseAPIService from './api-service';
-import type { TemplateRegistry, Template, RemoteRegistry } from '$lib/types/template.type';
+import type { TemplateRegistry, Template, RemoteRegistry, TemplateContentData } from '$lib/types/template.type';
import type { Variable } from '$lib/types/variable.type';
+import type { SearchPaginationSortRequest, Paginated } from '$lib/types/pagination.type';
+import { transformPaginationParams } from '$lib/utils/params.util';
export default class TemplateService extends BaseAPIService {
- async loadAll(): Promise<Template[]> {
- const response = await this.api.get('/templates');
+ async getTemplates(options?: SearchPaginationSortRequest): Promise<Paginated<Template>> {
+ const params = transformPaginationParams(options);
+ const response = await this.api.get('/templates', { params });
+ return response.data;
+ }
+
+ async getAllTemplates(): Promise<Template[]> {
+ const response = await this.api.get('/templates/all');
return response.data?.data ?? [];
}
- async getTemplateContent(id: string): Promise<{
- content: string;
- envContent: string;
- template: Template;
- }> {
+ async getTemplateContent(id: string): Promise<TemplateContentData> {
const encodedId = encodeURIComponent(id);
const response = await this.api.get(`/templates/${encodedId}/content`);
- const data = response.data?.data ?? {};
- return {
- content: data.content,
- envContent: data.envContent,
- template: data.template
- };
+ return response.data?.data;
}
async download(id: string): Promise<Template> {
@@ -80,6 +79,10 @@ export default class TemplateService extends BaseAPIService {
await this.api.delete(`/templates/registries/${id}`);
}
+ async deleteTemplate(id: string): Promise<void> {
+ await this.api.delete(`/templates/${encodeURIComponent(id)}`);
+ }
+
async getGlobalVariables(): Promise<Variable[]> {
const response = await this.api.get('/templates/variables');
return response.data?.data ?? [];
diff --git a/frontend/src/lib/types/template.type.ts b/frontend/src/lib/types/template.type.ts
index d72ed756f..62cfe1db0 100644
--- a/frontend/src/lib/types/template.type.ts
+++ b/frontend/src/lib/types/template.type.ts
@@ -21,7 +21,7 @@ export interface Template {
metadata?: {
version?: string;
author?: string;
- tags?: string | string[];
+ tags?: string[];
remoteUrl?: string;
envUrl?: string;
documentationUrl?: string;
@@ -31,6 +31,19 @@ export interface Template {
updatedAt: string;
}
+export interface EnvVariable {
+ key: string;
+ value: string;
+}
+
+export interface TemplateContentData {
+ template: Template;
+ content: string;
+ envContent: string;
+ services: string[];
+ envVariables: EnvVariable[];
+}
+
export interface RemoteTemplate {
id: string;
name: string;
diff --git a/frontend/src/routes/containers/+page.svelte b/frontend/src/routes/containers/+page.svelte
index ea28e96be..88dcf4356 100644
--- a/frontend/src/routes/containers/+page.svelte
+++ b/frontend/src/routes/containers/+page.svelte
@@ -49,7 +49,7 @@
let refreshingContainerCounts = true;
handleApiResultWithCallbacks({
result: await tryCatch(containerService.getContainers(requestOptions)),
- message: m.containers_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.containers_title() }),
setLoadingState: (value) => {
refreshingContainerList = value;
isLoading.refreshing = refreshingContainerCounts || refreshingContainerList;
@@ -60,7 +60,7 @@
});
handleApiResultWithCallbacks({
result: await tryCatch(containerService.getContainerStatusCounts()),
- message: m.containers_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.containers_title() }),
setLoadingState: (value) => {
refreshingContainerCounts = value;
isLoading.refreshing = refreshingContainerCounts || refreshingContainerList;
@@ -90,7 +90,7 @@
{
id: 'create',
action: 'create',
- label: m.containers_create_button(),
+ label: m.common_create_button({ resource: m.resource_container_cap() }),
onclick: () => (isCreateDialogOpen = true),
loading: isLoading.create,
disabled: isLoading.create
@@ -115,13 +115,13 @@
const statCards: StatCardConfig[] = $derived([
{
- title: m.containers_total(),
+ title: m.common_total(),
value: containerStatusCounts.totalContainers,
icon: BoxIcon,
class: 'border-l-primary border-l-4 transition-shadow hover:shadow-lg'
},
{
- title: m.containers_running(),
+ title: m.common_running(),
value: containerStatusCounts.runningContainers,
icon: BoxIcon,
iconColor: 'text-green-500',
@@ -129,7 +129,7 @@
class: 'border-l-4 border-l-green-500'
},
{
- title: m.containers_stopped(),
+ title: m.common_stopped(),
value: containerStatusCounts.stoppedContainers,
icon: BoxIcon,
iconColor: 'text-amber-500',
@@ -163,7 +163,7 @@
message: m.containers_create_failed(),
setLoadingState: (value) => (isLoading.create = value),
onSuccess: async () => {
- toast.success(m.containers_create_success());
+ toast.success(m.common_create_success({ resource: m.resource_container() }));
containers = await containerService.getContainers(requestOptions);
isCreateDialogOpen = false;
}
diff --git a/frontend/src/routes/containers/[containerId]/+page.svelte b/frontend/src/routes/containers/[containerId]/+page.svelte
index f38af26ed..af527f376 100644
--- a/frontend/src/routes/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/containers/[containerId]/+page.svelte
@@ -56,7 +56,7 @@
let statsStreamEnabled = $state(false);
const cleanContainerName = (name: string | undefined): string => {
- if (!name) return m.containers_not_found_title();
+ if (!name) return m.common_not_found_title({ resource: m.containers_title() });
return name.replace(/^\/+/, '');
};
@@ -219,11 +219,11 @@
const showShell = $derived(!!container?.state?.running);
const tabItems = $derived<TabItem[]>([
- { value: 'overview', label: m.containers_nav_overview(), icon: HardDriveIcon },
+ { value: 'overview', label: m.common_overview(), icon: HardDriveIcon },
...(showStats ? [{ value: 'stats', label: m.containers_nav_metrics(), icon: ActivityIcon }] : []),
{ value: 'logs', label: m.containers_nav_logs(), icon: FileTextIcon },
- ...(showShell ? [{ value: 'shell', label: m.shell(), icon: TerminalIcon }] : []),
- ...(showConfiguration ? [{ value: 'config', label: m.containers_nav_config(), icon: SettingsIcon }] : []),
+ ...(showShell ? [{ value: 'shell', label: m.common_shell(), icon: TerminalIcon }] : []),
+ ...(showConfiguration ? [{ value: 'config', label: m.common_configuration(), icon: SettingsIcon }] : []),
...(hasNetworks ? [{ value: 'network', label: m.containers_nav_networks(), icon: NetworkIcon }] : []),
...(hasMounts ? [{ value: 'storage', label: m.containers_nav_storage(), icon: DatabaseIcon }] : [])
]);
@@ -373,14 +373,14 @@
<div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
<CircleAlertIcon class="text-muted-foreground size-10" />
</div>
- <h2 class="mb-3 text-2xl font-medium">{m.containers_not_found_title()}</h2>
+ <h2 class="mb-3 text-2xl font-medium">{m.common_not_found_title({ resource: m.container() })}</h2>
<p class="text-muted-foreground mb-8 max-w-md text-center">
- {m.containers_not_found_description()}
+ {m.common_not_found_description({ resource: m.container().toLowerCase() })}
</p>
<div class="flex justify-center gap-4">
<Button variant="outline" href="/containers">
<ArrowLeftIcon class="mr-2 size-4" />
- {m.common_back_to_containers()}
+ {m.common_back_to({ resource: m.containers_title() })}
</Button>
<Button variant="default" onclick={refreshData}>
<RefreshCwIcon class="mr-2 size-4" />
diff --git a/frontend/src/routes/containers/components/ContainerConfiguration.svelte b/frontend/src/routes/containers/components/ContainerConfiguration.svelte
index 35fde8120..cb8157760 100644
--- a/frontend/src/routes/containers/components/ContainerConfiguration.svelte
+++ b/frontend/src/routes/containers/components/ContainerConfiguration.svelte
@@ -21,7 +21,7 @@
<div class="flex flex-col space-y-1.5">
<Card.Title>
<h2>
- {m.containers_env_vars_title()}
+ {m.common_environment_variables()}
</h2>
</Card.Title>
<Card.Description>{m.containers_env_vars_description()}</Card.Description>
@@ -78,7 +78,7 @@
{m.common_labels()}
</h2>
</Card.Title>
- <Card.Description>{m.common_labels_description()}</Card.Description>
+ <Card.Description>{m.common_labels_description({ resource: m.resource_container() })}</Card.Description>
</div>
</Card.Header>
<Card.Content class="p-4">
diff --git a/frontend/src/routes/containers/components/ContainerNetwork.svelte b/frontend/src/routes/containers/components/ContainerNetwork.svelte
index 4e21ba765..2c9500f2d 100644
--- a/frontend/src/routes/containers/components/ContainerNetwork.svelte
+++ b/frontend/src/routes/containers/components/ContainerNetwork.svelte
@@ -68,7 +68,7 @@
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.containers_gateway()}</div>
+ <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.common_gateway()}</div>
<div
class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
title="Click to select"
@@ -94,7 +94,7 @@
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.containers_subnet()}</div>
+ <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.common_subnet()}</div>
<div
class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
title="Click to select"
diff --git a/frontend/src/routes/containers/components/ContainerOverview.svelte b/frontend/src/routes/containers/components/ContainerOverview.svelte
index 616cf769d..1e518eb67 100644
--- a/frontend/src/routes/containers/components/ContainerOverview.svelte
+++ b/frontend/src/routes/containers/components/ContainerOverview.svelte
@@ -76,10 +76,10 @@
<div class="flex flex-col space-y-1.5">
<Card.Title>
<h2>
- {m.containers_details_title()}
+ {m.common_details_title({ resource: m.resource_container_cap() })}
</h2>
</Card.Title>
- <Card.Description>{m.containers_details_description()}</Card.Description>
+ <Card.Description>{m.common_details_description({ resource: m.resource_container() })}</Card.Description>
</div>
</Card.Header>
<Card.Content class="p-4">
@@ -263,7 +263,7 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
<div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
- {m.containers_working_directory()}
+ {m.common_working_directory()}
</div>
<div
class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
@@ -304,7 +304,7 @@
<Card.Root variant="subtle" class="sm:col-span-2 lg:col-span-3 xl:col-span-4">
<Card.Content class="flex flex-col gap-2 p-4">
<div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
- {m.containers_command()}
+ {m.common_command()}
</div>
<div
class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
@@ -320,7 +320,7 @@
{#if container.ports && container.ports.length > 0}
<div class="mt-6">
<div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
- {m.containers_port_mappings()}
+ {m.common_port_mappings()}
</div>
<PortBadge ports={container.ports} {baseServerUrl} />
</div>
diff --git a/frontend/src/routes/containers/components/ContainerShell.svelte b/frontend/src/routes/containers/components/ContainerShell.svelte
index 53366529e..673c47e93 100644
--- a/frontend/src/routes/containers/components/ContainerShell.svelte
+++ b/frontend/src/routes/containers/components/ContainerShell.svelte
@@ -85,7 +85,7 @@
<div class="flex items-center gap-2">
<Card.Title>
<h2>
- {m.shell_title()}
+ {m.common_shell()}
</h2>
</Card.Title>
{#if isConnected}
diff --git a/frontend/src/routes/containers/components/ContainerStats.svelte b/frontend/src/routes/containers/components/ContainerStats.svelte
index f01b2bc59..bac572c29 100644
--- a/frontend/src/routes/containers/components/ContainerStats.svelte
+++ b/frontend/src/routes/containers/components/ContainerStats.svelte
@@ -219,7 +219,7 @@
{#if cpuLimit > 0}
<span
>{m.containers_stats_cpu_limit()}: {cpuLimit}
- {cpuLimit === 1 ? m.containers_stats_cpu_unit_singular() : m.containers_stats_cpu_unit_plural()}</span
+ {cpuLimit === 1 ? m.containers_stats_cpu_unit_singular() : m.common_cpus()}</span
>
{:else}
<span>{m.containers_stats_online_cpus()}: {stats.cpu_stats.online_cpus}</span>
@@ -278,13 +278,13 @@
{#if stats.pids_stats && stats.pids_stats.current !== undefined}
<Card.Root variant="subtle" class="flex flex-col justify-center">
<Card.Content class="flex flex-col justify-center p-4">
- <div class="text-muted-foreground mb-2 text-xs font-semibold uppercase tracking-wide">
+ <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
{m.containers_process_count()}
</div>
<div class="text-foreground text-2xl font-bold">{stats.pids_stats.current}</div>
{#if stats.pids_stats.limit && stats.pids_stats.limit < Number.MAX_SAFE_INTEGER}
<div class="text-muted-foreground mt-1 text-xs">
- {m.containers_process_limit()}: {stats.pids_stats.limit}
+ {m.common_limit()}: {stats.pids_stats.limit}
</div>
{/if}
</Card.Content>
@@ -294,7 +294,7 @@
<!-- Network I/O Summary -->
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold uppercase tracking-wide">
+ <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
{m.containers_network_io()}
</div>
<div class="grid flex-1 grid-cols-2 gap-3">
@@ -330,7 +330,7 @@
{#if stats.blkio_stats && stats.blkio_stats.io_service_bytes_recursive && stats.blkio_stats.io_service_bytes_recursive.length > 0}
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold uppercase tracking-wide">
+ <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
{m.containers_block_io()}
</div>
<div class="grid flex-1 grid-cols-2 gap-3">
@@ -361,7 +361,7 @@
<div class="mt-4">
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold uppercase tracking-wide">
+ <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
{m.containers_stats_network_interfaces()}
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
@@ -405,16 +405,16 @@
{#if stats.memory_stats?.stats}
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold uppercase tracking-wide">
+ <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
{m.containers_stats_memory_details()}
</div>
<div class="grid flex-1 grid-cols-2 gap-x-4 gap-y-2 text-xs">
<div class="flex justify-between">
- <span class="text-muted-foreground">{m.containers_stats_memory_usage()}:</span>
+ <span class="text-muted-foreground">{m.common_usage()}:</span>
<span class="text-foreground font-medium">{memoryUsageFormatted}</span>
</div>
<div class="flex justify-between">
- <span class="text-muted-foreground">{m.containers_stats_memory_limit()}:</span>
+ <span class="text-muted-foreground">{m.common_limit()}:</span>
<span class="text-foreground font-medium">{memoryLimitFormatted}</span>
</div>
<div class="flex justify-between">
@@ -454,7 +454,7 @@
{#if stats.cpu_stats}
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold uppercase tracking-wide">
+ <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
{m.containers_stats_cpu_details()}
</div>
<div class="grid flex-1 grid-cols-2 gap-x-4 gap-y-2 text-xs">
@@ -463,7 +463,7 @@
<span class="text-foreground font-medium">{stats.cpu_stats.online_cpus}</span>
</div>
<div class="flex justify-between">
- <span class="text-muted-foreground">{m.containers_stats_cpu_usage()}:</span>
+ <span class="text-muted-foreground">{m.common_usage()}:</span>
<span class="text-foreground font-medium">{cpuUsagePercent.toFixed(2)}%</span>
</div>
<div class="flex justify-between">
diff --git a/frontend/src/routes/containers/container-table.svelte b/frontend/src/routes/containers/container-table.svelte
index c60aef983..d844d0693 100644
--- a/frontend/src/routes/containers/container-table.svelte
+++ b/frontend/src/routes/containers/container-table.svelte
@@ -144,7 +144,7 @@
{ accessorKey: 'state', title: m.common_state(), sortable: true, cell: StateCell },
{ accessorKey: 'image', title: m.common_image(), sortable: true },
{ accessorKey: 'status', title: m.common_status() },
- { accessorKey: 'ports', title: m.ports(), cell: PortsCell },
+ { accessorKey: 'ports', title: m.common_ports(), cell: PortsCell },
{ accessorKey: 'created', title: m.common_created(), sortable: true, cell: CreatedCell }
] satisfies ColumnSpec<ContainerSummaryDto>[];
@@ -153,7 +153,7 @@
{ id: 'state', label: m.common_state(), defaultVisible: true },
{ id: 'image', label: m.common_image(), defaultVisible: true },
{ id: 'status', label: m.common_status(), defaultVisible: true },
- { id: 'ports', label: m.ports(), defaultVisible: true },
+ { id: 'ports', label: m.common_ports(), defaultVisible: true },
{ id: 'created', label: m.common_created(), defaultVisible: true }
];
@@ -304,7 +304,7 @@
</div>
<div class="min-w-0 flex-1">
<div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
- {m.ports()}
+ {m.common_ports()}
</div>
<div class="mt-1">
<PortBadge ports={item.ports} {baseServerUrl} />
diff --git a/frontend/src/routes/customize/+page.svelte b/frontend/src/routes/customize/+page.svelte
index 7046f7837..af4712471 100644
--- a/frontend/src/routes/customize/+page.svelte
+++ b/frontend/src/routes/customize/+page.svelte
@@ -265,7 +265,7 @@
</div>
<div class="min-w-0 flex-1">
<div class="flex items-start justify-between gap-3">
- <h1 class="min-w-0 text-xl font-bold tracking-tight sm:text-2xl">{m.sidebar_customization()}</h1>
+ <h1 class="min-w-0 text-xl font-bold tracking-tight sm:text-2xl">{m.customize_title()}</h1>
<div class="shrink-0">
<UiConfigDisabledTag />
</div>
diff --git a/frontend/src/routes/customize/defaults/+page.svelte b/frontend/src/routes/customize/defaults/+page.svelte
deleted file mode 100644
index 0115252a1..000000000
--- a/frontend/src/routes/customize/defaults/+page.svelte
+++ /dev/null
@@ -1,132 +0,0 @@
-<script lang="ts">
- import { Label } from '$lib/components/ui/label/index.js';
- import { toast } from 'svelte-sonner';
- import CodeEditor from '$lib/components/code-editor/editor.svelte';
- import { createForm } from '$lib/utils/form.utils';
- import { tryCatch } from '$lib/utils/try-catch';
- import { handleApiResultWithCallbacks } from '$lib/utils/api.util';
- import { m } from '$lib/paraglide/messages';
- import { templateService } from '$lib/services/template-service';
- import { z } from 'zod/v4';
- import { ResourcePageLayout, type ActionButton } from '$lib/layouts/index.js';
-
- let { data } = $props();
-
- let saving = $state(false);
- let originalComposeContent = $state(data.composeTemplate);
- let originalEnvContent = $state(data.envTemplate);
-
- const formSchema = z.object({
- composeContent: z.string().min(1, m.compose_compose_content_required()),
- envContent: z.string().optional().default('')
- });
-
- let formData = $derived({
- composeContent: originalComposeContent,
- envContent: originalEnvContent
- });
-
- let { inputs, ...form } = $derived(createForm<typeof formSchema>(formSchema, formData));
-
- const hasChanges = $derived(
- $inputs.composeContent.value !== originalComposeContent || $inputs.envContent.value !== originalEnvContent
- );
-
- async function handleSave() {
- const validated = form.validate();
- if (!validated) {
- toast.error(m.customize_validation_error());
- return;
- }
-
- const { composeContent, envContent } = validated;
-
- handleApiResultWithCallbacks({
- result: await tryCatch(templateService.saveDefaultTemplates(composeContent, envContent)),
- message: m.customize_save_failed(),
- setLoadingState: (value) => (saving = value),
- onSuccess: async () => {
- toast.success(m.customize_save_success());
- originalComposeContent = $inputs.composeContent.value;
- originalEnvContent = $inputs.envContent.value;
- }
- });
- }
-
- async function handleReset() {
- $inputs.composeContent.value = originalComposeContent;
- $inputs.envContent.value = originalEnvContent;
- toast.info(m.customize_reset_success());
- }
-
- const actionButtons = $derived<ActionButton[]>([
- {
- id: 'reset',
- action: 'restart',
- label: m.common_reset(),
- onclick: handleReset,
- disabled: !hasChanges
- },
- {
- id: 'save',
- action: 'save',
- label: m.common_save(),
- loadingLabel: m.common_saving(),
- loading: saving,
- disabled: saving || !hasChanges,
- onclick: handleSave
- }
- ]);
-</script>
-
-<ResourcePageLayout title={m.customize_defaults_title()} subtitle={m.customize_defaults_description()} {actionButtons}>
- {#snippet mainContent()}
- <div class="space-y-6">
- <form class="space-y-6">
- <div class="grid grid-cols-1 gap-6 lg:grid-cols-3">
- <div class="lg:col-span-2">
- <div class="space-y-2">
- <Label for="compose" class="text-sm font-medium">
- {m.customize_compose_template_label()}
- </Label>
- <div
- class="border-input focus-within:border-primary focus-within:ring-ring relative rounded-md border bg-transparent transition-colors focus-within:ring-2 focus-within:ring-offset-2"
- class:border-destructive={$inputs.composeContent.error}
- >
- <div class="min-h-[500px] w-full overflow-hidden">
- <CodeEditor bind:value={$inputs.composeContent.value} language="yaml" height="full" />
- </div>
- </div>
- {#if $inputs.composeContent.error}
- <p class="text-destructive text-xs">
- {$inputs.composeContent.error}
- </p>
- {/if}
- </div>
- </div>
-
- <div class="lg:col-span-1">
- <div class="space-y-2">
- <Label for="env" class="text-sm font-medium">
- {m.customize_env_template_label()}
- </Label>
- <div
- class="border-input focus-within:border-primary focus-within:ring-ring relative rounded-md border bg-transparent transition-colors focus-within:ring-2 focus-within:ring-offset-2"
- class:border-destructive={$inputs.envContent.error}
- >
- <div class="min-h-[500px] w-full overflow-hidden">
- <CodeEditor bind:value={$inputs.envContent.value} language="env" height="full" />
- </div>
- </div>
- {#if $inputs.envContent.error}
- <p class="text-destructive text-xs">
- {$inputs.envContent.error}
- </p>
- {/if}
- </div>
- </div>
- </div>
- </form>
- </div>
- {/snippet}
-</ResourcePageLayout>
diff --git a/frontend/src/routes/customize/registries/+page.svelte b/frontend/src/routes/customize/registries/+page.svelte
index 3cc861fd2..1b87873ea 100644
--- a/frontend/src/routes/customize/registries/+page.svelte
+++ b/frontend/src/routes/customize/registries/+page.svelte
@@ -30,7 +30,7 @@
isLoading.refresh = true;
handleApiResultWithCallbacks({
result: await tryCatch(containerRegistryService.getRegistries(requestOptions)),
- message: m.registries_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.registries_title() }),
setLoadingState: (value) => (isLoading.refresh = value),
onSuccess: async (newRegistries) => {
registries = newRegistries;
@@ -60,10 +60,10 @@
try {
if (isEditMode && registryToEdit?.id) {
await containerRegistryService.updateRegistry(registryToEdit.id, registry as ContainerRegistryUpdateDto);
- toast.success(m.registries_update_success());
+ toast.success(m.common_update_success({ resource: m.resource_registry() }));
} else {
await containerRegistryService.createRegistry(registry as ContainerRegistryCreateDto);
- toast.success(m.registries_create_success());
+ toast.success(m.common_create_success({ resource: m.resource_registry() }));
}
registries = await containerRegistryService.getRegistries(requestOptions);
@@ -80,7 +80,7 @@
{
id: 'create',
action: 'create',
- label: m.registries_add_button(),
+ label: m.common_add_button({ resource: m.resource_registry_cap() }),
onclick: openCreateRegistryDialog
},
{
diff --git a/frontend/src/routes/customize/registries/registry-table.svelte b/frontend/src/routes/customize/registries/registry-table.svelte
index 0ed77366a..51e94a92c 100644
--- a/frontend/src/routes/customize/registries/registry-table.svelte
+++ b/frontend/src/routes/customize/registries/registry-table.svelte
@@ -88,7 +88,7 @@
async function handleDeleteOne(id: string, url: string) {
const safeUrl = url ?? m.common_unknown();
openConfirmDialog({
- title: m.registries_remove_title(),
+ title: m.common_remove_title({ resource: m.resource_registry() }),
message: m.registries_remove_message({ url: safeUrl }),
confirm: {
label: m.common_remove(),
@@ -102,7 +102,7 @@
message: m.registries_delete_failed({ url: safeUrl }),
setLoadingState: () => {},
onSuccess: async () => {
- toast.success(m.registries_delete_success({ url: safeUrl }));
+ toast.success(m.common_delete_success({ resource: `${m.resource_registry()} "${safeUrl}"` }));
registries = await containerRegistryService.getRegistries(requestOptions);
}
});
diff --git a/frontend/src/routes/customize/templates/+page.svelte b/frontend/src/routes/customize/templates/+page.svelte
index 9b128fa30..8fd44f4b1 100644
--- a/frontend/src/routes/customize/templates/+page.svelte
+++ b/frontend/src/routes/customize/templates/+page.svelte
@@ -1,49 +1,57 @@
<script lang="ts">
- import { Button } from '$lib/components/ui/button/index.js';
- import { Card } from '$lib/components/ui/card/index.js';
- import { Badge } from '$lib/components/ui/badge/index.js';
- import * as Alert from '$lib/components/ui/alert/index.js';
- import { Separator } from '$lib/components/ui/separator/index.js';
- import { Switch } from '$lib/components/ui/switch/index.js';
- import { Snippet } from '$lib/components/ui/snippet';
- import Trash2Icon from '@lucide/svelte/icons/trash-2';
- import PlusIcon from '@lucide/svelte/icons/plus';
- import ExternalLinkIcon from '@lucide/svelte/icons/external-link';
- import RefreshCwIcon from '@lucide/svelte/icons/refresh-cw';
- import FileTextIcon from '@lucide/svelte/icons/file-text';
+ import { goto } from '$app/navigation';
import GlobeIcon from '@lucide/svelte/icons/globe';
import FolderOpenIcon from '@lucide/svelte/icons/folder-open';
- import UsersIcon from '@lucide/svelte/icons/users';
+ import LayersIcon from '@lucide/svelte/icons/layers';
import { toast } from 'svelte-sonner';
import AddTemplateRegistrySheet from '$lib/components/sheets/add-template-registry-sheet.svelte';
import { m } from '$lib/paraglide/messages';
import { templateService } from '$lib/services/template-service.js';
- import { ResourcePageLayout, type ActionButton, type StatCardConfig } from '$lib/layouts/index.js';
+ import { ResourcePageLayout, type ActionButton, type StatCardConfig } from '$lib/layouts';
+ import { TabBar, type TabItem } from '$lib/components/tab-bar';
+ import * as Tabs from '$lib/components/ui/tabs';
+ import TemplatesBrowser from './components/TemplatesBrowser.svelte';
+ import RegistryManager from './components/RegistryManager.svelte';
+ import type { TemplateRegistry } from '$lib/types/template.type';
+ import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
let { data } = $props();
let templates = $state(data.templates);
- let registries = $state(data.registries);
+ let registries = $state<TemplateRegistry[]>(data.registries);
+ let requestOptions = $state<SearchPaginationSortRequest>(data.templateRequestOptions);
+ let activeView = $state<'browse' | 'registries'>('browse');
+
+ const tabItems: TabItem[] = [
+ {
+ value: 'browse',
+ label: m.templates_browse_templates(),
+ icon: LayersIcon
+ },
+ {
+ value: 'registries',
+ label: m.templates_manage_registries(),
+ icon: GlobeIcon
+ }
+ ];
let isLoading = $state({
addingRegistry: false,
- removing: new Set<string>(),
- updating: new Set<string>()
+ removing: {} as Record<string, boolean>,
+ updating: {} as Record<string, boolean>
});
let showAddRegistrySheet = $state(false);
- const localTemplateCount = $derived(templates.filter((t) => !t.isRemote).length);
- const remoteTemplateCount = $derived(templates.filter((t) => t.isRemote).length);
-
async function updateRegistry(id: string, updates: { enabled?: boolean }) {
- if (isLoading.updating.has(id)) return;
- isLoading.updating.add(id);
+ if (isLoading.updating[id]) return;
+ isLoading.updating[id] = true;
try {
const registry = registries.find((r) => r.id === id);
if (!registry) {
toast.error(m.templates_registry_not_found());
+ delete isLoading.updating[id];
return;
}
@@ -55,40 +63,46 @@
});
registries = await templateService.getRegistries();
- toast.success(m.registries_update_success());
+ templates = await templateService.getTemplates(requestOptions);
+ toast.success(m.common_update_success({ resource: m.resource_registry() }));
} catch (error) {
console.error('Error updating registry:', error);
toast.error(error instanceof Error ? error.message : m.registries_save_failed());
} finally {
- isLoading.updating.delete(id);
+ delete isLoading.updating[id];
}
}
async function removeRegistry(id: string) {
- if (isLoading.removing.has(id)) return;
- isLoading.removing.add(id);
+ if (isLoading.removing[id]) return;
+ isLoading.removing[id] = true;
try {
const reg = registries.find((r) => r.id === id);
await templateService.deleteRegistry(id);
registries = registries.filter((r) => r.id !== id);
registries = await templateService.getRegistries();
- toast.success(reg ? m.registries_delete_success({ url: reg.url }) : m.templates_registry_removed_success());
+ templates = await templateService.getTemplates(requestOptions);
+ toast.success(
+ reg
+ ? m.common_delete_success({ resource: `${m.resource_registry()} "${reg.url}"` })
+ : m.templates_registry_removed_success()
+ );
} catch (error) {
console.error('Error removing registry:', error);
toast.error(error instanceof Error ? error.message : m.registries_save_failed());
} finally {
- isLoading.removing.delete(id);
+ delete isLoading.removing[id];
}
}
async function refreshTemplates() {
try {
- templates = await templateService.loadAll();
+ templates = await templateService.getTemplates(requestOptions);
toast.success(m.templates_refreshed());
} catch (error) {
console.error('Error refreshing templates:', error);
- toast.error(m.templates_refresh_failed());
+ toast.error(m.common_refresh_failed({ resource: m.templates_title() }));
}
}
@@ -96,7 +110,7 @@
isLoading.addingRegistry = true;
try {
- const created = await templateService.addRegistry({
+ await templateService.addRegistry({
name: registry.name.trim(),
url: registry.url.trim(),
description: registry.description?.trim() || undefined,
@@ -104,9 +118,10 @@
});
registries = await templateService.getRegistries();
+ templates = await templateService.getTemplates(requestOptions);
showAddRegistrySheet = false;
- toast.success(m.registries_create_success());
+ toast.success(m.common_create_success({ resource: m.resource_registry() }));
} catch (error) {
console.error('Error adding registry:', error);
toast.error(error instanceof Error ? error.message : m.registries_save_failed());
@@ -116,25 +131,34 @@
}
const actionButtons: ActionButton[] = [
+ {
+ id: 'default',
+ action: 'edit',
+ label: m.templates_edit_default(),
+ onclick: () => goto('/customize/templates/default')
+ },
{
id: 'refresh',
action: 'restart',
- label: m.templates_refresh(),
+ label: m.common_refresh(),
onclick: refreshTemplates
}
];
+ const localTemplatesCount = $derived(templates.data?.filter((t) => !t.isRemote).length ?? 0);
+ const remoteTemplatesCount = $derived(templates.data?.filter((t) => t.isRemote).length ?? 0);
+
const statCards: StatCardConfig[] = $derived([
{
title: m.templates_local_templates(),
- value: localTemplateCount,
+ value: localTemplatesCount,
icon: FolderOpenIcon,
iconColor: 'text-blue-500',
class: 'border-l-4 border-l-blue-500'
},
{
title: m.templates_remote_templates(),
- value: remoteTemplateCount,
+ value: remoteTemplatesCount,
icon: GlobeIcon,
iconColor: 'text-green-500',
class: 'border-l-4 border-l-green-500'
@@ -142,7 +166,7 @@
{
title: m.templates_registries(),
value: registries.length,
- icon: FileTextIcon,
+ icon: LayersIcon,
iconColor: 'text-purple-500',
class: 'border-l-4 border-l-purple-500'
}
@@ -151,98 +175,38 @@
<ResourcePageLayout
title={m.templates_title()}
- subtitle={`${m.templates_subtitle()} `}
+ subtitle={m.templates_subtitle()}
{actionButtons}
{statCards}
statCardsColumns={3}
>
{#snippet mainContent()}
<div class="space-y-6">
- <Separator />
-
- <div class="space-y-4">
- <div class="flex items-center justify-between">
- <h2 class="text-xl font-semibold">{m.templates_registries_section_title()}</h2>
- <Button onclick={() => (showAddRegistrySheet = true)}>
- <PlusIcon class="mr-2 size-4" />
- {m.registries_add_button()}
- </Button>
+ <Tabs.Root bind:value={activeView}>
+ <div class="pb-6">
+ <div class="w-fit">
+ <TabBar
+ items={tabItems}
+ value={activeView}
+ onValueChange={(value) => (activeView = value as 'browse' | 'registries')}
+ />
+ </div>
</div>
- {#if registries.length == 0}
- <Alert.Root>
- <GlobeIcon class="size-4" />
- <Alert.Title>{m.templates_alert_remote_registries_title()}</Alert.Title>
- <Alert.Description>{m.templates_alert_remote_registries_description()}</Alert.Description>
- </Alert.Root>
- <Alert.Root class="border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950">
- <UsersIcon class="size-4" />
- <Alert.Title>{m.templates_community_registry_title()}</Alert.Title>
- <Alert.Description class="space-y-2">
- <p>{m.templates_community_registry_description()}</p>
- <div class="flex w-full max-w-[475px] flex-col gap-2">
- <Snippet text="https://registry.getarcane.app/registry.json" />
- </div>
- </Alert.Description>
- </Alert.Root>
- {/if}
- {#if registries.length > 0}
- <div class="space-y-3">
- {#each registries as registry}
- <Card class="p-4">
- <div class="flex items-center justify-between">
- <div class="flex-1">
- <div class="mb-1 flex items-center gap-2">
- <h4 class="font-medium">{registry.name}</h4>
- <Badge variant={registry.enabled ? 'default' : 'secondary'}>
- {registry.enabled ? m.common_enabled() : m.common_disabled()}
- </Badge>
- </div>
- <p class="text-muted-foreground break-all text-sm">{registry.url}</p>
- {#if registry.description}
- <p class="text-muted-foreground mt-1 text-sm">{registry.description}</p>
- {/if}
- </div>
- <div class="flex items-center gap-2">
- <Switch
- checked={registry.enabled}
- onCheckedChange={(checked) => updateRegistry(registry.id, { enabled: checked })}
- disabled={isLoading.updating.has(registry.id)}
- />
-
- <Button
- variant="outline"
- size="sm"
- onclick={() => window.open(registry.url, '_blank', 'noopener,noreferrer')}
- >
- <ExternalLinkIcon class="size-4" />
- </Button>
-
- <Button
- variant="destructive"
- size="sm"
- onclick={() => removeRegistry(registry.id)}
- disabled={isLoading.removing.has(registry.id)}
- >
- {#if isLoading.removing.has(registry.id)}
- <RefreshCwIcon class="size-4 animate-spin" />
- {:else}
- <Trash2Icon class="size-4" />
- {/if}
- </Button>
- </div>
- </div>
- </Card>
- {/each}
- </div>
- {:else}
- <div class="text-muted-foreground py-6 text-center">
- <GlobeIcon class="mx-auto mb-4 size-12 opacity-50" />
- <p class="mb-2">{m.templates_no_registries_title()}</p>
- <p class="text-sm">{m.templates_no_registries_description()}</p>
- </div>
- {/if}
- </div>
+ <Tabs.Content value="browse">
+ <TemplatesBrowser bind:templates bind:requestOptions />
+ </Tabs.Content>
+
+ <Tabs.Content value="registries">
+ <RegistryManager
+ {registries}
+ {isLoading}
+ onAddRegistry={() => (showAddRegistrySheet = true)}
+ onUpdateRegistry={updateRegistry}
+ onRemoveRegistry={removeRegistry}
+ />
+ </Tabs.Content>
+ </Tabs.Root>
</div>
{/snippet}
diff --git a/frontend/src/routes/customize/templates/+page.ts b/frontend/src/routes/customize/templates/+page.ts
index 9ddc9389c..1af3e5f7f 100644
--- a/frontend/src/routes/customize/templates/+page.ts
+++ b/frontend/src/routes/customize/templates/+page.ts
@@ -1,13 +1,29 @@
import { templateService } from '$lib/services/template-service';
+import type { Template, TemplateRegistry } from '$lib/types/template.type';
+import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
+import { resolveInitialTableRequest } from '$lib/utils/table-persistence.util';
+
+export const load = async (): Promise<{
+ templates: Paginated<Template>;
+ registries: TemplateRegistry[];
+ templateRequestOptions: SearchPaginationSortRequest;
+}> => {
+ const templateRequestOptions = resolveInitialTableRequest('arcane-template-table', {
+ pagination: { page: 1, limit: 20 },
+ sort: { column: 'name', direction: 'asc' }
+ } satisfies SearchPaginationSortRequest);
-export const load = async () => {
const [templates, registries] = await Promise.all([
- templateService.loadAll().catch(() => []),
+ templateService.getTemplates(templateRequestOptions).catch(() => ({
+ data: [],
+ pagination: { currentPage: 1, totalPages: 0, totalItems: 0, itemsPerPage: 20 }
+ })),
templateService.getRegistries().catch(() => [])
]);
return {
templates,
- registries
+ registries,
+ templateRequestOptions
};
};
diff --git a/frontend/src/routes/customize/templates/[id]/+page.svelte b/frontend/src/routes/customize/templates/[id]/+page.svelte
new file mode 100644
index 000000000..80b22e6ed
--- /dev/null
+++ b/frontend/src/routes/customize/templates/[id]/+page.svelte
@@ -0,0 +1,286 @@
+<script lang="ts">
+ import { Button } from '$lib/components/ui/button';
+ import * as Card from '$lib/components/ui/card';
+ import { Badge } from '$lib/components/ui/badge';
+ import { Spinner } from '$lib/components/ui/spinner';
+ import CodeEditor from '$lib/components/code-editor/editor.svelte';
+ import ArrowLeftIcon from '@lucide/svelte/icons/arrow-left';
+ import FolderIcon from '@lucide/svelte/icons/folder';
+ import FileTextIcon from '@lucide/svelte/icons/file-text';
+ import CodeIcon from '@lucide/svelte/icons/code';
+ import BoxIcon from '@lucide/svelte/icons/box';
+ import GlobeIcon from '@lucide/svelte/icons/globe';
+ import LayersIcon from '@lucide/svelte/icons/layers';
+ import DownloadIcon from '@lucide/svelte/icons/download';
+ import Trash2Icon from '@lucide/svelte/icons/trash-2';
+ import { goto, invalidateAll } from '$app/navigation';
+ import { m } from '$lib/paraglide/messages.js';
+ import { templateService } from '$lib/services/template-service';
+ import { openConfirmDialog } from '$lib/components/confirm-dialog';
+ import { toast } from 'svelte-sonner';
+
+ let { data } = $props();
+
+ let template = $derived(data.templateData.template);
+ let compose = $state(data.templateData.content);
+ let env = $state(data.templateData.envContent);
+ let services = $derived(data.templateData.services);
+ let envVars = $derived(data.templateData.envVariables);
+
+ let isDownloading = $state(false);
+ let isDeleting = $state(false);
+
+ const localVersionOfRemote = $derived(() => {
+ if (!template.isRemote || !template.metadata?.remoteUrl) return null;
+ return data.allTemplates.find((t) => !t.isRemote && t.metadata?.remoteUrl === template.metadata?.remoteUrl);
+ });
+
+ const canDelete = $derived(!template.isRemote);
+ const canDownload = $derived(template.isRemote && !localVersionOfRemote());
+
+ async function handleDownload() {
+ if (isDownloading || !canDownload) return;
+
+ isDownloading = true;
+ try {
+ const downloadedTemplate = await templateService.download(template.id);
+ toast.success(m.templates_downloaded_success({ name: template.name }));
+ if (downloadedTemplate?.id) {
+ await goto(`/customize/templates/${downloadedTemplate.id}`, { replaceState: true });
+ } else {
+ await invalidateAll();
+ }
+ } catch (error) {
+ console.error('Error downloading template:', error);
+ toast.error(error instanceof Error ? error.message : m.templates_download_failed());
+ } finally {
+ isDownloading = false;
+ }
+ }
+
+ async function handleDelete() {
+ if (isDeleting || !canDelete) return;
+
+ openConfirmDialog({
+ title: m.common_delete_title({ resource: m.resource_template() }),
+ message: m.common_delete_confirm({ resource: `${m.resource_template()} "${template.name}"` }),
+ confirm: {
+ label: m.templates_delete_template(),
+ destructive: true,
+ action: async () => {
+ isDeleting = true;
+ try {
+ await templateService.deleteTemplate(template.id);
+ toast.success(m.common_delete_success({ resource: `${m.resource_template()} "${template.name}"` }));
+ await goto('/customize/templates');
+ } catch (error) {
+ console.error('Error deleting template:', error);
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : m.common_delete_failed({ resource: `${m.resource_template()} "${template.name}"` })
+ );
+ isDeleting = false;
+ }
+ }
+ }
+ });
+ }
+</script>
+
+<div class="container mx-auto max-w-full space-y-6 overflow-hidden p-2 sm:p-6">
+ <div class="space-y-3 sm:space-y-4">
+ <Button variant="ghost" onclick={() => goto('/customize/templates')} class="w-fit gap-2">
+ <ArrowLeftIcon class="size-4" />
+ <span>{m.common_back_to({ resource: m.templates_title() })}</span>
+ </Button>
+
+ <div>
+ <h1 class="break-words text-xl font-bold sm:text-2xl">{template.name}</h1>
+ {#if template.description}
+ <p class="text-muted-foreground mt-1.5 break-words text-sm sm:text-base">{template.description}</p>
+ {/if}
+ </div>
+
+ <div class="flex flex-wrap items-center gap-2">
+ {#if template.isRemote}
+ <Badge variant="secondary" class="gap-1">
+ <GlobeIcon class="size-3" />
+ {m.templates_remote()}
+ </Badge>
+ {:else}
+ <Badge variant="secondary" class="gap-1">
+ <LayersIcon class="size-3" />
+ {m.templates_local()}
+ </Badge>
+ {/if}
+ {#if template.metadata?.tags && template.metadata.tags.length > 0}
+ {#each template.metadata.tags as tag}
+ <Badge variant="outline">{tag}</Badge>
+ {/each}
+ {/if}
+ </div>
+ <div class="flex flex-col gap-2 sm:flex-row">
+ <Button onclick={() => goto(`/projects/new?templateId=${template.id}`)} class="w-full gap-2 sm:w-auto">
+ <FolderIcon class="size-4" />
+ {m.compose_create_project()}
+ </Button>
+
+ {#if canDownload}
+ <Button variant="secondary" onclick={handleDownload} disabled={isDownloading} class="w-full gap-2 sm:w-auto">
+ {#if isDownloading}
+ <Spinner class="size-4" />
+ {m.common_action_downloading()}
+ {:else}
+ <DownloadIcon class="size-4" />
+ {m.templates_download()}
+ {/if}
+ </Button>
+ {:else if template.isRemote && localVersionOfRemote()}
+ <Button
+ variant="outline"
+ onclick={() => goto(`/customize/templates/${localVersionOfRemote()?.id}`)}
+ class="w-full gap-2 sm:w-auto"
+ >
+ <FolderIcon class="size-4" />
+ {m.templates_view_local_version()}
+ </Button>
+ {/if}
+
+ {#if canDelete}
+ <Button variant="destructive" onclick={handleDelete} disabled={isDeleting} class="w-full gap-2 sm:w-auto">
+ {#if isDeleting}
+ <Spinner class="size-4" />
+ {m.common_action_deleting()}
+ {:else}
+ <Trash2Icon class="size-4" />
+ {m.templates_delete_template()}
+ {/if}
+ </Button>
+ {/if}
+ </div>
+ </div>
+
+ <div class="grid gap-4 sm:grid-cols-2">
+ <Card.Root variant="subtle">
+ <Card.Content class="flex items-center gap-4 p-4">
+ <div class="flex size-12 shrink-0 items-center justify-center rounded-lg bg-blue-500/10">
+ <BoxIcon class="size-6 text-blue-500" />
+ </div>
+ <div class="min-w-0 flex-1">
+ <div class="text-muted-foreground text-xs font-semibold uppercase tracking-wide">{m.compose_services()}</div>
+ <div class="mt-1">
+ <div class="text-2xl font-bold">{services.length}</div>
+ </div>
+ </div>
+ </Card.Content>
+ </Card.Root>
+
+ <Card.Root variant="subtle">
+ <Card.Content class="flex items-center gap-4 p-4">
+ <div class="flex size-12 shrink-0 items-center justify-center rounded-lg bg-purple-500/10">
+ <FileTextIcon class="size-6 text-purple-500" />
+ </div>
+ <div class="min-w-0 flex-1">
+ <div class="text-muted-foreground text-xs font-semibold uppercase tracking-wide">
+ {m.common_environment_variables()}
+ </div>
+ <div class="mt-1 flex flex-wrap items-baseline gap-2">
+ <div class="text-2xl font-bold">{envVars.length}</div>
+ {#if envVars.length > 0}
+ <div class="text-muted-foreground text-sm">{m.templates_configurable_settings()}</div>
+ {/if}
+ </div>
+ </div>
+ </Card.Content>
+ </Card.Root>
+ </div>
+
+ <div class="grid gap-6 lg:grid-cols-2 xl:grid-cols-3">
+ <Card.Root class="flex min-w-0 flex-col lg:col-span-1 xl:col-span-2">
+ <Card.Header icon={CodeIcon} class="flex-shrink-0">
+ <div class="flex flex-col space-y-1.5">
+ <Card.Title>
+ <h2>{m.common_docker_compose()}</h2>
+ </Card.Title>
+ <Card.Description>{m.templates_service_definitions()}</Card.Description>
+ </div>
+ </Card.Header>
+ <Card.Content class="min-h-[500px] flex-grow p-0 lg:h-full">
+ <div class="h-full rounded-b-xl rounded-t-none [&_.cm-content]:text-xs sm:[&_.cm-content]:text-sm">
+ <CodeEditor bind:value={compose} language="yaml" readOnly={true} />
+ </div>
+ </Card.Content>
+ </Card.Root>
+
+ <div class="flex min-w-0 flex-col gap-6 lg:col-span-1">
+ {#if services.length > 0}
+ <Card.Root class="min-w-0 flex-shrink-0">
+ <Card.Header icon={BoxIcon}>
+ <div class="flex flex-col space-y-1.5">
+ <Card.Title>
+ <h2>{m.services()}</h2>
+ </Card.Title>
+ <Card.Description>{m.templates_containers_to_create()}</Card.Description>
+ </div>
+ </Card.Header>
+ <Card.Content class="grid grid-cols-1 gap-2 p-4">
+ {#each services as service}
+ <Card.Root variant="subtle" class="min-w-0">
+ <Card.Content class="flex min-w-0 items-center gap-3 p-3">
+ <div class="flex size-8 shrink-0 items-center justify-center rounded-lg bg-blue-500/10">
+ <BoxIcon class="size-4 text-blue-500" />
+ </div>
+ <div class="min-w-0 flex-1 truncate font-mono text-sm font-semibold">{service}</div>
+ </Card.Content>
+ </Card.Root>
+ {/each}
+ </Card.Content>
+ </Card.Root>
+ {/if}
+
+ {#if env && envVars.length > 0}
+ <Card.Root class="min-w-0 flex-shrink-0">
+ <Card.Header icon={FileTextIcon}>
+ <div class="flex flex-col space-y-1.5">
+ <Card.Title>
+ <h2>{m.common_environment_variables()}</h2>
+ </Card.Title>
+ <Card.Description>{m.templates_default_config_values()}</Card.Description>
+ </div>
+ </Card.Header>
+ <Card.Content class="grid grid-cols-1 gap-2 p-4">
+ {#each envVars as envVar}
+ <Card.Root variant="subtle" class="min-w-0">
+ <Card.Content class="flex min-w-0 flex-col gap-2 p-3">
+ <div class="text-muted-foreground truncate text-xs font-semibold uppercase tracking-wide">{envVar.key}</div>
+ {#if envVar.value}
+ <div class="text-foreground min-w-0 select-all break-words font-mono text-sm">{envVar.value}</div>
+ {:else}
+ <div class="text-muted-foreground text-xs italic">{m.common_no_default_value()}</div>
+ {/if}
+ </Card.Content>
+ </Card.Root>
+ {/each}
+ </Card.Content>
+ </Card.Root>
+
+ <Card.Root class="flex min-w-0 flex-grow flex-col lg:h-full">
+ <Card.Header icon={FileTextIcon} class="flex-shrink-0">
+ <div class="flex flex-col space-y-1.5">
+ <Card.Title>
+ <h2>{m.environment_file()}</h2>
+ </Card.Title>
+ <Card.Description>{m.templates_raw_env_config()}</Card.Description>
+ </div>
+ </Card.Header>
+ <Card.Content class="h-[500px] flex-grow p-0 lg:h-full">
+ <div class="h-full rounded-b-xl [&_.cm-content]:text-xs sm:[&_.cm-content]:text-sm">
+ <CodeEditor bind:value={env} language="env" readOnly={true} />
+ </div>
+ </Card.Content>
+ </Card.Root>
+ {/if}
+ </div>
+ </div>
+</div>
diff --git a/frontend/src/routes/customize/templates/[id]/+page.ts b/frontend/src/routes/customize/templates/[id]/+page.ts
new file mode 100644
index 000000000..7fcf56a7f
--- /dev/null
+++ b/frontend/src/routes/customize/templates/[id]/+page.ts
@@ -0,0 +1,25 @@
+import { templateService } from '$lib/services/template-service';
+import { error } from '@sveltejs/kit';
+import type { Template, TemplateContentData } from '$lib/types/template.type';
+
+export const load = async ({
+ params
+}): Promise<{
+ templateData: TemplateContentData;
+ allTemplates: Template[];
+}> => {
+ try {
+ const [templateData, allTemplates] = await Promise.all([
+ templateService.getTemplateContent(params.id),
+ templateService.getAllTemplates()
+ ]);
+
+ return {
+ templateData,
+ allTemplates
+ };
+ } catch (err) {
+ console.error('Failed to load template:', err);
+ throw error(404, 'Template not found');
+ }
+};
diff --git a/frontend/src/routes/customize/templates/components/RegistryManager.svelte b/frontend/src/routes/customize/templates/components/RegistryManager.svelte
new file mode 100644
index 000000000..5c9ecf6cc
--- /dev/null
+++ b/frontend/src/routes/customize/templates/components/RegistryManager.svelte
@@ -0,0 +1,112 @@
+<script lang="ts">
+ import { Button } from '$lib/components/ui/button';
+ import * as Card from '$lib/components/ui/card';
+ import { Badge } from '$lib/components/ui/badge';
+ import * as Alert from '$lib/components/ui/alert';
+ import { Switch } from '$lib/components/ui/switch';
+ import { Snippet } from '$lib/components/ui/snippet';
+ import Trash2Icon from '@lucide/svelte/icons/trash-2';
+ import PlusIcon from '@lucide/svelte/icons/plus';
+ import ExternalLinkIcon from '@lucide/svelte/icons/external-link';
+ import RefreshCwIcon from '@lucide/svelte/icons/refresh-cw';
+ import GlobeIcon from '@lucide/svelte/icons/globe';
+ import UsersIcon from '@lucide/svelte/icons/users';
+ import { m } from '$lib/paraglide/messages';
+ import type { TemplateRegistry } from '$lib/types/template.type';
+
+ let {
+ registries,
+ isLoading,
+ onAddRegistry,
+ onUpdateRegistry,
+ onRemoveRegistry
+ }: {
+ registries: TemplateRegistry[];
+ isLoading: {
+ updating: Record<string, boolean>;
+ removing: Record<string, boolean>;
+ };
+ onAddRegistry: () => void;
+ onUpdateRegistry: (id: string, updates: { enabled?: boolean }) => void;
+ onRemoveRegistry: (id: string) => void;
+ } = $props();
+</script>
+
+<div class="space-y-6">
+ <div class="flex items-center justify-between">
+ <div>
+ <h3 class="text-lg font-semibold">{m.templates_registries_section_title()}</h3>
+ <p class="text-muted-foreground text-sm">{m.templates_registries_section_description()}</p>
+ </div>
+ <Button onclick={onAddRegistry}>
+ <PlusIcon class="mr-2 size-4" />
+ {m.common_add_button({ resource: m.resource_registry_cap() })}
+ </Button>
+ </div>
+
+ {#if registries.length === 0}
+ <div class="space-y-4">
+ <Alert.Root>
+ <GlobeIcon class="size-4" />
+ <Alert.Title>{m.templates_alert_remote_registries_title()}</Alert.Title>
+ <Alert.Description>{m.templates_alert_remote_registries_description()}</Alert.Description>
+ </Alert.Root>
+
+ <Alert.Root class="border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950">
+ <UsersIcon class="size-4" />
+ <Alert.Title>{m.templates_community_registry_title()}</Alert.Title>
+ <Alert.Description class="space-y-2">
+ <p>{m.templates_community_registry_description()}</p>
+ <div class="flex w-full max-w-[475px] flex-col gap-2">
+ <Snippet text="https://registry.getarcane.app/registry.json" />
+ </div>
+ </Alert.Description>
+ </Alert.Root>
+ </div>
+ {:else}
+ <div class="space-y-3">
+ {#each registries as registry}
+ <Card.Root class="p-4">
+ <div class="flex items-center justify-between">
+ <div class="flex-1">
+ <div class="mb-1 flex items-center gap-2">
+ <h4 class="font-medium">{registry.name}</h4>
+ <Badge variant={registry.enabled ? 'default' : 'secondary'}>
+ {registry.enabled ? m.common_enabled() : m.common_disabled()}
+ </Badge>
+ </div>
+ <p class="text-muted-foreground break-all text-sm">{registry.url}</p>
+ {#if registry.description}
+ <p class="text-muted-foreground mt-1 text-sm">{registry.description}</p>
+ {/if}
+ </div>
+ <div class="flex items-center gap-2">
+ <Switch
+ checked={registry.enabled}
+ onCheckedChange={(checked) => onUpdateRegistry(registry.id, { enabled: checked })}
+ disabled={isLoading.updating[registry.id]}
+ />
+
+ <Button variant="outline" size="sm" onclick={() => window.open(registry.url, '_blank', 'noopener,noreferrer')}>
+ <ExternalLinkIcon class="size-4" />
+ </Button>
+
+ <Button
+ variant="destructive"
+ size="sm"
+ onclick={() => onRemoveRegistry(registry.id)}
+ disabled={isLoading.removing[registry.id]}
+ >
+ {#if isLoading.removing[registry.id]}
+ <RefreshCwIcon class="size-4 animate-spin" />
+ {:else}
+ <Trash2Icon class="size-4" />
+ {/if}
+ </Button>
+ </div>
+ </div>
+ </Card.Root>
+ {/each}
+ </div>
+ {/if}
+</div>
diff --git a/frontend/src/routes/customize/templates/components/TemplatesBrowser.svelte b/frontend/src/routes/customize/templates/components/TemplatesBrowser.svelte
new file mode 100644
index 000000000..ff1aceb2d
--- /dev/null
+++ b/frontend/src/routes/customize/templates/components/TemplatesBrowser.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ import TemplateTable from '../template-table.svelte';
+ import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
+ import type { Template } from '$lib/types/template.type';
+
+ let {
+ templates = $bindable(),
+ requestOptions = $bindable()
+ }: {
+ templates: Paginated<Template>;
+ requestOptions: SearchPaginationSortRequest;
+ } = $props();
+
+ let selectedIds = $state<string[]>([]);
+</script>
+
+<TemplateTable bind:templates bind:selectedIds bind:requestOptions />
diff --git a/frontend/src/routes/customize/templates/default/+page.svelte b/frontend/src/routes/customize/templates/default/+page.svelte
new file mode 100644
index 000000000..c509426af
--- /dev/null
+++ b/frontend/src/routes/customize/templates/default/+page.svelte
@@ -0,0 +1,144 @@
+<script lang="ts">
+ import { Button } from '$lib/components/ui/button';
+ import * as Card from '$lib/components/ui/card';
+ import { toast } from 'svelte-sonner';
+ import CodeEditor from '$lib/components/code-editor/editor.svelte';
+ import { createForm } from '$lib/utils/form.utils';
+ import { tryCatch } from '$lib/utils/try-catch';
+ import { handleApiResultWithCallbacks } from '$lib/utils/api.util';
+ import { m } from '$lib/paraglide/messages';
+ import { templateService } from '$lib/services/template-service';
+ import { z } from 'zod/v4';
+ import { ResourcePageLayout, type ActionButton } from '$lib/layouts';
+ import { goto } from '$app/navigation';
+ import ArrowLeftIcon from '@lucide/svelte/icons/arrow-left';
+ import CodeIcon from '@lucide/svelte/icons/code';
+ import FileTextIcon from '@lucide/svelte/icons/file-text';
+
+ let { data } = $props();
+
+ let saving = $state(false);
+ let originalComposeContent = $state(data.composeTemplate);
+ let originalEnvContent = $state(data.envTemplate);
+
+ const formSchema = z.object({
+ composeContent: z.string().min(1, m.compose_compose_content_required()),
+ envContent: z.string().optional().default('')
+ });
+
+ let formData = $derived({
+ composeContent: originalComposeContent,
+ envContent: originalEnvContent
+ });
+
+ let { inputs, ...form } = $derived(createForm<typeof formSchema>(formSchema, formData));
+
+ const hasChanges = $derived(
+ $inputs.composeContent.value !== originalComposeContent || $inputs.envContent.value !== originalEnvContent
+ );
+
+ async function handleSave() {
+ const validated = form.validate();
+ if (!validated) {
+ toast.error(m.templates_validation_error());
+ return;
+ }
+
+ const { composeContent, envContent } = validated;
+
+ handleApiResultWithCallbacks({
+ result: await tryCatch(templateService.saveDefaultTemplates(composeContent, envContent)),
+ message: m.templates_save_failed(),
+ setLoadingState: (value) => (saving = value),
+ onSuccess: async () => {
+ toast.success(m.templates_save_success());
+ originalComposeContent = $inputs.composeContent.value;
+ originalEnvContent = $inputs.envContent.value;
+ }
+ });
+ }
+
+ async function handleReset() {
+ $inputs.composeContent.value = originalComposeContent;
+ $inputs.envContent.value = originalEnvContent;
+ toast.info(m.templates_reset_success());
+ }
+
+ const actionButtons = $derived<ActionButton[]>([
+ {
+ id: 'reset',
+ action: 'restart',
+ label: m.common_reset(),
+ onclick: handleReset,
+ disabled: !hasChanges
+ },
+ {
+ id: 'save',
+ action: 'save',
+ label: m.common_save(),
+ loadingLabel: m.common_saving(),
+ loading: saving,
+ disabled: saving || !hasChanges,
+ onclick: handleSave
+ }
+ ]);
+</script>
+
+<div class="space-y-4">
+ <Button variant="ghost" onclick={() => goto('/customize/templates')} class="w-fit gap-2">
+ <ArrowLeftIcon class="size-4" />
+ <span>{m.common_back_to({ resource: m.templates_title() })}</span>
+ </Button>
+
+ <ResourcePageLayout title={m.templates_defaults_title()} subtitle={m.templates_defaults_description()} {actionButtons}>
+ {#snippet mainContent()}
+ <div class="grid grid-cols-1 gap-6 lg:grid-cols-5 lg:items-stretch">
+ <Card.Root class="flex min-w-0 flex-col lg:col-span-3">
+ <Card.Header icon={CodeIcon} class="flex-shrink-0">
+ <div class="flex flex-col space-y-1.5">
+ <Card.Title>
+ <h2>{m.templates_compose_template_label()}</h2>
+ </Card.Title>
+ <Card.Description>{m.templates_service_definitions()}</Card.Description>
+ </div>
+ </Card.Header>
+ <Card.Content class="min-h-[500px] flex-grow p-0 lg:h-full">
+ <div class="h-full rounded-b-xl [&_.cm-content]:text-xs sm:[&_.cm-content]:text-sm">
+ <CodeEditor bind:value={$inputs.composeContent.value} language="yaml" />
+ </div>
+ </Card.Content>
+ {#if $inputs.composeContent.error}
+ <Card.Footer class="pt-0">
+ <p class="text-destructive text-xs">
+ {$inputs.composeContent.error}
+ </p>
+ </Card.Footer>
+ {/if}
+ </Card.Root>
+
+ <Card.Root class="flex min-w-0 flex-col lg:col-span-2">
+ <Card.Header icon={FileTextIcon} class="flex-shrink-0">
+ <div class="flex flex-col space-y-1.5">
+ <Card.Title>
+ <h2>{m.templates_env_template_label()}</h2>
+ </Card.Title>
+ <Card.Description>{m.templates_default_config_values()}</Card.Description>
+ </div>
+ </Card.Header>
+ <Card.Content class="min-h-[500px] flex-grow p-0 lg:h-full">
+ <div class="h-full rounded-b-xl [&_.cm-content]:text-xs sm:[&_.cm-content]:text-sm">
+ <CodeEditor bind:value={$inputs.envContent.value} language="env" />
+ </div>
+ </Card.Content>
+ {#if $inputs.envContent.error}
+ <Card.Footer class="pt-0">
+ <p class="text-destructive text-xs">
+ {$inputs.envContent.error}
+ </p>
+ </Card.Footer>
+ {/if}
+ </Card.Root>
+ </div>
+ {/snippet}
+ </ResourcePageLayout>
+</div>
diff --git a/frontend/src/routes/customize/defaults/+page.ts b/frontend/src/routes/customize/templates/default/+page.ts
similarity index 80%
rename from frontend/src/routes/customize/defaults/+page.ts
rename to frontend/src/routes/customize/templates/default/+page.ts
index c24bb3a9b..8c1f06c9e 100644
--- a/frontend/src/routes/customize/defaults/+page.ts
+++ b/frontend/src/routes/customize/templates/default/+page.ts
@@ -1,6 +1,6 @@
import { templateService } from '$lib/services/template-service';
-export const load = async () => {
+export const load = async (): Promise<{ composeTemplate: string; envTemplate: string }> => {
const defaultTemplates = await templateService.getDefaultTemplates().catch((err) => {
console.warn('Failed to load default templates:', err);
return { composeTemplate: '', envTemplate: '' };
diff --git a/frontend/src/routes/customize/templates/template-table.svelte b/frontend/src/routes/customize/templates/template-table.svelte
new file mode 100644
index 000000000..776d8a785
--- /dev/null
+++ b/frontend/src/routes/customize/templates/template-table.svelte
@@ -0,0 +1,435 @@
+<script lang="ts">
+ import ArcaneTable from '$lib/components/arcane-table/arcane-table.svelte';
+ import { Button } from '$lib/components/ui/button/index.js';
+ import { Badge } from '$lib/components/ui/badge';
+ import EllipsisIcon from '@lucide/svelte/icons/ellipsis';
+ import ScanSearchIcon from '@lucide/svelte/icons/scan-search';
+ import FolderOpenIcon from '@lucide/svelte/icons/folder-open';
+ import GlobeIcon from '@lucide/svelte/icons/globe';
+ import Trash2Icon from '@lucide/svelte/icons/trash-2';
+ import DownloadIcon from '@lucide/svelte/icons/download';
+ import PlusCircleIcon from '@lucide/svelte/icons/plus-circle';
+ import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
+ import ChevronDownIcon from '@lucide/svelte/icons/chevron-down';
+ import { Spinner } from '$lib/components/ui/spinner/index.js';
+ import * as Card from '$lib/components/ui/card/index.js';
+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';
+ import * as Collapsible from '$lib/components/ui/collapsible/index.js';
+ import type { Table as TableType, Row } from '@tanstack/table-core';
+ import * as Table from '$lib/components/ui/table/index.js';
+ import FlexRender from '$lib/components/ui/data-table/flex-render.svelte';
+ import { goto } from '$app/navigation';
+ import { toast } from 'svelte-sonner';
+ import { openConfirmDialog } from '$lib/components/confirm-dialog';
+ import { handleApiResultWithCallbacks } from '$lib/utils/api.util';
+ import { tryCatch } from '$lib/utils/try-catch';
+ import UniversalMobileCard from '$lib/components/arcane-table/cards/universal-mobile-card.svelte';
+ import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
+ import type { Template } from '$lib/types/template.type';
+ import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
+ import { templateService } from '$lib/services/template-service';
+ import TagIcon from '@lucide/svelte/icons/tag';
+ import { truncateString } from '$lib/utils/string.utils';
+ import { PersistedState } from 'runed';
+
+ let {
+ templates = $bindable(),
+ selectedIds = $bindable(),
+ requestOptions = $bindable()
+ }: {
+ templates: Paginated<Template>;
+ selectedIds: string[];
+ requestOptions: SearchPaginationSortRequest;
+ } = $props();
+
+ let isLoading = $state({
+ deleting: false,
+ downloading: false
+ });
+
+ async function handleDeleteTemplate(id: string, name: string) {
+ openConfirmDialog({
+ title: m.common_delete_title({ resource: m.resource_template() }),
+ message: m.common_delete_confirm({ resource: `${m.resource_template()} "${name}"` }),
+ confirm: {
+ label: m.templates_delete_template(),
+ destructive: true,
+ action: async () => {
+ isLoading.deleting = true;
+
+ const result = await tryCatch(templateService.deleteTemplate(id));
+ handleApiResultWithCallbacks({
+ result,
+ message: m.common_delete_failed({ resource: `${m.resource_template()} "${name}"` }),
+ setLoadingState: (value) => (isLoading.deleting = value),
+ onSuccess: async () => {
+ toast.success(m.common_delete_success({ resource: `${m.resource_template()} "${name}"` }));
+ templates = await templateService.getTemplates(requestOptions);
+ }
+ });
+ }
+ }
+ });
+ }
+
+ async function handleDownloadTemplate(id: string, name: string) {
+ isLoading.downloading = true;
+
+ const result = await tryCatch(templateService.download(id));
+ handleApiResultWithCallbacks({
+ result,
+ message: m.templates_download_failed(),
+ setLoadingState: (value) => (isLoading.downloading = value),
+ onSuccess: async () => {
+ toast.success(m.templates_downloaded_success({ name }));
+ templates = await templateService.getTemplates(requestOptions);
+ }
+ });
+ }
+
+ const isAnyLoading = $derived(Object.values(isLoading).some((loading) => loading));
+
+ const columns = [
+ {
+ accessorKey: 'name',
+ title: m.common_name(),
+ sortable: true,
+ cell: NameCell
+ },
+ {
+ accessorKey: 'description',
+ title: m.common_description(),
+ cell: DescriptionCell
+ },
+ {
+ id: 'type',
+ accessorFn: (row) => row.isRemote,
+ title: m.common_type(),
+ sortable: true,
+ cell: TypeCell
+ },
+ {
+ accessorKey: 'metadata',
+ title: m.common_tags(),
+ cell: TagsCell
+ }
+ ] satisfies ColumnSpec<Template>[];
+
+ const mobileFields = [
+ { id: 'description', label: m.common_description(), defaultVisible: true },
+ { id: 'type', label: m.common_type(), defaultVisible: true },
+ { id: 'tags', label: m.common_tags(), defaultVisible: true }
+ ];
+
+ let mobileFieldVisibility = $state<Record<string, boolean>>({});
+ let customSettings = $state<Record<string, unknown>>({});
+
+ let groupByRegistry = $derived.by(() => {
+ return (customSettings.groupByRegistry as boolean) ?? false;
+ });
+
+ function setGroupByRegistry(value: boolean) {
+ customSettings = { ...customSettings, groupByRegistry: value };
+ }
+
+ const registryOpenStates = new PersistedState<Record<string, boolean>>(
+ 'arcane-template-groups-collapsed',
+ {},
+ { syncTabs: false }
+ );
+
+ function toggleRegistryState(registryName: string, isOpen: boolean) {
+ registryOpenStates.current = { ...registryOpenStates.current, [registryName]: isOpen };
+ }
+
+ function getRegistryName(template: Template): string {
+ if (template.registry?.name) {
+ return template.registry.name;
+ }
+ if (template.isRemote) {
+ return m.templates_unknown_registry();
+ }
+ return m.templates_local_templates();
+ }
+
+ const groupedTemplates = $derived.by(() => {
+ if (!groupByRegistry) return null;
+
+ const groups = new Map<string, Template[]>();
+
+ for (const template of templates.data ?? []) {
+ const registryName = getRegistryName(template);
+ if (!groups.has(registryName)) {
+ groups.set(registryName, []);
+ }
+ const group = groups.get(registryName);
+ if (group) {
+ group.push(template);
+ }
+ }
+ const sortedGroups = Array.from(groups.entries()).sort(([a], [b]) => {
+ if (a === m.templates_local_templates()) return -1;
+ if (b === m.templates_local_templates()) return 1;
+ if (a === m.templates_unknown_registry()) return 1;
+ if (b === m.templates_unknown_registry()) return -1;
+ return a.localeCompare(b);
+ });
+
+ return sortedGroups;
+ });
+</script>
+
+{#snippet NameCell({ item }: { item: Template })}
+ <a class="font-medium hover:underline" href="/customize/templates/{item.id}">
+ {item.name}
+ </a>
+{/snippet}
+
+{#snippet DescriptionCell({ item }: { item: Template })}
+ <span class="text-muted-foreground line-clamp-2 text-sm">
+ {truncateString(item.description, 80)}
+ </span>
+{/snippet}
+
+{#snippet TypeCell({ item }: { item: Template })}
+ {#if item.isRemote}
+ <Badge variant="secondary" class="gap-1">
+ <GlobeIcon class="size-3" />
+ {m.templates_remote()}
+ </Badge>
+ {:else}
+ <Badge variant="secondary" class="gap-1">
+ <FolderOpenIcon class="size-3" />
+ {m.templates_local()}
+ </Badge>
+ {/if}
+{/snippet}
+
+{#snippet TagsCell({ item }: { item: Template })}
+ {#if item.metadata?.tags && item.metadata.tags.length > 0}
+ <div class="flex flex-wrap gap-1">
+ {#each item.metadata.tags.slice(0, 2) as tag}
+ <Badge variant="outline" class="text-xs">{tag}</Badge>
+ {/each}
+ {#if item.metadata.tags.length > 2}
+ <Badge variant="outline" class="text-xs">+{item.metadata.tags.length - 2}</Badge>
+ {/if}
+ </div>
+ {/if}
+{/snippet}
+
+{#snippet TemplateMobileCardSnippet({
+ row,
+ item,
+ mobileFieldVisibility
+}: {
+ row: Row<Template>;
+ item: Template;
+ mobileFieldVisibility: Record<string, boolean>;
+})}
+ <UniversalMobileCard
+ {item}
+ icon={(item) => ({
+ component: item.isRemote ? GlobeIcon : FolderOpenIcon,
+ variant: item.isRemote ? 'emerald' : 'blue'
+ })}
+ title={(item) => item.name}
+ subtitle={(item) => ((mobileFieldVisibility.description ?? true) ? item.description : null)}
+ badges={[
+ (item) =>
+ (mobileFieldVisibility.type ?? true)
+ ? {
+ variant: item.isRemote ? 'green' : 'blue',
+ text: item.isRemote ? m.templates_remote() : m.templates_local()
+ }
+ : null
+ ]}
+ fields={[]}
+ rowActions={RowActions}
+ onclick={(item: Template) => goto(`/customize/templates/${item.id}`)}
+ >
+ {#snippet children()}
+ {#if (mobileFieldVisibility.tags ?? true) && item.metadata?.tags && item.metadata.tags.length > 0}
+ <div class="flex items-start gap-2.5 border-t pt-3">
+ <div class="flex size-7 shrink-0 items-center justify-center rounded-lg bg-purple-500/10">
+ <TagIcon class="size-3.5 text-purple-500" />
+ </div>
+ <div class="min-w-0 flex-1">
+ <div class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ {m.common_tags()}
+ </div>
+ <div class="mt-1 flex flex-wrap gap-1">
+ {#each item.metadata.tags.slice(0, 3) as tag}
+ <Badge variant="outline" class="text-xs">{tag}</Badge>
+ {/each}
+ {#if item.metadata.tags.length > 3}
+ <Badge variant="outline" class="text-xs">+{item.metadata.tags.length - 3}</Badge>
+ {/if}
+ </div>
+ </div>
+ </div>
+ {/if}
+ {/snippet}
+ </UniversalMobileCard>
+{/snippet}
+
+{#snippet RowActions({ item }: { item: Template })}
+ <DropdownMenu.Root>
+ <DropdownMenu.Trigger>
+ {#snippet child({ props })}
+ <Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
+ <span class="sr-only">{m.common_open_menu()}</span>
+ <EllipsisIcon />
+ </Button>
+ {/snippet}
+ </DropdownMenu.Trigger>
+ <DropdownMenu.Content align="end">
+ <DropdownMenu.Group>
+ <DropdownMenu.Item onclick={() => goto(`/customize/templates/${item.id}`)} disabled={isAnyLoading}>
+ <ScanSearchIcon class="size-4" />
+ {m.common_view_details()}
+ </DropdownMenu.Item>
+
+ <DropdownMenu.Item onclick={() => goto(`/projects/new?templateId=${item.id}`)} disabled={isAnyLoading}>
+ <PlusCircleIcon class="size-4" />
+ {m.compose_create_project()}
+ </DropdownMenu.Item>
+
+ {#if item.isRemote}
+ <DropdownMenu.Item
+ onclick={() => handleDownloadTemplate(item.id, item.name)}
+ disabled={isLoading.downloading || isAnyLoading}
+ >
+ {#if isLoading.downloading}
+ <Spinner class="size-4" />
+ {:else}
+ <DownloadIcon class="size-4" />
+ {/if}
+ {m.templates_download()}
+ </DropdownMenu.Item>
+ {:else}
+ <DropdownMenu.Separator />
+ <DropdownMenu.Item
+ variant="destructive"
+ onclick={() => handleDeleteTemplate(item.id, item.name)}
+ disabled={isLoading.deleting || isAnyLoading}
+ >
+ {#if isLoading.deleting}
+ <Spinner class="size-4" />
+ {:else}
+ <Trash2Icon class="size-4" />
+ {/if}
+ {m.templates_delete_template()}
+ </DropdownMenu.Item>
+ {/if}
+ </DropdownMenu.Group>
+ </DropdownMenu.Content>
+ </DropdownMenu.Root>
+{/snippet}
+
+<Card.Root class="flex flex-col gap-6 py-3">
+ <Card.Content class="px-6 py-5">
+ <ArcaneTable
+ persistKey="arcane-template-table"
+ items={templates}
+ bind:requestOptions
+ bind:selectedIds
+ bind:mobileFieldVisibility
+ bind:customSettings
+ onRefresh={async (options) => (templates = await templateService.getTemplates(options))}
+ {columns}
+ {mobileFields}
+ rowActions={RowActions}
+ mobileCard={TemplateMobileCardSnippet}
+ selectionDisabled
+ customViewOptions={CustomViewOptions}
+ customTableView={groupByRegistry && groupedTemplates ? GroupedTableView : undefined}
+ />
+ </Card.Content>
+</Card.Root>
+
+{#snippet CustomViewOptions()}
+ <DropdownMenu.CheckboxItem bind:checked={() => groupByRegistry, (v) => setGroupByRegistry(!!v)}>
+ {m.templates_group_by_registry()}
+ </DropdownMenu.CheckboxItem>
+{/snippet}
+
+{#snippet GroupedTableView({ table }: { table: TableType<Template> })}
+ <div class="space-y-4">
+ {#each groupedTemplates ?? [] as [registryName, registryTemplates] (registryName)}
+ {@const registryTemplateIds = new Set(registryTemplates.map((t) => t.id))}
+ {@const registryRows = table.getRowModel().rows.filter((row) => registryTemplateIds.has(row.original.id))}
+
+ <Collapsible.Root
+ class="w-full"
+ open={registryOpenStates.current[registryName] ?? true}
+ onOpenChange={(open) => toggleRegistryState(registryName, open)}
+ >
+ <Card.Root class="border-2">
+ <Collapsible.Trigger
+ class="hover:bg-accent/50 flex w-full items-center justify-between px-4 py-3 text-left transition-colors"
+ >
+ <div class="flex items-center gap-2">
+ {#if registryOpenStates.current[registryName] ?? true}
+ <ChevronDownIcon class="size-4 transition-transform" />
+ {:else}
+ <ChevronRightIcon class="size-4 transition-transform" />
+ {/if}
+ <span class="font-semibold">{registryName}</span>
+ <Badge variant="secondary" class="ml-2">{registryTemplates.length}</Badge>
+ </div>
+ </Collapsible.Trigger>
+ <Collapsible.Content>
+ <Card.Content class="p-0">
+ <div class="hidden md:block">
+ <Table.Root>
+ <Table.Header>
+ {#each table.getHeaderGroups() as headerGroup (headerGroup.id)}
+ <Table.Row>
+ {#each headerGroup.headers as header (header.id)}
+ <Table.Head colspan={header.colSpan}>
+ {#if !header.isPlaceholder}
+ <FlexRender content={header.column.columnDef.header} context={header.getContext()} />
+ {/if}
+ </Table.Head>
+ {/each}
+ </Table.Row>
+ {/each}
+ </Table.Header>
+ <Table.Body>
+ {#each registryRows as row (row.id)}
+ <Table.Row data-state={(selectedIds ?? []).includes((row.original as Template).id) && 'selected'}>
+ {#each row.getVisibleCells() as cell (cell.id)}
+ <Table.Cell>
+ <FlexRender content={cell.column.columnDef.cell} context={cell.getContext()} />
+ </Table.Cell>
+ {/each}
+ </Table.Row>
+ {:else}
+ <Table.Row>
+ <Table.Cell colspan={table.getAllColumns().length} class="h-24 text-center"
+ >{m.common_no_results_found()}</Table.Cell
+ >
+ </Table.Row>
+ {/each}
+ </Table.Body>
+ </Table.Root>
+ </div>
+
+ <div class="space-y-3 md:hidden">
+ {#each registryRows as row (row.id)}
+ {@render TemplateMobileCardSnippet({ row, item: row.original as Template, mobileFieldVisibility })}
+ {:else}
+ <div class="flex h-24 items-center justify-center text-center text-muted-foreground">
+ {m.common_no_results_found()}
+ </div>
+ {/each}
+ </div>
+ </Card.Content>
+ </Collapsible.Content>
+ </Card.Root>
+ </Collapsible.Root>
+ {/each}
+ </div>
+{/snippet}
diff --git a/frontend/src/routes/customize/variables/+page.svelte b/frontend/src/routes/customize/variables/+page.svelte
index 7d3b1d14b..e650b3748 100644
--- a/frontend/src/routes/customize/variables/+page.svelte
+++ b/frontend/src/routes/customize/variables/+page.svelte
@@ -183,7 +183,7 @@
<KeyIcon class="size-4" />
</div>
<div>
- <Card.Title class="text-base">{m.variables_env_vars_title()}</Card.Title>
+ <Card.Title class="text-base">{m.common_environment_variables()}</Card.Title>
<Card.Description class="text-xs">
{#if envVars.filter((v) => v.key.trim()).length === 1}
{m.variables_count_configured({ count: 1 })}
diff --git a/frontend/src/routes/dashboard/dash-image-table.svelte b/frontend/src/routes/dashboard/dash-image-table.svelte
index e1dc70f98..2992fbecf 100644
--- a/frontend/src/routes/dashboard/dash-image-table.svelte
+++ b/frontend/src/routes/dashboard/dash-image-table.svelte
@@ -33,7 +33,7 @@
{ accessorKey: 'repoTags', title: m.images_repository(), cell: NameCell },
{ accessorKey: 'inUse', title: m.common_status(), cell: StatusCell },
{ id: 'tag', title: m.images_tag(), cell: TagCell },
- { accessorKey: 'size', title: m.images_size(), cell: SizeCell }
+ { accessorKey: 'size', title: m.common_size(), cell: SizeCell }
] satisfies ColumnSpec<ImageSummaryDto>[];
</script>
@@ -90,7 +90,7 @@
]}
fields={[
{
- label: m.images_size(),
+ label: m.common_size(),
getValue: (item: ImageSummaryDto) => bytes.format(item.size)
}
]}
diff --git a/frontend/src/routes/environments/+page.svelte b/frontend/src/routes/environments/+page.svelte
index 933a62a00..744778bf5 100644
--- a/frontend/src/routes/environments/+page.svelte
+++ b/frontend/src/routes/environments/+page.svelte
@@ -29,7 +29,7 @@
environments = await environmentManagementService.getEnvironments(requestOptions);
} catch (err) {
console.error('Failed to refresh environments:', err);
- toast.error(m.environments_refresh_failed());
+ toast.error(m.common_refresh_failed({ resource: m.environments_title() }));
} finally {
isLoading.refresh = false;
}
@@ -53,7 +53,7 @@
const result = await tryCatch(environmentManagementService.delete(id));
handleApiResultWithCallbacks({
result,
- message: m.environments_bulk_remove_failed_many({ count: selectedIds.length }),
+ message: m.common_bulk_remove_failed({ count: selectedIds.length, resource: m.environments_title() }),
setLoadingState: () => {},
onSuccess: () => {
successCount += 1;
@@ -65,18 +65,12 @@
isLoading.deleting = false;
if (successCount > 0) {
- const msg =
- successCount === 1
- ? m.environments_bulk_remove_success_one()
- : m.environments_bulk_remove_success_many({ count: successCount });
+ const msg = m.common_bulk_remove_success({ count: successCount, resource: m.environments_title() });
toast.success(msg);
await refresh();
}
if (failureCount > 0) {
- const msg =
- failureCount === 1
- ? m.environments_bulk_remove_failed_one()
- : m.environments_bulk_remove_failed_many({ count: failureCount });
+ const msg = m.common_bulk_remove_failed({ count: failureCount, resource: m.environments_title() });
toast.error(msg);
}
@@ -89,7 +83,7 @@
async function onEnvironmentCreated() {
showEnvironmentSheet = false;
environments = await environmentManagementService.getEnvironments(requestOptions);
- toast.success(m.environments_created_success());
+ toast.success(m.common_create_success({ resource: m.resource_environment() }));
refresh();
}
@@ -109,7 +103,7 @@
{
id: 'create',
action: 'create' as const,
- label: m.environments_add_button(),
+ label: m.common_add_button({ resource: m.resource_environment_cap() }),
onclick: () => (showEnvironmentSheet = true)
},
{
diff --git a/frontend/src/routes/environments/environment-table.svelte b/frontend/src/routes/environments/environment-table.svelte
index 3dc520ee8..1178ee05d 100644
--- a/frontend/src/routes/environments/environment-table.svelte
+++ b/frontend/src/routes/environments/environment-table.svelte
@@ -52,7 +52,7 @@
const result = await tryCatch(environmentManagementService.delete(id));
handleApiResultWithCallbacks({
result,
- message: m.environments_bulk_remove_failed_many({ count: ids.length }),
+ message: m.common_bulk_remove_failed({ count: ids.length, resource: m.environments_title() }),
setLoadingState: () => {},
onSuccess: () => {
successCount++;
@@ -64,18 +64,12 @@
isLoading.removing = false;
if (successCount > 0) {
- const msg =
- successCount === 1
- ? m.environments_bulk_remove_success_one()
- : m.environments_bulk_remove_success_many({ count: successCount });
+ const msg = m.common_bulk_remove_success({ count: successCount, resource: m.environments_title() });
toast.success(msg);
environments = await environmentManagementService.getEnvironments(requestOptions);
}
if (failureCount > 0) {
- const msg =
- failureCount === 1
- ? m.environments_bulk_remove_failed_one()
- : m.environments_bulk_remove_failed_many({ count: failureCount });
+ const msg = m.common_bulk_remove_failed({ count: failureCount, resource: m.environments_title() });
toast.error(msg);
}
@@ -87,7 +81,7 @@
async function handleDeleteOne(id: string, hostname: string) {
openConfirmDialog({
- title: m.environments_delete_title(),
+ title: m.common_delete_title({ resource: m.resource_environment() }),
message: m.environments_delete_message({ name: hostname }),
confirm: {
label: m.common_remove(),
@@ -100,7 +94,7 @@
message: m.environments_delete_failed({ name: hostname }),
setLoadingState: () => {},
onSuccess: async () => {
- toast.success(m.environments_delete_success({ name: hostname }));
+ toast.success(m.common_delete_success({ resource: `${m.resource_environment()} "${hostname}"` }));
environments = await environmentManagementService.getEnvironments(requestOptions);
}
});
diff --git a/frontend/src/routes/events/+page.svelte b/frontend/src/routes/events/+page.svelte
index ea0ea6cee..76d7e0a27 100644
--- a/frontend/src/routes/events/+page.svelte
+++ b/frontend/src/routes/events/+page.svelte
@@ -34,7 +34,7 @@
events = await eventService.getEvents(requestOptions);
} catch (error) {
console.error('Failed to refresh events:', error);
- toast.error(m.events_refresh_failed());
+ toast.error(m.common_refresh_failed({ resource: m.events_title() }));
} finally {
isLoading.refreshing = false;
}
@@ -71,13 +71,12 @@
isLoading.deleting = false;
if (successCount > 0) {
- const msg =
- successCount === 1 ? m.events_delete_success_one() : m.events_delete_success_many({ count: successCount });
+ const msg = m.common_bulk_delete_success({ count: successCount, resource: m.events_title() });
toast.success(msg);
await refreshEvents();
}
if (failureCount > 0) {
- const msg = failureCount === 1 ? m.events_delete_failed_one() : m.events_delete_failed_many({ count: failureCount });
+ const msg = m.common_bulk_delete_failed({ count: failureCount, resource: m.events_title() });
toast.error(msg);
}
diff --git a/frontend/src/routes/events/event-table.svelte b/frontend/src/routes/events/event-table.svelte
index c10af29e9..bdd5f7d75 100644
--- a/frontend/src/routes/events/event-table.svelte
+++ b/frontend/src/routes/events/event-table.svelte
@@ -69,7 +69,7 @@
async function handleDeleteEvent(eventId: string, title: string) {
const safeTitle = title?.trim() || m.common_unknown();
openConfirmDialog({
- title: m.events_delete_title(),
+ title: m.common_delete_title({ resource: 'event' }),
message: m.events_delete_confirm_message({ title: safeTitle }),
confirm: {
label: m.common_delete(),
@@ -104,7 +104,7 @@
},
{
accessorKey: 'type',
- title: m.events_col_type(),
+ title: m.common_type(),
sortable: true,
cell: TypeCell
},
@@ -129,7 +129,7 @@
const mobileFields = [
{ id: 'severity', label: m.events_col_severity(), defaultVisible: true },
- { id: 'type', label: m.events_col_type(), defaultVisible: true },
+ { id: 'type', label: m.common_type(), defaultVisible: true },
{ id: 'resource', label: m.events_col_resource(), defaultVisible: true },
{ id: 'username', label: m.common_user(), defaultVisible: true },
{ id: 'timestamp', label: m.events_col_time(), defaultVisible: true }
@@ -199,7 +199,7 @@
]}
fields={[
{
- label: m.events_col_type(),
+ label: m.common_type(),
getValue: (item: Event) => item.type,
icon: TagIcon,
iconVariant: 'gray' as const,
diff --git a/frontend/src/routes/images/+page.svelte b/frontend/src/routes/images/+page.svelte
index b494c2788..7c5152a88 100644
--- a/frontend/src/routes/images/+page.svelte
+++ b/frontend/src/routes/images/+page.svelte
@@ -66,7 +66,7 @@
let refreshingImageCounts = true;
handleApiResultWithCallbacks({
result: await tryCatch(imageService.getImages(requestOptions)),
- message: m.images_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.images_title() }),
setLoadingState: (value) => {
refreshingImageList = value;
isLoading.refreshing = refreshingImageCounts || refreshingImageList;
@@ -77,7 +77,7 @@
});
handleApiResultWithCallbacks({
result: await tryCatch(imageService.getImageUsageCounts()),
- message: m.images_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.images_title() }),
setLoadingState: (value) => {
refreshingImageCounts = value;
isLoading.refreshing = refreshingImageCounts || refreshingImageList;
@@ -114,7 +114,7 @@
id: 'check-updates',
action: 'inspect',
label: m.images_check_updates(),
- loadingLabel: m.images_checking(),
+ loadingLabel: m.common_action_checking(),
onclick: handleTriggerBulkUpdateCheck,
loading: isLoading.checking,
disabled: isLoading.checking
@@ -123,7 +123,7 @@
id: 'prune',
action: 'remove',
label: m.images_prune_unused(),
- loadingLabel: m.images_pruning(),
+ loadingLabel: m.common_action_pruning(),
onclick: () => (isConfirmPruneDialogOpen = true),
loading: isLoading.pruning,
disabled: isLoading.pruning
@@ -188,7 +188,7 @@
</Button>
<Button variant="destructive" onclick={handlePruneImages} disabled={isLoading.pruning}>
{#if isLoading.pruning}
- <Spinner class="mr-2 size-4" /> {m.images_pruning()}
+ <Spinner class="mr-2 size-4" /> {m.common_action_pruning()}
{:else}
{m.images_prune_action()}
{/if}
diff --git a/frontend/src/routes/images/[imageId]/+page.svelte b/frontend/src/routes/images/[imageId]/+page.svelte
index b6ea2046b..9b9eb109e 100644
--- a/frontend/src/routes/images/[imageId]/+page.svelte
+++ b/frontend/src/routes/images/[imageId]/+page.svelte
@@ -50,7 +50,7 @@
async function handleImageRemove(id: string) {
openConfirmDialog({
- title: m.images_remove_title(),
+ title: m.common_remove_title({ resource: m.resource_image() }),
message: m.images_remove_message(),
confirm: {
label: m.common_delete(),
@@ -108,8 +108,8 @@
<Card.Root>
<Card.Header icon={InfoIcon}>
<div class="flex flex-col space-y-1.5">
- <Card.Title>{m.images_details_title()}</Card.Title>
- <Card.Description>{m.images_details_description()}</Card.Description>
+ <Card.Title>{m.common_details_title({ resource: m.resource_image_cap() })}</Card.Title>
+ <Card.Description>{m.common_details_description({ resource: m.resource_image() })}</Card.Description>
</div>
</Card.Header>
<Card.Content class="p-4">
@@ -134,7 +134,7 @@
<HardDriveIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.images_size()}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_size()}</p>
<p class="mt-1 cursor-pointer text-sm font-semibold select-all sm:text-base" title="Click to select">
{imageSize()}
</p>
@@ -157,9 +157,9 @@
<div class="flex size-10 shrink-0 items-center justify-center rounded-full bg-orange-500/10 p-2">
<CpuIcon class="size-5 text-orange-500" />
</div>
- <div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.images_architecture()}</p>
- <p class="mt-1 cursor-pointer text-sm font-semibold select-all sm:text-base" title="Click to select">
+ <div class="min-w-0 flex-1">
+ <p class="text-muted-foreground text-sm font-medium">{m.common_architecture()}</p>
+ <p class="mt-1 cursor-pointer text-sm font-semibold select-all sm:text-base" title="Click to select">
{architecture()}
</p>
</div>
@@ -229,7 +229,7 @@
<Card.Root>
<Card.Header icon={TagIcon}>
<div class="flex flex-col space-y-1.5">
- <Card.Title>{m.images_tags_title()}</Card.Title>
+ <Card.Title>{m.common_tags()}</Card.Title>
<Card.Description>{m.images_tags_description()}</Card.Description>
</div>
</Card.Header>
@@ -247,7 +247,7 @@
<Card.Root>
<Card.Header icon={SettingsIcon}>
<div class="flex flex-col space-y-1.5">
- <Card.Title>{m.images_env_vars_title()}</Card.Title>
+ <Card.Title>{m.common_environment_variables()}</Card.Title>
<Card.Description>{m.images_env_vars_description()}</Card.Description>
</div>
</Card.Header>
@@ -289,10 +289,10 @@
</div>
{:else}
<div class="py-12 text-center">
- <p class="text-muted-foreground text-lg font-medium">{m.images_not_found_title()}</p>
+ <p class="text-muted-foreground text-lg font-medium">{m.common_not_found_title({ resource: m.images_title() })}</p>
<ArcaneButton
action="cancel"
- customLabel={m.common_back_to_images()}
+ customLabel={m.common_back_to({ resource: m.images_title() })}
onclick={() => goto('/images')}
size="sm"
class="mt-4"
diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelte
index 5821c50c6..31b036b4f 100644
--- a/frontend/src/routes/images/image-table.svelte
+++ b/frontend/src/routes/images/image-table.svelte
@@ -94,7 +94,7 @@
async function deleteImage(id: string) {
openConfirmDialog({
- title: m.images_remove_title(),
+ title: m.common_remove_title({ resource: m.resource_image() }),
message: m.images_remove_message(),
confirm: {
label: m.common_remove(),
@@ -164,7 +164,7 @@
cell: StatusCell
},
{ accessorKey: 'created', title: m.common_created(), sortable: true, cell: CreatedCell },
- { accessorKey: 'size', title: m.images_size(), sortable: true, cell: SizeCell },
+ { accessorKey: 'size', title: m.common_size(), sortable: true, cell: SizeCell },
{ accessorKey: 'repoTags', title: m.images_repository(), sortable: true, cell: RepoCell }
] satisfies ColumnSpec<ImageSummaryDto>[];
@@ -173,7 +173,7 @@
{ id: 'updates', label: m.images_updates(), defaultVisible: true },
{ id: 'inUse', label: m.common_in_use(), defaultVisible: true },
{ id: 'created', label: m.common_created(), defaultVisible: true },
- { id: 'size', label: m.images_size(), defaultVisible: true },
+ { id: 'size', label: m.common_size(), defaultVisible: true },
{ id: 'repoTags', label: m.images_repository(), defaultVisible: true }
];
@@ -242,7 +242,7 @@
]}
fields={[
{
- label: m.images_size(),
+ label: m.common_size(),
getValue: (item: ImageSummaryDto) => bytes.format(Number(item.size ?? 0)),
icon: HardDriveIcon,
iconVariant: 'blue' as const,
@@ -313,7 +313,7 @@
>
{#if isPullingInline[item.id]}
<Spinner class="size-4" />
- {m.images_pulling()}
+ {m.common_action_pulling()}
{:else}
<DownloadIcon class="size-4" />
{m.images_pull()}
diff --git a/frontend/src/routes/networks/+page.svelte b/frontend/src/routes/networks/+page.svelte
index f158c94d7..7e3d5ba4e 100644
--- a/frontend/src/routes/networks/+page.svelte
+++ b/frontend/src/routes/networks/+page.svelte
@@ -33,7 +33,7 @@
let refreshingNetworkCounts = true;
handleApiResultWithCallbacks({
result: await tryCatch(networkService.getNetworks(requestOptions)),
- message: m.networks_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.networks_title() }),
setLoadingState: (value) => {
refreshingNetworkList = value;
isLoading.refresh = refreshingNetworkCounts || refreshingNetworkList;
@@ -44,7 +44,7 @@
});
handleApiResultWithCallbacks({
result: await tryCatch(networkService.getNetworkUsageCounts()),
- message: m.networks_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.networks_title() }),
setLoadingState: (value) => {
refreshingNetworkCounts = value;
isLoading.refresh = refreshingNetworkCounts || refreshingNetworkList;
@@ -60,10 +60,10 @@
const name = options.Name?.trim() || m.common_unknown();
handleApiResultWithCallbacks({
result: await tryCatch(networkService.createNetwork(options)),
- message: m.networks_create_failed({ name }),
+ message: m.common_create_failed({ resource: `${m.resource_network()} "${name}"` }),
setLoadingState: (value) => (isLoading.create = value),
onSuccess: async () => {
- toast.success(m.networks_created_success({ name }));
+ toast.success(m.common_create_success({ resource: `${m.resource_network()} "${name}"` }));
networks = await networkService.getNetworks(requestOptions);
isCreateDialogOpen = false;
}
@@ -89,7 +89,7 @@
{
id: 'create',
action: 'create',
- label: m.networks_create_button(),
+ label: m.common_create_button({ resource: m.resource_network_cap() }),
onclick: () => (isCreateDialogOpen = true)
},
{
diff --git a/frontend/src/routes/networks/[networkId]/+page.svelte b/frontend/src/routes/networks/[networkId]/+page.svelte
index f08b81f0b..b9bc7938e 100644
--- a/frontend/src/routes/networks/[networkId]/+page.svelte
+++ b/frontend/src/routes/networks/[networkId]/+page.svelte
@@ -54,7 +54,7 @@
}
openConfirmDialog({
- title: m.networks_remove_title(),
+ title: m.common_remove_title({ resource: m.resource_network() }),
message: m.networks_remove_confirm_message({ name: network?.name ?? shortId }),
confirm: {
label: m.common_remove(),
@@ -97,11 +97,11 @@
<div class="flex flex-col">
<div class="flex items-center gap-3">
<h1 class="text-2xl font-bold tracking-tight">
- {network?.name ?? m.networks_details_title()}
+ {network?.name ?? m.common_details_title({ resource: m.resource_network_cap() })}
</h1>
<div class="hidden sm:block">
- <StatusBadge variant="gray" text={`${m.networks_id()}: ${shortId}`} />
+ <StatusBadge variant="gray" text={`${m.common_id()}: ${shortId}`} />
</div>
</div>
@@ -123,7 +123,7 @@
<div class="self-start">
<ArcaneButton
action="remove"
- customLabel={m.networks_remove_title()}
+ customLabel={m.common_remove_title({ resource: m.resource_network_cap() })}
onclick={triggerRemove}
loading={isRemoving}
disabled={isRemoving || isPredefined}
@@ -135,7 +135,7 @@
{#if errorMessage}
<Alert.Root variant="destructive">
<CircleAlertIcon class="mr-2 size-4" />
- <Alert.Title>{m.action_failed()}</Alert.Title>
+ <Alert.Title>{m.common_action_failed()}</Alert.Title>
<Alert.Description>{errorMessage}</Alert.Description>
</Alert.Root>
{/if}
@@ -145,8 +145,8 @@
<Card.Root>
<Card.Header icon={InfoIcon}>
<div class="flex flex-col space-y-1.5">
- <Card.Title>{m.networks_details_title()}</Card.Title>
- <Card.Description>{m.networks_details_description()}</Card.Description>
+ <Card.Title>{m.common_details_title({ resource: m.resource_network_cap() })}</Card.Title>
+ <Card.Description>{m.common_details_description({ resource: m.resource_network() })}</Card.Description>
</div>
</Card.Header>
<Card.Content class="p-4">
@@ -156,7 +156,7 @@
<HashIcon class="size-5 text-gray-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.networks_id()}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_id()}</p>
<p
class="mt-1 cursor-pointer font-mono text-xs font-semibold break-all select-all sm:text-sm"
title="Click to select"
@@ -171,7 +171,7 @@
<NetworkIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.networks_name()}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_name()}</p>
<p class="mt-1 cursor-pointer text-sm font-semibold break-all select-all sm:text-base" title="Click to select">
{network.name}
</p>
@@ -183,7 +183,7 @@
<HardDriveIcon class="size-5 text-orange-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.networks_driver()}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_driver()}</p>
<p class="mt-1 cursor-pointer text-sm font-semibold select-all sm:text-base" title="Click to select">
{network.driver}
</p>
@@ -195,7 +195,7 @@
<GlobeIcon class="size-5 text-purple-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.networks_scope()}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_scope()}</p>
<p class="mt-1 cursor-pointer text-sm font-semibold capitalize select-all sm:text-base" title="Click to select">
{network.scope}
</p>
@@ -207,7 +207,7 @@
<ClockIcon class="size-5 text-green-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{m.networks_created()}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_created()}</p>
<p class="mt-1 cursor-pointer text-sm font-semibold select-all sm:text-base" title="Click to select">
{createdDate}
</p>
@@ -278,9 +278,7 @@
<div class="space-y-2">
{#if config.Subnet}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
- >{m.networks_ipam_subnet_label()}:</span
- >
+ <span class="text-muted-foreground w-full text-sm font-medium sm:w-24">{m.common_subnet()}:</span>
<code
class="bg-muted text-muted-foreground mt-1 cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs select-all sm:mt-0 sm:text-sm"
title="Click to select"
@@ -405,7 +403,7 @@
<Card.Root>
<Card.Header icon={TagIcon}>
<div class="flex flex-col space-y-1.5">
- <Card.Title>{m.networks_labels_title()}</Card.Title>
+ <Card.Title>{m.common_labels()}</Card.Title>
<Card.Description>{m.networks_labels_description()}</Card.Description>
</div>
</Card.Header>
@@ -462,9 +460,14 @@
<div class="bg-muted/30 mb-4 rounded-full p-4">
<NetworkIcon class="text-muted-foreground size-10 opacity-70" />
</div>
- <h2 class="mb-2 text-xl font-medium">{m.networks_not_found_title()}</h2>
- <p class="text-muted-foreground mb-6">{m.networks_not_found_description()}</p>
- <ArcaneButton action="cancel" customLabel={m.common_back_to_networks()} onclick={() => goto('/networks')} size="sm" />
+ <h2 class="mb-2 text-xl font-medium">{m.common_not_found_title({ resource: m.networks_title() })}</h2>
+ <p class="text-muted-foreground mb-6">{m.common_not_found_description({ resource: m.networks_title().toLowerCase() })}</p>
+ <ArcaneButton
+ action="cancel"
+ customLabel={m.common_back_to({ resource: m.networks_title() })}
+ onclick={() => goto('/networks')}
+ size="sm"
+ />
</div>
{/if}
</div>
diff --git a/frontend/src/routes/networks/network-table.svelte b/frontend/src/routes/networks/network-table.svelte
index 3b7090088..9457be12a 100644
--- a/frontend/src/routes/networks/network-table.svelte
+++ b/frontend/src/routes/networks/network-table.svelte
@@ -45,7 +45,7 @@
return;
}
openConfirmDialog({
- title: m.networks_delete_title(),
+ title: m.common_delete_title({ resource: m.resource_network() }),
message: m.networks_delete_confirm_message({ name: safeName }),
confirm: {
label: m.common_delete(),
@@ -53,10 +53,10 @@
action: async () => {
handleApiResultWithCallbacks({
result: await tryCatch(networkService.deleteNetwork(id)),
- message: m.networks_delete_failed({ name: safeName }),
+ message: m.common_delete_failed({ resource: `${m.resource_network()} "${safeName}"` }),
setLoadingState: (value) => (isLoading.remove = value),
onSuccess: async () => {
- toast.success(m.networks_delete_success({ name: safeName }));
+ toast.success(m.common_delete_success({ resource: `${m.resource_network()} "${safeName}"` }));
networks = await networkService.getNetworks(requestOptions);
}
});
@@ -93,10 +93,16 @@
const result = await tryCatch(networkService.deleteNetwork(networkId));
if (result.error) {
failureCount++;
- toast.error(m.networks_delete_failed({ name: network.name ?? m.common_unknown() }));
+ toast.error(
+ m.common_delete_failed({ resource: `${m.resource_network()} "${network.name ?? m.common_unknown()}"` })
+ );
} else {
successCount++;
- toast.success(m.networks_delete_success({ name: network.name ?? m.common_unknown() }));
+ toast.success(
+ m.common_delete_success({
+ resource: `${m.resource_network()} "${network.name ?? m.common_unknown()}"`
+ })
+ );
}
}
diff --git a/frontend/src/routes/onboarding/security/+page.svelte b/frontend/src/routes/onboarding/security/+page.svelte
index 44cb638d9..50b63d0b0 100644
--- a/frontend/src/routes/onboarding/security/+page.svelte
+++ b/frontend/src/routes/onboarding/security/+page.svelte
@@ -239,7 +239,7 @@
: 'arcane-button-restart w-full'}
onclick={() => ($formInputs.authPasswordPolicy.value = 'basic')}
type="button"
- >{m.security_password_policy_basic()}
+ >{m.common_basic()}
</Button>
</Tooltip.Trigger>
<Tooltip.Content side="top" align="center">{m.security_password_policy_basic_tooltip()}</Tooltip.Content>
diff --git a/frontend/src/routes/projects/+page.svelte b/frontend/src/routes/projects/+page.svelte
index 387f07d9e..03830a125 100644
--- a/frontend/src/routes/projects/+page.svelte
+++ b/frontend/src/routes/projects/+page.svelte
@@ -47,7 +47,7 @@
let refreshingProjectCounts = true;
handleApiResultWithCallbacks({
result: await tryCatch(projectService.getProjects(projectRequestOptions)),
- message: m.compose_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.projects_title() }),
setLoadingState: (v) => {
refreshingProjectList = v;
isLoading.refreshing = refreshingProjectCounts || refreshingProjectList;
@@ -58,7 +58,7 @@
});
handleApiResultWithCallbacks({
result: await tryCatch(projectService.getProjectStatusCounts()),
- message: m.compose_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.projects_title() }),
setLoadingState: (v) => {
refreshingProjectCounts = v;
isLoading.refreshing = refreshingProjectCounts || refreshingProjectList;
@@ -118,14 +118,14 @@
class: 'border-l-4 border-l-amber-500'
},
{
- title: m.compose_running(),
+ title: m.common_running(),
value: runningCompose,
icon: PlayCircleIcon,
iconColor: 'text-green-500',
class: 'border-l-4 border-l-green-500'
},
{
- title: m.compose_stopped(),
+ title: m.common_stopped(),
value: stoppedCompose,
icon: StopCircleIcon,
iconColor: 'text-red-500',
diff --git a/frontend/src/routes/projects/[projectId]/+page.svelte b/frontend/src/routes/projects/[projectId]/+page.svelte
index c46eec6fb..09ab0f3d7 100644
--- a/frontend/src/routes/projects/[projectId]/+page.svelte
+++ b/frontend/src/routes/projects/[projectId]/+page.svelte
@@ -89,7 +89,7 @@
},
{
value: 'compose',
- label: m.compose_nav_config(),
+ label: m.common_configuration(),
icon: SettingsIcon
},
{
@@ -249,8 +249,8 @@
</Tabs.Content>
<Tabs.Content value="compose" class="h-full">
- <div class="grid h-full grid-cols-1 gap-4 lg:grid-cols-5" style="grid-template-rows: 1fr;">
- <div class="h-full lg:col-span-3">
+ <div class="grid h-full grid-cols-1 gap-4 lg:grid-cols-5 lg:items-stretch" style="grid-template-rows: 1fr;">
+ <div class="flex h-full flex-col lg:col-span-3">
<CodePanel
bind:open={composeOpen}
title={m.compose_compose_file_title()}
@@ -261,7 +261,7 @@
/>
</div>
- <div class="h-full lg:col-span-2">
+ <div class="flex h-full flex-col lg:col-span-2">
<CodePanel
bind:open={envOpen}
title={m.compose_env_title()}
@@ -289,13 +289,13 @@
<div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
<FileStackIcon class="text-muted-foreground size-10" />
</div>
- <h2 class="mb-3 text-2xl font-medium">{m.compose_not_found_title()}</h2>
+ <h2 class="mb-3 text-2xl font-medium">{m.common_not_found_title({ resource: m.project() })}</h2>
<p class="text-muted-foreground mb-8 max-w-md text-center">
- {m.compose_not_found_description()}
+ {m.common_not_found_description({ resource: m.project().toLowerCase() })}
</p>
<Button variant="outline" href="/projects">
<ArrowLeftIcon class="mr-2 size-4" />
- {m.compose_back_to_projects()}
+ {m.common_back_to({ resource: m.projects_title() })}
</Button>
</div>
</div>
diff --git a/frontend/src/routes/projects/components/CodePanel.svelte b/frontend/src/routes/projects/components/CodePanel.svelte
index 0733b29e0..052d164e0 100644
--- a/frontend/src/routes/projects/components/CodePanel.svelte
+++ b/frontend/src/routes/projects/components/CodePanel.svelte
@@ -22,17 +22,17 @@
} = $props();
</script>
-<Card.Root>
- <Card.Header icon={FileTextIcon} class="items-center">
+<Card.Root class="flex flex-col lg:h-full">
+ <Card.Header icon={FileTextIcon} class="flex-shrink-0 items-center">
<Card.Title>
<h2>
{title}
</h2>
</Card.Title>
</Card.Header>
- <Card.Content class="p-0">
- <div class="min-h-[500px] w-full overflow-hidden [&_.cm-content]:text-xs sm:[&_.cm-content]:text-sm">
- <CodeEditor bind:value {language} {placeholder} height="full" class="rounded-t-none rounded-b-xl" />
+ <Card.Content class="min-h-[500px] flex-grow p-0 lg:h-full">
+ <div class="h-full [&_.cm-content]:text-xs sm:[&_.cm-content]:text-sm">
+ <CodeEditor bind:value {language} {placeholder} />
{#if error}
<p class="text-destructive mt-2 text-xs">{error}</p>
{/if}
diff --git a/frontend/src/routes/projects/new/+page.svelte b/frontend/src/routes/projects/new/+page.svelte
index 35a583c99..e4f718f9b 100644
--- a/frontend/src/routes/projects/new/+page.svelte
+++ b/frontend/src/routes/projects/new/+page.svelte
@@ -46,8 +46,10 @@
envContent: z.string().optional().default('')
});
+ const initialName = data.selectedTemplate ? data.selectedTemplate.name.toLowerCase().replace(/[^a-z0-9-_]/g, '-') : '';
+
let formData = $derived({
- name: '',
+ name: initialName,
composeContent: data.defaultTemplate || '',
envContent: data.envTemplate || ''
});
@@ -72,10 +74,10 @@
handleApiResultWithCallbacks({
result: await tryCatch(projectService.createProject(name, composeContent, envContent)),
- message: m.compose_create_failed(),
+ message: m.common_create_failed({ resource: `${m.resource_project()} "${name}"` }),
setLoadingState: (value) => (saving = value),
onSuccess: async (project) => {
- toast.success(m.compose_create_success({ name }));
+ toast.success(m.common_create_success({ resource: `${m.resource_project()} "${name}"` }));
goto(`/projects/${project.id}`, { invalidateAll: true });
}
});
@@ -170,7 +172,7 @@
>
{#if saving}
<Spinner class="size-4" />
- {m.compose_creating()}
+ {m.common_action_creating()}
{:else}
<PlusCircleIcon class="size-4" />
{m.compose_create_project()}
@@ -197,7 +199,7 @@
onclick={() => (showTemplateDialog = true)}
>
<LayoutTemplateIcon class="size-4" />
- {m.compose_use_template()}
+ {m.common_use_template()}
</DropdownMenu.Item>
<DropdownMenu.Item class={dropdownItemClass} onclick={() => (showConverterDialog = true)}>
<TerminalIcon class="size-4" />
@@ -230,11 +232,11 @@
<!-- Code Panels -->
<form
- class="grid h-full grid-cols-1 gap-4 lg:grid-cols-5"
+ class="grid h-full grid-cols-1 gap-4 lg:grid-cols-5 lg:items-stretch"
style="grid-template-rows: 1fr;"
onsubmit={preventDefault(handleSubmit)}
>
- <div class="h-full lg:col-span-3">
+ <div class="flex h-full flex-col lg:col-span-3">
<CodePanel
bind:open={composeOpen}
title={m.compose_compose_file_title()}
@@ -245,7 +247,7 @@
/>
</div>
- <div class="h-full lg:col-span-2">
+ <div class="flex h-full flex-col lg:col-span-2">
<CodePanel
bind:open={envOpen}
title={m.compose_env_title()}
diff --git a/frontend/src/routes/projects/new/+page.ts b/frontend/src/routes/projects/new/+page.ts
index e1119ddf8..4dc5e0767 100644
--- a/frontend/src/routes/projects/new/+page.ts
+++ b/frontend/src/routes/projects/new/+page.ts
@@ -1,20 +1,29 @@
import { templateService } from '$lib/services/template-service';
-export const load = async () => {
- const [allTemplates, defaultTemplates] = await Promise.all([
- templateService.loadAll().catch((err) => {
+export const load = async ({ url }) => {
+ const templateId = url.searchParams.get('templateId');
+
+ const [allTemplates, defaultTemplates, selectedTemplate] = await Promise.all([
+ templateService.getAllTemplates().catch((err) => {
console.warn('Failed to load templates:', err);
return [];
}),
templateService.getDefaultTemplates().catch((err) => {
console.warn('Failed to load default templates:', err);
return { composeTemplate: '', envTemplate: '' };
- })
+ }),
+ templateId
+ ? templateService.getTemplateContent(templateId).catch((err) => {
+ console.warn('Failed to load selected template:', err);
+ return null;
+ })
+ : Promise.resolve(null)
]);
return {
composeTemplates: allTemplates,
- envTemplate: defaultTemplates.envTemplate,
- defaultTemplate: defaultTemplates.composeTemplate
+ envTemplate: selectedTemplate?.envContent || defaultTemplates.envTemplate,
+ defaultTemplate: selectedTemplate?.content || defaultTemplates.composeTemplate,
+ selectedTemplate: selectedTemplate?.template || null
};
};
diff --git a/frontend/src/routes/projects/projects-table.svelte b/frontend/src/routes/projects/projects-table.svelte
index 1a26fcf60..298f0d9e0 100644
--- a/frontend/src/routes/projects/projects-table.svelte
+++ b/frontend/src/routes/projects/projects-table.svelte
@@ -95,7 +95,7 @@
});
} else if (action === 'destroy') {
openConfirmDialog({
- title: m.compose_confirm_removal_title(),
+ title: m.common_confirm_removal_title(),
message: m.compose_confirm_removal_message(),
checkboxes: [
{
@@ -130,7 +130,7 @@
});
}
} catch (error) {
- toast.error(m.action_failed());
+ toast.error(m.common_action_failed());
}
}
@@ -242,7 +242,7 @@
{:else}
<PlayIcon class="size-4" />
{/if}
- {m.action_up()}
+ {m.common_up()}
</DropdownMenu.Item>
{:else}
<DropdownMenu.Item
@@ -263,7 +263,7 @@
{:else}
<StopCircleIcon class="size-4" />
{/if}
- {m.action_down()}
+ {m.common_down()}
</DropdownMenu.Item>
{/if}
diff --git a/frontend/src/routes/settings/security/+page.svelte b/frontend/src/routes/settings/security/+page.svelte
index bc8d53cd3..25ce83292 100644
--- a/frontend/src/routes/settings/security/+page.svelte
+++ b/frontend/src/routes/settings/security/+page.svelte
@@ -316,7 +316,7 @@
: 'arcane-button-restart h-12 w-full text-xs sm:text-sm'}
onclick={() => ($formInputs.authPasswordPolicy.value = 'basic')}
type="button"
- >{m.security_password_policy_basic()}
+ >{m.common_basic()}
</Button>
</Tooltip.Trigger>
<Tooltip.Content side="top" align="center">{m.security_password_policy_basic_tooltip()}</Tooltip.Content>
diff --git a/frontend/src/routes/settings/users/+page.svelte b/frontend/src/routes/settings/users/+page.svelte
index df42db602..720b27544 100644
--- a/frontend/src/routes/settings/users/+page.svelte
+++ b/frontend/src/routes/settings/users/+page.svelte
@@ -59,10 +59,10 @@
const result = await tryCatch(userService.update(userId, user));
handleApiResultWithCallbacks({
result,
- message: m.users_update_failed({ username: safeUsername }),
+ message: m.common_update_failed({ resource: `${m.resource_user()} "${safeUsername}"` }),
setLoadingState: (value) => (isLoading[loading] = value),
onSuccess: async () => {
- toast.success(m.users_update_success({ username: safeUsername }));
+ toast.success(m.common_update_success({ resource: `${m.resource_user()} "${safeUsername}"` }));
users = await userService.getUsers(requestOptions);
isDialogOpen.edit = false;
userToEdit = null;
@@ -88,10 +88,10 @@
const result = await tryCatch(userService.create(createUser));
handleApiResultWithCallbacks({
result,
- message: m.users_create_failed({ username: safeUsername }),
+ message: m.common_create_failed({ resource: `${m.resource_user()} "${safeUsername}"` }),
setLoadingState: (value) => (isLoading[loading] = value),
onSuccess: async () => {
- toast.success(m.users_create_success({ username: safeUsername }));
+ toast.success(m.common_create_success({ resource: `${m.resource_user()} "${safeUsername}"` }));
users = await userService.getUsers(requestOptions);
isDialogOpen.create = false;
}
@@ -106,7 +106,7 @@
{
id: 'create',
action: 'create',
- label: m.users_create_button(),
+ label: m.common_create_button({ resource: m.resource_user_cap() }),
onclick: openCreateDialog,
loading: isLoading.creating,
disabled: isLoading.creating
diff --git a/frontend/src/routes/settings/users/user-table.svelte b/frontend/src/routes/settings/users/user-table.svelte
index 66668d7bf..2a67e4b19 100644
--- a/frontend/src/routes/settings/users/user-table.svelte
+++ b/frontend/src/routes/settings/users/user-table.svelte
@@ -70,13 +70,13 @@
isLoading.removing = false;
if (successCount > 0) {
- const msg = successCount === 1 ? m.users_delete_success_one() : m.users_delete_success_many({ count: successCount });
+ const msg = m.common_bulk_delete_success({ count: successCount, resource: m.users_title() });
toast.success(msg);
await onUsersChanged();
}
if (failureCount > 0) {
- const msg = failureCount === 1 ? m.users_delete_failed_one() : m.users_delete_failed_many({ count: failureCount });
+ const msg = m.common_bulk_delete_failed({ count: failureCount, resource: m.users_title() });
toast.error(msg);
}
diff --git a/frontend/src/routes/volumes/+page.svelte b/frontend/src/routes/volumes/+page.svelte
index 7a5ac7559..a7e06e857 100644
--- a/frontend/src/routes/volumes/+page.svelte
+++ b/frontend/src/routes/volumes/+page.svelte
@@ -36,10 +36,10 @@
const name = options.Name?.trim() || m.common_unknown();
handleApiResultWithCallbacks({
result: await tryCatch(volumeService.createVolume(options)),
- message: m.volumes_create_failed({ name }),
+ message: m.common_create_failed({ resource: `${m.resource_volume()} "${name}"` }),
setLoadingState: (value) => (isLoading.creating = value),
onSuccess: async () => {
- toast.success(m.volumes_created_success({ name }));
+ toast.success(m.common_create_success({ resource: `${m.resource_volume()} "${name}"` }));
volumes = await volumeService.getVolumes(requestOptions);
isCreateDialogOpen = false;
}
@@ -52,7 +52,7 @@
let refreshingVolumeCounts = true;
handleApiResultWithCallbacks({
result: await tryCatch(volumeService.getVolumes(requestOptions)),
- message: m.volumes_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.volumes_title() }),
setLoadingState: (value) => {
refreshingVolumeList = value;
isLoading.refresh = refreshingVolumeCounts || refreshingVolumeList;
@@ -63,7 +63,7 @@
});
handleApiResultWithCallbacks({
result: await tryCatch(volumeService.getVolumeUsageCounts()),
- message: m.volumes_refresh_failed(),
+ message: m.common_refresh_failed({ resource: m.volumes_title() }),
setLoadingState: (value) => {
refreshingVolumeCounts = value;
isLoading.refresh = refreshingVolumeCounts || refreshingVolumeList;
@@ -93,7 +93,7 @@
{
id: 'create',
action: 'create',
- label: m.volumes_create_button(),
+ label: m.common_create_button({ resource: m.resource_volume_cap() }),
onclick: () => (isCreateDialogOpen = true),
loading: isLoading.creating,
disabled: isLoading.creating
diff --git a/frontend/src/routes/volumes/[volumeName]/+page.svelte b/frontend/src/routes/volumes/[volumeName]/+page.svelte
index 6261af382..8b043bb3e 100644
--- a/frontend/src/routes/volumes/[volumeName]/+page.svelte
+++ b/frontend/src/routes/volumes/[volumeName]/+page.svelte
@@ -36,7 +36,7 @@
}
openConfirmDialog({
- title: m.volumes_remove_title(),
+ title: m.common_remove_title({ resource: m.resource_volume() }),
message,
confirm: {
label: m.common_remove(),
@@ -99,7 +99,7 @@
<div class="flex gap-2 self-start">
<ArcaneButton
action="remove"
- customLabel={m.volumes_remove_title()}
+ customLabel={m.common_remove_title({ resource: m.resource_volume_cap() })}
onclick={() => handleRemoveVolumeConfirm(volume.name)}
loading={isLoading.remove}
disabled={isLoading.remove}
@@ -113,8 +113,8 @@
<Card.Root>
<Card.Header icon={InfoIcon}>
<div class="flex flex-col space-y-1.5">
- <Card.Title>{m.volumes_details_title()}</Card.Title>
- <Card.Description>{m.volumes_details_description()}</Card.Description>
+ <Card.Title>{m.common_details_title({ resource: m.resource_volume_cap() })}</Card.Title>
+ <Card.Description>{m.common_details_description({ resource: m.resource_volume() })}</Card.Description>
</div>
</Card.Header>
<Card.Content class="p-4">
@@ -321,10 +321,15 @@
<div class="bg-muted/30 mb-4 rounded-full p-4">
<DatabaseIcon class="text-muted-foreground size-10 opacity-70" />
</div>
- <h2 class="mb-2 text-xl font-medium">{m.volumes_not_found_title()}</h2>
- <p class="text-muted-foreground mb-6">{m.volumes_not_found_description()}</p>
+ <h2 class="mb-2 text-xl font-medium">{m.common_not_found_title({ resource: m.volumes_title() })}</h2>
+ <p class="text-muted-foreground mb-6">{m.common_not_found_description({ resource: m.volumes_title().toLowerCase() })}</p>
- <ArcaneButton action="cancel" customLabel={m.common_back_to_volumes()} onclick={() => goto('/volumes')} size="sm" />
+ <ArcaneButton
+ action="cancel"
+ customLabel={m.common_back_to({ resource: m.volumes_title() })}
+ onclick={() => goto('/volumes')}
+ size="sm"
+ />
</div>
{/if}
</div>
diff --git a/frontend/src/routes/volumes/volume-table.svelte b/frontend/src/routes/volumes/volume-table.svelte
index 9d88ca231..9fed8f93c 100644
--- a/frontend/src/routes/volumes/volume-table.svelte
+++ b/frontend/src/routes/volumes/volume-table.svelte
@@ -42,8 +42,8 @@
async function handleRemoveVolumeConfirm(name: string) {
const safeName = name?.trim() || m.common_unknown();
openConfirmDialog({
- title: m.volumes_remove_title(),
- message: m.volumes_remove_confirm_message({ name: safeName }),
+ title: m.common_remove_title({ resource: m.resource_volume() }),
+ message: m.common_remove_confirm({ resource: `${m.resource_volume()} "${safeName}"` }),
confirm: {
label: m.common_remove(),
destructive: true,
@@ -51,10 +51,10 @@
isLoading.removing = true;
handleApiResultWithCallbacks({
result: await tryCatch(volumeService.deleteVolume(safeName)),
- message: m.volumes_remove_failed({ name: safeName }),
+ message: m.common_remove_failed({ resource: `${m.resource_volume()} "${safeName}"` }),
setLoadingState: (value) => (isLoading.removing = value),
onSuccess: async () => {
- toast.success(m.volumes_remove_success({ name: safeName }));
+ toast.success(m.common_remove_success({ resource: `${m.resource_volume()} "${safeName}"` }));
volumes = await volumeService.getVolumes(requestOptions);
}
});
@@ -77,7 +77,7 @@
const result = await tryCatch(volumeService.deleteVolume(safeName));
handleApiResultWithCallbacks({
result,
- message: m.volumes_remove_failed({ name: safeName }),
+ message: m.common_remove_failed({ resource: `${m.resource_volume()} "${safeName}"` }),
setLoadingState: () => {},
onSuccess: (_data) => {
successCount += 1;
@@ -88,14 +88,12 @@
isLoading.removing = false;
if (successCount > 0) {
- const successMsg =
- successCount === 1 ? m.volumes_bulk_remove_success_one() : m.volumes_bulk_remove_success_many({ count: successCount });
+ const successMsg = m.common_bulk_remove_success({ count: successCount, resource: m.volumes_title() });
toast.success(successMsg);
volumes = await volumeService.getVolumes(requestOptions);
}
if (failureCount > 0) {
- const failureMsg =
- failureCount === 1 ? m.volumes_bulk_remove_failed_one() : m.volumes_bulk_remove_failed_many({ count: failureCount });
+ const failureMsg = m.common_bulk_remove_failed({ count: failureCount, resource: m.volumes_title() });
toast.error(failureMsg);
}
selectedIds = [];
@@ -112,7 +110,7 @@
},
{
accessorKey: 'size',
- title: m.images_size(),
+ title: m.common_size(),
sortable: true,
cell: SizeCell
},
@@ -123,7 +121,7 @@
const mobileFields = [
{ id: 'id', label: m.common_id(), defaultVisible: true },
{ id: 'status', label: m.common_status(), defaultVisible: true },
- { id: 'size', label: m.images_size(), defaultVisible: true },
+ { id: 'size', label: m.common_size(), defaultVisible: true },
{ id: 'createdAt', label: m.common_created(), defaultVisible: true },
{ id: 'driver', label: m.common_driver(), defaultVisible: true }
];
@@ -191,7 +189,7 @@
show: mobileFieldVisibility.driver ?? true
},
{
- label: m.images_size(),
+ label: m.common_size(),
getValue: (item: VolumeSummaryDto) =>
item.usageData && item.usageData.size >= 0 ? bytes.format(item.usageData.size) : '-',
icon: HardDriveIcon,