mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 06:39:30 +08:00
feat: add kaomoji
This commit is contained in:
parent
af7cf9044d
commit
39723f9944
3 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
- [Akkoma](https://akkoma.social/)
|
||||
- [Raycast](https://raycast.com)
|
||||
- [Raycast](https://raycast.com)
|
||||
|
||||
**Features**:
|
||||
- Write status with markdown support.
|
||||
|
|
|
@ -17,10 +17,10 @@ export default function BookmarkCommand() {
|
|||
const getBookmark = async () => {
|
||||
try {
|
||||
await authorize();
|
||||
showToast(Toast.Style.Animated, "Loading bookmarks...");
|
||||
showToast(Toast.Style.Animated, "Loading bookmarks..☆ミ(o*・ω・)ノ.");
|
||||
const newBookmarks = await apiServer.fetchBookmarks();
|
||||
setBookmarks((prevBookmarks) => [...prevBookmarks, ...newBookmarks]);
|
||||
showToast(Toast.Style.Success, "Bookmarked has been loaded");
|
||||
showToast(Toast.Style.Success, "Bookmarked has been loaded \(^o^)/");
|
||||
cache.set("latest_bookmarks", JSON.stringify(newBookmarks));
|
||||
} catch (error) {
|
||||
const requestErr = error as AkkomaError;
|
||||
|
|
|
@ -17,10 +17,10 @@ export default function ViewStatusCommand() {
|
|||
const getBookmark = async () => {
|
||||
try {
|
||||
await authorize();
|
||||
showToast(Toast.Style.Animated, "Loading Status...");
|
||||
showToast(Toast.Style.Animated, "Loading Status...ε=ε=┌( >_<)┘");
|
||||
const status = await apiServer.fetchUserStatus();
|
||||
setStatus(status);
|
||||
showToast(Toast.Style.Success, "Statuses has been loaded");
|
||||
showToast(Toast.Style.Success, "Statuses has been loaded ٩(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ");
|
||||
cache.set("latest_statuses", JSON.stringify(status));
|
||||
} catch (error) {
|
||||
const requestErr = error as AkkomaError;
|
||||
|
|
Loading…
Reference in a new issue