riot integration

This commit is contained in:
libetl 2018-08-29 00:24:37 +02:00
parent 94630b84c7
commit c7b7c52cd2
9 changed files with 8333 additions and 453 deletions

View File

@ -2,3 +2,4 @@
exports[`render a riot element can nest several tags 1`] = `"<matriochka><div><tag1><div>Inside tag1:<ul><li><tag2><div>Inside tag2:<ul><li><tag3><div>Inside tag3:<ul><li><tag4><div>Inside tag4:<ul><li><tag5><div>Inside tag5:<ul><li>Content</li></ul></div></tag5></li></ul></div></tag4></li></ul></div></tag3></li></ul></div></tag2></li></ul></div></tag1></div></matriochka>"`;
exports[`render a riot element can template some vars 1`] = `"<simpletest test=\\"with a parameter\\"><div>simple test (with a parameter). Oh, by the way (value is mapped to riotValue)</div></simpletest>"`;

View File

@ -83,8 +83,6 @@ describe('render a riot element', () => {
)
).toBe(true);
expect(rootElement.innerHTML).toEqual(
'<simpletest test="with a parameter"><div>simple test (with a parameter). Oh, by the way (value is mapped to riotValue)</div></simpletest>'
);
expect(rootElement.innerHTML).toMatchSnapshot();
});
});

View File

@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>vue</title>
<title>riot</title>
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>

View File

@ -4,12 +4,7 @@
</div>
<script>
import Hello from './components/Hello.vue'
export default {
name: 'app',
components: { Hello }
}
riot.mount('hello', {});
</script>
<style>

View File

@ -1,4 +1,3 @@
import Vue from 'vue'
import App from './App.tag'
import Hello from './components/Hello.tag' // eslint-disable-line no-unused-vars
import { mount } from 'riot'

View File

@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>vue</title>
<title>riot</title>
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>

View File

@ -4,12 +4,7 @@
</div>
<script>
import Hello from './components/Hello.vue'
export default {
name: 'app',
components: { Hello }
}
riot.mount('hello', {});
</script>
<style>

View File

@ -1,4 +1,3 @@
import Vue from 'vue'
import App from './App.tag'
import Hello from './components/Hello.tag' // eslint-disable-line no-unused-vars
import { mount } from 'riot'

8761
yarn.lock

File diff suppressed because it is too large Load Diff