Commit Graph
215 Commits
Author SHA1 Message Date
qwqcode 3e45bb9506 chore(landing): improve landing page and docs 2025-02-02 16:26:20 +08:00
qwqcode 99736db27f chore(style): fix bg color of login dialog in sidebar for dark mode 2024-11-25 00:00:51 +08:00
qwqcode 71b73a323a chore(docs/landing): fix tech icons in landing page 2024-11-06 22:22:23 +08:00
qwqcode 659023988e docs(landing): redesign landing page (#1020) 2024-11-06 21:53:23 +08:00
qwqcode 258dfde60e docs: integrate git changelog plugin 2024-10-19 16:32:34 +08:00
qwqcode 91ac907778 chore(ui/deps): upgrade deps for ui 2024-10-19 16:25:48 +08:00
qwqcode 73da8740ee chore(docs): add frontend typedoc 2024-10-19 14:34:01 +08:00
Lance.Moe 15f2fb82a3 chore(docs): corrected react usage example (#1012) 2024-10-19 13:11:29 +08:00
qwqcode bd81b7c10c feat(ui/conf): add preferRemoteConf option (#1000) (#1011)
Add `preferRemoteConf` option (disabled by default).

Local config now takes priority, addressing the issue where remote config previously overrode local settings. (Closes #1000)

Updated config merging logic in `mount.ts`.

Deprecated `useBackendConf` in favor of `preferRemoteConf`.

(The prerequisite PR is #1007)

BREAKING CHANGE: UI client now prioritizes local config in the latest version, whereas previously, the remote config would override it. (See #1011)
2024-10-18 21:46:49 +08:00
qwqcode 5065bb4763 chore: update CONTRIBUTING.md 2024-10-11 13:31:20 +08:00
Limeandqwqcode baa63866f4 feat(ui/page_vote): add page voting feature (#983)
* feat(plugin/page_vote): add `page_vote` plugin

* feat(plugin/page_vote): update vote count text

adjust code structure
disable `page vote` plugin by default

* feat(plugin/page_vote): reuse actions btn style

* perf(plugin/page-vote): make type strong

* feat: watch `darkMode` conf

* doc(plugin/page_vote): add config doc

* feat(ui/page_vote): add page voting feature

- Introduce page voting functionality
- Update configuration to enable/disable page voting
- Retrieve html elements for voting buttons and counts
- Enhance customization options for voting elements
- Reference: #983, #998, #997

---------

Co-authored-by: qwqcode <qwqcode@gmail.com>
2024-10-08 12:38:39 +08:00
qwqcode 7c251fd067 feat(api/vote): add get vote status endpoint (#998)
A new HTTP API endpoint `GET /votes/:target_name/:target_id` is now available. (See https://artalk.js.org/http-api.html#tag/Vote/operation/GetVote)

- Implement GET endpoint for retrieving vote status
- Add tests for vote functionality

Related to: #997

This is a prerequisite PR for #983.
2024-10-06 22:31:59 +08:00
qwqcode 02a369fe5c refactor(api/vote): refactor vote http endpoint and logic (#997)
The original `POST /votes/:type/:target_id` endpoint for creating votes has been updated to `POST /votes/:target_name/:target_id/:choice`. The `target_name` can be either `comment` or `page`, the `target_id` is a numeric value, and the `choice` can be `up` or `down`. (https://artalk.js.org/http-api.html#tag/Vote/operation/CreateVote)

The HTTP response now includes two additional fields: `is_up` and `is_down`, which indicate the user's current voting state. The `up` and `down` fields remain unchanged and continue to be of numeric type, ensuring backward compatibility with existing clients.

- Change vote endpoint to include `{target_name}` and `{choice}`
- Update vote logic to handle `up` and `down` choices
- Modify request data models and API interfaces for new vote structure
- Ensure backward compatibility with existing vote response data
- Improve vote handling and response structure

BREAKING CHANGE: Vote HTTP API endpoint have been updated. (See #997)
2024-10-06 22:15:15 +08:00
qwqcode bd0db8cd57 chore(docs): revise ui config docs 2024-10-06 21:45:01 +08:00
qwqcode 206a26d0c1 feat(ui): add npm published version check script
- Introduce check:publish script to verify npm versions
- Ensure all projects have the latest versions on npm
- Skip private packages during version checks
- Allow filtering by specific project name with -F option
2024-10-05 21:13:02 +08:00
qwqcode abac3f0f36 feat(ui/eslint): add eslint plugin for artalk ui development (#995)
- Implemented `eslint-plugin-artalk` to enforce Artalk's development conventions.
- Added setup script for UI development environment.
- Created test cases for Artalk plugin rules.
- Configured TypeScript and build settings for the plugin.
- Updated documentation with installation and configuration instructions.
2024-10-05 19:19:22 +08:00
qwqcode ea9c5d9ecb chore(docs): add install guide for fedora linux distro 2024-10-01 14:47:20 +08:00
qwqcode 8707f4f327 docs(landing): add more translations 2024-09-20 21:03:56 +08:00
qwqcode d5d458de11 docs(landing): optimize responsive font size 2024-09-19 21:17:38 +08:00
qwqcode c087400a66 chore(docs): set up redirects for old pages 2024-09-19 21:14:07 +08:00
qwqcode 34d793697c chore(docs): refine deployment documentation 2024-09-19 18:27:24 +08:00
github-actions[bot] b9c3b2a1c3 chore: release v2.9.1 (#981)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-18 23:50:46 +08:00
qwqcode bd121f8f94 docs: refine deployment documentation 2024-09-18 23:47:35 +08:00
qwqcode 53aaf27fdf chore(deps): upgrade frontend deps 2024-09-18 21:56:38 +08:00
qwqcode 9cc3252c0f chore(docs): add support for auto-redirect to language-specific docs 2024-09-18 12:51:17 +08:00
qwqcode 349eb6f5c5 chore(docs): update the Chinese slogan on the homepage 2024-09-17 23:35:05 +08:00
qwqcode 55a96f12aa chore(docs): make English the default readme 2024-09-17 22:34:09 +08:00
qwqcode 36580b5fc3 chore(docs): apply artalk locale from html lang 2024-09-17 21:46:14 +08:00
qwqcode 9afa7ca555 docs(i18n): add English translations for docs (#978)
* docs: add support for multiple languages

* docs(i18n): add English translations
2024-09-17 21:19:48 +08:00
qwqcode 6d54b721da docs(landing): add multi-language and dark-mode for landing 2024-09-17 17:48:05 +08:00
qwqcode cb4596d59d docs(landing): add demo video in landing page 2024-09-17 17:44:17 +08:00
qwqcode 4913e1aebd chore(docs): update extras.md 2024-09-17 17:41:27 +08:00
qwqcode a98a50abbe test(mutex): add tests for keyed mutex 2024-09-16 16:55:38 +08:00
qwqcode 9dcfd9cd91 chore(deps): upgrade deps 2024-09-15 09:52:26 +08:00
qwqcode 22ff47f9ce fix(transfer): ensure consistent time format in artrans export 2024-09-04 21:14:46 +08:00
qwqcode 90d8503d0e chore(docs): update cases.md 2024-09-04 11:42:47 +08:00
qwqcode 7bab69c4fd chore(docs): update artalk plugin for docs 2024-09-03 22:45:02 +08:00
github-actions[bot] 6135c7e911 chore: release v2.9.0 (#968)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-03 22:03:03 +08:00
qwqcode 1ff0c4c10f chore(deps): upgrade deps 2024-09-03 21:18:16 +08:00
qwqcode 9cc9a6d6ab feat(config): add site_url config option (#967) 2024-09-03 20:07:43 +08:00
qwqcode 4b5ec39b8e feat(auth): add user profile and password changing (#966) 2024-09-02 15:56:04 +08:00
qwqcode ac54eae179 chore(docs): add docker mirror tips 2024-08-30 12:05:24 +08:00
qwqcode 8a9480d05a feat(ui/sidebar): add page search by keywords in sidebar (#603) 2024-08-29 13:42:41 +08:00
qwqcode 1b0eff9568 perf(ui/sidebar): optimize setup process and i18n lazy load (#962) 2024-08-29 12:33:51 +08:00
qwqcode c0a3026890 docs(ui/i18n): add translations for French, Korean, and Russian 2024-08-29 11:45:56 +08:00
qwqcode 6b58fd8a9d feat(ui/sidebar): add user search by keywords in sidebar (#710) 2024-08-28 19:50:38 +08:00
qwqcode 50e967f71c feat(ui/date): add dateFormatter config option (#940) 2024-08-28 18:01:43 +08:00
qwqcode cf58a545b5 chore(deps): upgrade deps 2024-08-28 16:12:43 +08:00
qwqcode 4d7e157ff0 fix(ui/sidebar): show env variables in sidebar settings ui (#946) (#956)
* fix(ui/sidebar): show env variables in sidebar settings ui (#946)

* fix unit test
2024-08-19 16:27:20 +08:00
qwqcode 2b9d6bb573 chore(deps): upgrade docs and sidebar deps 2024-08-18 22:53:51 +08:00