mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 03:07:20 +08:00
feat: 补全logo
This commit is contained in:
@@ -34,6 +34,9 @@ builds:
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
flags:
|
||||
- -trimpath
|
||||
- -buildvcs=false
|
||||
ldflags:
|
||||
- -s -w --extldflags "-static"
|
||||
- -X 'github.com/acepanel/panel/internal/app.Version={{ .Version }}'
|
||||
|
||||
@@ -52,13 +52,13 @@ func NewMiddlewares(conf *koanf.Koanf, session *sessions.Manager, appRepo biz.Ap
|
||||
|
||||
// Globals is a collection of global middleware that will be applied to every request.
|
||||
func (r *Middlewares) Globals(t *gotext.Locale, mux *chi.Mux) []func(http.Handler) http.Handler {
|
||||
compressor := middleware.NewCompressor(5)
|
||||
compressor := middleware.NewCompressor(6)
|
||||
compressor.SetEncoder("gzip", func(w io.Writer, level int) io.Writer {
|
||||
writer, _ := gzip.NewWriterLevel(w, level)
|
||||
return writer
|
||||
})
|
||||
compressor.SetEncoder("br", func(w io.Writer, level int) io.Writer {
|
||||
return brotli.NewWriterV2(w, 6)
|
||||
return brotli.NewWriterV2(w, level)
|
||||
})
|
||||
compressor.SetEncoder("zstd", func(w io.Writer, level int) io.Writer {
|
||||
writer, _ := zstd.NewWriter(w, zstd.WithEncoderLevel(zstd.SpeedBetterCompression))
|
||||
|
||||
@@ -97,7 +97,7 @@ func IsChina() bool {
|
||||
client.SetRetryCount(3)
|
||||
client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
|
||||
|
||||
resp, err := client.R().Get("https://www.qualcomm.cn/cdn-cgi/trace")
|
||||
resp, err := client.R().Get("https://perfops.cloudflareperf.com/cdn-cgi/trace")
|
||||
if err != nil || !resp.IsSuccess() {
|
||||
return false
|
||||
}
|
||||
@@ -123,7 +123,7 @@ func GetPublicIPv4() (string, error) {
|
||||
},
|
||||
})
|
||||
|
||||
resp, err := client.R().Get("https://www.qualcomm.cn/cdn-cgi/trace")
|
||||
resp, err := client.R().Get("https://perfops.cloudflareperf.com/cdn-cgi/trace")
|
||||
if err != nil || !resp.IsSuccess() {
|
||||
return "", errors.New("failed to get public ipv4 address")
|
||||
}
|
||||
@@ -145,7 +145,7 @@ func GetPublicIPv6() (string, error) {
|
||||
},
|
||||
})
|
||||
|
||||
resp, err := client.R().Get("https://www.qualcomm.cn/cdn-cgi/trace")
|
||||
resp, err := client.R().Get("https://perfops.cloudflareperf.com/cdn-cgi/trace")
|
||||
if err != nil || !resp.IsSuccess() {
|
||||
return "", errors.New("failed to get public ipv6 address")
|
||||
}
|
||||
|
||||
1
web/src/assets/icons/app/apache.svg
Normal file
1
web/src/assets/icons/app/apache.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.9 KiB |
1
web/src/assets/icons/app/caddy.svg
Normal file
1
web/src/assets/icons/app/caddy.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="#a6da95" d="M7.5 11.5h3v-4h-5v2m4-2V6a1.5 1.5 0 0 0-3 0v1.5" stroke-width="1"/><path stroke="#91d7e3" d="M14.05 5.76c.9 2.5.22 5.3-1.75 7.07A6.45 6.45 0 0 1 5.5 14m-2.78-2.2A6.52 6.52 0 0 1 4 2.85a6.45 6.45 0 0 1 8.65.64M14.5 4.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-9 8.5A1.5 1.5 0 0 1 4 14.5A1.5 1.5 0 0 1 2.5 13A1.5 1.5 0 0 1 4 11.5A1.5 1.5 0 0 1 5.5 13m0-1.5l2-2m5-4l-1 1" stroke-width="1"/></g></svg>
|
||||
|
After Width: | Height: | Size: 561 B |
1
web/src/assets/icons/app/mariadb.svg
Normal file
1
web/src/assets/icons/app/mariadb.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 170"><path fill="#002b64" d="M250.383.004c-3.957.127-2.706 1.267-11.255 3.37c-8.632 2.125-19.178 1.474-28.474 5.372c-27.75 11.639-33.319 51.417-58.547 65.666c-18.858 10.652-37.883 11.501-54.988 16.861c-11.241 3.525-23.538 10.754-33.723 19.53c-7.905 6.816-8.111 12.808-16.371 21.355c-8.836 9.143-35.115.155-47.025 14.148c3.837 3.879 5.519 4.966 13.08 3.96c-1.566 2.966-10.793 5.466-8.987 9.831c1.9 4.593 24.21 7.706 44.489-4.538c9.444-5.702 16.967-13.92 31.676-15.882c19.034-2.537 40.96 1.627 62.996 4.805c-3.268 9.742-9.827 16.22-15.082 23.979c-1.627 1.753 3.268 1.949 8.853.89c10.047-2.484 17.287-4.485 24.87-8.898c9.314-5.423 10.726-19.325 22.155-22.333c6.368 9.787 23.687 12.1 34.434 4.27c-9.43-2.669-12.036-22.741-8.853-31.586c3.015-8.373 5.994-21.766 9.031-32.833c3.26-11.886 4.463-26.867 8.408-32.922c5.937-9.109 12.496-12.237 18.19-17.374s10.907-10.136 10.736-21.89C255.94 2 253.983-.11 250.383.005"/><path fill="#c49a6c" d="M241.905 6.968c.949 3.232 2.432 4.716 8.845 5.309c-.937 8.13-6.36 12.578-12.441 16.844c-5.352 3.753-11.214 7.367-14.981 13.23c-3.86 6.005-6.31 26.559-12.294 46.857c-5.173 17.539-12.984 34.88-26.625 42.479c-1.425-3.587.182-10.208-2.653-12.384c-1.834 5.231-3.907 10.222-6.336 14.86c-8.004 15.3-19.855 26.754-39.66 30.252c9.397-12.716 18.382-25.847 18.577-47.763c-6.613 1.43-6.473 17.052-13.268 21.228c-4.356.474-8.77.471-13.21.204c-18.24-1.093-36.952-6.575-54.015-1.1c-11.618 3.729-21.12 12.525-30.958 16.792c-11.563 5.015-20.32 7.077-34.718 5.015c-1.829-2.463 10.538-5.64 9.798-10.988c-5.635-.623-8.907.742-13.806-1.483c.541-.997 1.336-1.827 2.337-2.518c8.978-6.215 34.48-1.468 41.304-8.17c4.213-4.133 6.977-8.46 9.839-12.665c2.775-4.081 5.643-8.048 10.014-11.624a76 76 0 0 1 5.23-3.898c7.448-5.097 16.662-9.72 25.73-12.907c12.351-4.342 24.868-4.7 38.034-9.73c8.133-3.109 16.978-6.948 24.187-12.32a48 48 0 0 0 4.829-4.099c20.586-20.068 24.667-55.468 56.785-58.767c3.884-.398 7.063-.27 9.958-.357c3.335-.1 6.288-.487 9.498-2.297m-39.154 113.3c.383 6.134 3.945 18.306 7.089 21.264c-6.158 1.497-16.765-.977-19.486-5.32c1.398-6.271 8.674-12.004 12.397-15.945"/><path fill="#002b64" d="M244.219 13.837c-1.238 2.597-3.608 5.944-3.608 12.554c-.01 1.135-.862 1.912-.876.163c.064-6.46 1.774-9.253 3.59-12.923c.844-1.504 1.353-.884.894.206m-1.247-.978c-1.46 2.478-4.976 6.996-5.558 13.581c-.107 1.13-1.025 1.828-.886.083c.634-6.428 3.444-10.451 5.577-13.949c.967-1.422 1.422-.76.867.285m-1.136-1.296c-1.664 2.345-7.076 7.772-8.208 14.286c-.204 1.114-1.177 1.736-.89.009c1.17-6.354 5.836-11.348 8.255-14.65c1.084-1.34 1.48-.64.843.355m-1.014-1.446l-.548.583c-2.42 2.594-8.042 8.922-9.915 14.715c-.36 1.075-1.411 1.554-.884-.117c2.052-6.126 7.703-12.724 10.562-15.653c1.263-1.172 1.556-.424.785.472m-29.05 13.115c1.254-5.386 5.443-7.84 12.674-7.242c1.745 8.04-8.02 11.283-12.674 7.242"/></svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
35
web/src/assets/icons/app/openlitespeed.svg
Executable file
35
web/src/assets/icons/app/openlitespeed.svg
Executable file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="200px" height="200px" viewBox="50 50 200 200" enable-background="new 50 50 200 200" xml:space="preserve">
|
||||
<g>
|
||||
<path fill="#75D1DF" d="M216.455,101.332c-0.242-0.327-0.615-0.529-1.014-0.561c-0.401-0.033-0.795,0.116-1.086,0.399l-6.555,6.532
|
||||
c-0.479,0.479-0.537,1.236-0.152,1.787c8.453,11.95,12.933,25.954,12.933,40.514c0,38.906-31.709,70.57-70.685,70.57
|
||||
c-2.703,0-5.517-0.197-8.838-0.609c-0.206-0.03-1.092-0.166-1.649-0.256c-2.781-0.427-5.348-0.959-7.844-1.623
|
||||
c0,0-0.395-0.1-0.479-0.129c-0.027-0.004-0.046-0.012-0.072-0.023c-3.154-0.887-6.227-1.982-9.145-3.262
|
||||
c-2.914-1.259-5.838-2.795-8.712-4.581l85.846-45.399c2.728-1.443,4.389-3.986,4.438-6.801c0.057-2.811-1.5-5.418-4.176-6.967
|
||||
l-29.482-17.062l43.625-43.626c3.137-3.13,2.887-5.947,2.133-7.744c-0.902-2.221-3.245-3.773-5.693-3.773
|
||||
c-1.316,0-2.539,0.353-4.086,1.182l-104.732,55.384c-2.741,1.443-4.407,3.994-4.458,6.833c-0.041,2.823,1.538,5.419,4.217,6.943
|
||||
l29.535,16.993l-31.919,31.91c-1.776-1.925-3.457-3.938-5.002-6.019c-6.52-8.793-10.806-18.51-12.732-28.875
|
||||
c-0.029-0.147-0.054-0.299-0.07-0.447c-0.006-0.028-0.008-0.057-0.015-0.094l-0.043-0.215c-0.29-1.707-0.608-3.693-0.796-5.672
|
||||
c-0.044-0.459-0.059-0.948-0.068-1.412c0-0.012,0-0.02-0.006-0.032l-0.102-1.796c-0.069-1.014-0.144-2.162-0.144-3.332
|
||||
c0-4.821,0.479-9.611,1.432-14.232c0.447-2.164,0.993-4.297,1.632-6.339c0.024-0.071,0.039-0.126,0.052-0.2
|
||||
c0.007-0.038,0.017-0.11,0.033-0.16c0,0,0-0.004,0.001-0.007c9.233-29.73,36.332-49.706,67.431-49.706
|
||||
c4.276,0,8.663,0.495,13.805,1.562l0.624,0.132c1.611,0.338,3.408,0.802,5.48,1.408c1.102,0.321,2.205,0.719,3.178,1.067
|
||||
l0.918,0.329c0.842,0.291,1.727,0.598,2.527,0.931c0.012,0.003,0.023,0.013,0.041,0.016c0.114,0.045,0.213,0.092,0.332,0.144
|
||||
l0.045,0.023c0.39,0.181,0.845,0.169,1.228-0.037l10.327-5.467c0.451-0.237,0.733-0.709,0.738-1.226c0-0.513-0.287-0.98-0.738-1.22
|
||||
c-11.828-6.282-25.147-9.6-38.504-9.6c-45.502,0-82.516,37.012-82.516,82.515c0,18.435,6.054,35.94,17.509,50.62
|
||||
c1.512,1.936,3.18,3.868,4.968,5.775l-3.366,3.37c-3.122,3.102-2.892,5.911-2.145,7.72c0.924,2.229,3.273,3.785,5.714,3.785
|
||||
c1.29,0,2.545-0.361,4.071-1.17l7.001-3.715c2.307,1.697,4.635,3.244,6.929,4.602c12.75,7.535,27.214,11.521,41.835,11.521
|
||||
c45.488,0,82.5-37.014,82.5-82.511C232.508,132.412,226.963,115.582,216.455,101.332z"/>
|
||||
<g>
|
||||
<path fill="#FFD633" d="M90.169,216.275c-0.408,0-0.948-0.336-1.096-0.688c-0.116-0.282-0.359-0.874,1.049-2.272l45.011-45.002
|
||||
c0.789-0.787,1.175-1.924,1.028-3.029c-0.147-1.101-0.813-2.098-1.778-2.649l-31.101-17.896c-1.089-0.625-1.73-1.579-1.715-2.552
|
||||
c0.016-0.967,0.688-1.896,1.796-2.481l104.732-55.388c0.998-0.53,1.46-0.599,1.76-0.599c0.412,0,0.914,0.318,1.059,0.664
|
||||
c0.139,0.327,0.385,0.91-1.03,2.319l-44.915,44.915c-0.789,0.783-1.17,1.911-1.027,3.018c0.145,1.106,0.809,2.098,1.768,2.652
|
||||
l31.05,17.966c1.07,0.62,1.702,1.567,1.679,2.53c-0.017,0.984-0.684,1.916-1.777,2.502L91.909,215.689
|
||||
C90.92,216.219,90.46,216.275,90.169,216.275z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
1
web/src/assets/icons/app/openresty.svg
Normal file
1
web/src/assets/icons/app/openresty.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 91 93" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#A" x=".5" y=".5"/><symbol id="A" overflow="visible"><g stroke-linejoin="miter" stroke-width=".5"><path d="M4.568 45.44c12.649.29 17.036.87 26.321 1.753 5.127 10.439 4.91 8.245 7.066 20.469-8.34-9.485-20.866-19.538-33.769-22.304" fill="#b1db9e" stroke="#b1db9e"/><path d="M6.02 0c11.148 5.729 38.795 24.218 46.376 27.864 4.013-1.042 9.81-3.646 17.837-.521-8.918 1.042-16.499 10.937-25.418 17.708-8.026-20.312-21.404-32.031-27.201-38.281" fill="#85cb65" stroke="#85cb65"/><path d="M.167 26.627c15.384 3.125 20.568 4.883 31.716 8.008C39 49.5 37 56.5 35.451 65.884 28.316 48.697 15.161 32.812 0 26.562" fill="#75b35b" stroke="#75b35b"/><path d="M6.243.13c8.919 5.208 20.736 20.963 25.641 33.984 1.784 5.208 4.459 17.708 3.567 31.77 1.561 8.854 12.932 34.375 38.349 23.437-12.932 0-19.175-4.948-25.863-15.885-.446-.26-6.689-18.489-3.122-28.385C36.343 16.927 12.932 3.125 6.02 0" fill="#6fb950" stroke="#6fb950"/><path d="M69.341 82.551c10.256 0 18.506-7.031 20.512-18.229.112-.651 1.617 8.333-8.194 19.271-.725.651-6.745 1.562-12.096-1.042" fill="#b1db9e" stroke="#b1db9e"/></g><g stroke-linejoin="miter" stroke-width=".5"><path d="M76.476 42.968c2.23 1.563 3.567 2.864 4.905 4.427 1.338 1.042-.892-3.646-1.338-4.167.669-3.385-1.449-8.463-1.672-8.594-1.561-1.562-29.988 9.375-20.178 35.416-.892-21.875 9.309-26.041 18.227-27.083z" fill="#6fb850" stroke="#6fb850"/><path d="M73.8 89.321c3.121-1.302 5.128-3.581 7.804-5.664.111-.065-18.06 2.474-23.411-13.672-1.784-2.865-8.316-26.692 20.122-35.546-1.338-2.864-6.745-6.575-8.082-7.096C61.314 28.385 51.275 33.42 45 44.5c-5 9-2.378 46.598 28.8 44.822z" fill="#77c656" stroke="#77c656"/></g><ellipse cx="76.03" cy="37.239" rx="1.338" ry="1.562" stroke="none"/></symbol></svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -11,7 +11,7 @@ import AllView from '@/views/app/AllView.vue'
|
||||
|
||||
const { $gettext } = useGettext()
|
||||
|
||||
const currentTab = ref('environment')
|
||||
const currentTab = ref('all')
|
||||
|
||||
const handleUpdateCache = () => {
|
||||
useRequest(app.updateCache()).onSuccess(() => {
|
||||
@@ -25,8 +25,8 @@ const handleUpdateCache = () => {
|
||||
<template #tabbar>
|
||||
<div class="flex items-center justify-between">
|
||||
<n-tabs v-model:value="currentTab" animated class="flex-1">
|
||||
<n-tab name="environment" :tab="$gettext('Environment')" />
|
||||
<n-tab name="all" :tab="$gettext('All')" />
|
||||
<n-tab name="environment" :tab="$gettext('Environment')" />
|
||||
<n-tab name="compose" :tab="$gettext('Compose Templates')" />
|
||||
</n-tabs>
|
||||
<n-button v-if="currentTab != 'installed'" type="primary" @click="handleUpdateCache">
|
||||
|
||||
Reference in New Issue
Block a user