From ec530601b41e4b8840286fa8ad084a2ceb85812a Mon Sep 17 00:00:00 2001 From: yude Date: Sun, 26 Dec 2021 07:35:41 +0900 Subject: [PATCH] Add `services/` --- docs/services/en.md | 23 ++++++++++++++++++ docs/services/ja.md | 23 ++++++++++++++++++ i18n/translations.en.json | 3 ++- i18n/translations.ja.json | 3 ++- pages/index.js | 4 ++-- pages/services.js | 49 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 101 insertions(+), 4 deletions(-) create mode 100644 docs/services/en.md create mode 100644 docs/services/ja.md create mode 100644 pages/services.js diff --git a/docs/services/en.md b/docs/services/en.md new file mode 100644 index 0000000..58be7d9 --- /dev/null +++ b/docs/services/en.md @@ -0,0 +1,23 @@ +# Available services on yude.jp + +## Softwares +* [AutoMuteUs](https://github.com/denverquane/automuteus)\ +Among Us helper; API: [`galactus.yude.jp`](https://galactus.yude.jp) +* [Nextcloud](https://nc.yude.jp) +* [Mastodon](https://mstdn.yude.jp) +* [Misskey](https://misskey.yude.jp) +* [Pleroma](https//pleroma.yude.jp) +* [TeamSpeak 3](ts3server://yude.jp) +* [Gitea](https://git.yude.jp) +* [h5ai](https://files.yude.jp) +* [JMusicBot (forked)](https://discord.com/oauth2/authorize?client_id=429638220456656896&scope=bot&permissions=338963472) +* [Owncast](https://live.yude.jp) +* [Minecraft Server](https://yude.jp/minecraft) + +## 秘匿化ネットワーク +### Tor +* Relay: [yudejp] +* Hidden Service: [yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion](yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion) + +### I2P +* Hidden Service: [yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p](yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p) \ No newline at end of file diff --git a/docs/services/ja.md b/docs/services/ja.md new file mode 100644 index 0000000..15e8fda --- /dev/null +++ b/docs/services/ja.md @@ -0,0 +1,23 @@ +# yude.jp で運用中のサービス + +## ソフトウェア +* [AutoMuteUs](https://github.com/denverquane/automuteus)\ +Among Us の自動ミュートボット; API: [`galactus.yude.jp`](https://galactus.yude.jp) +* [Nextcloud](https://nc.yude.jp) +* [Mastodon](https://mstdn.yude.jp) +* [Misskey](https://misskey.yude.jp) +* [Pleroma](https//pleroma.yude.jp) +* [TeamSpeak 3](ts3server://yude.jp) +* [Gitea](https://git.yude.jp) +* [h5ai](https://files.yude.jp) +* [JMusicBot (フォーク)](https://discord.com/oauth2/authorize?client_id=429638220456656896&scope=bot&permissions=338963472) +* [Owncast](https://live.yude.jp) +* [Minecraft サーバー](https://yude.jp/minecraft) + +## 秘匿化ネットワーク +### Tor +* リレー: [yudejp] +* Hidden Service: [yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion](yude3mzscyufx5u3zup72ium7tgecy3bd67p7t6vqhaywvr7e2gqpcqd.onion) + +### I2P +* Hidden Service: [yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p](yudejp.i2p/?i2paddresshelper=55ivoba6mo3mqlwvw5lqz7lchxqew2kh77kwkn5shefrj2dp3coq.b32.i2p) \ No newline at end of file diff --git a/i18n/translations.en.json b/i18n/translations.en.json index 147d8ef..0dcb842 100644 --- a/i18n/translations.en.json +++ b/i18n/translations.en.json @@ -60,5 +60,6 @@ "service": "Service", "shape": "Shape", "tos": "yude.jp Terms of Service", - "input": "en" + "input": "en", + "services": "Services" } \ No newline at end of file diff --git a/i18n/translations.ja.json b/i18n/translations.ja.json index 08ac0dc..66f0685 100644 --- a/i18n/translations.ja.json +++ b/i18n/translations.ja.json @@ -60,5 +60,6 @@ "service": "サービス", "shape": "シェイプ", "tos": "yude.jp サービス利用規約", - "input": "ja" + "input": "ja", + "services": "サービス" } \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index 12a3785..b2208d0 100644 --- a/pages/index.js +++ b/pages/index.js @@ -18,7 +18,7 @@ import MinecraftMenu from "./components/Menu/MinecraftMenu" // Font Awesome import { faDiscord, faGit, faGithub } from '@fortawesome/free-brands-svg-icons' -import { faBook, faUser, faServer, faHouseUser, faHeart } from '@fortawesome/free-solid-svg-icons' +import { faBook, faUser, faServer, faScrewdriver, faHeart } from '@fortawesome/free-solid-svg-icons' export default function Index(props) { const { t } = useTranslation(); @@ -45,7 +45,7 @@ export default function Index(props) {
- + diff --git a/pages/services.js b/pages/services.js new file mode 100644 index 0000000..100264c --- /dev/null +++ b/pages/services.js @@ -0,0 +1,49 @@ +// Base layout +import Layout from "./components/Layout" + +// i18n +import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n'; + +// React Router etc. +import { useRouter } from 'next/router' +import React from "react" + +// React Markdown +import ReactMarkdown from "react-markdown" +import gfm from 'remark-gfm'; +import ja from '../docs/services/ja.md' +import en from '../docs/services/en.md' + +// next-seo +import { NextSeo } from 'next-seo'; + +export default function Tos(props) { + const { t } = useTranslation(); + const [query] = useLanguageQuery(); + + if (!query) { + return

Loading...

+ } else { + return( + <> + + +
+ {query["lang"] === 'ja' ? ( + + {ja} + + ) : ( + + {en} + + )} +
+
+ + ) + } + } \ No newline at end of file