0.29.0 • Published 5 years ago
enos v0.29.0
Your MicroApps in 3D Space
Using Effect Node
Install
npm i enos --save
Demo
Live Demo with Effect Node Build with WebPack
Demo Code
App.vue
<template>
<div class="hello"><enos v-if="myApps" :effectnode="true" :apps="myApps"></enos></div>
</template>
<script>
import ENOSCompos from "enos";
export default {
components: {
...ENOSCompos
},
data() {
return {
myApps: false
};
},
mounted() {
this.myApps = [
{
windowTitle: "Sample",
compoName: "samsam",
App: require("./apps/samsam.vue")
}
];
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello {
height: 100%;
}
</style>
./apps/samsam.vue
<template>
<div class="full window-app">
<titlebar @click="$emit('activated');" :portal="portal" :uiAPI="uiAPI">
Sample App
</titlebar>
<div class="content-div" @click="$emit('activated');">{{ rr }} Content</div>
</div>
</template>
<script>
import Compos from "enos";
export default {
name: "sampleapp",
props: {
uiAPI: {},
portal: {}
},
components: {
...Compos
// Dimension
},
data() {
return {
rr: Math.random()
};
},
mounted() {},
methods: {}
};
</script>
<style scoped>
.window-app {
background: white;
/* background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%); */
box-sizing: border-box;
border-radius: 10px 10px 10px 10px;
color: black;
/* background-image: radial-gradient( circle farthest-corner at 10% 20%, rgba(149,219,254,1) 0%, rgba(7,134,197,1) 90.1% ); */
}
.content-div {
height: calc(100% - 30px);
-webkit-overflow-scrolling: touch;
overflow: auto;
position: relative;
}
</style>
0.29.0
5 years ago
0.28.0
5 years ago
0.27.0
5 years ago
0.26.0
5 years ago
0.25.0
5 years ago
0.24.0
5 years ago
0.23.0
5 years ago
0.22.0
5 years ago
0.21.0
5 years ago
0.20.0
5 years ago
0.19.0
5 years ago
0.18.0
5 years ago
0.17.0
5 years ago
0.16.0
5 years ago
0.15.0
5 years ago
0.14.0
5 years ago
0.13.0
5 years ago
0.12.0
5 years ago
0.11.0
5 years ago
0.10.0
5 years ago
0.9.0
5 years ago
0.8.0
5 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.1-pre
5 years ago
0.4.0
5 years ago
0.3.0
5 years ago
0.2.1-pre
5 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago