7 Commits
Author SHA1 Message Date
qwqcode 7286642fc9 fix(ui): static method export issue in JS module (#669) 2023-12-18 00:46:56 +08:00
qwqcode bad248534c docs: revise and add more examples
BREAKING CHANGE: The following top-level functions exported by the 'artalk' npm package have been deprecated: `Artalk.update`, `Artalk.reload`, and `Artalk.destroy`. These methods now require invocation on an instance created by either `Artalk.init` or `new Artalk`. Please utilize instance-level methods instead, such as `artalkInstance.update`. For more information, refer to  [the documentation](https://artalk.js.org/guide/frontend/import-framework.html). The update was implemented to enable the concurrent creation of multiple instances, adapting to situations where Vue components are simultaneously referenced across various pages. Initially, only a singular instance was permitted to mitigate memory leak concerns. However, this proved limiting for scenarios involving the caching of multiple component instances through 'keep-alive.' To better suit intricate SPA application needs, the choice was made to permit the creation of multiple independent instances. It's crucial to remember to manually invoke the `artalk.destroy` method when releasing components to avoid memory leaks (Issue #660).
2023-12-17 19:16:33 +08:00
qwqcode b898a4ca96 chore(docs): fix docs dead link
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-10 20:27:00 +08:00
qwqcode 069a33773c docs: refine and add frontend api docs
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-10 20:17:41 +08:00
qwqcode e447657c94 docs: fix content and update index 2023-02-04 18:13:41 +08:00
qwqcode 9a680f0ef8 docs: add open api (#360)
* chore(api): add comment for open api

Signed-off-by: qwqcode <qwqcode@gmail.com>

* docs: add open api generation support

Signed-off-by: qwqcode <qwqcode@gmail.com>

---------

Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-01-29 00:13:19 +08:00
qwqcode 593639f92e chore: move files from docs/docs to docs
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-01-17 19:34:59 +08:00