tobiichi3227
79965ea3a8
Fix(fortune): unable to display result if already drawn for the day ( #73 )
2025-05-05 14:50:01 +08:00
tobiichi3227
c80c879af1
Fix(fortune): special_events_index is undefined when there are no special events today ( #67 )
2025-03-09 17:00:44 +08:00
tobiichi3227
f9f0f9c1a4
Fix(fortune): Copy preview url without commit hash ( #66 )
2025-03-09 16:43:39 +08:00
tobiichi3227
e1e17bd2bc
Feat(Fortune): Preview result url ( #62 )
...
* Feat(Fortune): Support preview result depends on url params
* Feat(Fortune): Specify commit hash in preview result to ensure event consistency
* Feat(Fortune): Add copy preview url button
* Feat(Fortune): Support theme color for copy preview button
* Impr(Fortune): Make UI looks better
* Docs(CONTRIBUTING): Add missing theme field
2025-03-09 15:52:26 +08:00
tobiichi3227
1d969400e5
Feat(Fortune): Support multiple event in same day ( #61 )
...
* Feat(Fortune): Support multiple event in same day
* Fix(Fortune): f-string typo
* Docs(Fortune): Multiple events supporting
2025-03-06 14:23:02 +08:00
Moon
237f0e1551
Feat(fortune): Trigger matrix background animation everytime ( #60 )
2025-03-02 23:02:44 +08:00
lifeadventurer
36502dd705
Fix: Horrible bad fortune distribution
2025-02-26 23:47:00 +08:00
lifeadventurer
16b7c8dde1
Feat: Add seedMagic
2025-02-22 01:30:08 +08:00
lifeadventurer
704032580b
Chore: Remove redundant file
2025-02-13 23:14:54 +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
lifeadventurer
15d3cfb35a
Feat(fortune): Implement theme switcher ( Closes #42 )
2024-11-01 21:25:42 +08:00
lifeadventurer
778cb316c0
Style: Apply deno lint and deno fmt across codebase
2024-10-31 19:56:47 +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
2261033611
Refactor: Replace substr with slice as substr is deprecated
2024-06-21 16:54:06 +08:00
lifeadventurer
a9668039ae
Fix(fortune): Fix description showing undefined caused by negative seeds
2024-06-21 16:07:43 +08:00
lifeadventurer
4d097891e0
Fix(fortune): typo in scripts.js
2024-06-19 20:25:50 +08:00
lifeadventurer
b4d112693d
Chore(fortune): Move function copyResultImageToClipboard and showCopiedNotice from fortune.js to scripts.js
2024-06-19 19:14:35 +08:00
lifeadventurer
8ac28e1d5c
Feat(fortune): Chance to get different descriptions on the same event
2024-06-19 17:27:20 +08:00
lifeadventurer
29d910d06e
Feat: Copied to clipboard notice and close #37
2024-06-17 22:05:47 +08:00
lifeadventurer
116c505ba0
Feat: Show the copy button after clicking the getLuck button
2024-04-11 22:59:36 +08:00
lifeadventurer
74cf8dae86
Feat: Share fortune results as image and close #15
...
Co-authored-by: tobiichi3227 <cz1346219@gmail.com >
2024-04-07 23:52:23 +08:00
lifeadventurer
aa6f2e3166
Fix: Function daysDiff handling date bug
2024-03-31 00:07:17 +08:00
lifeadventurer
fad0f9d032
Fix: Gitroll scanned code smells
2024-03-21 22:30:02 +08:00
lifeadventurer
3b7e205925
Fix: Special event feature is not functioning properly on IOS platforms and close #35
2024-03-21 15:03:26 +08:00
lifeadventurer
f77441d37d
refactor: special event sections
2023-12-31 21:44:44 +08:00
lifeadventurer
2127f28ab7
fix: daysDiff function calculate error
2023-12-31 21:04:08 +08:00
lifeadventurer
32c9f1b961
stlye: if-else statements
2023-12-30 22:26:30 +08:00
lifeadventurer
ad5a78a672
chore: put json files in folder and update fetch path
2023-12-28 22:31:39 +08:00
lifeadventurer
d777014ea7
feat: show the latest results nowadays
...
close #16
Co-authored-by: tobiichi3227 <cz1346219@gmail.com >
2023-12-25 21:14:17 +08:00
lifeadventurer
5c3148ac27
refactor: all files in folders
2023-12-24 16:08:41 +08:00