From 3e143ee7a18c6787fbaed4547f0383a82f41d1b7 Mon Sep 17 00:00:00 2001 From: Anton Kuznetcov Date: Tue, 28 Oct 2025 17:56:03 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=B2=D0=B5=D1=82=D0=BA?= =?UTF-8?q?=D0=B5=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.txt | 2 +- deploy/VERSION.txt | 2 +- kustomize/configmap.yaml | 2 +- kustomize/deployment.yaml | 4 ++-- kustomize/kustomization.yaml | 4 ++-- serve/templates/history.go | 16 +++++++++------- serve/templates/results.go | 8 ++++++++ 7 files changed, 24 insertions(+), 14 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index e3b252f..8446589 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -v2.0.12 +v2.0.13 diff --git a/deploy/VERSION.txt b/deploy/VERSION.txt index e3b252f..8446589 100644 --- a/deploy/VERSION.txt +++ b/deploy/VERSION.txt @@ -1 +1 @@ -v2.0.12 +v2.0.13 diff --git a/kustomize/configmap.yaml b/kustomize/configmap.yaml index b8fc182..f92258c 100644 --- a/kustomize/configmap.yaml +++ b/kustomize/configmap.yaml @@ -5,7 +5,7 @@ metadata: namespace: lcg data: # Основные настройки - LCG_VERSION: "v2.0.12" + LCG_VERSION: "v2.0.13" LCG_BASE_PATH: "/lcg" LCG_SERVER_HOST: "0.0.0.0" LCG_SERVER_PORT: "8080" diff --git a/kustomize/deployment.yaml b/kustomize/deployment.yaml index 05aafd6..0025020 100644 --- a/kustomize/deployment.yaml +++ b/kustomize/deployment.yaml @@ -5,7 +5,7 @@ metadata: namespace: lcg labels: app: lcg - version: v2.0.12 + version: v2.0.13 spec: replicas: 1 selector: @@ -18,7 +18,7 @@ spec: spec: containers: - name: lcg - image: kuznetcovay/lcg:v2.0.12 + image: kuznetcovay/lcg:v2.0.13 imagePullPolicy: Always ports: - containerPort: 8080 diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index 8796b8b..3caa22e 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -15,11 +15,11 @@ resources: # Common labels # commonLabels: # app: lcg -# version: v2.0.12 +# version: v2.0.13 # managed-by: kustomize # Images # images: # - name: lcg # newName: kuznetcovay/lcg -# newTag: v2.0.12 +# newTag: v2.0.13 diff --git a/serve/templates/history.go b/serve/templates/history.go index ea9ee87..c42a51b 100644 --- a/serve/templates/history.go +++ b/serve/templates/history.go @@ -118,17 +118,19 @@ const HistoryPageTemplate = ` -webkit-box-orient: vertical; } .delete-btn { - background: #e74c3c; - color: white; + background: transparent; + color: #ef9a9a; /* бледно-красный */ border: none; - padding: 6px 12px; + padding: 2px 6px; border-radius: 4px; cursor: pointer; - font-size: 0.8em; - transition: background 0.3s ease; + font-size: 18px; + line-height: 1; + transition: color 0.2s ease, transform 0.2s ease; } .delete-btn:hover { - background: #c0392b; + color: rgb(171, 27, 24); /* ярче при ховере */ + transform: translateY(-1px); } .empty-state { text-align: center; @@ -185,7 +187,7 @@ const HistoryPageTemplate = ` #{{.Index}} {{.Timestamp}} - +
{{.Command}}
{{.Response}}
diff --git a/serve/templates/results.go b/serve/templates/results.go index 65333f5..dc7935c 100644 --- a/serve/templates/results.go +++ b/serve/templates/results.go @@ -174,6 +174,14 @@ const ResultsPageTemplate = ` .header h1 { font-size: 1.9em; } .content { padding: 20px; } .files-grid { grid-template-columns: 1fr; } + /* Стили карточек как в истории */ + .file-card { background: #f0f8f0; border: 1px solid #a8e6cf; padding: 15px; } + .file-card:hover { border-color: #2d5016; box-shadow: 0 8px 25px rgba(45,80,22,0.2); transform: translateY(-2px); } + .file-name { color: #333; margin-bottom: 8px; } + .file-info { color: #666; font-size: 0.9em; } + .file-preview { background: #f8f9fa; border-left: 3px solid #2d5016; font-size: 0.85em; } + .file-actions { top: 8px; left: 8px; } + .delete-btn { padding: 2px 6px; font-size: 16px; } .stats { grid-template-columns: 1fr 1fr; } .nav-buttons { flex-direction: column; gap: 8px; } .nav-btn, .nav-button { text-align: center; padding: 12px 16px; font-size: 14px; }