diff --git a/.gitignore b/.gitignore index 2024de9..cecaef2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store node_modules -*.config \ No newline at end of file +*.config + +images/ \ No newline at end of file diff --git a/ltm-generator/src/routes/thought/[id].svelte b/ltm-generator/src/routes/thought/[id].svelte index f1f4c2a..2d53bf1 100644 --- a/ltm-generator/src/routes/thought/[id].svelte +++ b/ltm-generator/src/routes/thought/[id].svelte @@ -39,30 +39,30 @@

{thought.data.node}

{@html thought.content}
+ + + diff --git a/wm-interface/src/lib/db.js b/wm-interface/src/lib/db.js index c53928d..f407d4f 100644 --- a/wm-interface/src/lib/db.js +++ b/wm-interface/src/lib/db.js @@ -25,3 +25,13 @@ export const saveThought = (id, content) => { body: JSON.stringify(content), }); }; + +export const saveFile = (id, file) => { + const body = new FormData(); + body.append("file1", file); + + return fetch(`${ce}/thought/${id}/file`, { + method: "POST", + body, + }); +}; diff --git a/wm-interface/src/store/info.js b/wm-interface/src/store/info.js new file mode 100644 index 0000000..64a2f59 --- /dev/null +++ b/wm-interface/src/store/info.js @@ -0,0 +1,3 @@ +import { writable } from "svelte/store"; + +export const info = writable(null); diff --git a/wm/changes/Wed-Oct-06-2021.json b/wm/changes/Wed-Oct-06-2021.json new file mode 100644 index 0000000..a23d79d --- /dev/null +++ b/wm/changes/Wed-Oct-06-2021.json @@ -0,0 +1 @@ +[{"type":{"action":"Revisited thought","symbol":"↺"},"node":"Philosophy","id":"philosophy"},{"type":{"action":"Created thought","symbol":"+"},"node":"Images on One Dimension","id":"images-on-one-dimension"},{"type":{"action":"Revisited thought","symbol":"↺"},"node":"Images on One Dimension","id":"images-on-one-dimension"},{"type":{"action":"Revisited thought","symbol":"↺"},"node":"One dimension TODO","id":"one-dimension-todo"},{"type":{"action":"Linked thought","symbol":"⇒"},"node":{"to":"Images on One Dimension","from":"One dimension TODO"},"id":{"from":"one-dimension-todo","to":"images-on-one-dimension"}}] \ No newline at end of file diff --git a/wm/images-on-one-dimension.md b/wm/images-on-one-dimension.md new file mode 100644 index 0000000..e88503e --- /dev/null +++ b/wm/images-on-one-dimension.md @@ -0,0 +1,13 @@ +--- +backlinks: + - one-dimension-todo +forwardlinks: [] +node: Images on One Dimension +created: '2021-10-07T04:59:25.092Z' +updated: '2021-10-07T05:51:29.668Z' +--- +As of October 6, 2021, One Dimension supports images. + +Here's the very first one: + +![A cool image](images/images-on-one-dimension/RmnquZzidy.webp "my title") diff --git a/wm/one-dimension-todo.md b/wm/one-dimension-todo.md index 4a1656e..83ecb15 100644 --- a/wm/one-dimension-todo.md +++ b/wm/one-dimension-todo.md @@ -2,10 +2,11 @@ backlinks: - one-dimension - what-im-working-on-now -forwardlinks: [] +forwardlinks: + - images-on-one-dimension node: One dimension TODO -created: "2021-09-25T08:09:26.435Z" -updated: "2021-09-25T19:56:33.312Z" +created: '2021-09-25T08:09:26.435Z' +updated: '2021-10-07T05:00:18.685Z' --- - Links to nonexistent thoughts @@ -20,3 +21,7 @@ updated: "2021-09-25T19:56:33.312Z" - For editor (drag and drop) - For API (copy file to new directory, replace link) - ~~Cancelling saving results in a null filename~~ + +Also see: + +- [Images on One Dimension](images-on-one-dimension.md) diff --git a/wm/philosophy.md b/wm/philosophy.md index aed6fa3..6a6d09d 100644 --- a/wm/philosophy.md +++ b/wm/philosophy.md @@ -4,7 +4,7 @@ forwardlinks: - hypocrisy-and-contradiction node: Philosophy created: '2021-10-06T06:37:44.208Z' -updated: '2021-10-06T06:39:27.950Z' +updated: '2021-10-07T04:33:05.867Z' --- It seems like people really like to worship philosophers and philosophy. Certain ideas are attributed to certain individuals and books, and it's often framed as if there's something unique about their perspective that we can "learn from."