Commit 927589fec8bb0961a8205fae25069ff9a9eb1da4
update to latest mutant with "h" that supports mcss classes
Matt McKegg committed on 2/17/2017, 7:42:01 AMParent: bbaea6c2df4812b056239b3ce3013c3d00176fc9
Files changed
main-window.js | changed |
modules/feed/html/rollup.js | changed |
modules/feed/html/thread.js | changed |
package.json | changed |
main-window.js | ||
---|---|---|
@@ -77,10 +77,9 @@ | ||
77 | 77 | })) |
78 | 78 | |
79 | 79 | insertCss(require('./styles')) |
80 | 80 | |
81 | - return h('div', { | |
82 | - classList: `MainWindow -${process.platform}`, | |
81 | + return h(`MainWindow -${process.platform}`, { | |
83 | 82 | events: { |
84 | 83 | click: catchLinks |
85 | 84 | } |
86 | 85 | }, [ |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -45,10 +45,9 @@ | ||
45 | 45 | var bumpFilter = opts && opts.bumpFilter |
46 | 46 | var windowSize = opts && opts.windowSize |
47 | 47 | var waitFor = opts && opts.waitFor || true |
48 | 48 | |
49 | - var updateLoader = h('a', { | |
50 | - className: 'Notifier -loader', | |
49 | + var updateLoader = h('a Notifier -loader', { | |
51 | 50 | href: '#', |
52 | 51 | 'ev-click': refresh |
53 | 52 | }, [ |
54 | 53 | 'Show ', |
@@ -59,15 +58,14 @@ | ||
59 | 58 | var content = h('section.content', { |
60 | 59 | hidden: computed(sync, s => !s) |
61 | 60 | }) |
62 | 61 | |
63 | - var container = h('div', { | |
64 | - className: 'Scroller', | |
65 | - style: { overflow: 'auto' }, | |
62 | + var container = h('Scroller', { | |
63 | + style: { overflow: 'auto' } | |
66 | 64 | }, [ |
67 | 65 | h('div.wrapper', [ |
68 | 66 | h('section.prepend', opts.prepend), |
69 | - when(sync, null, h('div', {className: 'Loading -large'})), | |
67 | + when(sync, null, h('Loading -large')), | |
70 | 68 | content |
71 | 69 | ]) |
72 | 70 | ]) |
73 | 71 | |
@@ -189,9 +187,9 @@ | ||
189 | 187 | api.profile.html.manyPeople(item.digs), ' dug this message' |
190 | 188 | ]) |
191 | 189 | } |
192 | 190 | |
193 | - return h('div', {className: 'FeedEvent'}, [ | |
191 | + return h('FeedEvent', [ | |
194 | 192 | meta, |
195 | 193 | renderedMessage, |
196 | 194 | when(replies.length, [ |
197 | 195 | when(item.replies.length > replies.length, |
@@ -215,15 +213,15 @@ | ||
215 | 213 | ]) |
216 | 214 | } |
217 | 215 | |
218 | 216 | if (meta || replies.length) { |
219 | - return h('div', {className: 'FeedEvent'}, [ | |
217 | + return h('FeedEvent', [ | |
220 | 218 | meta, h('div.replies', replies) |
221 | 219 | ]) |
222 | 220 | } |
223 | 221 | } |
224 | 222 | } else if (item.type === 'follow') { |
225 | - return h('div', {className: 'FeedEvent -follow'}, [ | |
223 | + return h('FeedEvent -follow', [ | |
226 | 224 | h('div.meta', { |
227 | 225 | title: names(item.contacts) |
228 | 226 | }, [ |
229 | 227 | api.profile.html.person(item.id), ' followed ', api.profile.html.manyPeople(item.contacts) |
modules/feed/html/thread.js | ||
---|---|---|
@@ -11,9 +11,9 @@ | ||
11 | 11 | exports.create = function (api) { |
12 | 12 | return nest('feed.html.thread', function (rootId) { |
13 | 13 | var thread = api.feed.obs.thread(rootId) |
14 | 14 | |
15 | - var container = h('div', {className: 'Thread'}, [ | |
15 | + var container = h('Thread', [ | |
16 | 16 | map(thread.messages, (msg) => { |
17 | 17 | return computed([msg, thread.previousKey(msg)], (msg, previousId) => { |
18 | 18 | return api.message.html.render(msg, {previousId}) |
19 | 19 | }) |
package.json | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 | "is-visible": "^2.1.1", |
28 | 28 | "level": "~1.4.0", |
29 | 29 | "level-memview": "0.0.0", |
30 | 30 | "micro-css": "^1.0.0", |
31 | - "mutant": "^3.14.0", | |
31 | + "mutant": "^3.15.0", | |
32 | 32 | "mutant-pull-reduce": "^1.0.1", |
33 | 33 | "non-private-ip": "^1.4.1", |
34 | 34 | "on-change-network": "0.0.2", |
35 | 35 | "on-wakeup": "^1.0.1", |
Built with git-ssb-web