How to use stencila - 3 common examples

To help you get started, we’ve selected a few stencila examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stencila / desktop / app / dashboard / dashboardWindow.js View on Github external
window.addEventListener('load', () => {

  Dashboard.mount({
    backend,
    resolveEditorURL: function(type, documentId) {
      let editorURL
      if (type === 'document') {
        editorURL = "document.html"
      } else {
        editorURL = "sheet.html"
      }
      editorURL += '?documentId='+encodeURIComponent(documentId)
      return editorURL
    }
  }, window.document.body)
})
github stencila / desktop / app / document / documentWindow.js View on Github external
window.addEventListener('load', () => {
  let documentId = getQueryStringParam('documentId')
  window.documentPage = DocumentPage.mount({
    backend,
    appState,
    documentId
  }, window.document.body)

  window.documentPage.on('loaded', () => {
    window.document.title = window.documentPage.getTitle()
  })
})
github stencila / desktop / app / document / documentWindow.js View on Github external
window.addEventListener('load', () => {
  let documentId = getQueryStringParam('documentId')
  window.documentPage = DocumentPage.mount({
    backend,
    appState,
    documentId
  }, window.document.body)

  window.documentPage.on('loaded', () => {
    window.document.title = window.documentPage.getTitle()
  })
})

stencila

Living documents for reproducible research.

Apache-2.0
Latest version published 4 years ago

Package Health Score

58 / 100
Full package analysis