style: add announcement to misshai page
This commit is contained in:
parent
6414292c29
commit
b15d5c18cf
6 changed files with 19 additions and 4 deletions
|
@ -72,9 +72,7 @@ const AppInner : React.VFC = () => {
|
||||||
<p>{t('poweredBy')}</p>
|
<p>{t('poweredBy')}</p>
|
||||||
<p><span dangerouslySetInnerHTML={{__html: t('disclaimerForMisskeyHq')}} /></p>
|
<p><span dangerouslySetInnerHTML={{__html: t('disclaimerForMisskeyHq')}} /></p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://ol.psec.dev/s/misskey-tools" target="_blank" rel="noreferrer noopener">
|
<a href="https://ol.psec.dev/s/misskey-tools" target="_blank" rel="noreferrer noopener">{t('termsOfService')}</a> · <a href="https://nrma.cc/donate" target="_blank" rel="noreferrer noopener">{t('donate')}</a>
|
||||||
{t('termsOfService')}
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
<ModalComponent />
|
<ModalComponent />
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
"no": "No",
|
"no": "No",
|
||||||
"termsOfService": "Terms of Service",
|
"termsOfService": "Terms of Service",
|
||||||
"poweredBy": "Powered by SWREI Studio with ❤️",
|
"poweredBy": "Powered by SWREI Studio with ❤️",
|
||||||
|
"donate": "Donate",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"resetToDefault": "Reset to default",
|
"resetToDefault": "Reset to default",
|
||||||
"error": "Error",
|
"error": "Error",
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
"no": "いいえ",
|
"no": "いいえ",
|
||||||
"termsOfService": "利用規約",
|
"termsOfService": "利用規約",
|
||||||
"poweredBy": "Powered by SWREI Studio with ❤️",
|
"poweredBy": "Powered by SWREI Studio with ❤️",
|
||||||
|
"donate": "支援",
|
||||||
"name": "名前",
|
"name": "名前",
|
||||||
"resetToDefault": "初期値に戻す",
|
"resetToDefault": "初期値に戻す",
|
||||||
"error": "エラー",
|
"error": "エラー",
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
"no": "아니오",
|
"no": "아니오",
|
||||||
"termsOfService": "이용 약관",
|
"termsOfService": "이용 약관",
|
||||||
"poweredBy": "무라쿠모 스튜디오에서, ❤️를 담아.",
|
"poweredBy": "무라쿠모 스튜디오에서, ❤️를 담아.",
|
||||||
|
"donate": "후원하기",
|
||||||
"name": "이름",
|
"name": "이름",
|
||||||
"resetToDefault": "기본값으로 초기화",
|
"resetToDefault": "기본값으로 초기화",
|
||||||
"error": "오류",
|
"error": "오류",
|
||||||
|
|
|
@ -15,6 +15,7 @@ import './misshai.scss';
|
||||||
import { Ranking } from '../../components/Ranking';
|
import { Ranking } from '../../components/Ranking';
|
||||||
import { useTitle } from '../../hooks/useTitle';
|
import { useTitle } from '../../hooks/useTitle';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
import { useAnnouncements } from '../../hooks/useAnnouncements';
|
||||||
|
|
||||||
const variables = [
|
const variables = [
|
||||||
'notesCount',
|
'notesCount',
|
||||||
|
@ -51,6 +52,7 @@ export const MisshaiPage: React.VFC = () => {
|
||||||
const score = useGetScoreQuery(undefined);
|
const score = useGetScoreQuery(undefined);
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const announcements = useAnnouncements();
|
||||||
|
|
||||||
useTitle('_sidebar.missHaiAlert');
|
useTitle('_sidebar.missHaiAlert');
|
||||||
|
|
||||||
|
@ -210,6 +212,16 @@ export const MisshaiPage: React.VFC = () => {
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<article className="fade">
|
<article className="fade">
|
||||||
|
<section>
|
||||||
|
<h2><i className="fas fa-bell"></i> {t('announcements')}</h2>
|
||||||
|
<div className="large menu xmenu fade">
|
||||||
|
{announcements.map(a => (
|
||||||
|
<Link className="item fluid" key={a.id} to={`/announcements/${a.id}`}>
|
||||||
|
{a.title}
|
||||||
|
</Link>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<section className="misshaiData">
|
<section className="misshaiData">
|
||||||
<h2><i className="fas fa-chart-line"></i> {t('_missHai.data')}</h2>
|
<h2><i className="fas fa-chart-line"></i> {t('_missHai.data')}</h2>
|
||||||
<table className="table fluid">
|
<table className="table fluid">
|
||||||
|
|
|
@ -58,6 +58,7 @@ export const IndexSessionPage: React.VFC = () => {
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
{/*
|
||||||
<section className="developerInfo">
|
<section className="developerInfo">
|
||||||
<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>
|
||||||
|
@ -68,6 +69,7 @@ export const IndexSessionPage: React.VFC = () => {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
*/}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue