refactor: remove LycheeBridge Branding
This commit is contained in:
parent
f124e4c561
commit
7e7e06ccac
13 changed files with 34 additions and 27 deletions
2
.idea/watcherTasks.xml
generated
2
.idea/watcherTasks.xml
generated
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectTasksOptions" suppressed-tasks="Pug/Jade" />
|
<component name="ProjectTasksOptions" suppressed-tasks="Pug/Jade;SCSS" />
|
||||||
</project>
|
</project>
|
2
LICENSE
2
LICENSE
|
@ -1,7 +1,7 @@
|
||||||
Misskey Tools
|
Misskey Tools
|
||||||
Copyrights (C) 2020-2022 Xeltica
|
Copyrights (C) 2020-2022 Xeltica
|
||||||
Copyrights (C) 2023 Shrimpia Network
|
Copyrights (C) 2023 Shrimpia Network
|
||||||
Copyrights (C) 2023 LycheeBridge
|
Copyrights (C) 2023-2024 CloudToys
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Affero General Public License as
|
it under the terms of the GNU Affero General Public License as
|
||||||
|
|
BIN
assets/lcb.png
BIN
assets/lcb.png
Binary file not shown.
Before Width: | Height: | Size: 358 KiB |
|
@ -3,8 +3,8 @@ export const defaultTemplate = '어제의 제 Misskey 사용량을 공개합니
|
||||||
export const currentTokenVersion = 2;
|
export const currentTokenVersion = 2;
|
||||||
|
|
||||||
export const misskeyAppInfo = {
|
export const misskeyAppInfo = {
|
||||||
name: 'Misskey Tools with LycheeBridge',
|
name: 'Misskey Tools',
|
||||||
description: 'LycheeBridge에서 관리하는 Misskey Tools의 포크 버전',
|
description: '무라쿠모 스튜디오에서, ❤️를 담아.',
|
||||||
permission: [
|
permission: [
|
||||||
'read:account',
|
'read:account',
|
||||||
'write:account',
|
'write:account',
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default (): void => {
|
||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
|
|
||||||
console.log(`** Misskey Tools ${meta.version} **`);
|
console.log(`** Misskey Tools ${meta.version} **`);
|
||||||
console.log('(C) Shrimpia Network, Powered by LycheeBridge');
|
console.log('(C) Shrimpia Network, Powered by CloudToys');
|
||||||
|
|
||||||
app.use(render);
|
app.use(render);
|
||||||
app.use(bodyParser());
|
app.use(bodyParser());
|
||||||
|
|
|
@ -51,8 +51,8 @@ export const sendNoteAlert = async (text: string, user: User) => {
|
||||||
*/
|
*/
|
||||||
export const sendNotificationAlert = async (text: string, user: User) => {
|
export const sendNotificationAlert = async (text: string, user: User) => {
|
||||||
const res = await api(user.host, 'notifications/create', {
|
const res = await api(user.host, 'notifications/create', {
|
||||||
header: user.notificationHeader ?? 'Misskey Tools with LycheeBridge',
|
header: user.notificationHeader ?? 'Misskey Tools',
|
||||||
icon: user.notificationIcon ?? 'https://t.psec.dev/assets/lcb.png',
|
icon: user.notificationIcon ?? 'https://t.psec.dev/assets/misskey.png',
|
||||||
body: text,
|
body: text,
|
||||||
}, user.token);
|
}, user.token);
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ export const work = async () => {
|
||||||
await calculateAllRating(groupedUsers);
|
await calculateAllRating(groupedUsers);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
printLog('Misskey Tools with LycheeBridge 레이팅 계산에 실패했습니다.', 'error');
|
printLog('Misskey Tools 레이팅 계산에 실패했습니다.', 'error');
|
||||||
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
||||||
Store.dispatch({ nowCalculating: false });
|
Store.dispatch({ nowCalculating: false });
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,10 @@ export const work = async () => {
|
||||||
printLog(`${users.length}개의 계정에 알림을 전송하고 있습니다.`);
|
printLog(`${users.length}개의 계정에 알림을 전송하고 있습니다.`);
|
||||||
await sendAllAlerts(groupedUsers);
|
await sendAllAlerts(groupedUsers);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
printLog('Misskey Tools with LycheeBridge 알림 전송에 실패했습니다.', 'error');
|
printLog('Misskey Tools 알림 전송에 실패했습니다.', 'error');
|
||||||
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
||||||
} finally {
|
} finally {
|
||||||
printLog('Misskey Tools with LycheeBridge 알림 전송이 완료되었습니다.');
|
printLog('Misskey Tools 알림 전송이 완료되었습니다.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ const sendAlerts = async (host: string, users: User[]) => {
|
||||||
try {
|
try {
|
||||||
await sendNotificationAlert(message, user);
|
await sendNotificationAlert(message, user);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
printLog('Misskey Tools with LycheeBridge 알림 전송에 실패했습니다.', 'error');
|
printLog('Misskey Tools 알림 전송에 실패했습니다.', 'error');
|
||||||
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
||||||
} finally {
|
} finally {
|
||||||
if (user.alertMode === 'notification') {
|
if (user.alertMode === 'notification') {
|
||||||
|
@ -138,7 +138,7 @@ const sendAlerts = async (host: string, users: User[]) => {
|
||||||
try {
|
try {
|
||||||
await sendNoteAlert(message, user);
|
await sendNoteAlert(message, user);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
printLog('Misskey Tools with LycheeBridge 알림 전송에 실패했습니다.', 'error');
|
printLog('Misskey Tools 알림 전송에 실패했습니다.', 'error');
|
||||||
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
printLog(e instanceof Error ? errorToString(e) : JSON.stringify(e, null, ' '), 'error');
|
||||||
} finally {
|
} finally {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
|
|
@ -4,22 +4,22 @@ html
|
||||||
meta(charset="UTF-8")
|
meta(charset="UTF-8")
|
||||||
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
||||||
block meta
|
block meta
|
||||||
- const title = t ? `${t} | Misskey Tools`: "Misskey Tools with LycheeBridge";
|
- const title = t ? `${t} | Misskey Tools`: "Misskey Tools";
|
||||||
- const desc = d || "🌠 연합우주의 모든 Misskey 사용자를 위한 다양한 도구 모음집 🚀";
|
- const desc = d || "🌠 연합우주의 모든 Misskey/CherryPick 사용자를 위한 다양한 도구 모음집 🚀";
|
||||||
title= title
|
title= title
|
||||||
meta(name="description" content=desc)
|
meta(name="description" content=desc)
|
||||||
meta(property="og:title" content=title)
|
meta(property="og:title" content=title)
|
||||||
meta(property="og:site_name" content="Misskey Tools with LycheeBridge")
|
meta(property="og:site_name" content="Misskey Tools")
|
||||||
meta(property="og:description" content=desc)
|
meta(property="og:description" content=desc)
|
||||||
meta(property="og:type" content="website")
|
meta(property="og:type" content="website")
|
||||||
meta(property="og:image" content="/assets/misskey.png")
|
meta(property="og:image" content="/assets/misskey.png")
|
||||||
link(rel="icon", href="/assets/lcb.png", type="image/png")
|
link(rel="icon", href="/assets/misskey.png", type="image/png")
|
||||||
link(rel="preload", href="/assets/otadesign_rounded.woff")
|
link(rel="preload", href="/assets/otadesign_rounded.woff")
|
||||||
link(rel="preload", href="/assets/otadesign_rounded.woff2")
|
link(rel="preload", href="/assets/otadesign_rounded.woff2")
|
||||||
link(rel="preload", href="/assets/PretendardJPVariable.woff2")
|
link(rel="preload", href="/assets/PretendardJPVariable.woff2")
|
||||||
script(src="https://kit.fontawesome.com/a4464bc6cd.js" crossorigin="anonymous")
|
script(src="https://kit.fontawesome.com/a4464bc6cd.js" crossorigin="anonymous")
|
||||||
link(rel="stylesheet", href="/assets/style.css")
|
link(rel="stylesheet", href="/assets/style.css")
|
||||||
link(rel="me", href="https://oscar.surf/@tools")
|
link(rel="me", href="https://pla.is/@st")
|
||||||
body
|
body
|
||||||
#app: .loading 잠시만 기다려주세요...
|
#app: .loading 잠시만 기다려주세요...
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
const allTexts: string[] = [
|
const allTexts: string[] = [
|
||||||
'아무말 빔----',
|
'아무말 빔----',
|
||||||
'휴대폰용 보험은 가입하셨나요?',
|
'휴대폰용 보험은 가입하셨나요?',
|
||||||
|
'포항항 ꉂꉂ(ᴖᗜᴖ*)',
|
||||||
|
'알고 계셨나요? 이 서비스는 생체 서버로 운영되고 있어요...',
|
||||||
|
'으악개발하기귀찮아',
|
||||||
|
'Misskey- Misskey- La- Tu- Ta-',
|
||||||
|
'집에 가고 싶어요',
|
||||||
|
'침대밖으로단한발짝도벗어날수없어요',
|
||||||
|
'Special Thanks to ltlapy to help test',
|
||||||
|
'내일은... 출근/등교/외출 하셔야 해요...'
|
||||||
];
|
];
|
||||||
|
|
||||||
const getRandomText = () => allTexts[Math.floor(Math.random() * allTexts.length)];
|
const getRandomText = () => allTexts[Math.floor(Math.random() * allTexts.length)];
|
||||||
|
|
||||||
export const createGacha = () => {
|
export const createGacha = () => {
|
||||||
const result = getRandomText();
|
return getRandomText();
|
||||||
return result;
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -196,8 +196,8 @@ export const MisshaiPage: React.VFC = () => {
|
||||||
}, [session.error]);
|
}, [session.error]);
|
||||||
|
|
||||||
const defaultTemplate = t('_template.default');
|
const defaultTemplate = t('_template.default');
|
||||||
const defaultHeader = 'Misskey Tools with LycheeBridge';
|
const defaultHeader = 'Misskey Tools';
|
||||||
const defaultIcon = 'https://t.psec.dev/assets/lcb.png';
|
const defaultIcon = 'https://t.psec.dev/assets/misskey.png';
|
||||||
|
|
||||||
const remaining = 1024 - (draft.template ?? defaultTemplate).length;
|
const remaining = 1024 - (draft.template ?? defaultTemplate).length;
|
||||||
|
|
||||||
|
|
|
@ -62,9 +62,9 @@ export const IndexSessionPage: React.VFC = () => {
|
||||||
<h2><i className="fas fa-circle-question"></i> {t('_developerInfo.title')}</h2>
|
<h2><i className="fas fa-circle-question"></i> {t('_developerInfo.title')}</h2>
|
||||||
<p>{t('_developerInfo.description')}</p>
|
<p>{t('_developerInfo.description')}</p>
|
||||||
<div className="menu large">
|
<div className="menu large">
|
||||||
<a className="item" href="https://oscar.surf/@tools" target="_blank" rel="noopener noreferrer">
|
<a className="item" href="https://pla.is/@st" target="_blank" rel="noopener noreferrer">
|
||||||
<i className="icon fas fa-at"></i>
|
<i className="icon fas fa-at"></i>
|
||||||
@tools@oscar.surf
|
@st@pla.is
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue