From 3c05196dda5d9a593a2d9b740cf464f562a07be6 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sat, 1 Nov 2025 21:10:31 -0700 Subject: [PATCH] 1.1.0 --- package.json | 2 +- src-tauri/tauri.conf.json | 2 +- src-tauri/tauri.linux.conf.json | 2 +- src-tauri/tauri.macos.conf.json | 6 +- src-tauri/tauri.windows.conf.json | 6 +- src/app/GlobalProvider.tsx | 5 +- src/app/Globals.css | 10 +++- src/app/game/page.tsx | 16 +++--- src/app/layout.tsx | 96 ++++++++++++++++++++++++++++++- src/app/page.tsx | 39 ++++++++++--- src/app/types/Game.ts | 1 + 11 files changed, 155 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 9b314c5..fa0d44b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lncvrt-games-launcher", "private": true, - "version": "1.0.0", + "version": "1.1.0", "type": "module", "scripts": { "dev": "next dev", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b79d1d3..ca65c65 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.0.0", + "version": "1.1.0", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index b79d1d3..ca65c65 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.0.0", + "version": "1.1.0", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json index 1187c5d..a5ce11d 100644 --- a/src-tauri/tauri.macos.conf.json +++ b/src-tauri/tauri.macos.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.0.0", + "version": "1.1.0", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", @@ -32,8 +32,6 @@ "macOS": { "minimumSystemVersion": "13.7.8" }, - "icon": [ - "icons/icon.icns" - ] + "icon": ["icons/icon.icns"] } } diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 29e8ca2..d57ddaf 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Lncvrt Games Launcher", - "version": "1.0.0", + "version": "1.1.0", "identifier": "xyz.lncvrt.games-launcher", "build": { "beforeDevCommand": "next dev", @@ -30,8 +30,6 @@ }, "bundle": { "active": false, - "icon": [ - "icons/icon.ico" - ] + "icon": ["icons/icon.ico"] } } diff --git a/src/app/GlobalProvider.tsx b/src/app/GlobalProvider.tsx index d03cd30..cad9c12 100644 --- a/src/app/GlobalProvider.tsx +++ b/src/app/GlobalProvider.tsx @@ -7,7 +7,6 @@ import { NormalConfig } from './types/NormalConfig' import { ServerVersionsResponse } from './types/ServerVersionsResponse' import { GameVersion } from './types/GameVersion' import { Game } from './types/Game' -import { ReadonlyURLSearchParams } from 'next/navigation' type GlobalCtxType = { serverVersionList: ServerVersionsResponse | null @@ -31,6 +30,10 @@ type GlobalCtxType = { getVersionInfo: (id: string | undefined) => GameVersion | undefined getVersionGame: (id: number | undefined) => Game | undefined getListOfGames: () => Game[] + getVersionsAmountData: (gameId: number) => { + installed: number + total: number + } | null } const GlobalCtx = createContext(null) diff --git a/src/app/Globals.css b/src/app/Globals.css index 696c29c..bed931c 100644 --- a/src/app/Globals.css +++ b/src/app/Globals.css @@ -59,7 +59,7 @@ body { } .popup-entry { - @apply relative h-[100px] bg-[#323232] m-2 p-2 rounded-lg border border-[#646464]; + @apply relative h-fit bg-[#323232] m-2 p-2 rounded-lg border border-[#646464]; } .popup-entry button { @@ -77,3 +77,11 @@ body { .input-field { @apply border-2 border-[#484848] rounded-md bg-[#242424] p-2 px-4 focus:border-blue-600 transition-colors; } + +.entry-info-item { + @apply flex flex-row items-center gap-1 bg-[rgb(16,16,16)] text-gray-300 py-1 px-2 rounded-lg w-fit text-[16px]; +} + +.downloads-entry:hover .entry-info-item { + @apply bg-[rgb(32,32,32)]; +} diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx index 4db7477..9316caa 100644 --- a/src/app/game/page.tsx +++ b/src/app/game/page.tsx @@ -73,13 +73,15 @@ export default function Installs () { {getVersionGame(getVersionInfo(entry)?.game)?.name} v {getVersionInfo(entry)?.versionName}

-

- Installed{' '} - {format( - new Date(downloadedVersionsConfig.timestamps[entry]), - 'MM/dd/yyyy' - )} -

+
+

+ Installed{' '} + {format( + new Date(downloadedVersionsConfig.timestamps[entry]), + 'MM/dd/yyyy' + )} +

+