mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-09 21:34:46 +02:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a827b6028d | ||
|
|
4517bf7342 | ||
|
|
b21287262e | ||
|
|
c1b47a2119 | ||
|
|
caf625afee | ||
|
|
2bad3865a3 | ||
|
|
3f7d248684 | ||
|
|
6e179e7cde | ||
|
|
87f248b8ec | ||
|
|
027140eccc | ||
|
|
92cf205c66 | ||
|
|
fa3299840f |
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
|
||||
-----
|
||||
|
||||
|
||||
@@ -941,27 +941,27 @@ desktop/views/pages/admin/admin.unverify-user.vue:
|
||||
|
||||
desktop/views/pages/admin/admin.chart.vue:
|
||||
title: "チャート"
|
||||
per-day: "1時間ごと"
|
||||
per-hour: "1日ごと"
|
||||
per-day: "1日ごと"
|
||||
per-hour: "1時間ごと"
|
||||
notes: "投稿"
|
||||
users: "ユーザー"
|
||||
drive: "ドライブ"
|
||||
local-notes: "ローカルの投稿"
|
||||
remote-notes: "リモートの投稿"
|
||||
local-notes-total: "ローカルの投稿 (累計)"
|
||||
remote-notes-total: "リモートの投稿 (累計)"
|
||||
local-users: "ローカルのユーザー"
|
||||
remote-users: "リモートのユーザー"
|
||||
local-users-total: "ローカルのユーザー (累計)"
|
||||
remote-users-total: "リモートのユーザー (累計)"
|
||||
local-drive: "ローカルのドライブ使用量"
|
||||
remote-drive: "リモートのドライブ使用量"
|
||||
local-drive-total: "ローカルのドライブ使用量 (累計)"
|
||||
remote-drive-total: "リモートのドライブ使用量 (累計)"
|
||||
local-drive-files: "ローカルのドライブのファイル数"
|
||||
remote-drive-files: "リモートのドライブのファイル数"
|
||||
local-drive-files-total: "ローカルのドライブのファイル数 (累計)"
|
||||
remote-drive-files-total: "リモートのドライブのファイル数 (累計)"
|
||||
local-notes: "ローカルの投稿の増減"
|
||||
remote-notes: "リモートの投稿の増減"
|
||||
local-notes-total: "ローカルの投稿の累計"
|
||||
remote-notes-total: "リモートの投稿の累計"
|
||||
local-users: "ローカルのユーザーの増減"
|
||||
remote-users: "リモートのユーザーの増減"
|
||||
local-users-total: "ローカルのユーザーの累計"
|
||||
remote-users-total: "リモートのユーザーの累計"
|
||||
local-drive: "ローカルのドライブ使用量の増減"
|
||||
remote-drive: "リモートのドライブ使用量の増減"
|
||||
local-drive-total: "ローカルのドライブ使用量の累計"
|
||||
remote-drive-total: "リモートのドライブ使用量の累計"
|
||||
local-drive-files: "ローカルのドライブのファイル数の増減"
|
||||
remote-drive-files: "リモートのドライブのファイル数の増減"
|
||||
local-drive-files-total: "ローカルのドライブのファイル数の累計"
|
||||
remote-drive-files-total: "リモートのドライブのファイル数の累計"
|
||||
|
||||
desktop/views/pages/deck/deck.tl-column.vue:
|
||||
is-media-only: "メディア投稿のみ"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "misskey",
|
||||
"author": "syuilo <i@syuilo.com>",
|
||||
"version": "8.3.0",
|
||||
"clientVersion": "1.0.8825",
|
||||
"version": "8.5.0",
|
||||
"clientVersion": "1.0.8834",
|
||||
"codename": "nighthike",
|
||||
"main": "./built/index.js",
|
||||
"private": true,
|
||||
@@ -150,6 +150,7 @@
|
||||
"loader-utils": "1.1.0",
|
||||
"lodash.assign": "4.2.0",
|
||||
"mecab-async": "0.1.2",
|
||||
"merge-options": "1.0.1",
|
||||
"minio": "7.0.0",
|
||||
"mkdirp": "0.5.1",
|
||||
"mocha": "5.2.0",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import { Line } from 'vue-chartjs';
|
||||
import * as mergeOptions from 'merge-options';
|
||||
|
||||
export default Vue.extend({
|
||||
extends: Line,
|
||||
@@ -21,8 +22,9 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
render() {
|
||||
this.renderChart(this.data, Object.assign({
|
||||
responsive: false,
|
||||
this.renderChart(this.data, mergeOptions({
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
scales: {
|
||||
xAxes: [{
|
||||
type: 'time',
|
||||
|
||||
@@ -30,7 +30,9 @@
|
||||
<a @click="span = 'day'">%i18n:@per-day%</a> | <a @click="span = 'hour'">%i18n:@per-hour%</a>
|
||||
</div>
|
||||
</header>
|
||||
<x-chart v-if="chart" :data="data[0]" :opts="data[1]" :width="720" :height="300"/>
|
||||
<div>
|
||||
<x-chart v-if="chart" :data="data[0]" :opts="data[1]"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -42,13 +44,9 @@ export default Vue.extend({
|
||||
components: {
|
||||
XChart
|
||||
},
|
||||
props: {
|
||||
chart: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
chart: null,
|
||||
chartType: 'local-notes',
|
||||
span: 'hour'
|
||||
};
|
||||
@@ -83,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 => ({
|
||||
@@ -139,7 +142,7 @@ export default Vue.extend({
|
||||
return [{
|
||||
datasets: [{
|
||||
label: local ? 'Local Notes' : 'Remote Notes',
|
||||
fill: false,
|
||||
fill: true,
|
||||
borderColor: '#f6584f',
|
||||
borderWidth: 2,
|
||||
pointBackgroundColor: '#fff',
|
||||
@@ -160,7 +163,7 @@ export default Vue.extend({
|
||||
return [{
|
||||
datasets: [{
|
||||
label: local ? 'Local Users' : 'Remote Users',
|
||||
fill: false,
|
||||
fill: true,
|
||||
borderColor: '#f6584f',
|
||||
borderWidth: 2,
|
||||
pointBackgroundColor: '#fff',
|
||||
@@ -173,7 +176,7 @@ export default Vue.extend({
|
||||
driveChart(local: boolean, total: boolean): any {
|
||||
const data = this.stats.slice().reverse().map(x => ({
|
||||
date: new Date(x.date),
|
||||
count: local ?
|
||||
size: local ?
|
||||
total ? x.drive.local.totalSize : x.drive.local.diffSize :
|
||||
total ? x.drive.remote.totalSize : x.drive.remote.diffSize
|
||||
}));
|
||||
@@ -181,12 +184,12 @@ export default Vue.extend({
|
||||
return [{
|
||||
datasets: [{
|
||||
label: local ? 'Local Drive Usage' : 'Remote Drive Usage',
|
||||
fill: false,
|
||||
fill: true,
|
||||
borderColor: '#f6584f',
|
||||
borderWidth: 2,
|
||||
pointBackgroundColor: '#fff',
|
||||
lineTension: 0,
|
||||
data: data.map(x => ({ t: x.date, y: x.count }))
|
||||
data: data.map(x => ({ t: x.date, y: x.size }))
|
||||
}]
|
||||
}, {
|
||||
scales: {
|
||||
@@ -238,4 +241,9 @@ export default Vue.extend({
|
||||
> *:last-child
|
||||
margin-left auto
|
||||
|
||||
> div
|
||||
> *
|
||||
display block
|
||||
height 300px
|
||||
|
||||
</style>
|
||||
|
||||
@@ -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) => {
|
||||
Reference in New Issue
Block a user