Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vcci-news-frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Văn Hoàng
vcci-news-frontend
Commits
35c9078c
Commit
35c9078c
authored
Oct 22, 2026
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Plain Diff
[tag]0.1-vcci
parents
bac1bd7d
7d4f79e5
Pipeline
#53875
canceled with stages
in 4 minutes and 23 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2326 additions
and
2134 deletions
+2326
-2134
package.json
package.json
+51
-51
pnpm-lock.yaml
pnpm-lock.yaml
+2270
-2080
pnpm-workspace.yaml
pnpm-workspace.yaml
+1
-0
sitemap.ts
src/app/sitemap.ts
+4
-3
No files found.
package.json
View file @
35c9078c
...
@@ -10,79 +10,79 @@
...
@@ -10,79 +10,79 @@
"generate:api"
:
"orval"
"generate:api"
:
"orval"
},
},
"dependencies"
:
{
"dependencies"
:
{
"
@hookform/resolvers
"
:
"
^5.
2
.2
"
,
"
@hookform/resolvers
"
:
"
^5.
9
.2
"
,
"
@radix-ui/react-accordion
"
:
"
^1.
2.12
"
,
"
@radix-ui/react-accordion
"
:
"
^1.
3.1
"
,
"
@radix-ui/react-alert-dialog
"
:
"
^1.
1.15
"
,
"
@radix-ui/react-alert-dialog
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-aspect-ratio
"
:
"
^1.
1.7
"
,
"
@radix-ui/react-aspect-ratio
"
:
"
^1.
2.0
"
,
"
@radix-ui/react-avatar
"
:
"
^1.
1.10
"
,
"
@radix-ui/react-avatar
"
:
"
^1.
3.1
"
,
"
@radix-ui/react-checkbox
"
:
"
^1.
3.3
"
,
"
@radix-ui/react-checkbox
"
:
"
^1.
4.1
"
,
"
@radix-ui/react-collapsible
"
:
"
^1.
1.12
"
,
"
@radix-ui/react-collapsible
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-context-menu
"
:
"
^2.
2.16
"
,
"
@radix-ui/react-context-menu
"
:
"
^2.
4.1
"
,
"
@radix-ui/react-dialog
"
:
"
^1.
1.15
"
,
"
@radix-ui/react-dialog
"
:
"
^1.
3.1
"
,
"
@radix-ui/react-dropdown-menu
"
:
"
^2.
1.16
"
,
"
@radix-ui/react-dropdown-menu
"
:
"
^2.
2.1
"
,
"
@radix-ui/react-hover-card
"
:
"
^1.
1.15
"
,
"
@radix-ui/react-hover-card
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-label
"
:
"
^2.1.7
"
,
"
@radix-ui/react-label
"
:
"
^2.1.
1
7
"
,
"
@radix-ui/react-menubar
"
:
"
^1.
1.16
"
,
"
@radix-ui/react-menubar
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-navigation-menu
"
:
"
^1.
2.14
"
,
"
@radix-ui/react-navigation-menu
"
:
"
^1.
4.1
"
,
"
@radix-ui/react-popover
"
:
"
^1.
1.15
"
,
"
@radix-ui/react-popover
"
:
"
^1.
3.1
"
,
"
@radix-ui/react-progress
"
:
"
^1.
1.7
"
,
"
@radix-ui/react-progress
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-radio-group
"
:
"
^1.
3.8
"
,
"
@radix-ui/react-radio-group
"
:
"
^1.
5.1
"
,
"
@radix-ui/react-scroll-area
"
:
"
^1.
2.1
0
"
,
"
@radix-ui/react-scroll-area
"
:
"
^1.
4.
0
"
,
"
@radix-ui/react-select
"
:
"
^2.
2.6
"
,
"
@radix-ui/react-select
"
:
"
^2.
4.1
"
,
"
@radix-ui/react-separator
"
:
"
^1.
1.7
"
,
"
@radix-ui/react-separator
"
:
"
^1.
2.0
"
,
"
@radix-ui/react-slider
"
:
"
^1.
3.6
"
,
"
@radix-ui/react-slider
"
:
"
^1.
6.1
"
,
"
@radix-ui/react-slot
"
:
"
^1.
2.3
"
,
"
@radix-ui/react-slot
"
:
"
^1.
5.0
"
,
"
@radix-ui/react-switch
"
:
"
^1.
2.6
"
,
"
@radix-ui/react-switch
"
:
"
^1.
4.1
"
,
"
@radix-ui/react-tabs
"
:
"
^1.
1.13
"
,
"
@radix-ui/react-tabs
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-toggle
"
:
"
^1.
1.10
"
,
"
@radix-ui/react-toggle
"
:
"
^1.
2.1
"
,
"
@radix-ui/react-toggle-group
"
:
"
^1.
1.1
1
"
,
"
@radix-ui/react-toggle-group
"
:
"
^1.
2.
1
"
,
"
@radix-ui/react-tooltip
"
:
"
^1.
2.8
"
,
"
@radix-ui/react-tooltip
"
:
"
^1.
4.1
"
,
"
@tanstack/react-query
"
:
"
^5.
90
.5
"
,
"
@tanstack/react-query
"
:
"
^5.
104
.5
"
,
"
@uidotdev/usehooks
"
:
"
^2.4.1
"
,
"
@uidotdev/usehooks
"
:
"
^2.4.1
"
,
"
class-variance-authority
"
:
"
^0.7.1
"
,
"
class-variance-authority
"
:
"
^0.7.1
"
,
"
clsx
"
:
"
^2.1.1
"
,
"
clsx
"
:
"
^2.1.1
"
,
"
cmdk
"
:
"
^1.1.1
"
,
"
cmdk
"
:
"
^1.1.1
"
,
"
d3-org-chart
"
:
"
^3.1.1
"
,
"
d3-org-chart
"
:
"
^3.1.1
"
,
"
d3-zoom
"
:
"
3.0.0
"
,
"
d3-zoom
"
:
"
3.0.0
"
,
"
date-fns
"
:
"
^4.
1
.0
"
,
"
date-fns
"
:
"
^4.
4
.0
"
,
"
dayjs
"
:
"
^1.11.
19
"
,
"
dayjs
"
:
"
^1.11.
23
"
,
"
embla-carousel-react
"
:
"
^8.6.0
"
,
"
embla-carousel-react
"
:
"
^8.6.0
"
,
"
html-react-parser
"
:
"
^5.2.7
"
,
"
html-react-parser
"
:
"
^5.2.
1
7
"
,
"
jodit-react
"
:
"
^5.
3.21
"
,
"
jodit-react
"
:
"
^5.
8.6
"
,
"
lodash-es
"
:
"
^4.1
7.2
1
"
,
"
lodash-es
"
:
"
^4.1
8.
1
"
,
"
lucide-react
"
:
"
^0.548.0
"
,
"
lucide-react
"
:
"
^0.548.0
"
,
"
next
"
:
"
16.2.10
"
,
"
next
"
:
"
16.2.10
"
,
"
next-nprogress-bar
"
:
"
^2.4.7
"
,
"
next-nprogress-bar
"
:
"
^2.4.7
"
,
"
next-themes
"
:
"
^0.4.6
"
,
"
next-themes
"
:
"
^0.4.6
"
,
"
react
"
:
"
19.2.0
"
,
"
react
"
:
"
19.2.0
"
,
"
react-country-flag
"
:
"
^3.1.0
"
,
"
react-country-flag
"
:
"
^3.1.0
"
,
"
react-day-picker
"
:
"
^9.1
1.1
"
,
"
react-day-picker
"
:
"
^9.1
4.0
"
,
"
react-dom
"
:
"
19.2.0
"
,
"
react-dom
"
:
"
19.2.0
"
,
"
react-hook-form
"
:
"
^7.
65
.0
"
,
"
react-hook-form
"
:
"
^7.
90
.0
"
,
"
react-resizable-panels
"
:
"
^3.0.6
"
,
"
react-resizable-panels
"
:
"
^3.0.6
"
,
"
sharp
"
:
"
0.34.5
"
,
"
sharp
"
:
"
0.34.5
"
,
"
sonner
"
:
"
^2.0.
7
"
,
"
sonner
"
:
"
^2.0.
8
"
,
"
swiper
"
:
"
^12.
0.3
"
,
"
swiper
"
:
"
^12.
2.0
"
,
"
tailwind-merge
"
:
"
^3.
3.1
"
,
"
tailwind-merge
"
:
"
^3.
7.0
"
,
"
tailwindcss-animate
"
:
"
^1.0.7
"
,
"
tailwindcss-animate
"
:
"
^1.0.7
"
,
"
uuid
"
:
"
^13.0.
0
"
,
"
uuid
"
:
"
^13.0.
2
"
,
"
vaul
"
:
"
^1.1.2
"
,
"
vaul
"
:
"
^1.1.2
"
,
"
zod
"
:
"
^4.
1.12
"
,
"
zod
"
:
"
^4.
6.7
"
,
"
zustand
"
:
"
^5.0.
8
"
"
zustand
"
:
"
^5.0.
15
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@tailwindcss/postcss
"
:
"
^4
"
,
"
@tailwindcss/postcss
"
:
"
^4
.3.3
"
,
"
@types/node
"
:
"
^20
"
,
"
@types/node
"
:
"
^20
.19.43
"
,
"
@types/react
"
:
"
^19
"
,
"
@types/react
"
:
"
^19
.3.0
"
,
"
@types/react-dom
"
:
"
^19
"
,
"
@types/react-dom
"
:
"
^19
.3.0
"
,
"
axios
"
:
"
^1.
13.1
"
,
"
axios
"
:
"
^1.
20.0
"
,
"
baseline-browser-mapping
"
:
"
^2.11.
2
0
"
,
"
baseline-browser-mapping
"
:
"
^2.11.
3
0
"
,
"
dotenv
"
:
"
^17.4.2
"
,
"
dotenv
"
:
"
^17.4.2
"
,
"
eslint
"
:
"
^9
"
,
"
eslint
"
:
"
^9
.39.5
"
,
"
eslint-config-next
"
:
"
16.0.1
"
,
"
eslint-config-next
"
:
"
16.0.1
"
,
"
orval
"
:
"
^7.
17
.0
"
,
"
orval
"
:
"
^7.
21
.0
"
,
"
tailwindcss
"
:
"
^4
"
,
"
tailwindcss
"
:
"
^4
.3.3
"
,
"
ts-node
"
:
"
^10.9.2
"
,
"
ts-node
"
:
"
^10.9.2
"
,
"
typescript
"
:
"
^5
"
"
typescript
"
:
"
^5
.9.3
"
}
}
}
}
\ No newline at end of file
pnpm-lock.yaml
View file @
35c9078c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pnpm-workspace.yaml
View file @
35c9078c
allowBuilds
:
allowBuilds
:
'
@scarf/scarf'
:
true
esbuild
:
true
esbuild
:
true
sharp
:
true
sharp
:
true
unrs-resolver
:
true
unrs-resolver
:
true
src/app/sitemap.ts
View file @
35c9078c
...
@@ -63,8 +63,8 @@ type PagedRows<T> = {
...
@@ -63,8 +63,8 @@ type PagedRows<T> = {
};
};
const
fetchAllNewsPosts
=
async
():
Promise
<
PostRow
[]
>
=>
{
const
fetchAllNewsPosts
=
async
():
Promise
<
PostRow
[]
>
=>
{
const
pageSize
=
1
00
;
const
pageSize
=
50
00
;
const
maxPages
=
5
0
;
const
maxPages
=
2
0
;
const
all
:
PostRow
[]
=
[];
const
all
:
PostRow
[]
=
[];
for
(
let
page
=
1
;
page
<=
maxPages
;
page
++
)
{
for
(
let
page
=
1
;
page
<=
maxPages
;
page
++
)
{
...
@@ -82,7 +82,8 @@ const fetchAllNewsPosts = async (): Promise<PostRow[]> => {
...
@@ -82,7 +82,8 @@ const fetchAllNewsPosts = async (): Promise<PostRow[]> => {
const
count
=
Number
(
response
?.
responseData
?.
count
??
0
);
const
count
=
Number
(
response
?.
responseData
?.
count
??
0
);
if
(
rows
.
length
<
pageSize
||
all
.
length
>=
count
)
break
;
if
(
rows
.
length
<
pageSize
||
all
.
length
>=
count
)
break
;
}
catch
{
}
catch
(
error
)
{
console
.
warn
(
"[sitemap] Failed to fetch posts page"
,
page
,
error
);
break
;
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment