git ssb

0+

dangerousbeans / dangerous_patchbay



forked from Dominic / patchbay

Commit 9746cd345f014701f5911b233fe5aec3e3c52edb

sidebar

Joran committed on 12/18/2016, 1:13:21 AM
Parent: c1a44a1e45c1d9025cd6a94287b4d01a93c37d64

Files changed

modules_basic/avatar-edit.jschanged
modules_basic/avatar-profile.jschanged
modules_basic/thread.jschanged
modules_core/app.jschanged
modules_core/message-confirm.jschanged
modules_core/tabs.jschanged
style.csschanged
modules_basic/avatar-edit.jsView
@@ -49,9 +49,9 @@
4949 exports.create = function (api) {
5050 return function (id) {
5151
5252 var img = visualize(new Buffer(id.substring(1), 'base64'), 256)
53- img.classList.add('avatar--large')
53 + img.classList.add('avatar')
5454
5555 var lb = hyperlightbox()
5656 var name_input = h('input', {placeholder: 'rename'})
5757 var name = api.avatar_name(id)
@@ -83,9 +83,9 @@
8383 ev.preventDefault()
8484 selected = image
8585 img.src = api.blob_url(image.link || image)
8686 }},
87- h('img.avatar--thumbnail', {src: api.blob_url(image)})
87 + h('img.avatar', {src: api.blob_url(image)})
8888 )
8989 )
9090 })
9191 )
modules_basic/avatar-profile.jsView
@@ -31,9 +31,9 @@
3131
3232 exports.create = function (api) {
3333
3434 function image_link (id) {
35- return api.avatar_image_link(id, 'thumbnail')
35 + return api.avatar_image_link(id, 'avatar')
3636 }
3737
3838 return function (id) {
3939
@@ -84,5 +84,4 @@
8484 )
8585 }
8686
8787 }
88-
modules_basic/thread.jsView
@@ -73,9 +73,9 @@
7373 root: id,
7474 branch: id //mutated when thread is loaded.
7575 }
7676
77- var content = h('div.column.scroller__content')
77 + var content = h('div.scroller__content')
7878 var div = h('div.column.scroller',
7979 {style: {'overflow-y': 'auto'}},
8080 h('div.scroller__wrapper',
8181 content,
modules_core/app.jsView
@@ -8,8 +8,10 @@
88 return function () {
99
1010 document.head.appendChild(h('link', {rel: "stylesheet", href:"dev-style.css"}))
1111
12 + document.head.appendChild(h('link', {rel: "stylesheet", href:"https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"}))
13 +
1214 document.head.appendChild(h('script', {src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"}))
1315 document.head.appendChild(h('script', {src: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"}))
1416
1517 document.head.appendChild(h('style', require('../style.css.json')))
@@ -27,18 +29,36 @@
2729
2830 console.log(hash() || 'tabs')
2931 var view = api.screen_view(hash() || 'tabs')
3032
31- var screen = h('div.screen.column', view)
33 + var sidebar = h("div#sidebar.column.col-sm-2.col-xs-1.sidebar-offcanvas",
34 + [ h("ul.nav", [
35 + h("li", [ h("a.visible-xs.text-center", {"attributes":{"href":"#"},"dataset":{"toggle":"offcanvas"}}, [ h("i.glyphicon.glyphicon-chevron-right") ]) ]) ]),
36 + h("ul#lg-menu.nav.hidden-xs", [
37 + h("li.active", [ h("a", {"attributes":{"href":"#featured"}}, [ h("i.glyphicon.glyphicon-list-alt"), " Featured" ]) ]),
38 + h("li", [ h("a", {"attributes":{"href":"#stories"}}, [ h("i.glyphicon.glyphicon-list"), " Stories" ]) ]),
39 + h("li", [ h("a", {"attributes":{"href":"#"}}, [ h("i.glyphicon.glyphicon-paperclip"), " Saved" ]) ]),
40 + h("li", [ h("a", {"attributes":{"href":"#"}}, [ h("i.glyphicon.glyphicon-refresh"), " Refresh" ]) ]) ]),
41 + h("ul#sidebar-footer.list-unstyled.hidden-xs",
42 + [ h("li", [ h("a", {"attributes":{"href":"http://ssbc.github.io"}}, [ h("h3", [ "SSBC Patchbay" ]), " "]) ]) ]),
3243
44 + h("ul#xs-menu.nav.visible-xs", [ "\t",
45 + h("li", [ h("a.text-center", {"attributes":{"href":"#featured"}}, [ h("i.glyphicon.glyphicon-list-alt") ]) ]),
46 + h("li", [ h("a.text-center", {"attributes":{"href":"#stories"}}, [ h("i.glyphicon.glyphicon-list") ]) ]), "\t",
47 + h("li", [ h("a.text-center", {"attributes":{"href":"#"}}, [ h("i.glyphicon.glyphicon-paperclip") ]) ]),
48 + h("li", [ h("a.text-center", {"attributes":{"href":"#"}}, [ h("i.glyphicon.glyphicon-refresh") ]) ]) ]) ])
49 +
50 + var screen = h('div.screen.column.col-sm-10.col-xs-11', view)
51 +
3352 window.onhashchange = function (ev) {
3453 var _view = view
3554 view = api.screen_view(hash() || 'tabs')
3655
3756 if(_view) screen.replaceChild(view, _view)
3857 else document.body.appendChild(view)
3958 }
4059
60 + document.body.appendChild(sidebar)
4161 document.body.appendChild(screen)
4262
4363 return screen
4464 }
modules_core/message-confirm.jsView
@@ -36,9 +36,9 @@
3636 content: content
3737 }
3838 }
3939
40- var okay = h('button.btn.btn-primary', 'okay', {onclick: function () {
40 + var okay = h('button.btn.btn-primary', 'Send', {onclick: function () {
4141 lb.remove()
4242 api.publish(content, cb)
4343 }})
4444
@@ -53,10 +53,10 @@
5353
5454 lb.show(h('div.column.message-confirm',
5555 h('div.panel.panel-default',
5656 h('div.panel-heading',
57- h('div.avatar', api.avatar(msg.value.author, 'avatar')),
58- h('div.message_meta.row', api.message_meta(msg))
57 + h('div.message_meta.pull-right', api.message_meta(msg)),
58 + h('div.avatar', api.avatar(msg.value.author, 'avatar'))
5959 ),
6060 h('div.panel-body', api.message_content(msg)
6161 || h('pre', JSON.stringify(msg, null, 2)))
6262 ),
modules_core/tabs.jsView
@@ -57,9 +57,9 @@
5757 })
5858
5959 //reposition hypertabs menu to inside a container...
6060 tabs.insertBefore(
61- h('nav.navbar.navbar-default',
61 + h('nav.navbar.navbar-blue.navbar-static-top',
6262 h('div.container-fluid', tabs.firstChild, //tabs
6363 search, api.menu())
6464 ), tabs.firstChild)
6565 // tabs.insertBefore(search, tabs.firstChild.nextSibling)
style.cssView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 129175 bytes
New file size: 129607 bytes

Built with git-ssb-web