Skip to content
Open

Kimi #502

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ai_assistant.request.env": "ppe",
"ai_assistant.request.ppe": "ppe_trae_seed_code_dogfood"
}
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="������" aria-expanded="true"></button>
</div>

</ul>
Expand All @@ -157,7 +157,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="������" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>

Expand Down
4 changes: 2 additions & 2 deletions blank.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="������" aria-expanded="true"></button>
</div>

</ul>
Expand All @@ -156,7 +156,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="������" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>

Expand Down
4 changes: 2 additions & 2 deletions buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="������" aria-expanded="true"></button>
</div>

</ul>
Expand All @@ -156,7 +156,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="������" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>

Expand Down
4 changes: 2 additions & 2 deletions cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="������" aria-expanded="true"></button>
</div>

</ul>
Expand All @@ -156,7 +156,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="������" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>

Expand Down
4 changes: 2 additions & 2 deletions charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="������" aria-expanded="true"></button>
</div>

</ul>
Expand All @@ -155,7 +155,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="������" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>

Expand Down
5 changes: 5 additions & 0 deletions css/sb-admin-2.css
Original file line number Diff line number Diff line change
Expand Up @@ -9806,6 +9806,11 @@ a:focus {
flex: 1 0 auto;
}

body.sidebar-toggled #wrapper #content-wrapper,
.sidebar.toggled ~ #content-wrapper {
margin-left: 0;
}

.container,
.container-fluid,
.container-sm,
Expand Down
8 changes: 4 additions & 4 deletions forgot-password.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ <h1 class="h4 text-gray-900 mb-2">Forgot Your Password?</h1>
<p class="mb-4">We get it, stuff happens. Just enter your email address below
and we'll send you a link to reset your password!</p>
</div>
<form class="user">
<form class="user" action="forgot-password" method="POST">
<div class="form-group">
<input type="email" class="form-control form-control-user"
id="exampleInputEmail" aria-describedby="emailHelp"
id="exampleInputEmail" name="email" required aria-describedby="emailHelp"
placeholder="Enter Email Address...">
</div>
<a href="login.html" class="btn btn-primary btn-user btn-block">
<button type="submit" class="btn btn-primary btn-user btn-block">
Reset Password
</a>
</button>
</form>
<hr>
<div class="text-center">
Expand Down
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="切换侧边栏" aria-expanded="true"></button>
</div>

<!-- Sidebar Message -->
Expand All @@ -161,8 +161,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">

<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="切换侧边栏" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>

Expand All @@ -184,7 +183,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<ul class="navbar-nav ml-auto">

<!-- Nav Item - Search Dropdown (Visible Only XS) -->
<li class="nav-item dropdown no-arrow d-sm-none">
aria-label="Toggle Sidebar"
<a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-search fa-fw"></i>
Expand Down Expand Up @@ -221,7 +220,7 @@ <h6 class="collapse-header">Other Pages:</h6>
<h6 class="dropdown-header">
Alerts Center
</h6>
<a class="dropdown-item d-flex align-items-center" href="#">
aria-label="Toggle Sidebar"
<div class="mr-3">
<div class="icon-circle bg-primary">
<i class="fas fa-file-alt text-white"></i>
Expand Down
107 changes: 68 additions & 39 deletions js/sb-admin-2.js
Original file line number Diff line number Diff line change
@@ -1,56 +1,85 @@
(function($) {
"use strict"; // Start of use strict
(function ($) {
'use strict';

// Toggle the side navigation
$("#sidebarToggle, #sidebarToggleTop").on('click', function(e) {
$("body").toggleClass("sidebar-toggled");
$(".sidebar").toggleClass("toggled");
if ($(".sidebar").hasClass("toggled")) {
$('.sidebar .collapse').collapse('hide');
function debounce(func, wait) {
var timeout;
return function () {
var context = this,
args = arguments;
clearTimeout(timeout);
timeout = setTimeout(function () {
func.apply(context, args);
}, wait);
};
});
}

// Close any open menu accordions when window is resized below 768px
$(window).resize(function() {
if ($(window).width() < 768) {
$('.sidebar .collapse').collapse('hide');
};

// Toggle the side navigation when window is resized below 480px
if ($(window).width() < 480 && !$(".sidebar").hasClass("toggled")) {
$("body").addClass("sidebar-toggled");
$(".sidebar").addClass("toggled");
$('#sidebarToggle, #sidebarToggleTop').on('click', function (e) {
e.preventDefault();
$('body').toggleClass('sidebar-toggled');
$('.sidebar').toggleClass('toggled');
var isExpanded = !$('.sidebar').hasClass('toggled');
$('#sidebarToggle, #sidebarToggleTop').attr('aria-expanded', isExpanded);
if ($('.sidebar').hasClass('toggled')) {
$('.sidebar .collapse').collapse('hide');
};
}
});

// Prevent the content wrapper from scrolling when the fixed side navigation hovered over
$('body.fixed-nav .sidebar').on('mousewheel DOMMouseScroll wheel', function(e) {
$(window).resize(
debounce(function () {
var windowWidth = $(window).width();
if (windowWidth < 768) {
$('.sidebar .collapse').collapse('hide');
}
if (windowWidth < 480 && !$('.sidebar').hasClass('toggled')) {
$('body').addClass('sidebar-toggled');
$('.sidebar').addClass('toggled');
$('#sidebarToggle, #sidebarToggleTop').attr('aria-expanded', 'false');
$('.sidebar .collapse').collapse('hide');
}
}, 200),
);

$('body.fixed-nav .sidebar').on('wheel', function (e) {
if ($(window).width() > 768) {
var e0 = e.originalEvent,
delta = e0.wheelDelta || -e0.detail;
var e0 = e.originalEvent;
var delta = e0.deltaY * -1 || e0.wheelDelta || -e0.detail;
this.scrollTop += (delta < 0 ? 1 : -1) * 30;
e.preventDefault();
}
});

// Scroll to top button appear
$(document).on('scroll', function() {
var scrollDistance = $(this).scrollTop();
if (scrollDistance > 100) {
$('.scroll-to-top').fadeIn();
} else {
$('.scroll-to-top').fadeOut();
}
});
$(document).on(
'scroll',
debounce(function () {
var scrollDistance = $(this).scrollTop();
if (scrollDistance > 100) {
$('.scroll-to-top').fadeIn(200);
} else {
$('.scroll-to-top').fadeOut(200);
}
}, 200),
);

// Smooth scrolling using jQuery easing
$(document).on('click', 'a.scroll-to-top', function(e) {
$(document).on('click', 'a.scroll-to-top', function (e) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset().top)
}, 1000, 'easeInOutExpo');
var $target = $($anchor.attr('href'));
if ($target.length) {
$('html, body').stop().animate(
{
scrollTop: $target.offset().top,
},
1000,
'easeInOutExpo',
);
}
e.preventDefault();
});

})(jQuery); // End of use strict
$(document).ready(function () {
$('.scroll-to-top').fadeOut(0);
$('#sidebarToggle, #sidebarToggleTop').attr({
'aria-label': '切换侧边栏',
'aria-expanded': !$('.sidebar').hasClass('toggled'),
});
});
})(jQuery);
12 changes: 6 additions & 6 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Welcome Back!</h1>
</div>
<form class="user">
<form class="user" action="login" method="POST">
<div class="form-group">
<input type="email" class="form-control form-control-user"
id="exampleInputEmail" aria-describedby="emailHelp"
id="exampleInputEmail" name="email" required aria-describedby="emailHelp"
placeholder="Enter Email Address...">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user"
id="exampleInputPassword" placeholder="Password">
id="exampleInputPassword" name="password" required placeholder="Password">
</div>
<div class="form-group">
<div class="custom-control custom-checkbox small">
<input type="checkbox" class="custom-control-input" id="customCheck">
<input type="checkbox" class="custom-control-input" id="customCheck" name="remember">
<label class="custom-control-label" for="customCheck">Remember
Me</label>
</div>
</div>
<a href="index.html" class="btn btn-primary btn-user btn-block">
<button type="submit" class="btn btn-primary btn-user btn-block">
Login
</a>
</button>
<hr>
<a href="index.html" class="btn btn-google btn-user btn-block">
<i class="fab fa-google fa-fw"></i> Login with Google
Expand Down
16 changes: 8 additions & 8 deletions register.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,34 @@
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Create an Account!</h1>
</div>
<form class="user">
<form class="user" action="register" method="POST">
<div class="form-group row">
<div class="col-sm-6 mb-3 mb-sm-0">
<input type="text" class="form-control form-control-user" id="exampleFirstName"
<input type="text" class="form-control form-control-user" id="exampleFirstName" name="firstName" required
placeholder="First Name">
</div>
<div class="col-sm-6">
<input type="text" class="form-control form-control-user" id="exampleLastName"
<input type="text" class="form-control form-control-user" id="exampleLastName" name="lastName" required
placeholder="Last Name">
</div>
</div>
<div class="form-group">
<input type="email" class="form-control form-control-user" id="exampleInputEmail"
<input type="email" class="form-control form-control-user" id="exampleInputEmail" name="email" required
placeholder="Email Address">
</div>
<div class="form-group row">
<div class="col-sm-6 mb-3 mb-sm-0">
<input type="password" class="form-control form-control-user"
id="exampleInputPassword" placeholder="Password">
id="exampleInputPassword" name="password" required placeholder="Password">
</div>
<div class="col-sm-6">
<input type="password" class="form-control form-control-user"
id="exampleRepeatPassword" placeholder="Repeat Password">
id="exampleRepeatPassword" name="passwordRepeat" required placeholder="Repeat Password">
</div>
</div>
<a href="login.html" class="btn btn-primary btn-user btn-block">
<button type="submit" class="btn btn-primary btn-user btn-block">
Register Account
</a>
</button>
<hr>
<a href="index.html" class="btn btn-google btn-user btn-block">
<i class="fab fa-google fa-fw"></i> Register with Google
Expand Down
6 changes: 6 additions & 0 deletions scss/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ a {
}
}

body.sidebar-toggled {
#wrapper #content-wrapper {
margin-left: 0;
}
}

// Set container padding to match gutter width instead of default 15px
.container,
.container-fluid {
Expand Down
4 changes: 2 additions & 2 deletions tables.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
<button class="rounded-circle border-0" id="sidebarToggle" aria-label="������" aria-expanded="true"></button>
</div>

</ul>
Expand All @@ -159,7 +159,7 @@ <h6 class="collapse-header">Other Pages:</h6>

<!-- Sidebar Toggle (Topbar) -->
<form class="form-inline">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="������" aria-expanded="true">
<i class="fa fa-bars"></i>
</button>
</form>
Expand Down
Loading