* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update CHANGELOG.md

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update CHANGELOG.md

* Update CHANGELOG.md

* wip

* Update CHANGELOG.md

* wip

* wip

* wip

* wip
This commit is contained in:
syuilo
2018-10-07 11:06:17 +09:00
committed by GitHub
parent 0b98a2364b
commit d0570d7fe3
126 changed files with 1812 additions and 2273 deletions

View File

@@ -24,15 +24,13 @@ export default define({
return {
images: [],
fetching: true,
connection: null,
connectionId: null
connection: null
};
},
mounted() {
this.connection = (this as any).os.stream.getConnection();
this.connectionId = (this as any).os.stream.use();
this.connection = (this as any).os.stream.useSharedConnection('main');
this.connection.on('drive_file_created', this.onDriveFileCreated);
this.connection.on('driveFileCreated', this.onDriveFileCreated);
(this as any).api('drive/stream', {
type: 'image/*',
@@ -43,8 +41,7 @@ export default define({
});
},
beforeDestroy() {
this.connection.off('drive_file_created', this.onDriveFileCreated);
(this as any).os.stream.dispose(this.connectionId);
this.connection.dispose();
},
methods: {
onDriveFileCreated(file) {

View File

@@ -82,7 +82,6 @@ export default define({
data() {
return {
connection: null,
connectionId: null,
viewBoxY: 30,
stats: [],
fediGradientId: uuid(),
@@ -110,8 +109,7 @@ export default define({
}
},
mounted() {
this.connection = (this as any).os.streams.notesStatsStream.getConnection();
this.connectionId = (this as any).os.streams.notesStatsStream.use();
this.connection = (this as any).os.stream.useSharedConnection('notesStats');
this.connection.on('stats', this.onStats);
this.connection.on('statsLog', this.onStatsLog);
@@ -121,9 +119,7 @@ export default define({
});
},
beforeDestroy() {
this.connection.off('stats', this.onStats);
this.connection.off('statsLog', this.onStatsLog);
(this as any).os.streams.notesStatsStream.dispose(this.connectionId);
this.connection.dispose();
},
methods: {
toggle() {

View File

@@ -45,8 +45,7 @@ export default define({
return {
fetching: true,
meta: null,
connection: null,
connectionId: null
connection: null
};
},
mounted() {
@@ -55,11 +54,10 @@ export default define({
this.fetching = false;
});
this.connection = (this as any).os.streams.serverStatsStream.getConnection();
this.connectionId = (this as any).os.streams.serverStatsStream.use();
this.connection = (this as any).os.stream.useSharedConnection('serverStats');
},
beforeDestroy() {
(this as any).os.streams.serverStatsStream.dispose(this.connectionId);
this.connection.dispose();
},
methods: {
toggle() {