不要なものを削除

This commit is contained in:
Xeltica 2021-10-18 01:03:06 +09:00
parent f64c0d0bd5
commit 3f76fc2b14
4 changed files with 3 additions and 17 deletions

View File

@ -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}'; export const defaultTemplate = '昨日のMisskeyの活動は\n\nート: {notesCount}({notesDelta})\nフォロー : {followingCount}({followingDelta})\nフォロワー :{followersCount}({followersDelta})\n\nでした。\n{url}';

View File

@ -1,9 +1,5 @@
import views from 'koa-views'; import views from 'koa-views';
import constant from './const';
export const render = views(__dirname + '/views', { export const render = views(__dirname + '/views', {
extension: 'pug', options: { extension: 'pug',
...constant,
}
}); });

View File

@ -2,7 +2,6 @@ import Koa from 'koa';
import bodyParser from 'koa-bodyparser'; import bodyParser from 'koa-bodyparser';
import { Action, useKoaServer } from 'routing-controllers'; import { Action, useKoaServer } from 'routing-controllers';
import constant from './const';
import { config } from '../config'; import { config } from '../config';
import { render } from './render'; import { render } from './render';
import { router } from './router'; import { router } from './router';
@ -13,7 +12,7 @@ import 'reflect-metadata';
export default (): void => { export default (): void => {
const app = new Koa(); const app = new Koa();
console.log('Misskey Tools v' + constant.version); console.log('Misskey Tools');
console.log('Initializing DB connection...'); console.log('Initializing DB connection...');

View File

@ -1,7 +1,6 @@
import axios from 'axios'; 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.headers['User-Agent'] = ua;
axios.defaults.validateStatus = (stat) => stat < 500; axios.defaults.validateStatus = (stat) => stat < 500;