Changed how Resources work to reflect new style

This commit is contained in:
2026-10-16 20:25:31 -04:00
parent 37aafdd913
commit 01d004566c
11 changed files with 139 additions and 287 deletions
@@ -1,20 +0,0 @@
<%*
let title = await tp.system.prompt("Title");
let supplier = await tp.system.prompt("Supplier");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Hardware
Publisher: <% supplier %>
Title: <% title %>
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Hardware-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,17 +0,0 @@
<%*
let title = await tp.system.prompt("Title");
let description = await tp.system.prompt("Description");
-%>
---
Type: Resource
Resource Type: List
Title: <% title %>
Description: <% description %>
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬List-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% title %>
@@ -1,30 +0,0 @@
<%-*
const subfolderName = "~Deliverables";
const currentDir = app.vault.getAbstractFileByPath(tp.file.path(true)).parent.path;
const targetDir = currentDir + "/" + subfolderName;
// Ensure the subfolder exists
if (!app.vault.getAbstractFileByPath(targetDir)) {
await app.vault.createFolder(targetDir);
}
const title = await tp.system.prompt("Note Title");
await tp.file.create_new("", targetDir + "/" + title, false);
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher: Atomic Energy of Canada Ltd.
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-AECL-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Report Title");
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher: Canadian Nuclear Laboratories
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-CNL-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Report Title");
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher:
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Software Title");
let num = await tp.system.prompt("Software Publisher");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Software
Publisher: <% num %>
Title: <% title %>
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
EULA: false
EULA Link:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Software-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>