enhance(frontend): use config value instead of hard code
style(frontend): change some messages
This commit is contained in:
parent
e902bc2bdb
commit
c788e74d5b
7 changed files with 16 additions and 12 deletions
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"name": "misskey-tools",
|
||||
"version": "3.2.0-lyc.2",
|
||||
"version": "3.2.3+lyc",
|
||||
"description": "",
|
||||
"main": "built/app.js",
|
||||
"author": "LycheeBridge",
|
||||
"author": "CloudToys",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
@ -69,7 +69,7 @@ const AppInner : React.VFC = () => {
|
|||
</div>
|
||||
) : <Router />}
|
||||
<footer className="text-center pa-5">
|
||||
<p>Powered by LycheeBridge with ❤️</p>
|
||||
<p>{t('poweredBy')}</p>
|
||||
<p><span dangerouslySetInnerHTML={{__html: t('disclaimerForMisskeyHq')}} /></p>
|
||||
<p>
|
||||
<a href="https://blog.gozou.moe/mktools-terms" target="_blank" rel="noreferrer noopener">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"$languageName": "English",
|
||||
"title": "Misskey Tools with LycheeBridge",
|
||||
"title": "Misskey Tools",
|
||||
"description1": "Make Misskey more effective! All-in-one tools with various features.",
|
||||
"description2": "Let's input your instance URL and use Misskey Tools now!",
|
||||
"notes": "Notes",
|
||||
|
@ -34,6 +34,7 @@
|
|||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"termsOfService": "Terms of Service",
|
||||
"poweredBy": "Powered by SWREI Studio with ❤️",
|
||||
"name": "Name",
|
||||
"resetToDefault": "Reset to default",
|
||||
"error": "Error",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"$languageName": "日本語",
|
||||
"title": "Misskey Tools with LycheeBridge",
|
||||
"title": "Misskey Tools",
|
||||
"description1": "Misskeyをもっと効果的に。様々な機能を持ったオールインワンツール。",
|
||||
"description2": "お使いのインスタンスURLを入力して、今すぐMisskey Toolsを使おう!",
|
||||
"notes": "ノート",
|
||||
|
@ -34,6 +34,7 @@
|
|||
"yes": "はい",
|
||||
"no": "いいえ",
|
||||
"termsOfService": "利用規約",
|
||||
"poweredBy": "Powered by SWREI Studio with ❤️",
|
||||
"name": "名前",
|
||||
"resetToDefault": "初期値に戻す",
|
||||
"error": "エラー",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"$languageName": "한국어",
|
||||
"title": "Misskey Tools",
|
||||
"description1": "다양한 도구로 여러분의 Misskey 활동을 더욱 윤택하게.",
|
||||
"description2": "이용 중인 인스턴스 URL을 입력해서 곧바로 사용해 보세요!",
|
||||
"description1": "여러분의 Misskey 활동을 더 즐겁게 만들어주는 다양한 도구를 만나보세요.",
|
||||
"description2": "이용 중인 인스턴스 URL을 입력해서 곧바로 사용할 수 있습니다.",
|
||||
"notes": "노트",
|
||||
"following": "팔로우",
|
||||
"followers": "팔로워",
|
||||
|
@ -33,7 +33,8 @@
|
|||
"ok": "확인",
|
||||
"yes": "예",
|
||||
"no": "아니오",
|
||||
"termsOfService": "이용약관",
|
||||
"termsOfService": "이용 약관",
|
||||
"poweredBy": "무라쿠모 스튜디오에서, ❤️를 담아.",
|
||||
"name": "이름",
|
||||
"resetToDefault": "기본값으로 초기화",
|
||||
"error": "오류",
|
||||
|
|
|
@ -8,8 +8,8 @@ import { $delete, $get, $post, $put } from '../misc/api';
|
|||
import { showModal } from '../store/slices/screen';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { useTitle } from '../hooks/useTitle';
|
||||
import {Log} from '../../common/types/log';
|
||||
import {LogView} from '../components/LogView';
|
||||
import { Log } from '../../common/types/log';
|
||||
import { LogView } from '../components/LogView';
|
||||
|
||||
|
||||
export const AdminPage: React.VFC = () => {
|
||||
|
|
|
@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next';
|
|||
import { useGetScoreQuery, useGetSessionQuery } from '../services/session';
|
||||
import { useAnnouncements } from '../hooks/useAnnouncements';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { config } from '../../config.js';
|
||||
|
||||
export const IndexSessionPage: React.VFC = () => {
|
||||
const {t} = useTranslation();
|
||||
|
@ -62,9 +63,9 @@ export const IndexSessionPage: React.VFC = () => {
|
|||
<h2><i className="fas fa-circle-question"></i> {t('_developerInfo.title')}</h2>
|
||||
<p>{t('_developerInfo.description')}</p>
|
||||
<div className="menu large">
|
||||
<a className="item" href="https://psec.dev/@PSEC" target="_blank" rel="noopener noreferrer">
|
||||
<a className="item" href={`https://${config.admin.host}/@${config.admin.username}`} target="_blank" rel="noopener noreferrer">
|
||||
<i className="icon fas fa-at"></i>
|
||||
@PSEC@psec.dev
|
||||
@{config.admin.username}@{config.admin.host}
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue