Commit graph

149 commits

Author SHA1 Message Date
ccbikai
651dcabdb1 feat: add error handling for link loading
Improves reliability of link loading functionality:
- Adds error state and handling for failed API requests
- Implements retry mechanism with user-facing error message
- Prevents infinite loading when errors occur
- Defers search API call to mounted hook

These changes enhance user experience by providing clear feedback and recovery options when link loading fails.
2024-12-24 12:43:19 +08:00
ccbikai
d6ce2730c9 Merge branch 'preview' 2024-12-23 21:22:09 +08:00
ccbikai
f01224d04d fix: update width constraint for comment badge
Changes width constraint from fixed `w-24` to `max-w-24` to prevent content overflow while maintaining maximum width limit for comment badges
2024-12-23 21:15:42 +08:00
ccbikai
465aa3292a fix: Increases KV list limit for better data retrieval
Expands the limit of the KV.list call from 1 to 1000.

This enhancement allows for more efficient data retrieval, reducing the number of requests needed to fetch all relevant entries.

Improves performance in scenarios with a large number of links.
2024-12-23 21:09:00 +08:00
ccbikai
45745f1d8f fix: Replaces search component with lazy-loading variant
Substitutes the existing search component with a lazy-loading version to improve performance and loading times.

Enhances user experience by ensuring that search functionality loads only when needed.
2024-12-23 21:08:31 +08:00
ccbikai
3f5c6ceb59 Merge branch 'dev' into preview 2024-12-23 20:57:47 +08:00
ccbikai
b520d4006c Merge branch 'search' into dev 2024-12-23 20:57:24 +08:00
ccbikai
842a8ab561 feat: Add link search function 2024-12-23 20:57:16 +08:00
ccbikai
4e3da1f36a Merge branch 'master' into preview 2024-12-15 21:05:29 +08:00
ccbikai
7863b76570 fix: remove the slug conversion that cannot be reached. 2024-12-15 21:04:21 +08:00
ccbikai
e995d5063f chore: v0.1.6 2024-12-15 20:54:50 +08:00
ccbikai
96795aa36d Merge branch 'preview' 2024-12-15 20:47:56 +08:00
面条
f6642ee436
docs: Update code, refer to the official GitHub documentation 2024-12-15 20:43:55 +08:00
ccbikai
fdf7a01e5f Merge branch 'dev' into preview 2024-12-15 20:40:26 +08:00
ccbikai
973d51d4ed docs: consolidate slug customization features
Merges the case sensitivity feature description into the customizable slug feature section for better organization and clarity. This consolidation simplifies the feature list while maintaining all functionality information
2024-12-15 20:39:34 +08:00
ccbikai
7ab62c6a07 feat: add debug log for case-insensitive slug fallback
Adds logging when a case-insensitive URL slug fallback is attempted. This helps track when and how often the fallback mechanism is used.

Also improves code readability by renaming variable to match camelCase convention.
2024-12-15 20:38:32 +08:00
面条
8941fe3962
Merge pull request #88 from ZL-Asica/feature/case-sensitive
feat: add case sensitivity configuration for slugs
2024-12-15 20:35:57 +08:00
ccbikai
b26b036833 Merge remote-tracking branch 'origin/master' into dev 2024-12-15 20:31:20 +08:00
ccbikai
e7d71b35d3 feat: add short link to edit link response
Enhances link edit endpoint by including a fully-qualified short link URL in the response, constructed from request protocol and host alongside the slug
2024-12-08 14:44:03 +08:00
ccbikai
337f8f174c fix: refine link creation response structure
Returns link object separately from shortLink in response to maintain clearer API structure and prevent unnecessary data duplication in the response payload
2024-12-08 12:01:17 +08:00
ccbikai
172956b532 feat: add short link to create endpoint response
Enhances the link creation API response by including a formatted short link URL
Combines protocol, host, and slug to create a complete, ready-to-use short URL
2024-12-08 11:56:03 +08:00
ccbikai
73649d4ab0 Merge branch 'master' into preview 2024-12-08 11:44:47 +08:00
ccbikai
19e18546de fix: adjust cursor handling for KV pagination
Moves undefined fallback from client to server side for cursor parameter
Ensures consistent pagination behavior when fetching links from KV storage

This prevents potential edge cases where undefined cursor values could be handled differently between client and server.
2024-12-08 11:37:04 +08:00
ZL Asica
899323faf6
chore: pre-check if slug is same before and after lowercase. 2024-12-06 15:11:07 -06:00
ZL Asica
902fc1bef5
fix: forward compability for case sensitive 2024-12-06 10:19:40 -06:00
ccbikai
639368a8ba 0.1.5 2024-12-06 18:47:49 +08:00
ccbikai
83db9cd2bc fix: Fixes cursor handling for API link requests
Replaces the cursor value in the API request with `undefined` if it is falsy. This prevents potential issues with null values being sent in the query, ensuring a more reliable API interaction.

Improves overall stability when fetching link data from the server.
2024-12-06 13:49:58 +08:00
ZL Asica
e51e912972
doc: update docs to reflect the new feature. 2024-12-02 20:25:15 -06:00
ZL Asica
cd7e3022d5
chore: fix wrong key in vscode setting
For eslint version > 9 no need to add .experimental
2024-12-02 20:02:59 -06:00
ZL Asica
326939feee
feat: add config to switch case sensitivities 2024-12-02 20:24:47 -06:00
面条
09cae1b588
Merge pull request #87 from fatwang2/master
Add the sink shortcuts
2024-11-25 20:21:54 +08:00
面条
898c093e06
Merge pull request #81 from ZL-Asica/fix/node-version
Standardize .node-version format for compatibility
2024-11-25 20:20:04 +08:00
fatwang2
7ebdbc0a4a
Add the sink shortcuts 2024-11-25 11:03:34 +08:00
ccbikai
11be9e3dba fix: correct GitHub URL in app configuration 2024-11-08 19:42:23 +08:00
ZL Asica
becd0a7ad6
fix: standardize .node-version format
Updated .node-version to remove 'v' prefix and ensure full three-part version (20.11.0) for compatibility with version managers.
2024-11-04 10:31:31 -06:00
ccbikai
f6f9b6a462 Merge remote-tracking branch 'origin/dev' 2024-11-03 12:53:08 +08:00
ccbikai
393771631f chore: update social links to use a unified domain format 2024-11-03 12:52:25 +08:00
面条
fe4af81bf5
Merge pull request #80 from ZL-Asica/master
doc(Deployment): Update guides for how to deploy.
2024-11-03 12:46:56 +08:00
ZL Asica
0ed45efa87
docs(faqs): Update according to the Readme updates. 2024-10-30 09:50:35 -05:00
ccbikai
71b96338ff Merge branch 'dev' 2024-10-30 21:43:20 +08:00
ccbikai
ba857d8e36 Merge branch 'dev' into preview 2024-10-30 21:32:55 +08:00
ccbikai
c6a99f8309 chore(config): update Mastodon URL for consistency
Align Mastodon profile link with new domain to maintain uniformity across social media handles.
2024-10-30 21:23:04 +08:00
面条
b11201978a
Merge pull request #59 from citynight/master
feat: 将固定链接名称抽取到配置中
2024-10-30 21:21:57 +08:00
ccbikai
9e9a9bfb46 Merge branch 'master' into dev 2024-10-30 21:20:15 +08:00
ZL Asica
7c999fdfc2
doc(Deployment): Update guides for how to deploy. 2024-10-29 14:26:41 -05:00
面条
fad3d5c601
Merge pull request #60 from ccbikai/CoC
feat: add Contributor Covenant Code of Conduct
2024-10-18 12:09:34 +08:00
ccbikai
16d35355b0 feat: add Contributor Covenant Code of Conduct
Enhance community standards by introducing a comprehensive Code of Conduct to foster a harassment-free and inclusive environment. This ensures clear guidelines for acceptable behavior and enforcement mechanisms, aligning with best practices for open-source communities.
2024-10-18 12:04:06 +08:00
Logan
04492c3813 feat: 将固定链接名称抽取到配置中 2024-10-18 11:54:16 +08:00
面条
9f98d0017b
docs: Raycast Extension 2024-10-16 20:27:59 +08:00
面条
5ac568d936
Merge pull request #54 from manuelosorio/master 2024-10-08 22:23:14 +08:00