diff --git a/index.html b/index.html index 175c6ed..33087a6 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - NX Working + NX Content
diff --git a/package-lock.json b/package-lock.json index 8f4fbc1..a11313e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,17 @@ { - "name": "nx-working", + "name": "nx-content", "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "nx-working", + "name": "nx-content", "version": "3.0.0", "dependencies": { "clsx": "^2.1.0", "fuse.js": "^7.0.0", "lucide-react": "^0.344.0", - "nx-working": "file:", + "nx-content": "file:", "photoswipe": "^5.4.3", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -1438,7 +1438,7 @@ "node": ">=0.10.0" } }, - "node_modules/nx-working": { + "node_modules/nx-content": { "resolved": "", "link": true }, diff --git a/package.json b/package.json index 8c6f8f2..335accd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nx-working", + "name": "nx-content", "private": true, "version": "3.0.0", "type": "module", @@ -12,7 +12,7 @@ "clsx": "^2.1.0", "fuse.js": "^7.0.0", "lucide-react": "^0.344.0", - "nx-working": "file:", + "nx-content": "file:", "photoswipe": "^5.4.3", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/App.tsx b/src/App.tsx index a29171c..07992bf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -131,6 +131,12 @@ export default function App() { ); } + const counts = { + base: items.filter(item => item.type === 'base').length, + update: items.filter(item => item.type === 'update').length, + dlc: items.filter(item => item.type === 'dlc').length + }; + const filteredItems = results.filter(item => item.type === lastActiveTab); const totalPages = Math.ceil(filteredItems.length / itemsPerPage); const paginatedItems = filteredItems.slice( @@ -138,12 +144,6 @@ export default function App() { currentPage * itemsPerPage ); - const counts = { - base: items.filter(item => item.type === 'base').length, - update: items.filter(item => item.type === 'update').length, - dlc: items.filter(item => item.type === 'dlc').length - }; - return (
setDarkMode(!isDark)} /> @@ -205,7 +205,7 @@ export default function App() { Version {packageJson.version}
-

NX Working Content Tracker

+

NX Content Tracker

@@ -53,7 +53,8 @@ export function Header({ onToggleTheme }: HeaderProps) { }`} > - View Logs {errorCount > 0 ? `(${errorCount})` : ''} + View Logs {errorCount > 0 ? `(${errorCount})` : ''} + {errorCount > 0 ? errorCount : totalLogs} )} @@ -78,7 +79,7 @@ export function Header({ onToggleTheme }: HeaderProps) {