diff --git a/flatpak/com.github.ransome1.sleek.appdata.xml b/flatpak/com.github.ransome1.sleek.appdata.xml
index cd6f7551..4e434ded 100755
--- a/flatpak/com.github.ransome1.sleek.appdata.xml
+++ b/flatpak/com.github.ransome1.sleek.appdata.xml
@@ -9,7 +9,7 @@
Robin Ahle
-
+
https://github.com/ransome1/sleek
https://github.com/ransome1/sleek/issues
diff --git a/flatpak/com.github.ransome1.sleek.desktop b/flatpak/com.github.ransome1.sleek.desktop
index af1d5ab8..41256a90 100755
--- a/flatpak/com.github.ransome1.sleek.desktop
+++ b/flatpak/com.github.ransome1.sleek.desktop
@@ -1,5 +1,5 @@
[Desktop Entry]
-Version=2.0.4-rc.6
+Version=2.0.4
Name=sleek
Exec=sleek
Type=Application
diff --git a/package.json b/package.json
index 32cd5569..038c2a13 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sleek",
- "version": "2.0.4-rc.6",
+ "version": "2.0.4",
"main": "./src/main/main.tsx",
"scripts": {
"build": "concurrently \"yarn run peggy\" \"yarn run build:main\" \"yarn run build:renderer\"",
diff --git a/release/app/package.json b/release/app/package.json
index 5fa6af29..4208b8fc 100644
--- a/release/app/package.json
+++ b/release/app/package.json
@@ -1,6 +1,6 @@
{
"name": "sleek",
- "version": "2.0.4-rc.6",
+ "version": "2.0.4",
"description": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"synopsis": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"keywords": [
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 687609f4..945cca66 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: sleek
base: core20
-version: "2.0.4-rc.6"
+version: "2.0.4"
summary: todo.txt manager for Linux, free and open-source (FOSS)
description: |
sleek is an open-source (FOSS) todo manager based on the todo.txt syntax. Stripped down to only the most necessary features, and with a clean and simple interface, sleek aims to help you focus on getting things done.
diff --git a/src/__tests__/__mock__/recurrence.txt b/src/__tests__/__mock__/recurrence.txt
index fb2da5e8..2f5e26fb 100644
--- a/src/__tests__/__mock__/recurrence.txt
+++ b/src/__tests__/__mock__/recurrence.txt
@@ -1,15 +1,15 @@
-2023-12-30 Line 1 rec:1d due:2023-12-31
-2023-12-30 Line 1 rec:w due:2024-01-06
-2023-12-30 Line 1 rec:2m due:2024-02-29
-2023-12-30 Line 1 rec:+1d due:2024-01-01
-2023-12-30 Line 1 rec:7w due:2024-02-17
-2023-12-30 Line 1 due:2023-07-24 rec:+1b
-2023-12-30 taxes are due in one year t:2022-03-30 due:2022-04-30 rec:+1y
-2023-12-30 Water plants @home +quick due:2024-01-06 t:2023-12-27 rec:1w
-2023-12-30 Line 1 rec:+1d t:2023-09-20
-2023-12-30 Line 1 rec:1d pri:A due:2023-12-31
-2023-12-30 (A) Do something rec:d t:2023-12-31 @SomeContext
-2023-12-30 Do something rec:0d
-2023-12-30 Do something rec:0d due:2023-12-30
-2023-12-30 Do something rec:0d due:2023-12-30 t:2023-12-30
\ No newline at end of file
+2024-01-02 Line 1 rec:1d due:2024-01-03
+2024-01-02 Line 1 rec:w due:2024-01-09
+2024-01-02 Line 1 rec:2m due:2024-03-02
+2024-01-02 Line 1 rec:+1d due:2024-01-04
+2024-01-02 Line 1 rec:7w due:2024-02-20
+2024-01-02 Line 1 due:2023-07-24 rec:+1b
+2024-01-02 taxes are due in one year t:2022-03-30 due:2022-04-30 rec:+1y
+2024-01-02 Water plants @home +quick due:2024-01-09 t:2023-12-30 rec:1w
+2024-01-02 Line 1 rec:+1d t:2023-09-20
+2024-01-02 Line 1 rec:1d pri:A due:2024-01-03
+2024-01-02 (A) Do something rec:d t:2024-01-03 @SomeContext
+2024-01-02 Do something rec:0d
+2024-01-02 Do something rec:0d due:2024-01-02
+2024-01-02 Do something rec:0d due:2024-01-02 t:2024-01-02
\ No newline at end of file
diff --git a/src/__tests__/main/CreateTodoObjects.tsx b/src/__tests__/main/CreateTodoObjects.tsx
index 049d665c..9097526b 100644
--- a/src/__tests__/main/CreateTodoObjects.tsx
+++ b/src/__tests__/main/CreateTodoObjects.tsx
@@ -82,7 +82,7 @@ describe('Create todo objects', () => {
priority: null,
contexts: [],
projects: [],
- due: '2023-12-31',
+ due: '2024-12-31',
dueString: 'end of the year',
t: null,
tString: null,
@@ -107,7 +107,7 @@ describe('Create todo objects', () => {
projects: [],
due: null,
dueString: null,
- t: '2024-01-01',
+ t: '2025-01-01',
tString: 'first day of next year',
rec: null,
hidden: false,
diff --git a/src/main/config.tsx b/src/main/config.tsx
index f8186c1e..6c2cf065 100644
--- a/src/main/config.tsx
+++ b/src/main/config.tsx
@@ -85,6 +85,7 @@ const configStorage: Store = new Store({
store.delete('isDrawerOpen');
store.delete('useMultilineForBulkTodoCreation');
store.set('bulkTodoCreation', false);
+ store.set('disableAnimations', false);
},
}
});
@@ -112,7 +113,7 @@ if(!fs.existsSync(customStylesPath)) {
filterStorage.onDidAnyChange(async () => {
try {
await processDataRequest();
- } catch(error) {
+ } catch(error: any) {
console.error(error);
}
});
@@ -121,7 +122,7 @@ configStorage.onDidAnyChange(async(settings) => {
try {
await processDataRequest();
mainWindow!.webContents.send('settingsChanged', settings);
- } catch(error) {
+ } catch(error: any) {
console.error(error);
}
});
@@ -131,7 +132,7 @@ configStorage.onDidChange('files', (files: FileObject[] | null) => {
if(files) {
createFileWatcher(files);
}
- } catch(error) {
+ } catch(error: any) {
console.error(error);
}
});
@@ -145,7 +146,7 @@ configStorage.onDidChange('colorTheme', (colorTheme) => {
configStorage.onDidChange('tray', () => {
try {
createTray();
- } catch(error) {
+ } catch(error: any) {
console.error(error);
}
});
diff --git a/src/main/main.tsx b/src/main/main.tsx
index 3f87ca30..c546e95a 100644
--- a/src/main/main.tsx
+++ b/src/main/main.tsx
@@ -3,7 +3,6 @@ import path from 'path';
import fs from 'fs';
import { configStorage } from './config';
import { createMenu } from './modules/Menu';
-import handleTheme from './modules/Theme';
import { getAssetPath, resolveHtmlPath } from './util';
import { createFileWatcher, watcher } from './modules/File/Watcher';
import { addFile } from './modules/File/File';
diff --git a/src/main/modules/File/Watcher.tsx b/src/main/modules/File/Watcher.tsx
index 78c50552..4f49984c 100644
--- a/src/main/modules/File/Watcher.tsx
+++ b/src/main/modules/File/Watcher.tsx
@@ -26,7 +26,7 @@ function createFileWatcher(files: FileObject[]): void {
try {
await processDataRequest();
console.log(`${file} has been changed`);
- } catch(error) {
+ } catch(error: any) {
console.error(error.message);
}
})
diff --git a/src/main/modules/Ipc.tsx b/src/main/modules/Ipc.tsx
index 44a3fa41..be40b2f7 100644
--- a/src/main/modules/Ipc.tsx
+++ b/src/main/modules/Ipc.tsx
@@ -12,7 +12,7 @@ import { createTodoObject } from './ProcessDataRequest/CreateTodoObjects';
async function handleDataRequest(event: IpcMainEvent, searchString: string): Promise {
try {
await processDataRequest(searchString)
- } catch(error) {
+ } catch(error: any) {
console.error(error);
event.reply('responseFromMainProcess', error);
}
@@ -22,7 +22,7 @@ function handleUpdateAttributeFields(event: IpcMainEvent, index: number, string:
try {
const todoObject = createTodoObject(index, string);
event.reply('updateAttributeFields', todoObject);
- } catch(error) {
+ } catch(error: any) {
console.error(error);
event.reply('responseFromMainProcess', error);
}
@@ -32,7 +32,7 @@ function handleUpdateTodoObject(event: IpcMainEvent, index: number, string: stri
try {
const todoObject = createTodoObject(index, string, attributeType, attributeValue);
event.reply('updateTodoObject', todoObject);
- } catch(error) {
+ } catch(error: any) {
console.error(error);
event.reply('responseFromMainProcess', error);
}
@@ -52,7 +52,7 @@ async function handleWriteTodoToFile(event: IpcMainEvent, index: number, string:
const response = await writeTodoObjectToFile(index, updatedString);
event.reply('writeTodoToFile', response);
}
- } catch(error) {
+ } catch(error: any) {
console.error(error);
event.reply('responseFromMainProcess', error);
}
diff --git a/src/renderer/App.scss b/src/renderer/App.scss
index b24c2085..8e94e895 100644
--- a/src/renderer/App.scss
+++ b/src/renderer/App.scss
@@ -55,6 +55,11 @@ body {
}
}
}
+ .disableAnimations {
+ .flexContainer {
+ transition: none;
+ }
+ }
}
h1, h2, h3, h4, h5 {
diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx
index 6dc1800d..1553085c 100644
--- a/src/renderer/App.tsx
+++ b/src/renderer/App.tsx
@@ -96,7 +96,7 @@ const App = () => {
-
+
= ({
const handleChange = (date: dayjs.Dayjs | null) => {
try {
ipcRenderer.send('writeTodoToFile', todoObject.id, todoObject.string, false, type, dayjs(date).format('YYYY-MM-DD'));
- } catch(error) {
+ } catch(error: any) {
console.error(error);
}
};
@@ -43,7 +42,7 @@ const DatePickerInline: React.FC = ({
const DatePickerInline = ({ ...props }) => {
const ButtonField = ({ ...props }) => {
- const { setOpen, disabled, InputProps: { ref } = {}, inputProps: { 'aria-label': ariaLabel } = {} } = props;
+ const { disabled, InputProps: { ref } = {}, inputProps: { 'aria-label': ariaLabel } = {} } = props;
const mustNotify = (type === 'due') ? !todoObject?.notify : true;
return (