Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1ac6ac

Browse files
committed
Clean up mithril sample
1 parent 205a90e commit c1ac6ac

File tree

11 files changed

+19
-8941
lines changed

11 files changed

+19
-8941
lines changed

‎examples/mithril/.babelrc‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎examples/mithril/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ npm install
1010
from this directory:
1111
```
1212
npm install
13-
npm run rollup
13+
wright index.html
1414
```
1515

1616
To see the result try and go change the js and css files.

‎examples/mithril/browserify.js‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎examples/mithril/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<link rel="stylesheet" type="text/css" href="/css/style.css">
66
</head>
77
<body>
8-
<script src="/js/app.js" type="text/javascript" charset="utf-8"></script>
8+
<script src="/js/app.js" type="module" charset="utf-8"></script>
99
</body>
1010
</html>

‎examples/mithril/js/pages/js.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
},
1111
view: vnode => [
1212
m('h1', 'js'),
13-
m('p', 'This example shows how keeping the state in the browser is possible while doing hot reloading of anything'),
13+
m('p', 'Thisexample shows how keeping the state in the browser is possible while doing hot reloading of anything'),
1414
m('p', 'ms: ' + (Date.now() - vnode.state.start))
1515
]
1616
}

‎examples/mithril/js/routes.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import intro from './pages/intro.js'
55
import js from './pages/js.js'
66
import css from './pages/css.js'
77

8-
m.route.prefix('')
8+
m.route.prefix = ''
99

1010
const routes = {
1111
'/login' : login,

0 commit comments

Comments
 (0)