mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-02 18:44:36 +12:00
upgrade mithril
This commit is contained in:
parent
371c22f3b4
commit
b977066ce8
|
@ -16,7 +16,7 @@
|
|||
"file-saver": "^1.3.2",
|
||||
"html-entities": "^1.2.0",
|
||||
"jszip": "^3.0.0",
|
||||
"mithril": "^0.2.5",
|
||||
"mithril": "github:lhorie/mithril.js#rewrite",
|
||||
"pretty-data": "^0.40.0",
|
||||
"tidy-html5": "^0.1.1",
|
||||
"zero-fill": "^2.2.3"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import m from 'mithril'
|
||||
import m from 'mithril/render/hyperscript'
|
||||
import render from './lib/mithril-node-render'
|
||||
import isNode from 'detect-node'
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
import m from 'mithril'
|
||||
import m from 'mithril/render/hyperscript'
|
||||
import trust from 'mithril/render/trust'
|
||||
import render from './lib/mithril-node-render'
|
||||
import { pd as pretty } from 'pretty-data'
|
||||
import zeroFill from 'zero-fill'
|
||||
|
@ -41,8 +42,8 @@ export function createChapter (ch, html, callback) {
|
|||
chapter = chapter.substring(0, pos)
|
||||
|
||||
let sections = [
|
||||
m('div#chapter_container', m.trust(chapter)),
|
||||
authorNotes ? m('div#author_notes', {className: authorNotesPos < chapterPos ? 'top' : 'bottom'}, m.trust(authorNotes)) : null
|
||||
m('div#chapter_container', trust(chapter)),
|
||||
authorNotes ? m('div#author_notes', {className: authorNotesPos < chapterPos ? 'top' : 'bottom'}, trust(authorNotes)) : null
|
||||
]
|
||||
|
||||
if (authorNotes && authorNotesPos < chapterPos) {
|
||||
|
@ -249,7 +250,7 @@ export function createTitlePage (ffc) {
|
|||
'This story is a sequel to ',
|
||||
m('a', {href: ffc.storyInfo.prequel.url}, ffc.storyInfo.prequel.title)
|
||||
]), m('hr')] : null,
|
||||
m('#description', m.trust(ffc.storyInfo.description)),
|
||||
m('#description', trust(ffc.storyInfo.description)),
|
||||
m('hr'),
|
||||
m('.extra_story_data', [
|
||||
ffc.storyInfo.publishDate && dateBox('First Published', new Date(ffc.storyInfo.publishDate * 1000)),
|
||||
|
|
Loading…
Reference in a new issue