feat: basic command prompt support
This commit is contained in:
1 parent
0179859427
commit
59bb6dde89
4 files changed
+181
-1
No files matched your search
@@ -12,7 +12,7 @@ import type {
|
||||
PrivateMessageView,
|
||||
Community,
|
||||
} from 'lemmy-js-client'
|
||||
import { get } from 'svelte/store'
|
||||
import { get, writable } from 'svelte/store'
|
||||
|
||||
export type Result =
|
||||
| PostView
|
||||
@@ -82,6 +82,8 @@ export interface ResumableItem {
|
||||
}
|
||||
}
|
||||
|
||||
export let resumables = writable<ResumableItem[]>([])
|
||||
|
||||
export function addFavorite(item: Community, add: boolean = true) {
|
||||
const pd = get(profileData)
|
||||
const p = pd.profiles.find((p) => p.id == get(profile)?.id)
|
||||
|
||||
Reference in new issue
Block a user