Commit efcf7026 authored by greg@1m's avatar greg@1m
Browse files

wip in doc

parent ba034cb6
......@@ -72,7 +72,7 @@ export const App = () => {
const cleanFilesList = () => {
clientApi.ui.browser.files.set([])
api.popup.confirm()
// api.popup.confirm()
}
......
......@@ -19,6 +19,10 @@ import { iMoveApi, useMoveApi } from './move.api.hook';
export type iGetFilesCb = (files: iFile[]) => void
export interface iFileApi {
/**
* Fetch the content of a note from its absolute link
* noteLink should be relative from tiro folder
*/
getContent: (
noteLink: string,
cb: (noteContent: string) => void,
......
......@@ -8,7 +8,13 @@ import { genIdReq, iApiEventBus } from './api.hook';
// INTERFACES
//
/**
* take list of folders and returns their subfolders
*/
export interface iFoldersApi {
/**
* take list of folders and returns their subfolders
*/
get: (
folderPaths: string[],
cb: (data: { folders: iFolder[], pathBase: string }) => void
......@@ -36,7 +42,7 @@ export const useFoldersApi = (p: {
// FUNCTIONS
//
// get folders list scan
//
const getFolders: iFoldersApi['get'] = (folders, cb) => {
console.log(`[FOLDERS API] 002104 get folders ${folders}`);
const idReq = genIdReq('get-folders-');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment