mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 07:45:54 +02:00
Fix
This commit is contained in:
@@ -8,12 +8,10 @@
|
||||
height 256px
|
||||
</style>
|
||||
<script>
|
||||
class Vec2 {
|
||||
constructor(x, y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
}
|
||||
const Vec2 = function(x, y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
};
|
||||
|
||||
this.on('mount', () => {
|
||||
this.draw()
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
</style>
|
||||
<script>
|
||||
this.bytesToSize = require('../../../common/scripts/bytesToSize.js');
|
||||
this.bytesToSize = require('../../../common/scripts/bytes-to-size');
|
||||
|
||||
this.mixin('i');
|
||||
|
||||
@@ -203,7 +203,7 @@
|
||||
type: 'file',
|
||||
id: this.file.id,
|
||||
file: this.file
|
||||
});
|
||||
}));
|
||||
this.isDragging = true;
|
||||
|
||||
// 親ブラウザに対して、ドラッグが開始されたフラグを立てる
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
this.year = ny;
|
||||
this.month = nm + 1;
|
||||
this.day = nd;
|
||||
this.weekDay = ['日', '月', '火', '水' '木', '金', '土'][now.getDay()];
|
||||
this.weekDay = ['日', '月', '火', '水', '木', '金', '土'][now.getDay()];
|
||||
|
||||
this.dayNumer = now - new Date(ny, nm, nd);
|
||||
this.dayDenom = 1000/*ms*/ * 60/*s*/ * 60/*m*/ * 24/*h*/;
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</style>
|
||||
<script>
|
||||
this.settings = () => {
|
||||
const w = riot.mount(document.body.appendChild(document.createElement('mk-settings-window')[0];
|
||||
const w = riot.mount(document.body.appendChild(document.createElement('mk-settings-window')))[0];
|
||||
w.switch('notification');
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -139,6 +139,7 @@
|
||||
wait: false
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
this.onquote = () => {
|
||||
this.quote = true;
|
||||
|
||||
@@ -8,15 +8,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<script>
|
||||
this.mixin('date-stringify');
|
||||
this.mixin('user-preview');
|
||||
|
||||
this.post = this.opts.post
|
||||
|
||||
this.title = @date-stringify this.post.created_at
|
||||
|
||||
</script>
|
||||
<style>
|
||||
:scope
|
||||
display block
|
||||
@@ -97,4 +88,11 @@
|
||||
font-size 80%
|
||||
|
||||
</style>
|
||||
<script>
|
||||
this.mixin('date-stringify');
|
||||
this.mixin('user-preview');
|
||||
|
||||
this.post = this.opts.post;
|
||||
this.title = this.dateStringify(this.post.created_at);
|
||||
</script>
|
||||
</mk-timeline-post-sub>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
this.mixin('i');
|
||||
|
||||
this.openPostForm = () => {
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-post-form-window');
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-post-form-window')));
|
||||
};
|
||||
|
||||
this.on('mount', () => {
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
});
|
||||
|
||||
this.fetch(() => this.trigger('loaded'));
|
||||
});
|
||||
});
|
||||
|
||||
this.on('unmount', () => {
|
||||
|
||||
Reference in New Issue
Block a user