Skip to content

Commit

Permalink
initial contents
Browse files Browse the repository at this point in the history
  • Loading branch information
z3dev committed Aug 5, 2020
1 parent a920a59 commit 9fc811a
Show file tree
Hide file tree
Showing 5 changed files with 4,390 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# vue-components
VUE Components for rendering and compiling JSCAD designs

## ALPHA ALPHA ALPHA
51 changes: 51 additions & 0 deletions hello.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<title>My first Vue app</title>
<script src="https://unpkg.com/vue"></script>
<style>
.viewer{
width: 8cm;
height: 8cm;
margin: 0;
outline: 1px solid black;
background-color: transparent;
}
</style>
</head>
<body>
<script src="./lib/reglRenderer.js"></script>
<script src="./viewerComponent.js"></script>
<script src="./solids.js"></script>

<div id="app">
<div>
<p>{{ message }}</p>
<button v-on:click="reverse">Reverse Message</button>
</div>
<div>
<jscad-viewer></jscad-viewer>
</div>
</div>

<script>
// global registration of viewer component
Vue.component(viewerComponent.name, viewerComponent.properties)

const something = [1,2,3,4]

var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
},
methods: {
reverse: function () {
this.message = this.message.split('').reverse().join('')
}
}
})
</script>

</body>
</html>
Loading

0 comments on commit 9fc811a

Please sign in to comment.