mirror of
https://github.com/Direct-Dev-Ru/go-lcg.git
synced 2025-11-16 01:29:55 +00:00
Merged main into release while building v2.0.10
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v2.0.7
|
v2.0.10
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v2.0.7
|
v2.0.10
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: lcg
|
namespace: lcg
|
||||||
data:
|
data:
|
||||||
# Основные настройки
|
# Основные настройки
|
||||||
LCG_VERSION: "v2.0.7"
|
LCG_VERSION: "v2.0.10"
|
||||||
LCG_BASE_PATH: "/lcg"
|
LCG_BASE_PATH: "/lcg"
|
||||||
LCG_SERVER_HOST: "0.0.0.0"
|
LCG_SERVER_HOST: "0.0.0.0"
|
||||||
LCG_SERVER_PORT: "8080"
|
LCG_SERVER_PORT: "8080"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: lcg
|
namespace: lcg
|
||||||
labels:
|
labels:
|
||||||
app: lcg
|
app: lcg
|
||||||
version: v2.0.7
|
version: v2.0.10
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -18,7 +18,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: lcg
|
- name: lcg
|
||||||
image: kuznetcovay/lcg:v2.0.7
|
image: kuznetcovay/lcg:v2.0.10
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ resources:
|
|||||||
# Common labels
|
# Common labels
|
||||||
# commonLabels:
|
# commonLabels:
|
||||||
# app: lcg
|
# app: lcg
|
||||||
# version: v2.0.7
|
# version: v2.0.10
|
||||||
# managed-by: kustomize
|
# managed-by: kustomize
|
||||||
|
|
||||||
# Images
|
# Images
|
||||||
# images:
|
# images:
|
||||||
# - name: lcg
|
# - name: lcg
|
||||||
# newName: kuznetcovay/lcg
|
# newName: kuznetcovay/lcg
|
||||||
# newTag: v2.0.7
|
# newTag: v2.0.10
|
||||||
|
|||||||
@@ -169,22 +169,30 @@ func formatFileSize(size int64) string {
|
|||||||
|
|
||||||
// handleFileView обрабатывает просмотр конкретного файла
|
// handleFileView обрабатывает просмотр конкретного файла
|
||||||
func handleFileView(w http.ResponseWriter, r *http.Request) {
|
func handleFileView(w http.ResponseWriter, r *http.Request) {
|
||||||
filename := strings.TrimPrefix(r.URL.Path, "/file/")
|
// Учитываем BasePath при извлечении имени файла
|
||||||
|
basePath := config.AppConfig.Server.BasePath
|
||||||
|
var filename string
|
||||||
|
if basePath != "" && basePath != "/" {
|
||||||
|
basePath = strings.TrimSuffix(basePath, "/")
|
||||||
|
filename = strings.TrimPrefix(r.URL.Path, basePath+"/file/")
|
||||||
|
} else {
|
||||||
|
filename = strings.TrimPrefix(r.URL.Path, "/file/")
|
||||||
|
}
|
||||||
if filename == "" {
|
if filename == "" {
|
||||||
http.NotFound(w, r)
|
renderNotFound(w, "Файл не указан", getBasePath())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Проверяем, что файл существует и находится в папке результатов
|
// Проверяем, что файл существует и находится в папке результатов
|
||||||
filePath := filepath.Join(config.AppConfig.ResultFolder, filename)
|
filePath := filepath.Join(config.AppConfig.ResultFolder, filename)
|
||||||
if !strings.HasPrefix(filePath, config.AppConfig.ResultFolder) {
|
if !strings.HasPrefix(filePath, config.AppConfig.ResultFolder) {
|
||||||
http.NotFound(w, r)
|
renderNotFound(w, "Запрошенный файл недоступен", getBasePath())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
content, err := os.ReadFile(filePath)
|
content, err := os.ReadFile(filePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.NotFound(w, r)
|
renderNotFound(w, "Файл не найден или был удален", getBasePath())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,9 +203,11 @@ func handleFileView(w http.ResponseWriter, r *http.Request) {
|
|||||||
data := struct {
|
data := struct {
|
||||||
Filename string
|
Filename string
|
||||||
Content template.HTML
|
Content template.HTML
|
||||||
|
BasePath string
|
||||||
}{
|
}{
|
||||||
Filename: filename,
|
Filename: filename,
|
||||||
Content: template.HTML(htmlContent),
|
Content: template.HTML(htmlContent),
|
||||||
|
BasePath: getBasePath(),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Парсим и выполняем шаблон
|
// Парсим и выполняем шаблон
|
||||||
@@ -221,22 +231,30 @@ func handleDeleteFile(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
filename := strings.TrimPrefix(r.URL.Path, "/delete/")
|
// Учитываем BasePath при извлечении имени файла
|
||||||
|
basePath := config.AppConfig.Server.BasePath
|
||||||
|
var filename string
|
||||||
|
if basePath != "" && basePath != "/" {
|
||||||
|
basePath = strings.TrimSuffix(basePath, "/")
|
||||||
|
filename = strings.TrimPrefix(r.URL.Path, basePath+"/delete/")
|
||||||
|
} else {
|
||||||
|
filename = strings.TrimPrefix(r.URL.Path, "/delete/")
|
||||||
|
}
|
||||||
if filename == "" {
|
if filename == "" {
|
||||||
http.NotFound(w, r)
|
renderNotFound(w, "Файл не указан", getBasePath())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Проверяем, что файл существует и находится в папке результатов
|
// Проверяем, что файл существует и находится в папке результатов
|
||||||
filePath := filepath.Join(config.AppConfig.ResultFolder, filename)
|
filePath := filepath.Join(config.AppConfig.ResultFolder, filename)
|
||||||
if !strings.HasPrefix(filePath, config.AppConfig.ResultFolder) {
|
if !strings.HasPrefix(filePath, config.AppConfig.ResultFolder) {
|
||||||
http.NotFound(w, r)
|
renderNotFound(w, "Запрошенный файл недоступен", getBasePath())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Проверяем, что файл существует
|
// Проверяем, что файл существует
|
||||||
if _, err := os.Stat(filePath); os.IsNotExist(err) {
|
if _, err := os.Stat(filePath); os.IsNotExist(err) {
|
||||||
http.NotFound(w, r)
|
renderNotFound(w, "Файл не найден или уже удален", getBasePath())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,13 @@ package serve
|
|||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/direct-dev-ru/linux-command-gpt/config"
|
"github.com/direct-dev-ru/linux-command-gpt/config"
|
||||||
|
"github.com/direct-dev-ru/linux-command-gpt/serve/templates"
|
||||||
"github.com/direct-dev-ru/linux-command-gpt/ssl"
|
"github.com/direct-dev-ru/linux-command-gpt/ssl"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -48,6 +50,18 @@ func StartResultServer(host, port string) error {
|
|||||||
return fmt.Errorf("failed to initialize CSRF manager: %v", err)
|
return fmt.Errorf("failed to initialize CSRF manager: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Гарантируем наличие папки результатов и файла истории
|
||||||
|
if _, err := os.Stat(config.AppConfig.ResultFolder); os.IsNotExist(err) {
|
||||||
|
if mkErr := os.MkdirAll(config.AppConfig.ResultFolder, 0755); mkErr != nil {
|
||||||
|
return fmt.Errorf("failed to create results folder: %v", mkErr)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if _, err := os.Stat(config.AppConfig.ResultHistory); os.IsNotExist(err) {
|
||||||
|
if writeErr := Write(config.AppConfig.ResultHistory, []HistoryEntry{}); writeErr != nil {
|
||||||
|
return fmt.Errorf("failed to create history file: %v", writeErr)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
addr := fmt.Sprintf("%s:%s", host, port)
|
addr := fmt.Sprintf("%s:%s", host, port)
|
||||||
|
|
||||||
// Проверяем, нужно ли использовать HTTPS
|
// Проверяем, нужно ли использовать HTTPS
|
||||||
@@ -138,15 +152,21 @@ func registerHTTPSRoutes() {
|
|||||||
// Регистрируем все маршруты кроме главной страницы
|
// Регистрируем все маршруты кроме главной страницы
|
||||||
registerRoutesExceptHome()
|
registerRoutesExceptHome()
|
||||||
|
|
||||||
// Регистрируем главную страницу с проверкой HTTPS
|
// Регистрируем главную страницу (строго по BasePath) с проверкой HTTPS
|
||||||
http.HandleFunc(makePath("/"), func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc(makePath("/"), func(w http.ResponseWriter, r *http.Request) {
|
||||||
// Проверяем, пришел ли запрос по HTTP (не HTTPS)
|
// Проверяем, пришел ли запрос по HTTP (не HTTPS)
|
||||||
if r.TLS == nil {
|
if r.TLS == nil {
|
||||||
handleHTTPSRedirect(w, r)
|
handleHTTPSRedirect(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Если уже HTTPS, обрабатываем как обычно
|
// Обрабатываем только точные пути: BasePath или BasePath/
|
||||||
|
bp := getBasePath()
|
||||||
|
p := r.URL.Path
|
||||||
|
if (bp == "" && (p == "/" || p == "")) || (bp != "" && (p == bp || p == bp+"/")) {
|
||||||
AuthMiddleware(handleResultsPage)(w, r)
|
AuthMiddleware(handleResultsPage)(w, r)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
renderNotFound(w, "Страница не найдена", bp)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Регистрируем главную страницу без слэша в конце для BasePath
|
// Регистрируем главную страницу без слэша в конце для BasePath
|
||||||
@@ -163,6 +183,13 @@ func registerHTTPSRoutes() {
|
|||||||
AuthMiddleware(handleResultsPage)(w, r)
|
AuthMiddleware(handleResultsPage)(w, r)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Catch-all 404 для любых незарегистрированных путей (только когда BasePath задан)
|
||||||
|
if getBasePath() != "" {
|
||||||
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
renderNotFound(w, "Страница не найдена", getBasePath())
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// registerRoutesExceptHome регистрирует все маршруты кроме главной страницы
|
// registerRoutesExceptHome регистрирует все маршруты кроме главной страницы
|
||||||
@@ -203,6 +230,13 @@ func registerRoutesExceptHome() {
|
|||||||
// API для сохранения результатов и истории
|
// API для сохранения результатов и истории
|
||||||
http.HandleFunc(makePath("/api/save-result"), AuthMiddleware(CSRFMiddleware(handleSaveResult)))
|
http.HandleFunc(makePath("/api/save-result"), AuthMiddleware(CSRFMiddleware(handleSaveResult)))
|
||||||
http.HandleFunc(makePath("/api/add-to-history"), AuthMiddleware(CSRFMiddleware(handleAddToHistory)))
|
http.HandleFunc(makePath("/api/add-to-history"), AuthMiddleware(CSRFMiddleware(handleAddToHistory)))
|
||||||
|
|
||||||
|
// Catch-all 404 для любых незарегистрированных путей (только когда BasePath задан)
|
||||||
|
if getBasePath() != "" {
|
||||||
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
renderNotFound(w, "Страница не найдена", getBasePath())
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// registerRoutes регистрирует все маршруты сервера
|
// registerRoutes регистрирует все маршруты сервера
|
||||||
@@ -215,8 +249,17 @@ func registerRoutes() {
|
|||||||
http.HandleFunc(makePath("/api/logout"), handleLogout)
|
http.HandleFunc(makePath("/api/logout"), handleLogout)
|
||||||
http.HandleFunc(makePath("/api/validate-token"), handleValidateToken)
|
http.HandleFunc(makePath("/api/validate-token"), handleValidateToken)
|
||||||
|
|
||||||
// Главная страница и файлы
|
// Главная страница (строго по BasePath) и файлы
|
||||||
http.HandleFunc(makePath("/"), AuthMiddleware(handleResultsPage))
|
http.HandleFunc(makePath("/"), func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
// Обрабатываем только точные пути: BasePath или BasePath/
|
||||||
|
bp := getBasePath()
|
||||||
|
p := r.URL.Path
|
||||||
|
if (bp == "" && (p == "/" || p == "")) || (bp != "" && (p == bp || p == bp+"/")) {
|
||||||
|
AuthMiddleware(handleResultsPage)(w, r)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
renderNotFound(w, "Страница не найдена", bp)
|
||||||
|
})
|
||||||
http.HandleFunc(makePath("/file/"), AuthMiddleware(handleFileView))
|
http.HandleFunc(makePath("/file/"), AuthMiddleware(handleFileView))
|
||||||
http.HandleFunc(makePath("/delete/"), AuthMiddleware(handleDeleteFile))
|
http.HandleFunc(makePath("/delete/"), AuthMiddleware(handleDeleteFile))
|
||||||
|
|
||||||
@@ -251,4 +294,30 @@ func registerRoutes() {
|
|||||||
basePath = strings.TrimSuffix(basePath, "/")
|
basePath = strings.TrimSuffix(basePath, "/")
|
||||||
http.HandleFunc(basePath, AuthMiddleware(handleResultsPage))
|
http.HandleFunc(basePath, AuthMiddleware(handleResultsPage))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Catch-all 404 для любых незарегистрированных путей (только когда BasePath задан)
|
||||||
|
if getBasePath() != "" {
|
||||||
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
renderNotFound(w, "Страница не найдена", getBasePath())
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// renderNotFound рендерит кастомную страницу 404
|
||||||
|
func renderNotFound(w http.ResponseWriter, message, basePath string) {
|
||||||
|
w.WriteHeader(http.StatusNotFound)
|
||||||
|
data := struct {
|
||||||
|
Message string
|
||||||
|
BasePath string
|
||||||
|
}{
|
||||||
|
Message: message,
|
||||||
|
BasePath: basePath,
|
||||||
|
}
|
||||||
|
tmpl, err := template.New("not_found").Parse(templates.NotFoundTemplate)
|
||||||
|
if err != nil {
|
||||||
|
http.Error(w, "404 Not Found", http.StatusNotFound)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
|
_ = tmpl.Execute(w, data)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ const FileViewTemplate = `
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>📄 {{.Filename}}</h1>
|
<h1>📄 {{.Filename}}</h1>
|
||||||
<a href="/" class="back-btn">← Назад к списку</a>
|
<a href="{{.BasePath}}/" class="back-btn">← Назад к списку</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
|
|||||||
147
serve/templates/not_found.go
Normal file
147
serve/templates/not_found.go
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
package templates
|
||||||
|
|
||||||
|
// NotFoundTemplate современная страница 404
|
||||||
|
const NotFoundTemplate = `
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Страница не найдена — 404</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--bg: #1a0b0b; /* глубокий темно-красный фон */
|
||||||
|
--bg2: #2a0f0f; /* второй оттенок фона */
|
||||||
|
--fg: #ffeaea; /* светлый текст с красным оттенком */
|
||||||
|
--accent: #ff3b30; /* основной красный (iOS red) */
|
||||||
|
--accent2: #ff6f61; /* дополнительный коралловый */
|
||||||
|
--accentGlow: rgba(255,59,48,0.35);
|
||||||
|
--accentGlow2: rgba(255,111,97,0.30);
|
||||||
|
}
|
||||||
|
* { box-sizing: border-box; }
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
background:
|
||||||
|
radial-gradient(1200px 600px at 10% 10%, rgba(255,59,48,0.12), transparent),
|
||||||
|
radial-gradient(1200px 600px at 90% 90%, rgba(255,111,97,0.12), transparent),
|
||||||
|
linear-gradient(135deg, var(--bg), var(--bg2));
|
||||||
|
color: var(--fg);
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.glow {
|
||||||
|
position: absolute;
|
||||||
|
inset: -20%;
|
||||||
|
background:
|
||||||
|
radial-gradient(700px 340px at 20% 30%, rgba(255,59,48,0.22), transparent 60%),
|
||||||
|
radial-gradient(700px 340px at 80% 70%, rgba(255,111,97,0.20), transparent 60%);
|
||||||
|
filter: blur(40px);
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
.card {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
width: min(720px, 92vw);
|
||||||
|
padding: 32px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background: rgba(255,255,255,0.03);
|
||||||
|
border: 1px solid rgba(255,255,255,0.08);
|
||||||
|
box-shadow: 0 10px 40px rgba(80,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.03);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.code {
|
||||||
|
font-size: clamp(48px, 12vw, 120px);
|
||||||
|
line-height: 0.9;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: -2px;
|
||||||
|
background: linear-gradient(90deg, var(--accent), var(--accent2));
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
background-clip: text;
|
||||||
|
color: transparent;
|
||||||
|
margin: 8px 0 12px 0;
|
||||||
|
text-shadow: 0 8px 40px var(--accentGlow);
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
font-size: clamp(18px, 3.2vw, 28px);
|
||||||
|
font-weight: 600;
|
||||||
|
opacity: 0.95;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.desc {
|
||||||
|
font-size: 15px;
|
||||||
|
opacity: 0.75;
|
||||||
|
margin: 0 auto 20px auto;
|
||||||
|
max-width: 60ch;
|
||||||
|
}
|
||||||
|
.btns {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
justify-content: center;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
.btn {
|
||||||
|
appearance: none;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 12px 18px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: white;
|
||||||
|
background: linear-gradient(135deg, var(--accent), #c62828);
|
||||||
|
box-shadow: 0 6px 18px var(--accentGlow);
|
||||||
|
transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
|
||||||
|
.btn.secondary { background: linear-gradient(135deg, #e65100, var(--accent2)); box-shadow: 0 6px 18px var(--accentGlow2); }
|
||||||
|
.hint { margin-top: 16px; font-size: 13px; opacity: 0.6; }
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
function goHome() {
|
||||||
|
window.location.href = '{{.BasePath}}/';
|
||||||
|
}
|
||||||
|
function bindEsc() {
|
||||||
|
const handler = (e) => { if (e.key === 'Escape' || e.key === 'Esc') { e.preventDefault(); goHome(); } };
|
||||||
|
window.addEventListener('keydown', handler);
|
||||||
|
document.addEventListener('keydown', handler);
|
||||||
|
// фокус на body для гарантии получения клавиш
|
||||||
|
if (document && document.body) {
|
||||||
|
document.body.setAttribute('tabindex', '-1');
|
||||||
|
document.body.focus({ preventScroll: true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', bindEsc);
|
||||||
|
} else {
|
||||||
|
bindEsc();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<meta http-equiv="refresh" content="30">
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><text y='50%' x='50%' dominant-baseline='middle' text-anchor='middle' font-size='42'>🚫</text></svg>">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="glow"></div>
|
||||||
|
<div class="card">
|
||||||
|
<div class="code">404</div>
|
||||||
|
<div class="title">Страница не найдена</div>
|
||||||
|
<p class="desc">{{.Message}}</p>
|
||||||
|
<div class="btns">
|
||||||
|
<a class="btn" href="{{.BasePath}}/">🏠 На главную</a>
|
||||||
|
<a class="btn secondary" href="{{.BasePath}}/run">🚀 К выполнению</a>
|
||||||
|
</div>
|
||||||
|
<div class="hint">Нажмите Esc, чтобы вернуться на главную</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
`
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user