Permet de charger en local 1 ou plusieurs pages

Fix #1
Fix #2
This commit is contained in:
2022-03-17 12:54:49 +01:00
parent d52afe549d
commit e1f2294fe4
10 changed files with 414 additions and 550 deletions

View File

@@ -0,0 +1,5 @@
export interface IList {
id: string;
date: string;
isLoaded: boolean;
}

View File

@@ -0,0 +1,6 @@
export interface IPage {
id: string;
date: string;
title: string;
content: string;
}

View File

@@ -0,0 +1,12 @@
import {IList} from "./IList";
import * as React from "react";
export interface IPages {
pages: IList[];
url: string;
removeUrl: string;
csrf: string;
passphrase: string;
loadPages: React.MutableRefObject<() => void>;
setAllLoaded: React.Dispatch<React.SetStateAction<boolean>>;
}

View File

@@ -0,0 +1,10 @@
import { Ref } from "react";
import {IList} from "./IList";
export interface PropPage {
page: IList;
url: string;
passphrase: string;
remove: (id) => void;
ref: Ref<IList>;
}