-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit ca84b8f.
- Loading branch information
Showing
10 changed files
with
292 additions
and
51 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
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ import _ from "../imports/lodash.js" | |
import "https://cdn.jsdelivr.net/gh/fonsp/[email protected]/lib/rebel-tag-input.mjs" | ||
|
||
//@ts-ignore | ||
import immer from "../imports/immer.js" | ||
import { produce } from "../imports/immer.js" | ||
import { useDialog } from "../common/useDialog.js" | ||
import { FeaturedCard } from "./welcome/FeaturedCard.js" | ||
import { useEventListener } from "../common/useEventListener.js" | ||
|
@@ -26,7 +26,7 @@ export const FrontMatterInput = ({ filename, remote_frontmatter, set_remote_fron | |
|
||
const fm_setter = (key) => (value) => | ||
set_frontmatter( | ||
immer((fm) => { | ||
produce((fm) => { | ||
_.set(fm, key, value) | ||
}) | ||
) | ||
|
@@ -83,7 +83,7 @@ export const FrontMatterInput = ({ filename, remote_frontmatter, set_remote_fron | |
onClick=${() => { | ||
// TODO | ||
set_frontmatter( | ||
immer((fm) => { | ||
produce((fm) => { | ||
_.unset(fm, path) | ||
}) | ||
) | ||
|
@@ -99,7 +99,7 @@ export const FrontMatterInput = ({ filename, remote_frontmatter, set_remote_fron | |
const fieldname = prompt("Field name:") | ||
if (fieldname) { | ||
set_frontmatter( | ||
immer((fm) => { | ||
produce((fm) => { | ||
_.set(fm, `${base_path}${fieldname}`, null) | ||
}) | ||
) | ||
|
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.