Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
editoria
bookbuilder
Commits
e662884b
Commit
e662884b
authored
Sep 28, 2017
by
Yannis Barlas
Browse files
working button for viewing collection in vivliostyle
parent
ede7222d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/BookBuilder.jsx
View file @
e662884b
...
...
@@ -163,17 +163,16 @@ export class BookBuilder extends React.Component {
}
handleHTMLToEpub
(
bookId
)
{
const
{
htmlToEpub
}
=
this
.
props
.
actions
const
{
book
}
=
this
.
props
const
{
htmlToEpub
}
=
this
.
props
.
actions
htmlToEpub
(
book
.
id
).
then
((
res
)
=>
{
cons
ole
.
log
(
'
res
'
,
res
)
const
path
=
res
.
path
const
url
=
'
localhost:3000
/vivliostyle/viewer/vivliostyle-viewer.html#b=
'
+
path
// this.props.history.push()
window
.
location
=
'
/vivliostyle/viewer/vivliostyle-viewer.html#b=/uploads/
'
+
path
cons
t
path
=
res
.
extractedEpubPath
const
url
=
`
/vivliostyle/viewer/vivliostyle-viewer.html#b=
/uploads/
${
path
}
`
window
.
open
(
url
,
'
_blank
'
)
})
// console.log('props', this.props)
// console.log('actions', this.props.actions)
}
render
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment