Skip to content

Commit

Permalink
change name of website
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost0159 committed Nov 21, 2024
1 parent a8564fd commit 4cb0050
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NX Working</title>
<title>NX Content</title>
</head>
<body>
<div id="root"></div>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nx-working",
"name": "nx-content",
"private": true,
"version": "3.0.0",
"type": "module",
Expand All @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,19 @@ 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(
(currentPage - 1) * itemsPerPage,
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 (
<div className="min-h-screen bg-background flex flex-col">
<Header onToggleTheme={() => setDarkMode(!isDark)} />
Expand Down Expand Up @@ -205,7 +205,7 @@ export default function App() {
Version {packageJson.version}
</div>
<a
href="https://github.com/ghost-land/NX-Working"
href="https://github.com/ghost-land/NX-Content"
target="_blank"
rel="noopener noreferrer"
className="text-xs text-muted-foreground hover:text-foreground transition-colors"
Expand Down
7 changes: 4 additions & 3 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Header({ onToggleTheme }: HeaderProps) {
<div className="max-w-7xl mx-auto px-4 h-16 flex items-center justify-between">
<div className="flex items-center space-x-3">
<Database className="h-6 w-6 text-primary" />
<h1 className="text-xl font-bold">NX Working Content Tracker</h1>
<h1 className="text-xl font-bold">NX Content Tracker</h1>
</div>

<div className="flex items-center space-x-2 sm:space-x-4">
Expand All @@ -53,7 +53,8 @@ export function Header({ onToggleTheme }: HeaderProps) {
}`}
>
<AlertTriangle className="h-4 w-4" />
<span>View Logs {errorCount > 0 ? `(${errorCount})` : ''}</span>
<span className="hidden sm:inline">View Logs {errorCount > 0 ? `(${errorCount})` : ''}</span>
<span className="sm:hidden">{errorCount > 0 ? errorCount : totalLogs}</span>
</button>
)}

Expand All @@ -78,7 +79,7 @@ export function Header({ onToggleTheme }: HeaderProps) {
</button>

<a
href="https://github.com/ghost-land/NX-Working"
href="https://github.com/ghost-land/NX-Content"
target="_blank"
rel="noopener noreferrer"
className="hidden sm:flex items-center space-x-2 px-3 py-1.5 rounded-lg hover:bg-muted transition-colors"
Expand Down

0 comments on commit 4cb0050

Please sign in to comment.