mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-10 19:16:55 +02:00
Binary file uploads and missing workspace empty state
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import { invoke } from '@tauri-apps/api';
|
||||
import type { KeyValue } from './models';
|
||||
|
||||
export const NAMESPACE_GLOBAL = 'global';
|
||||
export const NAMESPACE_NO_SYNC = 'no_sync';
|
||||
|
||||
export async function setKeyValue<T>({
|
||||
namespace = NAMESPACE_GLOBAL,
|
||||
namespace = 'global',
|
||||
key,
|
||||
value,
|
||||
}: {
|
||||
@@ -21,7 +18,7 @@ export async function setKeyValue<T>({
|
||||
}
|
||||
|
||||
export async function getKeyValue<T>({
|
||||
namespace = NAMESPACE_GLOBAL,
|
||||
namespace = 'global',
|
||||
key,
|
||||
fallback,
|
||||
}: {
|
||||
|
||||
Reference in New Issue
Block a user