mille storie
commenti da mastodon, widget con custom widget test...
This commit is contained in:
17
widgets/examples/index.html
Normal file
17
widgets/examples/index.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Gancio Widget Example</title>
|
||||
<script src="https://unpkg.com/vue"></script>
|
||||
<script src='dist/gancio-widget.min.js'></script>
|
||||
<link rel="stylesheet" href="../list/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<gancio-widget minimal></gancio-widget>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
0
widgets/list/index.html
Normal file
0
widgets/list/index.html
Normal file
12
widgets/list/index.js
Normal file
12
widgets/list/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import Vue from 'vue'
|
||||
import vueCustomElement from 'vue-custom-element'
|
||||
import App from '../../components/List'
|
||||
// import router from './router'
|
||||
// import store from '../../store'
|
||||
|
||||
Vue.use(vueCustomElement)
|
||||
|
||||
// App.store = store
|
||||
// App.router = router
|
||||
Vue.customElement('gancio-widget', App)
|
||||
export default App
|
||||
3
widgets/list/style.css
Normal file
3
widgets/list/style.css
Normal file
@@ -0,0 +1,3 @@
|
||||
#gancio-widget {
|
||||
border: 1px solid black;
|
||||
}
|
||||
Reference in New Issue
Block a user