Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsukiniwa committed Mar 1, 2024
1 parent d82a355 commit 722080b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 61 deletions.
3 changes: 1 addition & 2 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@radix-ui/themes": "^2.0.3",
"@vanilla-extract/css": "^1.14.1",
"clsx": "^2.1.0",
"next": "canary",
"next": "14.1.1",
"react": "^18",
"react-content-loader": "^6.2.1",
"react-dom": "^18",
Expand All @@ -23,7 +23,6 @@
"recharts": "^2.12.1"
},
"devDependencies": {
"@types/autoprefixer": "~10.2.0",
"@types/eslint": "~8.56.5",
"@types/node": "^20",
"@types/react": "^18",
Expand Down
96 changes: 40 additions & 56 deletions admin/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions admin/src/lib/data.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PokemonDetail } from '@/types'

export const getChartRandomData = async () => {
await new Promise((resolve) => setTimeout(resolve, Math.random() * 2000))
await new Promise((resolve) => setTimeout(resolve, Math.random() * 4 * 2000))
const data = [
{
name: 'Page A',
Expand Down Expand Up @@ -66,7 +66,7 @@ export const getCustomers = async () => {
},
}).then((res) => res.json())

await new Promise((resolve) => setTimeout(resolve, Math.random() * 4000))
await new Promise((resolve) => setTimeout(resolve, Math.random() * 4 * 1000))

return res as {
id: number
Expand Down Expand Up @@ -150,7 +150,7 @@ export const getQuestions = async () => {
},
}).then((res) => res.json())

await new Promise((resolve) => setTimeout(resolve, Math.random() * 1000))
await new Promise((resolve) => setTimeout(resolve, Math.random() * 4 * 1000))

return res.filter((_: any, index: number) => index < 6) as {
id: number
Expand Down

0 comments on commit 722080b

Please sign in to comment.