nginx config and some css
This commit is contained in:
1 parent
0d2e840d0c
commit
f71b07c6c0
6 files changed
+42
-17
No files matched your search
@@ -2,12 +2,14 @@ header {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: flex;
|
display: grid;
|
||||||
|
grid-template-columns: 32% 32% 32%;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links {
|
.links {
|
||||||
|
justify-self: start;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -26,11 +28,16 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.userbuttons {
|
.userbuttons {
|
||||||
|
justify-self: end;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header>h1 {
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 400px) {
|
@media screen and (max-width: 400px) {
|
||||||
header>h1 {
|
header>h1 {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|||||||
@@ -29,4 +29,6 @@ body {
|
|||||||
|
|
||||||
.section {
|
.section {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
height: calc(100vh - 50px);
|
||||||
}
|
}
|
||||||
@@ -70,14 +70,16 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: calc(100vh - 50px);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
/* flex-direction: column; */
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settingssection.active {
|
.settingssection.active {
|
||||||
@@ -86,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settingrect {
|
.settingrect {
|
||||||
width: 25%;
|
width: 24%;
|
||||||
height: max-content;
|
height: max-content;
|
||||||
background-color: gray;
|
background-color: gray;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
@@ -105,6 +107,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settingrectbody {
|
.settingrectbody {
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@@ -151,7 +154,7 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
.settingrectbody>table {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid ;
|
border: 2px solid ;
|
||||||
@@ -205,8 +208,8 @@ tbody>tr>th {
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
.settingssection {
|
.settingssection {
|
||||||
flex-direction: column;
|
/* flex-direction: column; */
|
||||||
align-items: center;
|
/* align-items: center; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,9 +32,9 @@
|
|||||||
<!-- header -->
|
<!-- header -->
|
||||||
<!-- settings block -->
|
<!-- settings block -->
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<section class="settingssection">
|
<section class="settingssection grid" data-masonry='{ "itemSelector": ".grid-item", "columnWidth": 24% }'>
|
||||||
<!-- telnet settings -->
|
<!-- telnet settings -->
|
||||||
<div class="settingrect">
|
<div class="settingrect grid-item">
|
||||||
<div class="settingrectheader">
|
<div class="settingrectheader">
|
||||||
<h2>Telnet</h2>
|
<h2>Telnet</h2>
|
||||||
<div class="checkbox-wrapper-2">
|
<div class="checkbox-wrapper-2">
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- telnet settings -->
|
<!-- telnet settings -->
|
||||||
<!-- DNS settings -->
|
<!-- DNS settings -->
|
||||||
<div class="settingrect">
|
<div class="settingrect grid-item">
|
||||||
<div class="settingrectheader">
|
<div class="settingrectheader">
|
||||||
<h2>DNS</h2>
|
<h2>DNS</h2>
|
||||||
<div class="checkbox-wrapper-2">
|
<div class="checkbox-wrapper-2">
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- DNS settings -->
|
<!-- DNS settings -->
|
||||||
<!-- ftp settings -->
|
<!-- ftp settings -->
|
||||||
<div class="settingrect">
|
<div class="settingrect grid-item">
|
||||||
<div class="settingrectheader">
|
<div class="settingrectheader">
|
||||||
<h2>Ftp</h2>
|
<h2>Ftp</h2>
|
||||||
<div class="checkbox-wrapper-2">
|
<div class="checkbox-wrapper-2">
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- ftp settings -->
|
<!-- ftp settings -->
|
||||||
<!-- ssh settings -->
|
<!-- ssh settings -->
|
||||||
<div class="settingrect">
|
<div class="settingrect grid-item">
|
||||||
<div class="settingrectheader">
|
<div class="settingrectheader">
|
||||||
<h2>SSH</h2>
|
<h2>SSH</h2>
|
||||||
<div class="checkbox-wrapper-2">
|
<div class="checkbox-wrapper-2">
|
||||||
@@ -130,6 +130,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- ssh settings -->
|
<!-- ssh settings -->
|
||||||
|
<!-- wifi settings -->
|
||||||
|
<div class="settingrect grid-item">
|
||||||
|
<div class="settingrectheader">
|
||||||
|
<h2>WIFI</h2>
|
||||||
|
<div class="checkbox-wrapper-2">
|
||||||
|
<input type="checkbox" class="sc-gJwTLC ikxBAC" id="sshenable">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="settingrectfooter onebutton">
|
||||||
|
<button id="add_ssh_key" class="hiddenbutton settingrectfooterbutton">Add SSH key</button>
|
||||||
|
<button class="settingrectfooterbutton" id="set_ssh_settings">Confirm</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- wifi settings -->
|
||||||
</section>
|
</section>
|
||||||
<!-- syslog block -->
|
<!-- syslog block -->
|
||||||
<section class="syslogsection">
|
<section class="syslogsection">
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
const authhost = window.location.origin
|
|
||||||
const host = window.location.origin
|
const host = window.location.origin
|
||||||
const prefix = 'api'
|
const prefix = 'api'
|
||||||
|
|
||||||
const routes = {
|
const routes = {
|
||||||
login: () => [authhost, prefix, 'token'].join('/'),
|
login: () => [host, prefix, 'token'].join('/'),
|
||||||
user: () => [authhost, prefix, 'users', 'user'].join('/'),
|
user: () => [host, prefix, 'users', 'user'].join('/'),
|
||||||
|
|
||||||
telnet_status: () => [host, prefix, 'settings', 'telnet', 'get'].join('/'),
|
telnet_status: () => [host, prefix, 'settings', 'telnet', 'get'].join('/'),
|
||||||
telnet_status_set: () => [host, prefix, 'settings', 'telnet', 'set'].join('/'),
|
telnet_status_set: () => [host, prefix, 'settings', 'telnet', 'set'].join('/'),
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ http {
|
|||||||
proxy_pass http://127.0.0.1:43244/api/reboot;
|
proxy_pass http://127.0.0.1:43244/api/reboot;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /auth/admin {
|
location /auth {
|
||||||
proxy_pass http://127.0.0.1:43243/auth/admin;
|
proxy_pass http://127.0.0.1:43243/auth;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
|
|||||||
Reference in new issue
Block a user