mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 14:49:29 +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/)
|
- [Akkoma](https://akkoma.social/)
|
||||||
- [Raycast](https://raycast.com)
|
- [Raycast](https://raycast.com)
|
||||||
|
|
||||||
**Features**:
|
**Features**:
|
||||||
- Write status with markdown support.
|
- Write status with markdown support.
|
||||||
|
|
|
@ -17,10 +17,10 @@ export default function BookmarkCommand() {
|
||||||
const getBookmark = async () => {
|
const getBookmark = async () => {
|
||||||
try {
|
try {
|
||||||
await authorize();
|
await authorize();
|
||||||
showToast(Toast.Style.Animated, "Loading bookmarks...");
|
showToast(Toast.Style.Animated, "Loading bookmarks..☆ミ(o*・ω・)ノ.");
|
||||||
const newBookmarks = await apiServer.fetchBookmarks();
|
const newBookmarks = await apiServer.fetchBookmarks();
|
||||||
setBookmarks((prevBookmarks) => [...prevBookmarks, ...newBookmarks]);
|
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));
|
cache.set("latest_bookmarks", JSON.stringify(newBookmarks));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const requestErr = error as AkkomaError;
|
const requestErr = error as AkkomaError;
|
||||||
|
|
|
@ -17,10 +17,10 @@ export default function ViewStatusCommand() {
|
||||||
const getBookmark = async () => {
|
const getBookmark = async () => {
|
||||||
try {
|
try {
|
||||||
await authorize();
|
await authorize();
|
||||||
showToast(Toast.Style.Animated, "Loading Status...");
|
showToast(Toast.Style.Animated, "Loading Status...ε=ε=┌( >_<)┘");
|
||||||
const status = await apiServer.fetchUserStatus();
|
const status = await apiServer.fetchUserStatus();
|
||||||
setStatus(status);
|
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));
|
cache.set("latest_statuses", JSON.stringify(status));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const requestErr = error as AkkomaError;
|
const requestErr = error as AkkomaError;
|
||||||
|
|
Loading…
Reference in a new issue