-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reviving the forum! * fix related to "notes" * on delete the notes are deleted too * bugfix + spinner in the initial loading screen * updated date because took me an extra day to fix some more bugs in staging * tweaks & cleanups
- Loading branch information
1 parent
78bc34e
commit 4b8001b
Showing
35 changed files
with
2,344 additions
and
95 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Box, Typography } from "@material-ui/core"; | ||
|
||
export const TextFormatTagType = Symbol(); | ||
|
||
export const JLogTextFormatTags = [ | ||
{ | ||
match: /^\*\*(.*?)\*\*/, | ||
render: (match) => <strong>{match[1]}</strong> // Bold: **text** | ||
}, | ||
{ | ||
match: /^\*(.*?)\*/, | ||
render: (match) => <em>{match[1]}</em> // Italic: *text* | ||
}, | ||
{ | ||
match: /^`{3}([^`]+)`{3}/, | ||
render: (match) => <Box><code>{match[1]}</code></Box> // Code: `code` | ||
}, | ||
{ | ||
match: /^`{1}([^`]+)`{1}/, | ||
render: (match) => <code>{match[1]}</code>// Code: `code` | ||
}, | ||
{ | ||
onlyStartOfLine:true, | ||
match: /^\s*#(.*)/, | ||
render: (match) => <Typography variant="h3">{match[1]}</Typography> | ||
} | ||
] | ||
.map( tag=>({...tag, block: m=>({ type: TextFormatTagType, render:()=>tag.render(m) }) }) ) |
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
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
Oops, something went wrong.