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