cleanup, fixes with paths

This commit is contained in:
marlon-erler
2024-07-23 18:23:26 +02:00
parent 0a34304652
commit 7d388cf4eb
4 changed files with 30 additions and 28 deletions
+8 -14
View File
@@ -576,7 +576,7 @@
boardHandlerManager = new HandlerManager();
// paths
getBasePath = () => {
return this.fileModel.getModelContainerPath("taskModel");
return this.fileModel.getModelContainerPath("tasks" /* ModelTask */);
};
getBoardFilePath = (boardId) => {
return [...this.fileModel.getFilePath(boardId)];
@@ -585,13 +585,16 @@
return [...this.fileModel.getFilePath(taskId)];
};
getBoardContainerPath = () => {
return [...this.getBasePath(), subDirectories.boards];
return [...this.getBasePath(), "boards" /* Boards */];
};
getBoardDirectoryPath = (boardId) => {
return [...this.getBoardContainerPath(), boardId];
};
getTaskContainerPath = (boardId) => {
return [...this.getBoardDirectoryPath(boardId), subDirectories.boardTasks];
return [
...this.getBoardDirectoryPath(boardId),
"tasks" /* BoardTasks */
];
};
getTaskReferencePath = (boardId, fileId) => {
return [...this.getTaskContainerPath(boardId), fileId];
@@ -714,10 +717,6 @@
};
};
};
var subDirectories = {
boards: "boards",
boardTasks: "tasks"
};
var BoardInfoFileContentReference = {
dataVersion: DATA_VERSION,
fileId: "string",
@@ -751,10 +750,10 @@
);
};
getFileContainerPath = () => {
return [...this.getBasePath(), subDirectories2.data];
return [...this.getBasePath(), "data" /* Data */];
};
getModelContainerPath = (modelName) => {
return [...this.getBasePath(), subDirectories2.model, modelName];
return [...this.getBasePath(), "model" /* Model */, modelName];
};
getFilePath = (fileId) => {
return [...this.getFileContainerPath(), fileId];
@@ -846,11 +845,6 @@
};
};
};
var subDirectories2 = {
data: "data",
model: "model",
taskModel: "tasks"
};
var FileContentReference = {
dataVersion: DATA_VERSION,
fileId: "",