mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 22:35:53 +02:00
なんかもうめっちゃ変えた
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as riot from 'riot';
|
||||
const route = require('page');
|
||||
import * as route from 'page';
|
||||
let page = null;
|
||||
|
||||
export default me => {
|
||||
@@ -22,7 +22,7 @@ export default me => {
|
||||
}
|
||||
|
||||
// EXEC
|
||||
route();
|
||||
(route as any)();
|
||||
};
|
||||
|
||||
function mount(content) {
|
||||
@@ -343,7 +343,7 @@
|
||||
};
|
||||
|
||||
this.changeFile = () => {
|
||||
this.refs.file.files.forEach(this.upload);
|
||||
Array.from(this.refs.file.files).forEach(this.upload);
|
||||
};
|
||||
|
||||
this.selectFile = () => {
|
||||
@@ -367,7 +367,7 @@
|
||||
};
|
||||
|
||||
this.onpaste = e => {
|
||||
e.clipboardData.items.forEach(item => {
|
||||
Array.from(e.clipboardData.items).forEach(item => {
|
||||
if (item.kind == 'file') {
|
||||
this.upload(item.getAsFile());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user