changing panel theme
This commit is contained in:
parent
ceb8040260
commit
691f9c824e
@ -1,3 +1,7 @@
|
||||
var editor = ace.edit("script_editor");
|
||||
editor.setTheme("ace/theme/github");
|
||||
editor.session.setMode("ace/mode/lua");
|
||||
|
||||
function str_toHex(s) {
|
||||
// utf8 to latin1
|
||||
var s = unescape(encodeURIComponent(s));
|
||||
@ -104,7 +108,8 @@ function form_actions(jobj) {
|
||||
get_text_api(jobj.textDescId, function(t) {
|
||||
$("#action_desc_text").val(t);
|
||||
});
|
||||
$("#action_body_text").val(jobj.scriptBody);
|
||||
//$("#action_body_text").val(jobj.scriptBody);
|
||||
editor.setValue(jobj.scriptBody);
|
||||
}
|
||||
|
||||
function show_modal_edit(jobj, oid) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
<div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
|
||||
</div>
|
@ -1,87 +1,7 @@
|
||||
<th:block th:fragment="head">
|
||||
<script type="text/javascript" src="/static/javascript/color-modes.js"></script>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title th:text="${title} ? ${title} : 'Bunker'"></title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQI12P4//8/AAX+Av7czFnnAAAAAElFTkSuQmCC">
|
||||
<meta name="theme-color" content="#712cf9">
|
||||
<style>
|
||||
.bd-placeholder-img {
|
||||
font-size: 1.125rem;
|
||||
text-anchor: middle;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.bd-placeholder-img-lg {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.b-example-divider {
|
||||
width: 100%;
|
||||
height: 3rem;
|
||||
background-color: rgba(0, 0, 0, .1);
|
||||
border: solid rgba(0, 0, 0, .15);
|
||||
border-width: 1px 0;
|
||||
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.b-example-vr {
|
||||
flex-shrink: 0;
|
||||
width: 1.5rem;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.bi {
|
||||
vertical-align: -.125em;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.nav-scroller {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
height: 2.75rem;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.nav-scroller .nav {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
padding-bottom: 1rem;
|
||||
margin-top: -1px;
|
||||
overflow-x: auto;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.btn-bd-primary {
|
||||
--bd-violet-bg: #712cf9;
|
||||
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
|
||||
|
||||
--bs-btn-font-weight: 600;
|
||||
--bs-btn-color: var(--bs-white);
|
||||
--bs-btn-bg: var(--bd-violet-bg);
|
||||
--bs-btn-border-color: var(--bd-violet-bg);
|
||||
--bs-btn-hover-color: var(--bs-white);
|
||||
--bs-btn-hover-bg: #6528e0;
|
||||
--bs-btn-hover-border-color: #6528e0;
|
||||
--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
|
||||
--bs-btn-active-color: var(--bs-btn-hover-color);
|
||||
--bs-btn-active-bg: #5a23c8;
|
||||
--bs-btn-active-border-color: #5a23c8;
|
||||
}
|
||||
|
||||
.bd-mode-toggle {
|
||||
z-index: 1500;
|
||||
}
|
||||
|
||||
.bd-mode-toggle .dropdown-menu .active .bi {
|
||||
display: block !important;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</th:block>
|
@ -1,15 +1,11 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<html xmlns:th="http://www.thymeleaf.org" class="h-full bg-white">
|
||||
<head>
|
||||
<th:block th:insert="~{fragments/header}"></th:block>
|
||||
<link rel="stylesheet" href="/static/css/util.css">
|
||||
<link href="/static/css/sign-in.css" rel="stylesheet">
|
||||
</head>
|
||||
<body class="d-flex align-items-center py-4 bg-body-tertiary">
|
||||
<div th:replace="~{fragments/floating_button}"></div>
|
||||
|
||||
<main class="form-signin w-100 m-auto">
|
||||
<div th:if="${param.error}">
|
||||
<body class="h-full">
|
||||
<!--
|
||||
<div th:if="${param.error}">
|
||||
<div class="alert alert-danger" role="alert" th:text="#{login_error}">
|
||||
</div>
|
||||
</div>
|
||||
@ -17,30 +13,41 @@
|
||||
<div class="alert alert-danger" role="alert" th:text="#{login_error}">
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8">
|
||||
<div class="sm:mx-auto sm:w-full sm:max-w-sm">
|
||||
<h2 class="mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900" th:text="#{signin}"></h2>
|
||||
</div>
|
||||
|
||||
<form method="post" th:action="@{/login}">
|
||||
<h1 class="h3 mb-3 fw-normal" th:text="#{signin}"></h1>
|
||||
<div class="mt-10 sm:mx-auto sm:w-full sm:max-w-sm">
|
||||
<form class="space-y-6" th:action="@{/login}" method="POST">
|
||||
<div>
|
||||
<label for="username" class="block text-sm font-medium leading-6 text-gray-900" th:text="#{nname}"></label>
|
||||
<div class="mt-2">
|
||||
<input id="username" name="username" type="text" required class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-floating">
|
||||
<input type="text" name="username" class="form-control" id="floatingInput" placeholder="Username">
|
||||
<label for="floatingInput" th:text="#{nname}"></label>
|
||||
</div>
|
||||
<div class="form-floating">
|
||||
<input type="password" name="password" class="form-control" id="floatingPassword" placeholder="Password">
|
||||
<label for="floatingPassword" th:text="#{pass}"></label>
|
||||
</div>
|
||||
<div>
|
||||
<label for="password" class="block text-sm font-medium leading-6 text-gray-900" th:text="#{pass}"></label>
|
||||
<div class="mt-2">
|
||||
<input id="password" name="password" type="password" autocomplete="current-password" required class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-check text-start my-3">
|
||||
<input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
|
||||
<label class="form-check-label" for="flexCheckDefault" th:text="#{remember}"></label>
|
||||
</div>
|
||||
<button class="btn btn-primary w-100 py-2" type="submit" th:text="#{signin}"></button>
|
||||
<div>
|
||||
<button type="submit" class="flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" th:text="#{signin}"></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p class="mt-3"><a th:href="@{/signup}" class="link-primary" th:text="#{signup}"></a></p>
|
||||
<p class="mt-10 text-center text-sm text-gray-500">
|
||||
Not a member?
|
||||
<a th:href="@{/signup}" class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500" th:text="#{signup}"></a>
|
||||
</p>
|
||||
|
||||
<p class="mb-3 text-body-secondary">© alterdekim 2023</p>
|
||||
</form>
|
||||
</main>
|
||||
<p class="mt-10 text-center text-sm text-gray-500">© alterdekim 2023-2024</p>
|
||||
</div>
|
||||
</div>
|
||||
<div th:replace="~{fragments/footer :: div}"></div>
|
||||
</body>
|
||||
</html>
|
@ -321,13 +321,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/javascript/base32.js" type="text/javascript"></script>
|
||||
<script src="/static/javascript/panel-script.js" type="text/javascript"></script>
|
||||
<script src="/static/javascript/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script>
|
||||
var editor = ace.edit("script_editor");
|
||||
editor.setTheme("ace/theme/monokai");
|
||||
editor.session.setMode("ace/mode/lua");
|
||||
</script>
|
||||
<script src="/static/javascript/panel-script.js" type="text/javascript"></script>
|
||||
</main>
|
||||
<div th:replace="~{fragments/footer :: div}"></div>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user