Commit 35c9078c authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

[tag]0.1-vcci
parents bac1bd7d 7d4f79e5
Pipeline #53875 canceled with stages
in 4 minutes and 23 seconds
...@@ -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.17",
"@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.10", "@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.11", "@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.17",
"jodit-react": "^5.3.21", "jodit-react": "^5.8.6",
"lodash-es": "^4.17.21", "lodash-es": "^4.18.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.11.1", "react-day-picker": "^9.14.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.20", "baseline-browser-mapping": "^2.11.30",
"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
This diff is collapsed.
allowBuilds: allowBuilds:
'@scarf/scarf': true
esbuild: true esbuild: true
sharp: true sharp: true
unrs-resolver: true unrs-resolver: true
...@@ -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 = 100; const pageSize = 5000;
const maxPages = 50; const maxPages = 20;
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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment