mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 05:43:07 +02:00
commit
a827b6028d
5 changed files with 20 additions and 16 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -5,6 +5,16 @@ ChangeLog
|
|||
|
||||
This document describes breaking changes only.
|
||||
|
||||
8.0.0
|
||||
-----
|
||||
|
||||
### Migration
|
||||
|
||||
起動する前に、`node cli/migration/8.0.0`してください。
|
||||
|
||||
Please run `node cli/migration/8.0.0` before launch.
|
||||
|
||||
|
||||
7.0.0
|
||||
-----
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "misskey",
|
||||
"author": "syuilo <i@syuilo.com>",
|
||||
"version": "8.4.0",
|
||||
"clientVersion": "1.0.8831",
|
||||
"version": "8.5.0",
|
||||
"clientVersion": "1.0.8834",
|
||||
"codename": "nighthike",
|
||||
"main": "./built/index.js",
|
||||
"private": true,
|
||||
|
|
|
@ -44,13 +44,9 @@ export default Vue.extend({
|
|||
components: {
|
||||
XChart
|
||||
},
|
||||
props: {
|
||||
chart: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
chart: null,
|
||||
chartType: 'local-notes',
|
||||
span: 'hour'
|
||||
};
|
||||
|
@ -85,6 +81,11 @@ export default Vue.extend({
|
|||
);
|
||||
}
|
||||
},
|
||||
created() {
|
||||
(this as any).api('chart').then(chart => {
|
||||
this.chart = chart;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
notesChart(local: boolean): any {
|
||||
const data = this.stats.slice().reverse().map(x => ({
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<main>
|
||||
<div v-show="page == 'dashboard'">
|
||||
<x-dashboard/>
|
||||
<x-chart :chart="chart"/>
|
||||
<x-chart/>
|
||||
</div>
|
||||
<div v-if="page == 'users'">
|
||||
<x-suspend-user/>
|
||||
|
@ -49,11 +49,6 @@ export default Vue.extend({
|
|||
chart: null
|
||||
};
|
||||
},
|
||||
created() {
|
||||
(this as any).api('admin/chart').then(chart => {
|
||||
this.chart = chart;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
nav(page: string) {
|
||||
this.page = page;
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import Stats, { IStats } from '../../../../models/stats';
|
||||
import Stats, { IStats } from '../../../models/stats';
|
||||
|
||||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
||||
|
||||
export const meta = {
|
||||
requireCredential: true,
|
||||
requireAdmin: true
|
||||
};
|
||||
|
||||
export default (params: any) => new Promise(async (res, rej) => {
|
Loading…
Reference in a new issue