git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 927589fec8bb0961a8205fae25069ff9a9eb1da4

update to latest mutant with "h" that supports mcss classes

Matt McKegg committed on 2/17/2017, 7:42:01 AM
Parent: bbaea6c2df4812b056239b3ce3013c3d00176fc9

Files changed

main-window.jschanged
modules/feed/html/rollup.jschanged
modules/feed/html/thread.jschanged
package.jsonchanged
main-window.jsView
@@ -77,10 +77,9 @@
7777 }))
7878
7979 insertCss(require('./styles'))
8080
81- return h('div', {
82- classList: `MainWindow -${process.platform}`,
81+ return h(`MainWindow -${process.platform}`, {
8382 events: {
8483 click: catchLinks
8584 }
8685 }, [
modules/feed/html/rollup.jsView
@@ -45,10 +45,9 @@
4545 var bumpFilter = opts && opts.bumpFilter
4646 var windowSize = opts && opts.windowSize
4747 var waitFor = opts && opts.waitFor || true
4848
49- var updateLoader = h('a', {
50- className: 'Notifier -loader',
49+ var updateLoader = h('a Notifier -loader', {
5150 href: '#',
5251 'ev-click': refresh
5352 }, [
5453 'Show ',
@@ -59,15 +58,14 @@
5958 var content = h('section.content', {
6059 hidden: computed(sync, s => !s)
6160 })
6261
63- var container = h('div', {
64- className: 'Scroller',
65- style: { overflow: 'auto' },
62+ var container = h('Scroller', {
63+ style: { overflow: 'auto' }
6664 }, [
6765 h('div.wrapper', [
6866 h('section.prepend', opts.prepend),
69- when(sync, null, h('div', {className: 'Loading -large'})),
67+ when(sync, null, h('Loading -large')),
7068 content
7169 ])
7270 ])
7371
@@ -189,9 +187,9 @@
189187 api.profile.html.manyPeople(item.digs), ' dug this message'
190188 ])
191189 }
192190
193- return h('div', {className: 'FeedEvent'}, [
191+ return h('FeedEvent', [
194192 meta,
195193 renderedMessage,
196194 when(replies.length, [
197195 when(item.replies.length > replies.length,
@@ -215,15 +213,15 @@
215213 ])
216214 }
217215
218216 if (meta || replies.length) {
219- return h('div', {className: 'FeedEvent'}, [
217+ return h('FeedEvent', [
220218 meta, h('div.replies', replies)
221219 ])
222220 }
223221 }
224222 } else if (item.type === 'follow') {
225- return h('div', {className: 'FeedEvent -follow'}, [
223+ return h('FeedEvent -follow', [
226224 h('div.meta', {
227225 title: names(item.contacts)
228226 }, [
229227 api.profile.html.person(item.id), ' followed ', api.profile.html.manyPeople(item.contacts)
modules/feed/html/thread.jsView
@@ -11,9 +11,9 @@
1111 exports.create = function (api) {
1212 return nest('feed.html.thread', function (rootId) {
1313 var thread = api.feed.obs.thread(rootId)
1414
15- var container = h('div', {className: 'Thread'}, [
15+ var container = h('Thread', [
1616 map(thread.messages, (msg) => {
1717 return computed([msg, thread.previousKey(msg)], (msg, previousId) => {
1818 return api.message.html.render(msg, {previousId})
1919 })
package.jsonView
@@ -27,9 +27,9 @@
2727 "is-visible": "^2.1.1",
2828 "level": "~1.4.0",
2929 "level-memview": "0.0.0",
3030 "micro-css": "^1.0.0",
31- "mutant": "^3.14.0",
31+ "mutant": "^3.15.0",
3232 "mutant-pull-reduce": "^1.0.1",
3333 "non-private-ip": "^1.4.1",
3434 "on-change-network": "0.0.2",
3535 "on-wakeup": "^1.0.1",

Built with git-ssb-web