12033: Add mithril via npm.
[arvados.git] / apps / workbench / app / assets / javascripts / components / test.js
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 window.components = window.components || {}
6 window.components.test = {
7     view: function(vnode) {
8         return m('div.mithril-test-component', [
9             m('p', {
10                 onclick: m.withAttr('zzz', function(){}),
11             }, [
12                 'mithril is working; rendered at t=',
13                 (new Date()).getTime(),
14                 'ms (click to re-render)',
15             ]),
16         ])
17     },
18 }