Skip to content

Commit

Permalink
モバイルでのリポジトリリンク Resolve #4816 (#4817)
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 authored Feb 13, 2024
1 parent a8455ba commit f6019aa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ common:
timeline: "Timeline"
top: "Top"
explore: "Explore"
repository: "Repository"
new-post: "New post"
featured: "Featured notes"
game: "Games"
Expand Down Expand Up @@ -1928,6 +1929,7 @@ mobile/views/components/ui.nav.vue:
admin: "Admin"
about: "About Misskey"
mark-all-as-read: "Mark all as read"
repository: "Repository"
mobile/views/components/user-timeline.vue:
fetch-posts: Fetch posts
mobile/views/pages/drive.vue:
Expand Down
2 changes: 2 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ common:
timeline: "タイムライン"
top: "トップ"
explore: "みつける"
repository: "リポジトリ"
new-post: "新規投稿"
featured: "ハイライト"
game: "ゲーム"
Expand Down Expand Up @@ -2124,6 +2125,7 @@ mobile/views/components/ui.nav.vue:
about: "Misskeyについて"
aboutInstance: "このインスタンスについて"
mark-all-as-read: "全て既読にする"
repository: "リポジトリ"

mobile/views/components/user-timeline.vue:
fetch-posts: 投稿を取得
Expand Down
7 changes: 5 additions & 2 deletions src/client/app/mobile/views/components/ui.nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
</article>
</div>
<a :href="aboutUrl"><p class="about">{{ $t('about') }}</p></a>
<a :href="repositoryUrl" rel="noopener" target="_blank"><p class="repository">{{ $t('@.repository') }}</p></a>
</div>
<div class="notifications" v-if="showNotifications">
<header>
Expand All @@ -75,6 +76,7 @@ import Vue from 'vue';
import i18n from '../../../i18n';
import { faNewspaper, faUsers, faHome, faColumns, faSync, faDesktop, faMobileAlt, faThumbsUp } from '@fortawesome/free-solid-svg-icons';
import { faMoon, faSun, faStickyNote } from '@fortawesome/free-regular-svg-icons';
import { constants } from '../../../config';
export default Vue.extend({
i18n: i18n('mobile/views/components/ui.nav.vue'),
Expand All @@ -90,6 +92,7 @@ export default Vue.extend({
hasGameInvitation: false,
connection: null,
aboutUrl: `/docs/ja-JP/about`,
repositoryUrl: constants.repositoryUrl,
announcements: [],
searching: false,
showNotifications: false,
Expand Down Expand Up @@ -367,9 +370,9 @@ export default Vue.extend({
> .title
font-weight bold
.about
.about, .repository
margin 0 0 8px 0
padding 1em 0
padding 0.3em 0
text-align center
font-size 0.8em
color $color
Expand Down
8 changes: 7 additions & 1 deletion src/client/app/mobile/views/pages/welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<div class="explore" v-if="meta && !(meta.disableProfileDirectory)">
<router-link class="explore" to="/explore">{{ $t('@.explore') }}</router-link>
</div>
<div class="repository">
<a :href="repositoryUrl" rel="noopener" target="_blank">{{ $t('@.repository') }}</a>
</div>
</div>
<div class="announcements" v-if="announcements && announcements.length > 0">
<article v-for="(announcement, i) in announcements" :key="i">
Expand All @@ -31,6 +34,7 @@ import i18n from '../../../i18n';
import { host } from '../../../config';
import { concat } from '../../../../../prelude/array';
import { toUnicode } from 'punycode/';
import { constants } from '../../../config';
export default Vue.extend({
i18n: i18n('mobile/views/pages/welcome.vue'),
Expand All @@ -42,7 +46,8 @@ export default Vue.extend({
host: toUnicode(host),
name: 'Misskey',
description: '',
announcements: []
announcements: [],
repositoryUrl: constants.repositoryUrl,
};
},
created() {
Expand Down Expand Up @@ -116,6 +121,7 @@ export default Vue.extend({
> .signup
> .signin
> .explore
> .repository
margin 0.5em
> .announcements
Expand Down

0 comments on commit f6019aa

Please sign in to comment.