不要なものを削除
This commit is contained in:
parent
f64c0d0bd5
commit
3f76fc2b14
@ -1,9 +1 @@
|
||||
export default {
|
||||
version: '2.0.0',
|
||||
changelog: [
|
||||
'インスタンスの接続エラーにより後続処理が行えなくなる重大な不具合を修正',
|
||||
'全員分の算出が終わるまで、ランキングを非表示に',
|
||||
],
|
||||
};
|
||||
|
||||
export const defaultTemplate = '昨日のMisskeyの活動は\n\nノート: {notesCount}({notesDelta})\nフォロー : {followingCount}({followingDelta})\nフォロワー :{followersCount}({followersDelta})\n\nでした。\n{url}';
|
||||
|
@ -1,9 +1,5 @@
|
||||
import views from 'koa-views';
|
||||
|
||||
import constant from './const';
|
||||
|
||||
export const render = views(__dirname + '/views', {
|
||||
extension: 'pug', options: {
|
||||
...constant,
|
||||
}
|
||||
extension: 'pug',
|
||||
});
|
||||
|
@ -2,7 +2,6 @@ import Koa from 'koa';
|
||||
import bodyParser from 'koa-bodyparser';
|
||||
import { Action, useKoaServer } from 'routing-controllers';
|
||||
|
||||
import constant from './const';
|
||||
import { config } from '../config';
|
||||
import { render } from './render';
|
||||
import { router } from './router';
|
||||
@ -13,7 +12,7 @@ import 'reflect-metadata';
|
||||
export default (): void => {
|
||||
const app = new Koa();
|
||||
|
||||
console.log('Misskey Tools v' + constant.version);
|
||||
console.log('Misskey Tools');
|
||||
|
||||
console.log('Initializing DB connection...');
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import _const from '../const';
|
||||
|
||||
export const ua = `Mozilla/5.0 MisskeyTools/${_const.version} +https://github.com/Xeltica/MisskeyTools Node/${process.version}`;
|
||||
export const ua = `Mozilla/5.0 MisskeyTools +https://github.com/Xeltica/MisskeyTools Node/${process.version}`;
|
||||
|
||||
axios.defaults.headers['User-Agent'] = ua;
|
||||
axios.defaults.validateStatus = (stat) => stat < 500;
|
||||
|
Loading…
Reference in New Issue
Block a user