mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update version name and file manager
* update global tab by version tab + update some informations * remove atm overflow with file manager to avoid dropdown overflow issue * update folder svg to fit new cache logic
This commit is contained in:
parent
30e3450be4
commit
a729b2a191
4 changed files with 21 additions and 14 deletions
|
|
@ -31,7 +31,14 @@
|
|||
"cors",
|
||||
"antibot"
|
||||
],
|
||||
"headers": ["headers", "cors", "reverseproxy", "clientcache", "antibot", "misc"],
|
||||
"headers": [
|
||||
"headers",
|
||||
"cors",
|
||||
"reverseproxy",
|
||||
"clientcache",
|
||||
"antibot",
|
||||
"misc"
|
||||
],
|
||||
"log": ["badbehavior", "bunkernet", "errors", "metrics"],
|
||||
"preread": [
|
||||
"whitelist",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
18
src/ui/templates/account.html
vendored
18
src/ui/templates/account.html
vendored
|
|
@ -5,9 +5,9 @@
|
|||
<h5 class="my-2 font-bold dark:text-white/90 mx-2">SETTINGS</h5>
|
||||
{% set tabs = [
|
||||
{
|
||||
"name": "Global",
|
||||
"id": "global",
|
||||
"description": "Global informations"
|
||||
"name": "Version",
|
||||
"id": "version",
|
||||
"description": "Version informations"
|
||||
},
|
||||
{
|
||||
"name": "Username",
|
||||
|
|
@ -55,23 +55,23 @@
|
|||
<!--end tabs-->
|
||||
</div>
|
||||
</div>
|
||||
{% set global_info = {
|
||||
{% set version_info = {
|
||||
"message" : "Pro version" if is_pro_version else "Pro version but exceeding services" if pro_status == "active" and pro_overlapped else "Pro version is expired" if pro_status == "expired" else "Pro version suspended" if pro_status == "suspended" else "You are using free version",
|
||||
"link_message" : "All features available" if is_pro_version else "Awaiting compliance" if pro_status == "active" and pro_overlapped else "Renew license" if pro_status == "expired" else "Talk to team" if pro_status == "suspended" else "Upgrade to pro",
|
||||
"icon" : "pro" if is_pro_version else "free"
|
||||
} %}
|
||||
<div data-tab-item="global"
|
||||
<div data-tab-item="version"
|
||||
class="grid grid-cols-12 w-full justify-items-center">
|
||||
<div class="col-span-12">
|
||||
<h5 class="text-xl my-1 text-center transition duration-300 ease-in-out font-bold m-0 mb-4 dark:text-gray-200">
|
||||
VERSION
|
||||
</h5>
|
||||
<div class="flex justify-center items-center">
|
||||
<p class="mb-0 mr-2 dark:text-gray-300">{{ global_info['message'] }}</p>
|
||||
<p class="mb-0 mr-2 dark:text-gray-300">{{ version_info['message'] }}</p>
|
||||
<div role="img"
|
||||
aria-label="version"
|
||||
class="dark:brightness-90 inline-block w-8 h-8 text-center rounded-circle bg-yellow-500">
|
||||
{% if global_info['icon'] == 'pro' %}
|
||||
{% if version_info['icon'] == 'pro' %}
|
||||
<svg class="leading-none text-lg relative scale-[0.6]"
|
||||
viewBox="0 0 48 46"
|
||||
fill="none"
|
||||
|
|
@ -91,10 +91,10 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% if global_info['link_message'] %}
|
||||
{% if version_info['link_message'] %}
|
||||
<div class="flex justify-center mt-2">
|
||||
<a class="text-center font-semibold text-yellow-500 underline"
|
||||
href="https://panel.bunkerweb.io/?utm_campaign=self&utm_source=ui#pro">{{ global_info['link_message'] }}</a>
|
||||
href="https://panel.bunkerweb.io/?utm_campaign=self&utm_source=ui#pro">{{ version_info['link_message'] }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
6
src/ui/templates/file_manager.html
vendored
6
src/ui/templates/file_manager.html
vendored
|
|
@ -1,7 +1,7 @@
|
|||
{% set current_endpoint = url_for(request.endpoint)[1:].split("/")[-1].strip().replace('_', '-') %}
|
||||
<!-- main container -->
|
||||
<div data-{{ current_endpoint }}-container class="max-h-[700px] flex flex-col justify-between :brightness-110 md:min-h-50-screen col-span-12 p-4 relative min-w-0 break-words bg-white shadow-xl dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
|
||||
<div class="mb-4 px-3 max-h-[350px] md:max-h-[500px] overflow-y-auto overflow-x-hidden">
|
||||
<div data-{{ current_endpoint }}-container class="min-h-[400px] flex flex-col justify-between dark:brightness-110 md:min-h-50-screen col-span-12 p-4 relative min-w-0 break-words bg-white shadow-xl dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
|
||||
<div class="mb-4 px-3">
|
||||
<div class="w-full grid-cols-12 grid">
|
||||
<div class="col-span-12 md:col-span-8">
|
||||
<h5 class="mb-2 font-bold dark:text-white/90">
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
{% endif %}
|
||||
<!-- end service root-->
|
||||
<!-- services folder -->
|
||||
{% if child['type'] == "folder" and current_endpoint == "configs" and loop.depth != 1 %}
|
||||
{% if child['type'] == "folder" and current_endpoint == "configs" and loop.depth != 1 or child['type'] == "folder" and current_endpoint == "cache" and loop.depth > 2 %}
|
||||
<svg class="col-span-2 h-[2.5rem] w-[2.5rem] fill-primary stroke-gray-100 dark:stroke-gray-400"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
|
|
|
|||
Loading…
Reference in a new issue