Just a test streem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"author": "SOCRATES", | |
"text": [ | |
"I dare say that you may be surprised to find, O son of\nCleinias, that I, who am your first lover, not having spoken to you\nfor many years, when the rest of the world were wearying you with their\nattentions, am the last of your lovers who still speaks to you.", | |
"The\ncause of my silence has been that I was hindered by a power more\nthan human, of which I will some day explain to you the nature; this\nimpediment has now been removed; I therefore here present myself before\nyou, and I greatly hope that no similar hindrance will again occur.", | |
"Meanwhile, I have observed that your pride has been too much for the\npride of your admirers; they were numerous and high-spirited, but they\nhave all run away, overpowered by your superior force of character; not\none of them remains.", | |
"And I want you to understand the reason why you\nhave been too much for them. You think that you have no need of them\nor of any other man, for you have great posse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readFileSync, writeFileSync } = require('fs') | |
const xpath = require('xpath') | |
const { DOMParser } = require('xmldom') | |
const start = async () => { | |
const xml = readFileSync('./src/data/thread.html', 'utf8') | |
const doc = new DOMParser({ errorHandler: () => {} }).parseFromString(xml) | |
const thread = xpath.select( | |
'/html/body/div[1]/div[3]/div[1]/div/div[2]/div[2]/div[2]/div[2]/div/div/div/div/div/div/div/div[1]/div/div[2]', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: 01DZXEF5FTZ04Z2NJDQXR4SHH0 | |
created: 2020-01-31 10:21 +0100 | |
foo | |
--- | |
id: 01DZXEF91F8JKG3EGGTM7D41AA | |
created: 2020-01-31 10:21 +0100 | |
parent: 01DZXEF5FTZ04Z2NJDQXR4SHH0 | |
bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: 01E02KMQHSEGXARDTBN4Y8JE3S | |
created: 1565475249462 | |
Thoughts | |
--- | |
id: 01E02KMQJ2XC71999GTXEWV78W | |
parent: 01E02KMQHSEGXARDTBN4Y8JE3S | |
created: 1565475249462 | |
my stream of consciousness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Lane = ({ | |
getId, | |
id, | |
data, | |
sort, | |
index, | |
onSetCardTitle, | |
onSetLaneTitle, | |
onCreateCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Card = ({ getId, index, id, data, onSetTitle }) => { | |
const card = data[id]; | |
const [editing, setEditing] = useState(); | |
const [cardTitle, setCardTitle] = useState(card.title); | |
return ( | |
<div className="card"> | |
{editing ? ( | |
<form | |
onSubmit={e => { | |
e.preventDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Board = ({ | |
id, | |
getId, | |
data, | |
onCreateLane, | |
onCreateCard | |
onSetBoardTitle, | |
onSetCardTitle, | |
onSetLaneTitle, | |
}) => { |