-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from appventure-nush/beta
Fixes for plotly
- Loading branch information
Showing
6 changed files
with
83 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Push to Registry (Beta Build) | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Push image to AppVenture registry | ||
uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
registry: registry.nush.app | ||
repository: e-notes | ||
tags: beta |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Node.js CI | ||
name: Push to Registry | ||
|
||
on: | ||
push: | ||
|
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,45 @@ | ||
<template> | ||
<div v-html="html" ref="htmlDiv"></div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import {Component, Prop, Vue} from "vue-property-decorator"; | ||
@Component | ||
export default class HTMLOutput extends Vue { | ||
name = "HTMLOutput" | ||
@Prop(String) readonly html!: string; | ||
createScript(node: HTMLScriptElement) { | ||
var script = document.createElement("script"); | ||
script.text = node.innerHTML; | ||
for (var i=0; i < node.attributes.length; i++) { | ||
var attr = node.attributes[i]; | ||
script.setAttribute(attr.name, attr.value); | ||
} | ||
return script; | ||
} | ||
recurseDescendants (node: Element) { | ||
for (var i = 0; i < node.children.length; i++) { | ||
var child = node.children[i]; | ||
this.recurseDescendants(child); | ||
if (child.tagName === 'SCRIPT') { | ||
node.replaceChild(this.createScript(child as HTMLScriptElement), child); | ||
} | ||
} | ||
} | ||
mounted() { | ||
console.log("running scripts"); | ||
this.$nextTick(() => { | ||
this.recurseDescendants(this.$refs.htmlDiv as Element); | ||
}); | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
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 |
---|---|---|
|
@@ -321,4 +321,8 @@ body.rb.rb-lock-off { | |
} | ||
} | ||
py-loader, py-terminal { | ||
display: none; | ||
} | ||
</style> |