Commit Graph

294 Commits

Author SHA1 Message Date
tobiichi3227
caa59577dd Fix(Fortune): Categorize events (#49) 2025-01-24 13:28:33 +08:00
Moon
4b2f30bd7f Merge pull request #46 from tobiichi3227/fix/event-diff-cal
Fix(Fortune): Incorrect time difference calculation for recent events
2024-12-25 19:07:38 +08:00
54168328c2 Fix(Fortune): Categorize events by trigger date type 2024-12-25 11:39:06 +08:00
e80f077ae3 Fix(Fortune): Calculate the time difference for events that have already occurred based on the next year
For example, if today is January 2nd, then the New Year's Day on January 1st should be calculated using January 1st of the next year.
2024-12-25 11:35:26 +08:00
tobiichi3227
7852572f26 Feat: Add support for cyclical dates in special events to avoid yearly updates (#45)
* Feat(fortune): add static date and cyclical date support

* Chore(Fortune): convert static event date to cyclical date

* Docs: Update CONTRIBUTING.md

* Chore(Fortune): Remove old special events

* Fix(Fortune): Correctly set the trigger date for Thanksgiving

* Impr(fortune): Make the code more readable by reducing duplication and lengthy validation blocks
Additionally, strengthen the handling of edge cases (e.g., 31 in February).

* Impr(fortune): Separate the default and user-defined events into different files for easier identification and management

* Docs: Update CONTRIBUTING.md

* Impr(fortune): Simplify events file categorization

* Docs: Update CONTRIBUTING.md

* Docs: Update CONTRIBUTING.md
2024-12-12 22:48:21 +08:00
Moon
a4d457d9c7 Merge pull request #44 from tobiichi3227/fix-event-typo
Fix(fortune): Event description typo
2024-11-12 15:38:26 +08:00
ae01f41a84 Fix(fortune): event description typo 2024-11-12 15:28:22 +08:00
lifeadventurer
03a768090b Impr(theme): Add new theme - Cyberwave 2024-11-07 10:07:48 +08:00
lifeadventurer
6b45d59ceb Impr(theme): Add new theme - Aurora Borealis 2024-11-07 10:06:29 +08:00
lifeadventurer
fd9fe8b460 Impr(theme): Add new theme - Zen Garden 2024-11-07 09:51:38 +08:00
lifeadventurer
708bcdd342 Impr(theme): Add new theme - Abstract Art 2024-11-07 09:49:05 +08:00
lifeadventurer
eacd73f929 Impr(theme): Add new theme - Tropical Paradise 2024-11-07 09:49:00 +08:00
lifeadventurer
68bab668b1 Impr(theme): Add new theme - Metallic Shine 2024-11-07 09:48:54 +08:00
lifeadventurer
a10be0ef61 Feat(fortune): Add custom scrollbar styling for theme modal selection 2024-11-06 22:46:32 +08:00
lifeadventurer
5874d347a0 Feat(fortune): Set dynamic max-height and overflow for theme modal body with scrollable theme items 2024-11-06 22:18:07 +08:00
lifeadventurer
ccbea6777c Impr(theme): Add new theme - Vintage Sepia 2024-11-06 22:09:52 +08:00
lifeadventurer
15a435cc77 Impr(theme): Add new theme - Mystic Forest 2024-11-06 22:07:07 +08:00
lifeadventurer
2d2e9b5c78 Impr(theme): Refactored theme - Star Wars to Galactic Glow 2024-11-06 22:05:18 +08:00
lifeadventurer
6c657ad6ab Impr(theme): Add new theme - Lunar Eclipse 2024-11-06 21:54:37 +08:00
lifeadventurer
9344253ebb Impr(theme): Add new theme - Moonlit Night 2024-11-06 21:39:03 +08:00
lifeadventurer
72a3513a70 Impr(theme): Add new theme - Sunny Vibes 2024-11-06 21:29:04 +08:00
lifeadventurer
1464de0ff3 Impr(theme): Add new theme - Spring Blossom 2024-11-06 18:39:54 +08:00
lifeadventurer
97e8a340da Impr(theme): Refactored theme - Winter to Winter Wonderland 2024-11-06 15:47:48 +08:00
lifeadventurer
3fec297ad8 Impr(theme): Add new theme - Autumn Glow 2024-11-06 15:32:46 +08:00
lifeadventurer
99d2a23f3b Impr(theme): Add new theme - Tokyo Night 2024-11-06 00:19:44 +08:00
lifeadventurer
85c294b170 Chore(theme): Rename theme names 2024-11-06 00:16:22 +08:00
lifeadventurer
81808b7b57 Impr(theme): Add new theme - Catppuccin Dark 2024-11-06 00:13:29 +08:00
lifeadventurer
03a72dd1d1 Style: Use lowercases in hex colors 2024-11-06 00:13:29 +08:00
lifeadventurer
031364c279 Impr(theme): Add new theme - Star Wars 2024-11-06 00:13:17 +08:00
lifeadventurer
80df03f337 Docs(CONTRIBUTING): Add guidelines for contributing new themes 2024-11-02 16:49:10 +08:00
lifeadventurer
b93727e5b8 Refactor: Update theme winter 2024-11-02 16:38:25 +08:00
lifeadventurer
8d1e04090c Feat(theme): Save selected theme to localStorage for persistence 2024-11-01 23:35:40 +08:00
lifeadventurer
6d8017fe51 Chore(theme): Rearrange the order of the properties 2024-11-01 23:23:30 +08:00
lifeadventurer
ee5b9e8ffa Impr(theme): Add new theme - winter 2024-11-01 23:20:49 +08:00
lifeadventurer
f9c74860dd Style(fortune): Remove margin on the left for the first dot in preview container 2024-11-01 22:37:59 +08:00
lifeadventurer
9b8fbe8809 Feat(fortune): Add colorPreviewContainer to encapsulate dots for improved clarity 2024-11-01 22:36:35 +08:00
lifeadventurer
a345a61f25 Feat(fortune): Add color dots for visual preview in theme item 2024-11-01 22:02:03 +08:00
lifeadventurer
15d3cfb35a Feat(fortune): Implement theme switcher (Closes #42) 2024-11-01 21:25:42 +08:00
lifeadventurer
32b7abf7fc Impr(fortune): Add new special events for November 2024-11-01 18:49:08 +08:00
lifeadventurer
778cb316c0 Style: Apply deno lint and deno fmt across codebase 2024-10-31 19:56:47 +08:00
lifeadventurer
df772b0bde Refactor: Update service worker paths for custom domain 2024-10-31 17:56:49 +08:00
lifeadventurer
5ca0f68b5f Fix: Special event bug 2024-10-15 00:28:00 +08:00
lifeadventurer
32e3b5b9a3 Refactor: Use const instead of let for immutable variables (Make LSP happy) 2024-10-12 00:27:15 +08:00
lifeadventurer
bd00a3b72d Feat(quote generator): Add method for adding backgrounds (Closes #13) 2024-10-12 00:17:40 +08:00
lifeadventurer
41191438b9 Docs: Add License section in README.md 2024-10-10 22:34:43 +08:00
lifeadventurer
a48f7cc3ff Style: Lint markdown files 2024-10-10 22:34:26 +08:00
lifeadventurer
31752fda2a Impr(special): Add new special events for October 2024-10-01 01:03:34 +08:00
lifeadventurer
f983fd66ff Impr(quotes): Add 9 new quotes 2024-09-30 23:51:23 +08:00
lifeadventurer
eac16d697d CI: Remove stale GitHub Actions workflow 2024-09-25 16:50:11 +08:00
lifeadventurer
312e003ad2 Impr(special): Add new special events for September 2024-09-17 23:19:21 +08:00