Created
September 1, 2018 15:09
-
-
Save tamaina/0f174683aa5d842ffe1ceb11cf6a5180 to your computer and use it in GitHub Desktop.
ターミナルが落ちる原因を探せ!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin instancesList(type, colors) | |
.instances-list.list-group | |
each instance, r in instances | |
- | |
let iinfo = instancesInfos[r] | |
let ilang = (instance.langs || instance.langs.length > 0 ) ? instance.langs.some(locale) : true | |
let itype = true | |
switch (type) { | |
case 'selected': | |
itype = !!instance.selected | |
break | |
case 'nonselected': | |
itype = !instance.selected | |
break | |
case 'suspended': | |
itype = !info | |
break | |
} | |
let class = colors ? `text-${colors[0]} bg-${colors[1]}` : '' | |
if(ilang && itype) | |
a(href=`https://${instance.url}` target="_blank" rel="noopener" class=class).instance.list-group-item.list-group-item-action.flex-column.align-items-start | |
h4.jm-h4 | |
if(iinfo && iinfo.meta && iinfo.meta.disableRegistration): +fa_fw('lock') | |
| #{(instance.name || iinfo.meta.name != 'Misskey' || iinfo.meta.name != instance.url) ? `${instance.name || iinfo.meta.name}<span class="text-muted font-weight-normal"> - ${instance.url}</span>` : instance.url} | |
p.m-0=instance.description | |
.instance-infos.d-flex.flex-wrap.text-muted.small | |
if(iinfo) | |
if(iinfo.stats.originalUsersCount) | |
.instance-infos-item.mr-2 | |
+fa_fw('user') | |
| #{numeral(iinfo.stats.originalUsersCount).format('0.0a')} | |
if(iinfo.stats.originalNotesCount) | |
.instance-infos-item.mr-2 | |
+fa_fw('pencil-alt') | |
| #{numeral(iinfo.stats.originalNotesCount).format('0.0a')} | |
if(iinfo.meta.version) | |
.instance-infos-item v#{iinfo.meta.version} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment