Layout, Pages, Dashboard, MUI

This commit is contained in:
cracklesparkle
2024-06-20 16:59:59 +09:00
parent d53694a0b3
commit d6906503d1
27 changed files with 8076 additions and 142 deletions

View File

@ -0,0 +1,7 @@
import axios from "axios";
export default class AuthService {
static async hello() {
return await axios.get(`${import.meta.env.VITE_API_AUTH_URL}/hello`)
}
}

View File

@ -0,0 +1,29 @@
// Data mockup
let users =
[
{
"email": "string",
"login": "string",
"phone": "string",
"name": "string",
"surname": "string",
"is_active": true,
"id": 0,
"role_id": 2
}
]
export default class UserService {
static async getUsers() {
new Promise((resolve, reject) => {
if (!users) {
return setTimeout(
() => reject(new Error('Users not found')),
250
)
}
setTimeout(() => resolve(users), 250)
})
}
}