From ea625d66617fbb2f0812e6bf40908b889341633b Mon Sep 17 00:00:00 2001 From: "duy.dang" Date: Tue, 4 Jun 2024 03:15:12 +0700 Subject: [PATCH] [UI] add file custom style for theme --- backend/repos/seeder/init_users.py | 7 +++++++ frontend/package.json | 1 + frontend/src/App.jsx | 2 +- frontend/src/components/Navbar.jsx | 2 +- frontend/src/index.jsx | 1 + frontend/src/lang/vi.json | 3 ++- frontend/src/pages/WareHouse.jsx | 14 ++++++++++++++ frontend/src/routes/routes.js | 8 ++++++++ frontend/src/styles/fuware.scss | 22 ++++++++++++++++++++++ frontend/tailwind.config.js | 12 ++++++++++++ 10 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 frontend/src/pages/WareHouse.jsx create mode 100644 frontend/src/styles/fuware.scss diff --git a/backend/repos/seeder/init_users.py b/backend/repos/seeder/init_users.py index f220730..46e7e80 100644 --- a/backend/repos/seeder/init_users.py +++ b/backend/repos/seeder/init_users.py @@ -18,6 +18,13 @@ def dev_users() -> list[dict]: "is_admin": True, "is_lock": False, }, + { + "username": "duy", + "password": "admin", + "name": "Duy", + "is_admin": True, + "is_lock": False, + }, { "username": "sam1", "password": "admin", diff --git a/frontend/package.json b/frontend/package.json index 7ea1395..78877a4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -31,6 +31,7 @@ "lint-staged": "15.2.2", "postcss": "^8.4.38", "prettier": "3.2.5", + "sass": "^1.77.4", "tailwindcss": "^3.4.3", "vite": "^5.2.0", "vite-plugin-mkcert": "^1.17.5", diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 404885e..76a1207 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,6 +1,6 @@ import { MetaProvider } from '@solidjs/meta' import { Toaster } from 'solid-toast' -import './App.css' +// import './App.css' import { SiteContextProvider } from './context/SiteContext' function App(props) { diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index 6d4bdc0..bfe976f 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -49,7 +49,7 @@ export default function Navbar() { -