🚧 Commence la personnalisation de l'affichage des pages

Pour #12
This commit is contained in:
2022-04-19 16:55:18 +02:00
parent 2c56eb91af
commit 1dca0951e8
18 changed files with 695 additions and 24 deletions

View File

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

View File

@@ -0,0 +1,7 @@
export interface ISettings {
background_color: string;
text_color: string;
font_size: number;
font: string;
line_spacing: number;
}

View File

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