From 3ede9b9c58bcc680d633d7f9dbceb9ef7694640f Mon Sep 17 00:00:00 2001 From: Timeo Williams Date: Wed, 16 Oct 2024 01:56:54 -0400 Subject: [PATCH] chore: update versioning --- package.json | 2 +- src/main/index.ts | 18 +++++------------- src/renderer/src/App.tsx | 39 +++++++++++++++++++-------------------- 3 files changed, 25 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 4b1917e..b123d88 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deepFocus", - "version": "1.2.0", + "version": "2.2.3", "description": "DeepFocus is a productivity tool that helps you stay focused and productive by tracking your time spent on your computer.", "main": "./out/main/main.js", "author": "Timeo Williams", diff --git a/src/main/index.ts b/src/main/index.ts index 74c6d6d..1a79b7f 100755 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -14,12 +14,7 @@ import { getBaseURL } from './productivityUtils' import { getInstalledApps } from './childProcess' -import { - resetCounters, - checkForUpdates, - getIconPath, - updateIconBasedOnProgress, -} from './utils' +import { resetCounters, checkForUpdates, getIconPath, updateIconBasedOnProgress } from './utils' import log from 'electron-log/node.js' export interface TypedStore extends Store { @@ -59,12 +54,10 @@ log.info('Set up Environment') function setupEnvironment(): void { if (app.isPackaged) { const envPath = path.join(process.resourcesPath, '.env') - if (fs.existsSync(envPath)) - { - dotenv.config({ path: envPath }) - console.error('Env file not found in production build') - - } + if (fs.existsSync(envPath)) { + dotenv.config({ path: envPath }) + console.error('Env file not found in production build') + } } else { console.log('app is not packaged') dotenv.config() @@ -450,4 +443,3 @@ function getDeepWorkHours(): DeepWorkHours { function getSiteTrackers(): SiteTimeTracker[] { return currentSiteTimeTrackers } - diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 2bf72d5..5d8d321 100755 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -24,7 +24,7 @@ const App = (props: ComponentProps) => { const [isNewUser, setIsNewUser] = createSignal(true) const location = useLocation() const navigate = useNavigate() - console.log('location: ',location.pathname) + console.log('location: ', location.pathname) onMount(() => { const token = localStorage.getItem('token') as string @@ -34,7 +34,7 @@ const App = (props: ComponentProps) => { sendUserToBackend(JSON.parse(user)) setIsNewUser(false) } - navigate('/') + navigate('/') }) const handleLogout = () => { @@ -54,17 +54,16 @@ const App = (props: ComponentProps) => {