style: use Pretendard for default
style: apply some assets
This commit is contained in:
parent
a2f0dc46ce
commit
c34f13c24b
@ -6,4 +6,4 @@ end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_size = 2
|
||||
indent_size = 4
|
5
LICENSE
5
LICENSE
@ -1,6 +1,7 @@
|
||||
Misskey Tools
|
||||
Copyright (C) 2020-2022 Xeltica
|
||||
Copyright (C) 2023 Shrimpia Network
|
||||
Copyrights (C) 2020-2022 Xeltica
|
||||
Copyrights (C) 2023 Shrimpia Network
|
||||
Copyrights (C) 2023 LycheeBridge
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
BIN
assets/lcb.png
Normal file
BIN
assets/lcb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 358 KiB |
BIN
assets/misskey.png
Normal file
BIN
assets/misskey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "misskey-tools",
|
||||
"version": "3.2.0",
|
||||
"version": "3.2.0-lyc.0",
|
||||
"description": "",
|
||||
"main": "built/app.js",
|
||||
"author": "Shrimpia Network",
|
||||
"author": "LycheeBridge",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
@ -5,7 +5,7 @@ import axios from 'axios';
|
||||
import { initDb } from './backend/services/db.js';
|
||||
import {config} from './config.js';
|
||||
|
||||
export const ua = `Mozilla/5.0 MisskeyTools +https://github.com/shrimpia/misskey-tools Node/${process.version} ${config.uaExtra ?? ''}`;
|
||||
export const ua = `Mozilla/5.0 MisskeyTools +https://github.com/LycheeBridge/tools Node/${process.version} ${config.uaExtra ?? ''}`;
|
||||
|
||||
axios.defaults.headers['User-Agent'] = ua;
|
||||
axios.defaults.headers['Content-Type'] = 'application/json';
|
||||
|
@ -11,8 +11,8 @@ export const defaultTemplate = '昨日のMisskeyの活動は\n\nノート: {note
|
||||
export const currentTokenVersion = 2;
|
||||
|
||||
export const misskeyAppInfo = {
|
||||
name: 'Misskey Tools on phater.live',
|
||||
description: 'Misskey Tools의 포크를 통한 유지 버전',
|
||||
name: 'Misskey Tools with LycheeBridge',
|
||||
description: 'LycheeBridge에서 관리하는 Misskey Tools의 포크 버전',
|
||||
permission: [
|
||||
'read:account',
|
||||
'write:account',
|
||||
|
@ -14,7 +14,7 @@ export default (): void => {
|
||||
const app = new Koa();
|
||||
|
||||
console.log(`** Misskey Tools ${meta.version} **`);
|
||||
console.log('(C) Shrimpia Network');
|
||||
console.log('(C) Shrimpia Network, Powered by LycheeBridge');
|
||||
|
||||
app.use(render);
|
||||
app.use(bodyParser());
|
||||
|
@ -51,8 +51,8 @@ export const sendNoteAlert = async (text: string, user: User) => {
|
||||
*/
|
||||
export const sendNotificationAlert = async (text: string, user: User) => {
|
||||
const res = await api(user.host, 'notifications/create', {
|
||||
header: 'Misskey Tools on phater.live',
|
||||
icon: 'https://on.phater.live/logo.png',
|
||||
header: 'Misskey Tools with LycheeBridge',
|
||||
icon: 'https://in.gozou.moe/lcb.png',
|
||||
body: text,
|
||||
}, user.token);
|
||||
|
||||
|
@ -41,9 +41,9 @@ export const work = async () => {
|
||||
printLog(`${users.length}개의 계정 레이팅 계산 완료, 알림을 전송하고 있습니다.`);
|
||||
await sendAllAlerts(groupedUsers);
|
||||
|
||||
printLog('Misskey Tools on phater.live 알림 전송이 완료되었습니다.');
|
||||
printLog('Misskey Tools with LycheeBridge 알림 전송이 완료되었습니다.');
|
||||
} catch (e) {
|
||||
printLog('Misskey Tools on phater.live 알림 전송에 실패했습니다.', 'error');
|
||||
printLog('Misskey Tools with LycheeBridge 알림 전송에 실패했습니다.', 'error');
|
||||
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
||||
} finally {
|
||||
Store.dispatch({ nowCalculating: false });
|
||||
|
@ -5,20 +5,21 @@ html
|
||||
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
||||
block meta
|
||||
- const title = t ? `${t} | Misskey Tools`: 'Misskey Tools';
|
||||
- const desc = d || '✨Misskey での1日のノート数、フォロー数、フォロワー数をカウントし、深夜0時にお知らせする便利サービスです。';
|
||||
- const desc = d || '🌠 연합우주의 모든 Misskey 사용자를 위한 다양한 도구 모음집 🚀';
|
||||
title= title
|
||||
meta(name='description' content=desc)
|
||||
meta(property='og:title' content=title)
|
||||
meta(property='og:site_name' content='Misskey Tools on LycheeBridge')
|
||||
meta(property='og:description' content=desc)
|
||||
meta(property='og:type' content='website')
|
||||
link(rel="preload" href="https://koruri.chillout.chat/koruri.css")
|
||||
meta(property='og:image' content='assets/misskey.png')
|
||||
link(rel="icon", href="/assets/lcb.png", type="image/png")
|
||||
link(rel="preload", href="/assets/otadesign_rounded.woff")
|
||||
link(rel="preload", href="/assets/otadesign_rounded.woff2")
|
||||
link(rel="stylesheet" href="https://koruri.chillout.chat/koruri.css")
|
||||
script(src='https://kit.fontawesome.com/c7ab6eba70.js' crossorigin='anonymous')
|
||||
link(rel="preload", href="/assets/PretendardJPVariable.woff2")
|
||||
link(rel="stylesheet", href="/assets/style.css")
|
||||
body
|
||||
#app: .loading Loading...
|
||||
#app: .loading 불러오는 중입니다...
|
||||
|
||||
if token
|
||||
script.
|
||||
|
@ -3,11 +3,11 @@ html
|
||||
head
|
||||
meta(charset="UTF-8")
|
||||
body
|
||||
p 問題を修正するため、端末に残ったデータを削除しました。
|
||||
p 5秒後にトップページに移動します。
|
||||
p 클라이언트에 문제가 발생했습니다. 해결을 위해 브라우저에 있는 데이터를 제거했습니다.
|
||||
p 3초 뒤에 메인 페이지로 자동으로 돌아갑니다...
|
||||
hr
|
||||
p To solve the problem, deleted data remaining on the device.
|
||||
p After 5 seconds, you will be redirected to the top page.
|
||||
p There's a problem in client and deleted data on device to solve it.
|
||||
p You will be redirected to the top in 3 seconds.
|
||||
script.
|
||||
localStorage.clear();
|
||||
setTimeout(() => location.href = '/', 5000);
|
||||
setTimeout(() => location.href = '/', 3000);
|
||||
|
@ -69,7 +69,7 @@ const AppInner : React.VFC = () => {
|
||||
</div>
|
||||
) : <Router />}
|
||||
<footer className="text-center pa-5">
|
||||
<p>(C) Shrimpia Network, Running on phater.live with ❤️</p>
|
||||
<p>Powered by LycheeBridge with ❤️</p>
|
||||
<p><span dangerouslySetInnerHTML={{__html: t('disclaimerForMisskeyHq')}} /></p>
|
||||
<p>
|
||||
<a href="https://phater.live/@ALPINE_SECTOR/pages/mktools" target="_blank" rel="noreferrer noopener">
|
||||
|
@ -12,7 +12,7 @@ export const LOCALSTORAGE_KEY_ACCENT_COLOR = 'accent_color';
|
||||
/** Misskey Tools API エンドポイント */
|
||||
export const API_ENDPOINT = `//${location.host}/api/v1/`;
|
||||
/** 更新履歴URL */
|
||||
export const CHANGELOG_URL = 'https://github.com/Xeltica/MisskeyTools/blob/master/CHANGELOG.md';
|
||||
export const CHANGELOG_URL = 'https://github.com/LycheeBridge/tools/blob/master/CHANGELOG.md';
|
||||
|
||||
/** ブレークポイント モバイル */
|
||||
export const BREAKPOINT_SM = '800px';
|
||||
|
@ -1,10 +1,18 @@
|
||||
@font-face {
|
||||
font-family: 'Pretendard JP Variable';
|
||||
font-weight: 45 920;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url("/assets/PretendardJPVariable.woff2") format('woff2-variations');
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
body {
|
||||
--max-width: 1024px;
|
||||
font-family: "Koruri", sans-serif;
|
||||
font-family: "Pretendard JP Variable", "Koruri", sans-serif;
|
||||
}
|
||||
|
||||
hr {
|
||||
|
@ -6,10 +6,10 @@ import { MiUser } from '../backend/functions/update-score.js';
|
||||
export default async () => {
|
||||
const users = await Users.find();
|
||||
for (const u of users) {
|
||||
console.log(`Update rating of ${u.username}@${u.host}...`);
|
||||
console.log(`${u.username}@${u.host}의 레이팅을 갱신하는 중...`);
|
||||
const miUser = await api<MiUser & { error: unknown }>(u.host, 'users/show', { username: u.username }, u.token);
|
||||
if (miUser.error) {
|
||||
console.log(`Failed to fetch data of ${u.username}@${u.host}. Skipped`);
|
||||
console.log(`${u.username}@${u.host}의 데이터 불러오기에 실패했습니다. 스킵하는 중...`);
|
||||
continue;
|
||||
}
|
||||
await updateRating(u, miUser);
|
||||
|
@ -1,15 +1,15 @@
|
||||
@font-face {
|
||||
font-family: "OTADESIGN Rounded";
|
||||
src: url("/assets/otadesign_rounded.woff2") format('woff2'),
|
||||
url("/assets/otadesign_rounded.woff") format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Pretendard JP Variable';
|
||||
font-weight: 45 920;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url('/assets/PretendardJPVariable.woff2') format('woff2-variations');
|
||||
src: url("/assets/PretendardJPVariable.woff2") format('woff2-variations');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "OTADESIGN Rounded";
|
||||
src: url("/assets/otadesign_rounded.woff2") format('woff2'),
|
||||
url("/assets/otadesign_rounded.woff") format('woff');
|
||||
}
|
||||
|
||||
.font-misskey {
|
||||
|
Loading…
Reference in New Issue
Block a user