1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00

Desktop: Allow customising application layout

This commit is contained in:
Laurent Cozic
2020-11-13 17:09:28 +00:00
parent 17d835d694
commit 67f0739d3c
222 changed files with 7967 additions and 1810 deletions

View File

@ -23,7 +23,7 @@ export default class WebviewController extends ViewController {
private messageListener_: Function = null;
private closeResponse_: CloseResponse = null;
constructor(id: string, pluginId: string, store: any, baseDir: string) {
constructor(id: string, pluginId: string, store: any, baseDir: string, containerType: ContainerType) {
super(id, pluginId, store);
this.baseDir_ = toSystemSlashes(baseDir, 'linux');
@ -33,7 +33,7 @@ export default class WebviewController extends ViewController {
view: {
id: this.handle,
type: this.type,
containerType: ContainerType.Panel,
containerType: containerType,
html: '',
scripts: [],
opened: false,
@ -68,10 +68,6 @@ export default class WebviewController extends ViewController {
return this.storeView.containerType;
}
public set containerType(containerType: ContainerType) {
this.setStoreProp('containerType', containerType);
}
public async addScript(path: string) {
const fullPath = toSystemSlashes(shim.fsDriver().resolve(`${this.baseDir_}/${path}`), 'linux');