[READ-ONLY] Mirror of https://github.com/probablykasper/remind-me-again. Toggleable cron reminders app for Mac, Linux and Windows
linux macos notifications reminder tauri windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Start minimized

Kasper (May 7, 2023, 4:36 AM +0200) ecf99e7f 19b33d8c

+47 -31
+1
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 3 ## Next 4 + - Start minimized 4 5 - Show only `Done` button on macOS 5 6 - Request notifications permission on startup 6 7 - Show notification style setting recommendation
+35 -27
src-tauri/Cargo.lock
··· 82 82 checksum = "2c3d816ce6f0e2909a96830d6911c2aff044370b1ef92d7f267b43bae5addedd" 83 83 dependencies = [ 84 84 "atk-sys", 85 - "bitflags", 85 + "bitflags 1.3.2", 86 86 "glib", 87 87 "libc", 88 88 ] ··· 142 142 version = "1.3.2" 143 143 source = "registry+https://github.com/rust-lang/crates.io-index" 144 144 checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 145 + 146 + [[package]] 147 + name = "bitflags" 148 + version = "2.2.1" 149 + source = "registry+https://github.com/rust-lang/crates.io-index" 150 + checksum = "24a6904aef64d73cf10ab17ebace7befb918b82164785cb89907993be7f83813" 145 151 146 152 [[package]] 147 153 name = "block" ··· 219 225 source = "registry+https://github.com/rust-lang/crates.io-index" 220 226 checksum = "c76ee391b03d35510d9fa917357c7f1855bd9a6659c95a1b392e33f49b3369bc" 221 227 dependencies = [ 222 - "bitflags", 228 + "bitflags 1.3.2", 223 229 "cairo-sys-rs", 224 230 "glib", 225 231 "libc", ··· 317 323 source = "registry+https://github.com/rust-lang/crates.io-index" 318 324 checksum = "f425db7937052c684daec3bd6375c8abe2d146dca4b8b143d6db777c39138f3a" 319 325 dependencies = [ 320 - "bitflags", 326 + "bitflags 1.3.2", 321 327 "block", 322 328 "cocoa-foundation", 323 329 "core-foundation", ··· 333 339 source = "registry+https://github.com/rust-lang/crates.io-index" 334 340 checksum = "931d3837c286f56e3c58423ce4eba12d08db2374461a785c86f672b08b5650d6" 335 341 dependencies = [ 336 - "bitflags", 342 + "bitflags 1.3.2", 337 343 "block", 338 344 "core-foundation", 339 345 "core-graphics-types", ··· 396 402 source = "registry+https://github.com/rust-lang/crates.io-index" 397 403 checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb" 398 404 dependencies = [ 399 - "bitflags", 405 + "bitflags 1.3.2", 400 406 "core-foundation", 401 407 "core-graphics-types", 402 408 "foreign-types", ··· 409 415 source = "registry+https://github.com/rust-lang/crates.io-index" 410 416 checksum = "3a68b68b3446082644c91ac778bf50cd4104bfb002b5a6a7c44cca5a2c70788b" 411 417 dependencies = [ 412 - "bitflags", 418 + "bitflags 1.3.2", 413 419 "core-foundation", 414 420 "foreign-types", 415 421 "libc", ··· 942 948 source = "registry+https://github.com/rust-lang/crates.io-index" 943 949 checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8" 944 950 dependencies = [ 945 - "bitflags", 951 + "bitflags 1.3.2", 946 952 "cairo-rs", 947 953 "gdk-pixbuf", 948 954 "gdk-sys", ··· 958 964 source = "registry+https://github.com/rust-lang/crates.io-index" 959 965 checksum = "ad38dd9cc8b099cceecdf41375bb6d481b1b5a7cd5cd603e10a69a9383f8619a" 960 966 dependencies = [ 961 - "bitflags", 967 + "bitflags 1.3.2", 962 968 "gdk-pixbuf-sys", 963 969 "gio", 964 970 "glib", ··· 1061 1067 source = "registry+https://github.com/rust-lang/crates.io-index" 1062 1068 checksum = "68fdbc90312d462781a395f7a16d96a2b379bb6ef8cd6310a2df272771c4283b" 1063 1069 dependencies = [ 1064 - "bitflags", 1070 + "bitflags 1.3.2", 1065 1071 "futures-channel", 1066 1072 "futures-core", 1067 1073 "futures-io", ··· 1091 1097 source = "registry+https://github.com/rust-lang/crates.io-index" 1092 1098 checksum = "edb0306fbad0ab5428b0ca674a23893db909a98582969c9b537be4ced78c505d" 1093 1099 dependencies = [ 1094 - "bitflags", 1100 + "bitflags 1.3.2", 1095 1101 "futures-channel", 1096 1102 "futures-core", 1097 1103 "futures-executor", ··· 1167 1173 checksum = "92e3004a2d5d6d8b5057d2b57b3712c9529b62e82c77f25c1fecde1fd5c23bd0" 1168 1174 dependencies = [ 1169 1175 "atk", 1170 - "bitflags", 1176 + "bitflags 1.3.2", 1171 1177 "cairo-rs", 1172 1178 "field-offset", 1173 1179 "futures-channel", ··· 1448 1454 source = "registry+https://github.com/rust-lang/crates.io-index" 1449 1455 checksum = "bf053e7843f2812ff03ef5afe34bb9c06ffee120385caad4f6b9967fcd37d41c" 1450 1456 dependencies = [ 1451 - "bitflags", 1457 + "bitflags 1.3.2", 1452 1458 "glib", 1453 1459 "javascriptcore-rs-sys", 1454 1460 ] ··· 1772 1778 source = "registry+https://github.com/rust-lang/crates.io-index" 1773 1779 checksum = "2032c77e030ddee34a6787a64166008da93f6a352b629261d0fee232b8742dd4" 1774 1780 dependencies = [ 1775 - "bitflags", 1781 + "bitflags 1.3.2", 1776 1782 "jni-sys", 1777 1783 "ndk-sys", 1778 1784 "num_enum", ··· 1975 1981 source = "registry+https://github.com/rust-lang/crates.io-index" 1976 1982 checksum = "22e4045548659aee5313bde6c582b0d83a627b7904dd20dc2d9ef0895d414e4f" 1977 1983 dependencies = [ 1978 - "bitflags", 1984 + "bitflags 1.3.2", 1979 1985 "glib", 1980 1986 "libc", 1981 1987 "once_cell", ··· 2191 2197 source = "registry+https://github.com/rust-lang/crates.io-index" 2192 2198 checksum = "aaeebc51f9e7d2c150d3f3bfeb667f2aa985db5ef1e3d212847bdedb488beeaa" 2193 2199 dependencies = [ 2194 - "bitflags", 2200 + "bitflags 1.3.2", 2195 2201 "crc32fast", 2196 2202 "fdeflate", 2197 2203 "flate2", ··· 2379 2385 source = "registry+https://github.com/rust-lang/crates.io-index" 2380 2386 checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 2381 2387 dependencies = [ 2382 - "bitflags", 2388 + "bitflags 1.3.2", 2383 2389 ] 2384 2390 2385 2391 [[package]] ··· 2388 2394 source = "registry+https://github.com/rust-lang/crates.io-index" 2389 2395 checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" 2390 2396 dependencies = [ 2391 - "bitflags", 2397 + "bitflags 1.3.2", 2392 2398 ] 2393 2399 2394 2400 [[package]] ··· 2487 2493 source = "registry+https://github.com/rust-lang/crates.io-index" 2488 2494 checksum = "dc5eac559440c4a269b521443ff3c89eac90f53af08b9a7323f4b6df38b99bda" 2489 2495 dependencies = [ 2490 - "bitflags", 2496 + "bitflags 1.3.2", 2491 2497 "block", 2492 2498 "lazy_static", 2493 2499 "libc", ··· 2535 2541 source = "registry+https://github.com/rust-lang/crates.io-index" 2536 2542 checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" 2537 2543 dependencies = [ 2538 - "bitflags", 2544 + "bitflags 1.3.2", 2539 2545 "errno", 2540 2546 "io-lifetimes", 2541 2547 "libc", ··· 2594 2600 source = "registry+https://github.com/rust-lang/crates.io-index" 2595 2601 checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" 2596 2602 dependencies = [ 2597 - "bitflags", 2603 + "bitflags 1.3.2", 2598 2604 "cssparser", 2599 2605 "derive_more", 2600 2606 "fxhash", ··· 2790 2796 source = "registry+https://github.com/rust-lang/crates.io-index" 2791 2797 checksum = "b2b4d76501d8ba387cf0fefbe055c3e0a59891d09f0f995ae4e4b16f6b60f3c0" 2792 2798 dependencies = [ 2793 - "bitflags", 2799 + "bitflags 1.3.2", 2794 2800 "gio", 2795 2801 "glib", 2796 2802 "libc", ··· 2804 2810 source = "registry+https://github.com/rust-lang/crates.io-index" 2805 2811 checksum = "009ef427103fcb17f802871647a7fa6c60cbb654b4c4e4c0ac60a31c5f6dc9cf" 2806 2812 dependencies = [ 2807 - "bitflags", 2813 + "bitflags 1.3.2", 2808 2814 "gio-sys", 2809 2815 "glib-sys", 2810 2816 "gobject-sys", ··· 2974 2980 source = "registry+https://github.com/rust-lang/crates.io-index" 2975 2981 checksum = "ac8e6399427c8494f9849b58694754d7cc741293348a6836b6c8d2c5aa82d8e6" 2976 2982 dependencies = [ 2977 - "bitflags", 2983 + "bitflags 1.3.2", 2978 2984 "cairo-rs", 2979 2985 "cc", 2980 2986 "cocoa", ··· 3143 3149 [[package]] 3144 3150 name = "tauri-plugin-window-state" 3145 3151 version = "0.1.0" 3146 - source = "registry+https://github.com/rust-lang/crates.io-index" 3147 - checksum = "2f15dab0be2ce3ce8a57d0d2de17d201d0c2f3230d68981ff3f0942684de03eb" 3152 + source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v1#146004129e339dc20692c7b99dc59d7d653ce9d7" 3148 3153 dependencies = [ 3149 3154 "bincode", 3155 + "bitflags 2.2.1", 3156 + "log", 3150 3157 "serde", 3158 + "serde_json", 3151 3159 "tauri", 3152 3160 "thiserror", 3153 3161 ] ··· 3730 3738 source = "registry+https://github.com/rust-lang/crates.io-index" 3731 3739 checksum = "b8f859735e4a452aeb28c6c56a852967a8a76c8eb1cc32dbf931ad28a13d6370" 3732 3740 dependencies = [ 3733 - "bitflags", 3741 + "bitflags 1.3.2", 3734 3742 "cairo-rs", 3735 3743 "gdk", 3736 3744 "gdk-sys", ··· 3755 3763 checksum = "4d76ca6ecc47aeba01ec61e480139dda143796abcae6f83bcddf50d6b5b1dcf3" 3756 3764 dependencies = [ 3757 3765 "atk-sys", 3758 - "bitflags", 3766 + "bitflags 1.3.2", 3759 3767 "cairo-sys-rs", 3760 3768 "gdk-pixbuf-sys", 3761 3769 "gdk-sys",
+1 -1
src-tauri/Cargo.toml
··· 18 18 chrono = "0.4" 19 19 tauri = { version = "1.2", features = ["devtools", "dialog-message", "macos-private-api", "notification-all", "shell-open", "system-tray", "window-hide"] } 20 20 async-cron-scheduler = "1.0" 21 - tauri-plugin-window-state = "0.1" 21 + tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } 22 22 nanoid = "0.4" 23 23 atomicwrites = "0.4" 24 24 tauri-specta = { version = "1.0", features = ["javascript", "typescript"] }
+9 -2
src-tauri/src/main.rs
··· 13 13 command, AppHandle, CustomMenuItem, Manager, Menu, MenuEntry, MenuItem, State, Submenu, 14 14 SystemTray, SystemTrayEvent, Window, WindowBuilder, WindowUrl, 15 15 }; 16 + use tauri_plugin_window_state::StateFlags; 16 17 17 18 #[macro_export] 18 19 macro_rules! throw { ··· 106 107 notifications::delete_group, 107 108 ]) 108 109 .manage(Data(Mutex::new(instance))) 109 - .plugin(tauri_plugin_window_state::Builder::default().build()) 110 + .plugin( 111 + tauri_plugin_window_state::Builder::default() 112 + .with_state_flags(StateFlags::SIZE & StateFlags::POSITION) 113 + .build(), 114 + ) 110 115 .setup(|app| { 116 + #[cfg(target_os = "macos")] 117 + app.set_activation_policy(tauri::ActivationPolicy::Accessory); 111 118 let win = create_window(&app.app_handle()); 112 119 match error_msg { 113 120 Some(error_msg) => error_popup(error_msg, win), ··· 254 261 .title("Remind Me Again") 255 262 .inner_size(400.0, 550.0) 256 263 .min_inner_size(400.0, 200.0) 257 - .visible(false) // tauri_plugin_window_state reveals window 264 + .visible(false) 258 265 .skip_taskbar(true); 259 266 260 267 #[cfg(target_os = "macos")]
+1 -1
src/App.svelte
··· 6 6 import Item from './lib/Item.svelte' 7 7 import New from './lib/New.svelte' 8 8 import { checkShortcut } from './lib/helpers' 9 - import type { Group } from '../../bindings' 9 + import type { Group } from '../bindings' 10 10 import { onDestroy } from 'svelte' 11 11 import { event, os } from '@tauri-apps/api' 12 12 import commands from './lib/commands'