From 0068d20a124af85bd1362953c7584238407a11e6 Mon Sep 17 00:00:00 2001
From: Tieptk
Date: Mon, 8 Dec 2025 14:35:28 +0700
Subject: [PATCH] update
---
assets/script/checkbox.js | 51 --------
assets/script/global.js | 21 ---
assets/script/hura-lib.css | 201 ++---------------------------
assets/script/hura.global.css | 3 -
assets/script/hura_style.css | 114 ----------------
assets/script/tailwind-daisyui.css | 2 +
old/assets/script/global.js | 59 +++------
package.json | 4 +-
template/javascript/homepage.html | 4 +-
template/order/bargain.html | 2 +-
template/product/home.html | 29 ++---
template/theme.html | 6 +-
12 files changed, 58 insertions(+), 438 deletions(-)
delete mode 100644 assets/script/checkbox.js
delete mode 100644 assets/script/global.js
delete mode 100644 assets/script/hura_style.css
create mode 100644 assets/script/tailwind-daisyui.css
diff --git a/assets/script/checkbox.js b/assets/script/checkbox.js
deleted file mode 100644
index 676944d..0000000
--- a/assets/script/checkbox.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Created by Glee on 03-Nov-2020.
- */
-
-const Checkbox = function (deleteItemCb) {
-
- const INPUT_CHECKBOX_CLASS = '.js-checkbox-id';
- let _deleteItemCb = deleteItemCb;
-
- return {
- setAllChecked,
- getCheckedIds,
- deleteSelected
- }
-
- function setAllChecked() {
- var all_checkboxes = $(INPUT_CHECKBOX_CLASS);
-
- if ($(this).is(':checked')) {
- all_checkboxes.each(function (index, item) {
- $(item).prop("checked", true);
- })
- } else {
- all_checkboxes.each(function (index, item) {
- $(item).prop("checked", false);
- })
- }
- }
-
- function deleteSelected() {
- if (!confirm('Bạn chắc chắn muốn xóa ?')) {
- return;
- }
-
- $(INPUT_CHECKBOX_CLASS).each(function (index, item) {
- if ($(item).is(':checked')) {
- //delete_deal(item.value, false);
- _deleteItemCb(item.value)
- }
- });
- }
-
- function getCheckedIds() {
- let list_ids = [];
- $(INPUT_CHECKBOX_CLASS).each(function (index, item) {
- if ($(item).is(':checked')) list_ids.push(item.value);
- });
-
- return list_ids;
- }
-};
\ No newline at end of file
diff --git a/assets/script/global.js b/assets/script/global.js
deleted file mode 100644
index 2ea4e56..0000000
--- a/assets/script/global.js
+++ /dev/null
@@ -1,21 +0,0 @@
-const o = /* @__PURE__ */ (() => {
- function a(t) {
- const s = $("#status_" + t);
- s.html('Processing...'), setTimeout(() => {
- s.html("");
- }, 1e3);
- }
- function n(t) {
- const s = $("#js-status-hottype-" + t);
- s.html('Processing...'), setTimeout(() => {
- s.html("");
- }, 1e3);
- }
- return {
- addProductToCategory: a,
- markProductAsHot: n
- };
-})();
-export {
- o as default
-};
diff --git a/assets/script/hura-lib.css b/assets/script/hura-lib.css
index bfe09c5..ab61ca3 100644
--- a/assets/script/hura-lib.css
+++ b/assets/script/hura-lib.css
@@ -1,8 +1,4 @@
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
-@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@100;200;300;400;500;600;700;800;900;1000&display=swap";
-@import "https://fonts.googleapis.com/css2?family=Wix+Madefor+Text:wght@400;500;600;700;800;1000&display=swap";
-@import "https://fonts.googleapis.com/css2?family=Inclusive+Sans:wght@400;500;600;700;800;900;1000&display=swap";
-@import "https://fonts.googleapis.com/css2?family=AR+One+Sans:wght@400;500;600;700;800;1000&display=swap";
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
@@ -11,6 +7,7 @@
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
+ --color-red-200: oklch(88.5% 0.062 18.334);
--color-red-400: oklch(70.4% 0.191 22.216);
--color-red-500: oklch(63.7% 0.237 25.331);
--color-red-600: oklch(57.7% 0.245 27.325);
@@ -45,7 +42,6 @@
--color-purple-500: oklch(62.7% 0.265 303.9);
--color-purple-600: oklch(55.8% 0.288 302.321);
--color-fuchsia-500: oklch(66.7% 0.295 322.15);
- --color-gray-50: oklch(98.5% 0.002 247.839);
--color-gray-100: oklch(96.7% 0.003 264.542);
--color-gray-200: oklch(92.8% 0.006 264.531);
--color-gray-400: oklch(70.7% 0.022 261.325);
@@ -3886,9 +3882,6 @@
.w-3 {
width: calc(var(--spacing) * 3);
}
- .w-4 {
- width: calc(var(--spacing) * 4);
- }
.w-6 {
width: calc(var(--spacing) * 6);
}
@@ -5176,6 +5169,16 @@
}
}
}
+ .select-sm {
+ @layer daisyui.l1.l2 {
+ --size: calc(var(--size-field, 0.25rem) * 8);
+ font-size: 0.75rem;
+ option {
+ padding-inline: calc(0.25rem * 2.5);
+ padding-block: calc(0.25rem * 1);
+ }
+ }
+ }
.table-md {
@layer daisyui.l1.l2 {
:not(thead, tfoot) tr {
@@ -5788,9 +5791,6 @@
.text-error {
color: var(--color-error);
}
- .text-gray-50 {
- color: var(--color-gray-50);
- }
.text-gray-500 {
color: var(--color-gray-500);
}
@@ -5812,6 +5812,9 @@
.text-primary-content {
color: var(--color-primary-content);
}
+ .text-red-200 {
+ color: var(--color-red-200);
+ }
.text-red-500 {
color: var(--color-red-500);
}
@@ -6745,182 +6748,6 @@
}
}
}
-@layer properties {
- :root {
- --font-sans: "Inclusive Sans", sans-serif;
- --text-base: 16px;
- --color-hura: #0041e8;
- --color-header: #002bb5;
- --text-base--line-height: 1.5;
- --color-black: #000;
- --color-white: #fff;
- --spacing: 0.25rem;
- --layout-topbar-background: #fff;
- --menu-active: #e9f2ff;
- --menu-text: #177bff;
- --menu-sub-bg: #fff;
- }
-}
-@layer base {
- html, body {
- font-family: var(--font-sans);
- font-size: var(--text-base);
- line-height: var(--text-base--line-height);
- }
- *, *::before, *::after {
- box-sizing: border-box;
- }
-}
-@layer components {
- .bg-menu {
- background-color: var(--color-header);
- }
- .menu {
- --menu-active-bg: #e9f2ff;
- }
- .menu-horizontal {
- display: inline-flex;
- flex-direction: row;
- }
- .menu-horizontal li {
- position: relative;
- }
- .menu-horizontal li.active {
- background: var(--menu-active);
- }
- .menu-horizontal li.active .grow, .menu-horizontal li.active svg {
- color: var(--menu-text);
- }
- .menu-horizontal li.active ul li.active {
- background: var(--color-hura);
- }
- .menu-horizontal li.active ul li.active a {
- color: #fff;
- }
- .menu-horizontal li:hover {
- background: var(--menu-active);
- }
- .menu-horizontal li:hover .grow, .menu-horizontal li:hover svg {
- color: var(--color-hura);
- }
- .menu-horizontal li::before {
- content: "";
- position: absolute;
- left: 0;
- bottom: -18px;
- width: 100%;
- height: 30px;
- display: none;
- }
- .menu-horizontal li:hover::before {
- display: block;
- }
- .menu-horizontal li .submenu {
- position: absolute !important;
- top: 125%;
- left: 0;
- background: var(--menu-sub-bg);
- margin-left: 0 !important;
- padding: 0.5rem;
- z-index: 999;
- border-radius: 10px;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
- max-height: 500px;
- overflow-y: auto;
- overflow-x: hidden;
- display: none;
- }
- .menu-horizontal > li:not(.menu-title) > details > ul {
- margin-top: 1rem;
- padding-inline-end: 0.5rem;
- }
- .menu-horizontal li:hover .submenu, .menu-horizontal li:hover > details > ul {
- display: block;
- }
- .menu-horizontal > li > details > ul:before {
- content: none;
- }
- .menu-horizontal li ul li:hover {
- background: var(--color-hura);
- }
- .menu-horizontal li ul li:hover a {
- color: #fff;
- }
- .menu-horizontal li ul li:hover::before {
- display: none;
- }
- .menu-horizontal .grow {
- font-weight: 500;
- }
- .tw-qna {
- gap: calc(var(--spacing) * 0.5);
- }
- .tw-zy {
- align-items: center;
- }
- .tw-uba {
- display: inline-flex;
- }
- .tw-usa {
- width: calc(var(--spacing) * 5);
- height: calc(var(--spacing) * 5);
- }
- .tw-sla {
- width: calc(var(--spacing) * 4.5);
- height: calc(var(--spacing) * 4.5);
- }
- .menu-icon-color {
- color: #838383;
- }
- .card-body {
- padding: calc(var(--spacing) * 4);
- }
- .-mt-25 {
- margin-top: calc(var(--spacing) * -25);
- }
-}
-#layout-topbar {
- background: var(--layout-topbar-background);
- top: calc(var(--spacing) * 0);
- z-index: 10;
- transition-property: top, margin, border-radius;
- transition-timing-function: var( --tw-ease, var(--default-transition-timing-function) );
- transition-duration: var(--tw-duration, var(--default-transition-duration));
- --tw-duration: 0.3s;
- transition-duration: 0.3s;
- position: sticky;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- border-color: var(--color-base-300);
-}
-#layout-content {
- padding: calc(var(--spacing) * 6);
- transition-property: all;
- transition-timing-function: var( --tw-ease, var(--default-transition-timing-function) );
- transition-duration: var(--tw-duration, var(--default-transition-duration));
- flex-grow: 1;
-}
-@layer utilities {
- .btn-active {
- --btn-bg: var(--color-hura);
- --btn-fg: #ffffff;
- --btn-border: var(--color-hura);
- color: var(--color-white);
- }
- .btn-active:hover {
- --btn-bg: #002bb5;
- --btn-border: #002bb5;
- }
- .btn-view {
- background: #f5f7ff;
- color: var(--color-hura);
- border: 1px solid var(--color-hura);
- }
- .btn-view:hover {
- background: var(--color-hura);
- color: #fff;
- }
-}
@layer base {
:where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme=light] {
color-scheme: light;
diff --git a/assets/script/hura.global.css b/assets/script/hura.global.css
index 451691b..e100694 100644
--- a/assets/script/hura.global.css
+++ b/assets/script/hura.global.css
@@ -6,9 +6,6 @@
@import "https://fonts.googleapis.com/css2?family=Inclusive+Sans:wght@400;500;600;700;800;900;1000&display=swap";
@import "https://fonts.googleapis.com/css2?family=AR+One+Sans:wght@400;500;600;700;800;1000&display=swap";
-@import "tailwindcss";
-@plugin "daisyui";
-
@layer properties {
:root {
--font-sans: "Inclusive Sans", sans-serif;
diff --git a/assets/script/hura_style.css b/assets/script/hura_style.css
deleted file mode 100644
index f8a4792..0000000
--- a/assets/script/hura_style.css
+++ /dev/null
@@ -1,114 +0,0 @@
-:root {
- --color-primary: #0041e8;
-}
-
-.btn-dash {
- border-style: dashed;
- border-color: gray;
-}
-.btn-dash:hover {
- border-color: var(--color-primary);
- color: #fff;
- background: var(--color-primary);
-}
-
-.todo-list td {
- padding: 5px;
-}
-.bg-menu {
- background: #004e99;
-}
-
-.lucide--file-pdf {
- --svg: url("data:image/svg+xml,%3Csvg width='13' height='14' viewBox='0 0 13 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.454633 0.455C0.649671 0.259962 0.914199 0.150391 1.19002 0.150391H7.43002C7.56794 0.150391 7.7002 0.205176 7.79772 0.302695L11.4377 3.9427C11.5352 4.04021 11.59 4.17248 11.59 4.31039V6.91039C11.59 7.19758 11.3572 7.43039 11.07 7.43039C10.7828 7.43039 10.55 7.19758 10.55 6.91039V4.52578L7.21463 1.19039H1.19002V6.91039C1.19002 7.19758 0.957212 7.43039 0.670024 7.43039C0.382836 7.43039 0.150024 7.19758 0.150024 6.91039V1.19039C0.150024 0.914565 0.259596 0.650037 0.454633 0.455Z' fill='%230041E8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.43002 0.150391C7.71721 0.150391 7.95002 0.383203 7.95002 0.670391V3.79039H11.07C11.3572 3.79039 11.59 4.0232 11.59 4.31039C11.59 4.59758 11.3572 4.83039 11.07 4.83039H7.43002C7.14284 4.83039 6.91002 4.59758 6.91002 4.31039V0.670391C6.91002 0.383203 7.14284 0.150391 7.43002 0.150391Z' fill='%230041E8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.150024 9.51039C0.150024 9.2232 0.382836 8.99039 0.670024 8.99039H1.71002C2.12376 8.99039 2.52055 9.15475 2.81311 9.4473C3.10567 9.73986 3.27002 10.1367 3.27002 10.5504C3.27002 10.9641 3.10567 11.3609 2.81311 11.6535C2.52055 11.946 2.12376 12.1104 1.71002 12.1104H1.19002V12.6304C1.19002 12.9176 0.957212 13.1504 0.670024 13.1504C0.382836 13.1504 0.150024 12.9176 0.150024 12.6304V9.51039ZM1.19002 11.0704H1.71002C1.84794 11.0704 1.9802 11.0156 2.07772 10.9181C2.17524 10.8206 2.23002 10.6883 2.23002 10.5504C2.23002 10.4125 2.17524 10.2802 2.07772 10.1827C1.9802 10.0852 1.84794 10.0304 1.71002 10.0304H1.19002V11.0704Z' fill='%230041E8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.25002 9.51039C9.25002 9.2232 9.48284 8.99039 9.77002 8.99039H11.59C11.8772 8.99039 12.11 9.2232 12.11 9.51039C12.11 9.79758 11.8772 10.0304 11.59 10.0304H10.29V12.6304C10.29 12.9176 10.0572 13.1504 9.77002 13.1504C9.48284 13.1504 9.25002 12.9176 9.25002 12.6304V9.51039Z' fill='%230041E8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.25002 11.3304C9.25002 11.0432 9.48284 10.8104 9.77002 10.8104H11.33C11.6172 10.8104 11.85 11.0432 11.85 11.3304C11.85 11.6176 11.6172 11.8504 11.33 11.8504H9.77002C9.48284 11.8504 9.25002 11.6176 9.25002 11.3304Z' fill='%230041E8'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.44002 9.51039C4.44002 9.2232 4.67284 8.99039 4.96002 8.99039H5.87002C6.42167 8.99039 6.95073 9.20953 7.34081 9.59961C7.73088 9.98968 7.95002 10.5187 7.95002 11.0704C7.95002 11.622 7.73088 12.1511 7.34081 12.5412C6.95073 12.9312 6.42167 13.1504 5.87002 13.1504H4.96002C4.67284 13.1504 4.44002 12.9176 4.44002 12.6304V9.51039ZM5.48002 10.0304V12.1104H5.87002C6.14585 12.1104 6.41038 12.0008 6.60542 11.8058C6.80045 11.6107 6.91002 11.3462 6.91002 11.0704C6.91002 10.7946 6.80045 10.53 6.60542 10.335C6.41038 10.14 6.14585 10.0304 5.87002 10.0304H5.48002Z' fill='%230041E8'/%3E%3Cpath d='M7.43002 0.150391H1.19002C0.914199 0.150391 0.649671 0.259962 0.454633 0.455C0.259596 0.650037 0.150024 0.914565 0.150024 1.19039V6.91039C0.150024 7.19758 0.382836 7.43039 0.670024 7.43039C0.957212 7.43039 1.19002 7.19758 1.19002 6.91039V1.19039H7.21463L10.55 4.52578V6.91039C10.55 7.19758 10.7828 7.43039 11.07 7.43039C11.3572 7.43039 11.59 7.19758 11.59 6.91039V4.31039M7.43002 0.150391C7.56794 0.150391 7.7002 0.205176 7.79772 0.302695L11.4377 3.9427C11.5352 4.04021 11.59 4.17248 11.59 4.31039M7.43002 0.150391C7.71721 0.150391 7.95002 0.383203 7.95002 0.670391V3.79039H11.07C11.3572 3.79039 11.59 4.0232 11.59 4.31039M7.43002 0.150391C7.14284 0.150391 6.91002 0.383203 6.91002 0.670391V4.31039C6.91002 4.59758 7.14284 4.83039 7.43002 4.83039H11.07C11.3572 4.83039 11.59 4.59758 11.59 4.31039M0.670024 8.99039C0.382836 8.99039 0.150024 9.2232 0.150024 9.51039V12.6304C0.150024 12.9176 0.382836 13.1504 0.670024 13.1504C0.957212 13.1504 1.19002 12.9176 1.19002 12.6304V12.1104H1.71002C2.12376 12.1104 2.52055 11.946 2.81311 11.6535C3.10567 11.3609 3.27002 10.9641 3.27002 10.5504C3.27002 10.1367 3.10567 9.73986 2.81311 9.4473C2.52055 9.15475 2.12376 8.99039 1.71002 8.99039H0.670024ZM1.71002 11.0704H1.19002V10.0304H1.71002C1.84794 10.0304 1.9802 10.0852 2.07772 10.1827C2.17524 10.2802 2.23002 10.4125 2.23002 10.5504C2.23002 10.6883 2.17524 10.8206 2.07772 10.9181C1.9802 11.0156 1.84794 11.0704 1.71002 11.0704ZM9.77002 8.99039C9.48284 8.99039 9.25002 9.2232 9.25002 9.51039V12.6304C9.25002 12.9176 9.48284 13.1504 9.77002 13.1504C10.0572 13.1504 10.29 12.9176 10.29 12.6304V10.0304H11.59C11.8772 10.0304 12.11 9.79758 12.11 9.51039C12.11 9.2232 11.8772 8.99039 11.59 8.99039H9.77002ZM9.77002 10.8104C9.48284 10.8104 9.25002 11.0432 9.25002 11.3304C9.25002 11.6176 9.48284 11.8504 9.77002 11.8504H11.33C11.6172 11.8504 11.85 11.6176 11.85 11.3304C11.85 11.0432 11.6172 10.8104 11.33 10.8104H9.77002ZM4.96002 8.99039C4.67284 8.99039 4.44002 9.2232 4.44002 9.51039V12.6304C4.44002 12.9176 4.67284 13.1504 4.96002 13.1504H5.87002C6.42167 13.1504 6.95073 12.9312 7.34081 12.5412C7.73088 12.1511 7.95002 11.622 7.95002 11.0704C7.95002 10.5187 7.73088 9.98968 7.34081 9.59961C6.95073 9.20953 6.42167 8.99039 5.87002 8.99039H4.96002ZM5.48002 12.1104V10.0304H5.87002C6.14585 10.0304 6.41038 10.14 6.60542 10.335C6.80045 10.53 6.91002 10.7946 6.91002 11.0704C6.91002 11.3462 6.80045 11.6107 6.60542 11.8058C6.41038 12.0008 6.14585 12.1104 5.87002 12.1104H5.48002Z' stroke='%230041E8' stroke-width='0.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-}
-.lucide--crown {
- --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-crown-icon lucide-crown'%3E%3Cpath d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
-}
-.lucide--circle-plus {
- --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M12 8v8'/%3E%3C/svg%3E");
-}
-.lucide--pointer {
- --svg: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXBvaW50ZXItaWNvbiBsdWNpZGUtcG9pbnRlciI+PHBhdGggZD0iTTIyIDE0YTggOCAwIDAgMS04IDgiLz48cGF0aCBkPSJNMTggMTF2LTFhMiAyIDAgMCAwLTItMmEyIDIgMCAwIDAtMiAyIi8+PHBhdGggZD0iTTE0IDEwVjlhMiAyIDAgMCAwLTItMmEyIDIgMCAwIDAtMiAydjEiLz48cGF0aCBkPSJNMTAgOS41VjRhMiAyIDAgMCAwLTItMmEyIDIgMCAwIDAtMiAydjEwIi8+PHBhdGggZD0iTTE4IDExYTIgMiAwIDEgMSA0IDB2M2E4IDggMCAwIDEtOCA4aC0yYy0yLjggMC00LjUtLjg2LTUuOTktMi4zNGwtMy42LTMuNmEyIDIgMCAwIDEgMi44My0yLjgyTDcgMTUiLz48L3N2Zz4=");
-}
-.lucide--ban {
- --svg: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWJhbi1pY29uIGx1Y2lkZS1iYW4iPjxwYXRoIGQ9Ik00LjkyOSA0LjkyOSAxOS4wNyAxOS4wNzEiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjwvc3ZnPg==");
-}
-.text-faq {
- color: #ffc700;
-}
-.text-orange {
- color: #ffc700;
-}
-.text-red {
- color: #e00000;
-}
-.text-gray {
- color: #6b7280;
-}
-.right-2 {
- right: 0.5rem;
-}
-.max-h-400 {
- max-height: 400px;
-}
-.h-400 {
- height: 400px;
-}
-.ml-2 {
- margin-left: 0.5rem;
-}
-.w-11\/12 {
- width: 91.666667%;
-}
-.max-w-3xl {
- max-width: 48rem;
-}
-.menu-form a {
- border-top: 0;
-}
-.menu-form a:hover {
- color: #fff;
- background: #0041e8;
-}
-
-:is(.radio:checked, .radio[aria-checked="true"]):before {
- background-color: var(--color-primary);
-}
-.radio:checked,
-.radio[aria-checked="true"] {
- border-color: var(--color-primary);
-}
-
-.checkbox:checked,
-.checkbox[aria-checked="true"] {
- background-color: var(--color-primary);
-}
-
-.checkbox:before {
- background-color: #fff;
-}
-
-.btn-remove {
- background: red;
- color: #fff;
-}
-
-.overflow-y-scroll {
- overflow-y: auto;
-}
-.max-h-\[500px\] {
- max-height: 500px;
-}
-.col-span-5 {
- grid-column: span 5 / span 5;
-}
-
-.btn-gray {
- border: 1px dashed #6b7280;
- color: #9e9e9e;
-}
-
-.menu-horizontal li .submenu li:hover::before {
- display: none;
-}
diff --git a/assets/script/tailwind-daisyui.css b/assets/script/tailwind-daisyui.css
new file mode 100644
index 0000000..4c1b0c2
--- /dev/null
+++ b/assets/script/tailwind-daisyui.css
@@ -0,0 +1,2 @@
+@import "tailwindcss";
+@plugin "daisyui";
diff --git a/old/assets/script/global.js b/old/assets/script/global.js
index 443a4c1..2ea4e56 100644
--- a/old/assets/script/global.js
+++ b/old/assets/script/global.js
@@ -1,40 +1,21 @@
-"use strict";
-const AdminFunction = (() => {
- function capNhatTrangThaiMenu(e) {
- !1 === e ? $("#js-admin-content-container").addClass("show-large-menu") : $("#js-admin-content-container").removeClass("show-large-menu"), $("#js-menu-big").toggleClass("hidden", e), $("#js-menu-small").toggleClass("hidden", !e), $("#js-form-search").toggleClass("menu-hide", e), localStorage.setItem(e ? "menu_big" : "menu_small", "hidden"), localStorage.removeItem(e ? "menu_small" : "menu_big");
- }
- function e(e) {
- let t = null;
- return function (...n) {
- const o = this, a = function () {
- t = null, n.length > 0 && !e && func.apply(o, n);
- }, i = e && !t;
- clearTimeout(t), t = setTimeout(a, wait), i && func.apply(o, n);
- };
- }
- function t(t) {
- $("#status_" + t).html('Đang xử lý..'), setTimeout(() => {
- $("#status_" + t).html("");
- }, 1e3);
- }
- function n(e) {
- $(e).keyup((() => {
- $("#js-show-search").show();
- }));
- $("body").click((() => {
- $("#js-show-search").hide();
- }));
- }
- function o(e) {
- $("#js-status-hottype-" + e).html('Đang xử lý..'), setTimeout(() => {
- $("#js-status-hottype-" + e).html("");
- }, 1e3);
- }
- function i(e) {
- $("#overlay").addClass("active"), $(".status-notificatiom").addClass("active"), !0 === e ? $(".status-notificatiom .content").html(' Cập nhật thành công\n Đơn hàng #000-368 đã được cập nhật thành công
') : $(".status-notificatiom .content").html(' Lỗi cập nhậtCó một số vấn đề với hoạt động của bạn.
');
- }
- function r() {
- $("#overlay").removeClass("active"), $(".status-notificatiom").removeClass("active");
- }
- return { capNhatTrangThaiMenu: capNhatTrangThaiMenu, add_product_to_category: t, run_search: n, update_product_hot: o, checkForm: i, closeForm: r };
+const o = /* @__PURE__ */ (() => {
+ function a(t) {
+ const s = $("#status_" + t);
+ s.html('Processing...'), setTimeout(() => {
+ s.html("");
+ }, 1e3);
+ }
+ function n(t) {
+ const s = $("#js-status-hottype-" + t);
+ s.html('Processing...'), setTimeout(() => {
+ s.html("");
+ }, 1e3);
+ }
+ return {
+ addProductToCategory: a,
+ markProductAsHot: n
+ };
})();
+export {
+ o as default
+};
diff --git a/package.json b/package.json
index 712b4dd..d2e6901 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"main": "index.js",
"scripts": {
"build:js": "vite build",
- "build:css": "tailwindcss -i ./assets/script/hura.global.css -o ./assets/script/hura-lib.css",
- "watch:css": "tailwindcss -i ./assets/script/hura.global.css -o ./assets/script/hura-lib.css --watch",
+ "build:css": "tailwindcss -i ./assets/script/tailwind-daisyui.css -o ./assets/script/hura-lib.css",
+ "watch:css": "tailwindcss -i ./assets/script/tailwind-daisyui.css -o ./assets/script/hura-lib.css --watch",
"build": "npm run build:js && npm run build:css",
"test": "echo \"Error: no test specified\" && exit 1"
},
diff --git a/template/javascript/homepage.html b/template/javascript/homepage.html
index eb88ba6..6cd67fd 100644
--- a/template/javascript/homepage.html
+++ b/template/javascript/homepage.html
@@ -2,7 +2,7 @@
const initCustomerAcquisitionChart = () => {
const chartOptions = {
chart: {
- height: 350,
+ height: 363,
sparkline: {
enabled: false,
},
@@ -59,7 +59,7 @@
const initRevenueStatisticsChart = () => {
const chartOptions = {
chart: {
- height: 292,
+ height: 295,
type: "bar",
stacked: true,
background: "transparent",
diff --git a/template/order/bargain.html b/template/order/bargain.html
index 215f640..565ecf0 100644
--- a/template/order/bargain.html
+++ b/template/order/bargain.html
@@ -18,7 +18,7 @@
Tổng số mặc cả giá nhận được: 1.458
-
+
diff --git a/template/product/home.html b/template/product/home.html
index 1781418..e6df173 100644
--- a/template/product/home.html
+++ b/template/product/home.html
@@ -42,15 +42,15 @@
@@ -58,13 +58,13 @@
-
+
| STT |
Ảnh |
Sản phẩm (Tổng số: {{page.total}}) |
Thông tin bán hàng |
- |
-
{% for paging in page.pagination.collection %}
{% if paging.name == 'next' %}
@@ -229,12 +228,8 @@
{% endif %}
{% endfor %}
-
-
-
-