forked from Keelrleek/SoulStream
community: one area for the people on both networks, and the hub grows search tabs, a folder column and a queue column
This commit is contained in:
1 parent
6dce4e2ac7
commit
8c25f93afe
14 files changed
+2368
-68
No files matched your search
@@ -488,3 +488,27 @@ export function onEvent(name, handler) {
|
||||
const un = listen(name, (e) => handler(e.payload)).catch(() => () => {});
|
||||
return () => un.then((f) => f());
|
||||
}
|
||||
|
||||
// ---- the Community area: Freenet layer, persona, profile, local contacts ----
|
||||
export const freenetStatus = () => invoke("freenet_status");
|
||||
export const freenetSetEnabled = (enabled) => invoke("freenet_set_enabled", { enabled });
|
||||
export const freenetDetect = () => invoke("freenet_detect");
|
||||
export const freenetSetLoadRemoteImages = (on) => invoke("freenet_set_load_remote_images", { on });
|
||||
export const freenetNodeInfo = () => invoke("freenet_node_info");
|
||||
export const freenetNodeStart = () => invoke("freenet_node_start");
|
||||
export const freenetNodeStop = () => invoke("freenet_node_stop");
|
||||
export const personaStatus = () => invoke("persona_status");
|
||||
export const personaCreate = () => invoke("persona_create");
|
||||
export const personaExport = (passphrase, path) => invoke("persona_export", { passphrase, path });
|
||||
export const personaImport = (passphrase, path, force = false) =>
|
||||
invoke("persona_import", { passphrase, path, force });
|
||||
export const personaRotate = () => invoke("persona_rotate");
|
||||
export const personaRemove = () => invoke("persona_remove");
|
||||
export const profileGet = (persona = null, force = false) => invoke("profile_get", { persona, force });
|
||||
export const profilePublish = (displayName, bio) => invoke("profile_publish", { displayName, bio });
|
||||
export const profileSetAvatar = (imagePath) => invoke("profile_set_avatar", { imagePath });
|
||||
export const profileClearAvatar = () => invoke("profile_clear_avatar");
|
||||
export const contactsMetaList = () => invoke("contacts_meta_list");
|
||||
export const contactMetaSet = (meta) => invoke("contact_meta_set", { meta });
|
||||
/** kind: "image" | "recovery-open" | "recovery-save" -> a path, or null. */
|
||||
export const communityPickFile = (kind) => invoke("community_pick_file", { kind });
|
||||
Reference in new issue
Block a user