forked from x/icebergs
23 lines
1.3 KiB
JavaScript
23 lines
1.3 KiB
JavaScript
Volcanos(chat.ONIMPORT, {
|
|
_init: function(can, msg) {
|
|
if (can.isZoneMode()) { return can.onimport._vimer_zone(can, msg, can._output) }
|
|
can.onappend.style(can, "card", can._output)
|
|
can.page.Appends(can, can._output, msg.Table(function(value) { value.language == "JavaScript" && (value.language = "JS")
|
|
return {view: [[html.ITEM, value.status]], list: [
|
|
{view: [wiki.TITLE, html.DIV], list: [{img: value.avatar_url}, {view: mdb.NAME, list: [
|
|
{view: mdb.NAME, list: [{text: [value.name, "", mdb.NAME]}]},
|
|
{view: "label", list: [
|
|
{icon: "bi bi-file-earmark-code"}, {text: value.language||"None"},
|
|
{icon: "bi bi-share"}, {text: value.forks_count},
|
|
{icon: "bi bi-star"}, {text: value.stars_count},
|
|
{icon: "bi bi-folder2"}, {text: value.size},
|
|
{icon: "bi bi-clock"}, {text: value.updated_at},
|
|
]}
|
|
]}]}, {view: [wiki.CONTENT, html.DIV, value.description]},
|
|
{view: html.ACTION, inner: value.action, _init: function(target) { can.onappend.mores(can, target, value, 5) }},
|
|
]}
|
|
})), can.onappend.board(can, msg), can.onimport.layout(can), can.user.isWindows && can.onappend.scroll(can)
|
|
},
|
|
layout: function(can) { can.onlayout.expand(can, can._output, can.user.isMobile && !can.user.isLandscape()? can.ConfWidth(): 320) },
|
|
}, [""])
|