[Frontend] JsTree 樹狀架構套件引入 | 開發機 login 調整

This commit is contained in:
dev01 2022-12-13 09:40:10 +08:00
parent 9d02c456ba
commit 0ea1d81f25
14 changed files with 10928 additions and 1 deletions

View File

@ -35,6 +35,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
<!-- Font Awesome --> <!-- Font Awesome -->
<link href="lib/fontawesome-free/css/all.min.css" rel="stylesheet" /> <link href="lib/fontawesome-free/css/all.min.css" rel="stylesheet" />
<link href="lib/chart.js/Chart.min.css" rel="stylesheet" /> <link href="lib/chart.js/Chart.min.css" rel="stylesheet" />
<link href="lib/jstree-master/themes/default-dark/style.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" media="screen, print" href="https://cdn.datatables.net/1.10.21/css/dataTables.bootstrap.min.css"> <link rel="stylesheet" media="screen, print" href="https://cdn.datatables.net/1.10.21/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" media="screen, print" href="https://cdn.datatables.net/1.10.21/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" media="screen, print" href="https://cdn.datatables.net/1.10.21/css/dataTables.bootstrap4.min.css">
@ -2136,7 +2137,8 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
"lib/jquery-validation/dist/additional-methods.min", "lib/jquery-validation/dist/additional-methods.min",
"lib/jquery-validation/dist/localization/messages_zh_TW", "lib/jquery-validation/dist/localization/messages_zh_TW",
"lib/chart.js/Chart.min", "lib/chart.js/Chart.min",
"lib/dropzone/dropzone-min" "lib/dropzone/dropzone-min",
"lib/jstree-master/jstree.min",
], loadedMasterPack); ], loadedMasterPack);
} }
@ -2168,6 +2170,9 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
loadEvent(); loadEvent();
if (!jwt) { if (!jwt) {
if (location.href.indexOf("localhost:5966") != -1) {
location.href = "login.html";
}
myBaja = new MyBaja(); myBaja = new MyBaja();
myBaja.setMyUserAccount(Login); myBaja.setMyUserAccount(Login);
} else { } else {

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -91,6 +91,7 @@
</html> </html>
<script> <script>
var cookies = null;
var remember = false; var remember = false;
var myBaja = null; var myBaja = null;
$(function () { $(function () {
@ -116,6 +117,7 @@
function loadedMasterPack() { function loadedMasterPack() {
require( require(
[ [
"yourteam/yourteam.utility.class",
"init", "init",
], loadedJsPack); ], loadedJsPack);
} }
@ -199,6 +201,7 @@
} }
function Login(account, e) { function Login(account, e) {
cookies = new YourTeam.Utility.Cookie();
e ? e.preventDefault() : ""; e ? e.preventDefault() : "";
/*if ($("#login-form").valid()) {*/ /*if ($("#login-form").valid()) {*/
var url = baseApiUrl + "/api/Login/"; var url = baseApiUrl + "/api/Login/";