[Client] 良い感じに

This commit is contained in:
syuilo
2017-02-16 17:20:45 +09:00
parent d7a16d7ab1
commit 35bc0c024f
7 changed files with 230 additions and 15 deletions

View File

@ -0,0 +1,2 @@
const gcd = (a, b) => !b ? a : gcd(b, a % b);
module.exports = gcd;

View File

@ -1,11 +1,10 @@
<mk-file-type-icon><i class="fa fa-file-image-o" if={ kind == 'image' }></i>
<mk-file-type-icon>
<i class="fa fa-file-image-o" if={ kind == 'image' }></i>
<style type="stylus">
:scope
display inline
</style>
<script>
@file = @opts.file
@kind = @file.type.split \/ .0
@kind = @opts.type.split \/ .0
</script>
</mk-file-type-icon>