@@ -27,7 +27,7 @@
color #888
box-shadow 0 1px rgba(0, 0, 0, 0.07)
- > i
+ > [data-fa]
margin-right 4px
> div
diff --git a/src/web/app/desktop/tags/home-widgets/channel.tag b/src/web/app/desktop/tags/home-widgets/channel.tag
index f22a5f76ef..545bc38acf 100644
--- a/src/web/app/desktop/tags/home-widgets/channel.tag
+++ b/src/web/app/desktop/tags/home-widgets/channel.tag
@@ -1,9 +1,9 @@
- {
+
%fa:tv%{
channel ? channel.title : '%i18n:desktop.tags.mk-channel-home-widget.title%'
}
-
+
%i18n:desktop.tags.mk-channel-home-widget.get-started%
@@ -25,7 +25,7 @@
color #888
box-shadow 0 1px rgba(0, 0, 0, 0.07)
- > i
+ > [data-fa]
margin-right 4px
> button
diff --git a/src/web/app/desktop/tags/home-widgets/donation.tag b/src/web/app/desktop/tags/home-widgets/donation.tag
index 99ded1b5d4..a51a7bebbb 100644
--- a/src/web/app/desktop/tags/home-widgets/donation.tag
+++ b/src/web/app/desktop/tags/home-widgets/donation.tag
@@ -1,6 +1,6 @@
- %i18n:desktop.tags.mk-donation-home-widget.title%
+ %fa:heart%%i18n:desktop.tags.mk-donation-home-widget.title%
{'%i18n:desktop.tags.mk-donation-home-widget.text%'.substr(0, '%i18n:desktop.tags.mk-donation-home-widget.text%'.indexOf('{'))}@syuilo{'%i18n:desktop.tags.mk-donation-home-widget.text%'.substr('%i18n:desktop.tags.mk-donation-home-widget.text%'.indexOf('}') + 1)}
diff --git a/src/web/app/desktop/tags/home-widgets/post-form.tag b/src/web/app/desktop/tags/home-widgets/post-form.tag
index 9ca7fecfe7..c8ccc5a30e 100644
--- a/src/web/app/desktop/tags/home-widgets/post-form.tag
+++ b/src/web/app/desktop/tags/home-widgets/post-form.tag
@@ -2,7 +2,7 @@
- %i18n:desktop.tags.mk-post-form-home-widget.title%
+ %fa:pencil-alt%%i18n:desktop.tags.mk-post-form-home-widget.title%
@@ -25,7 +25,7 @@
color #888
box-shadow 0 1px rgba(0, 0, 0, 0.07)
- > i
+ > [data-fa]
margin-right 4px
> textarea
diff --git a/src/web/app/desktop/tags/home-widgets/recommended-polls.tag b/src/web/app/desktop/tags/home-widgets/recommended-polls.tag
index 5bfa839820..8b3713caea 100644
--- a/src/web/app/desktop/tags/home-widgets/recommended-polls.tag
+++ b/src/web/app/desktop/tags/home-widgets/recommended-polls.tag
@@ -1,15 +1,15 @@
- %i18n:desktop.tags.mk-recommended-polls-home-widget.title%
-
+ %fa:pie-chart%%i18n:desktop.tags.mk-recommended-polls-home-widget.title%
+
%i18n:desktop.tags.mk-recommended-polls-home-widget.nothing%
- %i18n:common.loading%
+ %fa:spinner .pluse .fw%%i18n:common.loading%
diff --git a/src/web/app/desktop/tags/home-widgets/rss-reader.tag b/src/web/app/desktop/tags/home-widgets/rss-reader.tag
index 12c1bee91e..55ef6e2ab1 100644
--- a/src/web/app/desktop/tags/home-widgets/rss-reader.tag
+++ b/src/web/app/desktop/tags/home-widgets/rss-reader.tag
@@ -1,12 +1,12 @@
- RSS
-
+ %fa:rss-square%RSS
+
- %i18n:common.loading%
+ %fa:spinner .pluse .fw%%i18n:common.loading%
diff --git a/src/web/app/desktop/tags/home-widgets/server.tag b/src/web/app/desktop/tags/home-widgets/server.tag
index b37d347361..c2eeb46b5b 100644
--- a/src/web/app/desktop/tags/home-widgets/server.tag
+++ b/src/web/app/desktop/tags/home-widgets/server.tag
@@ -1,9 +1,9 @@
- %i18n:desktop.tags.mk-server-home-widget.title%
-
+ %fa:server%%i18n:desktop.tags.mk-server-home-widget.title%
+
- %i18n:common.loading%
+ %fa:spinner .pluse .fw%%i18n:common.loading%
@@ -31,7 +31,7 @@
color #888
box-shadow 0 1px rgba(0, 0, 0, 0.07)
- > i
+ > [data-fa]
margin-right 4px
> button
@@ -57,7 +57,7 @@
text-align center
color #aaa
- > i
+ > [data-fa]
margin-right 4px
@@ -235,7 +235,7 @@
-
CPU
+
%fa:microchip%CPU
{ cores } Cores
{ model }
@@ -261,7 +261,7 @@
&:first-child
font-weight bold
- > i
+ > [data-fa]
margin-right 4px
&:after
@@ -292,7 +292,7 @@
-
Memory
+
%fa:flask%Memory
Total: { bytesToSize(total, 1) }
Used: { bytesToSize(used, 1) }
Free: { bytesToSize(free, 1) }
@@ -319,7 +319,7 @@
&:first-child
font-weight bold
- > i
+ > [data-fa]
margin-right 4px
&:after
@@ -358,7 +358,7 @@
-
Storage
+
%fa:R hdd%Storage
Total: { bytesToSize(total, 1) }
Available: { bytesToSize(available, 1) }
Used: { bytesToSize(used, 1) }
@@ -385,7 +385,7 @@
&:first-child
font-weight bold
- > i
+ > [data-fa]
margin-right 4px
&:after
diff --git a/src/web/app/desktop/tags/home-widgets/slideshow.tag b/src/web/app/desktop/tags/home-widgets/slideshow.tag
index 4acb680e42..53fe047000 100644
--- a/src/web/app/desktop/tags/home-widgets/slideshow.tag
+++ b/src/web/app/desktop/tags/home-widgets/slideshow.tag
@@ -5,7 +5,7 @@
-
+
diff --git a/src/web/app/desktop/tags/home-widgets/user-recommendation.tag b/src/web/app/desktop/tags/home-widgets/user-recommendation.tag
index cf563db535..1f38a73210 100644
--- a/src/web/app/desktop/tags/home-widgets/user-recommendation.tag
+++ b/src/web/app/desktop/tags/home-widgets/user-recommendation.tag
@@ -1,7 +1,7 @@
- %i18n:desktop.tags.mk-user-recommendation-home-widget.title%
-
+ %fa:users%%i18n:desktop.tags.mk-user-recommendation-home-widget.title%
+
%i18n:desktop.tags.mk-user-recommendation-home-widget.no-one%
- %i18n:common.loading%
+ %fa:spinner .pluse .fw%%i18n:common.loading%
diff --git a/src/web/app/desktop/tags/home.tag b/src/web/app/desktop/tags/home.tag
index 55f36e0977..50f6c84604 100644
--- a/src/web/app/desktop/tags/home.tag
+++ b/src/web/app/desktop/tags/home.tag
@@ -1,6 +1,6 @@
-
完了
+
%fa:check%完了
ウィジェットを追加:
@@ -96,7 +96,7 @@
background darken($theme-color, 10%)
transition background 0s ease
- > i
+ > [data-fa]
margin-right 8px
> div
@@ -221,7 +221,7 @@
}
if (this.opts.customize) {
- dialog('
カスタマイズのヒント',
+ dialog('%fa:info-circle%カスタマイズのヒント',
'
ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。
' +
'
一部のウィジェットは、右クリックすることで表示を変更することができます。
' +
'
ウィジェットを削除するには、ヘッダーの「ゴミ箱」と書かれたエリアにウィジェットをドラッグ&ドロップします。
' +
diff --git a/src/web/app/desktop/tags/input-dialog.tag b/src/web/app/desktop/tags/input-dialog.tag
index 78fd62ee8b..f175277547 100644
--- a/src/web/app/desktop/tags/input-dialog.tag
+++ b/src/web/app/desktop/tags/input-dialog.tag
@@ -1,7 +1,7 @@
- { parent.title }
+ %fa:i-cursor%{ parent.title }
@@ -19,7 +19,7 @@
> mk-window
[data-yield='header']
- > i
+ > [data-fa]
margin-right 4px
[data-yield='content']
diff --git a/src/web/app/desktop/tags/messaging/room-window.tag b/src/web/app/desktop/tags/messaging/room-window.tag
index 1c6ff7c4bc..7c0bb0d76e 100644
--- a/src/web/app/desktop/tags/messaging/room-window.tag
+++ b/src/web/app/desktop/tags/messaging/room-window.tag
@@ -1,6 +1,6 @@
- メッセージ: { parent.user.name }
+ %fa:comments%メッセージ: { parent.user.name }
@@ -9,7 +9,7 @@
:scope
> mk-window
[data-yield='header']
- > i
+ > [data-fa]
margin-right 4px
[data-yield='content']
diff --git a/src/web/app/desktop/tags/messaging/window.tag b/src/web/app/desktop/tags/messaging/window.tag
index 5e478f0367..529db11af1 100644
--- a/src/web/app/desktop/tags/messaging/window.tag
+++ b/src/web/app/desktop/tags/messaging/window.tag
@@ -1,6 +1,6 @@
- メッセージ
+ %fa:comments%メッセージ
@@ -9,7 +9,7 @@
:scope
> mk-window
[data-yield='header']
- > i
+ > [data-fa]
margin-right 4px
[data-yield='content']
diff --git a/src/web/app/desktop/tags/notifications.tag b/src/web/app/desktop/tags/notifications.tag
index d7855363ea..b65f1a6a65 100644
--- a/src/web/app/desktop/tags/notifications.tag
+++ b/src/web/app/desktop/tags/notifications.tag
@@ -16,7 +16,7 @@
@@ -24,7 +24,7 @@
@@ -32,7 +32,7 @@
@@ -40,7 +40,7 @@
@@ -48,7 +48,7 @@
@@ -56,18 +56,18 @@
- { notification._datetext }{ notifications[i + 1]._datetext }
+ %fa:angle-up%{ notification._datetext }%fa:angle-down%{ notifications[i + 1]._datetext }
ありません!
-
%i18n:common.loading%
+
%fa:spinner .pluse .fw%%i18n:common.loading%
diff --git a/src/web/app/desktop/tags/pages/entrance.tag b/src/web/app/desktop/tags/pages/entrance.tag
index 02aeb922fe..44548e4183 100644
--- a/src/web/app/desktop/tags/pages/entrance.tag
+++ b/src/web/app/desktop/tags/pages/entrance.tag
@@ -150,7 +150,7 @@
-
+ %fa:question%
- %i18n:mobile.tags.mk-drive-file-viewer.hash%
+ %fa:hashtag%%i18n:mobile.tags.mk-drive-file-viewer.hash%
{ file.md5 }
@@ -114,7 +114,7 @@
> .created-at
color #bdbdbd
- > i
+ > [data-fa]
margin-right 2px
> .menu
@@ -149,7 +149,7 @@
border-color #444
box-shadow 0 1px 3px rgba(0, 0, 0, 0.075), inset 0 0 5px rgba(0, 0, 0, 0.2)
- > i
+ > [data-fa]
margin-right 4px
> .hash
@@ -167,7 +167,7 @@
color #555
font-size 0.9em
- > i
+ > [data-fa]
margin-right 4px
> code
diff --git a/src/web/app/mobile/tags/drive/file.tag b/src/web/app/mobile/tags/drive/file.tag
index 1499e8d7b7..93a8dba7e5 100644
--- a/src/web/app/mobile/tags/drive/file.tag
+++ b/src/web/app/mobile/tags/drive/file.tag
@@ -15,7 +15,7 @@
{ bytesToSize(file.datasize) }
-
+ %fa:R clock%
@@ -112,7 +112,7 @@
padding 0
color #BDBDBD
- > i
+ > [data-fa]
margin-right 2px
&[data-is-selected]
diff --git a/src/web/app/mobile/tags/drive/folder.tag b/src/web/app/mobile/tags/drive/folder.tag
index 27e86662c7..196e7e326b 100644
--- a/src/web/app/mobile/tags/drive/folder.tag
+++ b/src/web/app/mobile/tags/drive/folder.tag
@@ -1,6 +1,6 @@
-
{ folder.name }
+
%fa:folder%{ folder.name }
%fa:angle-right%
diff --git a/src/web/app/mobile/tags/init-following.tag b/src/web/app/mobile/tags/init-following.tag
index 6357f86a29..552b43348b 100644
--- a/src/web/app/mobile/tags/init-following.tag
+++ b/src/web/app/mobile/tags/init-following.tag
@@ -6,9 +6,9 @@
おすすめのユーザーは見つかりませんでした。
-
読み込んでいます
+
%fa:spinner .pluse .fw%読み込んでいます
もっと見る
-
+
diff --git a/src/web/app/mobile/tags/notification-preview.tag b/src/web/app/mobile/tags/notification-preview.tag
index 1fdcc57641..0472ca2521 100644
--- a/src/web/app/mobile/tags/notification-preview.tag
+++ b/src/web/app/mobile/tags/notification-preview.tag
@@ -9,41 +9,41 @@
-
{ notification.post.user.name }
+
%fa:retweet%{ notification.post.user.name }
{ getPostSummary(notification.post.repost) }
-
{ notification.post.user.name }
+
%fa:quote-left%{ notification.post.user.name }
{ getPostSummary(notification.post) }
-
{ notification.user.name }
+
%fa:user-plus%{ notification.user.name }
-
{ notification.post.user.name }
+
%fa:reply%{ notification.post.user.name }
{ getPostSummary(notification.post) }
-
{ notification.post.user.name }
+
%fa:at%{ notification.post.user.name }
{ getPostSummary(notification.post) }
-
{ notification.user.name }
+
%fa:pie-chart%{ notification.user.name }
{ getPostSummary(notification.post) }
diff --git a/src/web/app/mobile/tags/notification.tag b/src/web/app/mobile/tags/notification.tag
index 53222b9dbe..e3575a4920 100644
--- a/src/web/app/mobile/tags/notification.tag
+++ b/src/web/app/mobile/tags/notification.tag
@@ -18,7 +18,7 @@
-
+ %fa:retweet%
{ notification.post.user.name }
{ getPostSummary(notification.post.repost) }
@@ -30,7 +30,7 @@
-
+ %fa:quote-left%
{ notification.post.user.name }
{ getPostSummary(notification.post) }
@@ -42,7 +42,7 @@
@@ -53,7 +53,7 @@
-
+ %fa:reply%
{ notification.post.user.name }
{ getPostSummary(notification.post) }
@@ -65,7 +65,7 @@
-
+ %fa:at%
{ notification.post.user.name }
{ getPostSummary(notification.post) }
@@ -77,7 +77,7 @@
-
+ %fa:pie-chart%
{ notification.user.name }
{ getPostSummary(notification.post) }
diff --git a/src/web/app/mobile/tags/notifications.tag b/src/web/app/mobile/tags/notifications.tag
index 7406fd95e2..102631cd79 100644
--- a/src/web/app/mobile/tags/notifications.tag
+++ b/src/web/app/mobile/tags/notifications.tag
@@ -2,14 +2,14 @@
- { notification._datetext }{ notifications[i + 1]._datetext }
+ %fa:angle-up%{ notification._datetext }%fa:angle-down%{ notifications[i + 1]._datetext }
%i18n:mobile.tags.mk-notifications.empty%
-
%i18n:common.loading%
+
%fa:spinner .pluse .fw%%i18n:common.loading%
diff --git a/src/web/app/mobile/tags/page/drive.tag b/src/web/app/mobile/tags/page/drive.tag
index 218960c702..1d2c595416 100644
--- a/src/web/app/mobile/tags/page/drive.tag
+++ b/src/web/app/mobile/tags/page/drive.tag
@@ -12,11 +12,11 @@
this.on('mount', () => {
document.title = 'Misskey Drive';
- ui.trigger('title', '
%i18n:mobile.tags.mk-drive-page.drive%');
+ ui.trigger('title', '%fa:cloud%%i18n:mobile.tags.mk-drive-page.drive%');
ui.trigger('func', () => {
this.refs.ui.refs.browser.openContextMenu();
- }, 'ellipsis-h');
+ }, '%fa:ellipsis-h%');
this.refs.ui.refs.browser.on('begin-fetch', () => {
Progress.start();
@@ -37,7 +37,7 @@
history.pushState(null, title, '/i/drive');
document.title = title;
- ui.trigger('title', '
%i18n:mobile.tags.mk-drive-page.drive%');
+ ui.trigger('title', '%fa:cloud%%i18n:mobile.tags.mk-drive-page.drive%');
});
this.refs.ui.refs.browser.on('open-folder', (folder, silent) => {
@@ -50,7 +50,7 @@
document.title = title;
// TODO: escape html characters in folder.name
- ui.trigger('title', '
' + folder.name);
+ ui.trigger('title', '%fa:folder-open%' + folder.name);
});
this.refs.ui.refs.browser.on('open-file', (file, silent) => {
diff --git a/src/web/app/mobile/tags/page/entrance/signup.tag b/src/web/app/mobile/tags/page/entrance/signup.tag
index 3798c94349..7b11bcad4d 100644
--- a/src/web/app/mobile/tags/page/entrance/signup.tag
+++ b/src/web/app/mobile/tags/page/entrance/signup.tag
@@ -1,6 +1,6 @@
-
+
diff --git a/src/web/app/mobile/tags/page/home.tag b/src/web/app/mobile/tags/page/home.tag
index 1b2a4b1e13..99cc6b29bf 100644
--- a/src/web/app/mobile/tags/page/home.tag
+++ b/src/web/app/mobile/tags/page/home.tag
@@ -22,12 +22,12 @@
this.on('mount', () => {
document.title = 'Misskey'
- ui.trigger('title', '%i18n:mobile.tags.mk-home.home%');
+ ui.trigger('title', '%fa:home%%i18n:mobile.tags.mk-home.home%');
document.documentElement.style.background = '#313a42';
ui.trigger('func', () => {
openPostForm();
- }, 'pencil');
+ }, '%fa:pencil-alt%');
Progress.start();
diff --git a/src/web/app/mobile/tags/page/messaging-room.tag b/src/web/app/mobile/tags/page/messaging-room.tag
index e66e03177f..00ee265120 100644
--- a/src/web/app/mobile/tags/page/messaging-room.tag
+++ b/src/web/app/mobile/tags/page/messaging-room.tag
@@ -24,7 +24,7 @@
document.title = `%i18n:mobile.tags.mk-messaging-room-page.message%: ${user.name} | Misskey`;
// TODO: ユーザー名をエスケープ
- ui.trigger('title', '' + user.name);
+ ui.trigger('title', '%fa:R comments%' + user.name);
});
});
diff --git a/src/web/app/mobile/tags/page/messaging.tag b/src/web/app/mobile/tags/page/messaging.tag
index 11e8f8cb48..29e98ce092 100644
--- a/src/web/app/mobile/tags/page/messaging.tag
+++ b/src/web/app/mobile/tags/page/messaging.tag
@@ -13,7 +13,7 @@
this.on('mount', () => {
document.title = 'Misskey | %i18n:mobile.tags.mk-messaging-page.message%';
- ui.trigger('title', '%i18n:mobile.tags.mk-messaging-page.message%');
+ ui.trigger('title', '%fa:R comments%%i18n:mobile.tags.mk-messaging-page.message%');
this.refs.ui.refs.index.on('navigate-user', user => {
this.page('/i/messaging/' + user.username);
diff --git a/src/web/app/mobile/tags/page/notifications.tag b/src/web/app/mobile/tags/page/notifications.tag
index 743de04393..1db9c5d661 100644
--- a/src/web/app/mobile/tags/page/notifications.tag
+++ b/src/web/app/mobile/tags/page/notifications.tag
@@ -14,12 +14,12 @@
this.on('mount', () => {
document.title = 'Misskey | %i18n:mobile.tags.mk-notifications-page.notifications%';
- ui.trigger('title', '%i18n:mobile.tags.mk-notifications-page.notifications%');
+ ui.trigger('title', '%fa:R bell%%i18n:mobile.tags.mk-notifications-page.notifications%');
document.documentElement.style.background = '#313a42';
ui.trigger('func', () => {
this.readAll();
- }, 'check');
+ }, '%fa:check%');
Progress.start();
diff --git a/src/web/app/mobile/tags/page/post.tag b/src/web/app/mobile/tags/page/post.tag
index 6888229f89..91babd0b15 100644
--- a/src/web/app/mobile/tags/page/post.tag
+++ b/src/web/app/mobile/tags/page/post.tag
@@ -1,11 +1,11 @@
- %i18n:mobile.tags.mk-post-page.next%
+ %fa:angle-up%%i18n:mobile.tags.mk-post-page.next%
- %i18n:mobile.tags.mk-post-page.prev%
+ %fa:angle-down%%i18n:mobile.tags.mk-post-page.prev%
diff --git a/src/web/app/mobile/tags/page/settings/api.tag b/src/web/app/mobile/tags/page/settings/api.tag
index 25413e2d80..8de0e96963 100644
--- a/src/web/app/mobile/tags/page/settings/api.tag
+++ b/src/web/app/mobile/tags/page/settings/api.tag
@@ -11,7 +11,7 @@
this.on('mount', () => {
document.title = 'Misskey | API';
- ui.trigger('title', 'API');
+ ui.trigger('title', '%fa:key%API');
});
diff --git a/src/web/app/mobile/tags/page/settings/authorized-apps.tag b/src/web/app/mobile/tags/page/settings/authorized-apps.tag
index 78efd13e47..8d538eba5d 100644
--- a/src/web/app/mobile/tags/page/settings/authorized-apps.tag
+++ b/src/web/app/mobile/tags/page/settings/authorized-apps.tag
@@ -11,7 +11,7 @@
this.on('mount', () => {
document.title = 'Misskey | %i18n:mobile.tags.mk-authorized-apps-page.application%';
- ui.trigger('title', '%i18n:mobile.tags.mk-authorized-apps-page.application%');
+ ui.trigger('title', '%fa:puzzle-piece%%i18n:mobile.tags.mk-authorized-apps-page.application%');
});
diff --git a/src/web/app/mobile/tags/page/settings/profile.tag b/src/web/app/mobile/tags/page/settings/profile.tag
index 305f16fec5..8881e95190 100644
--- a/src/web/app/mobile/tags/page/settings/profile.tag
+++ b/src/web/app/mobile/tags/page/settings/profile.tag
@@ -11,7 +11,7 @@
this.on('mount', () => {
document.title = 'Misskey | %i18n:mobile.tags.mk-profile-setting-page.title%';
- ui.trigger('title', '%i18n:mobile.tags.mk-profile-setting-page.title%');
+ ui.trigger('title', '%fa:user%%i18n:mobile.tags.mk-profile-setting-page.title%');
document.documentElement.style.background = '#313a42';
});
@@ -19,7 +19,7 @@
-
%i18n:mobile.tags.mk-profile-setting.will-be-published%
+
%fa:info-circle%%i18n:mobile.tags.mk-profile-setting.will-be-published%
diff --git a/src/web/app/mobile/tags/page/settings/signin.tag b/src/web/app/mobile/tags/page/settings/signin.tag
index a91ebfb140..19aae34736 100644
--- a/src/web/app/mobile/tags/page/settings/signin.tag
+++ b/src/web/app/mobile/tags/page/settings/signin.tag
@@ -11,7 +11,7 @@
this.on('mount', () => {
document.title = 'Misskey | %i18n:mobile.tags.mk-signin-history-page.signin-history%';
- ui.trigger('title', '
%i18n:mobile.tags.mk-signin-history-page.signin-history%');
+ ui.trigger('title', '%fa:sign-in%%i18n:mobile.tags.mk-signin-history-page.signin-history%');
});
diff --git a/src/web/app/mobile/tags/page/settings/twitter.tag b/src/web/app/mobile/tags/page/settings/twitter.tag
index 870eeeb5bc..d8e19cb3e4 100644
--- a/src/web/app/mobile/tags/page/settings/twitter.tag
+++ b/src/web/app/mobile/tags/page/settings/twitter.tag
@@ -11,7 +11,7 @@
this.on('mount', () => {
document.title = 'Misskey | %i18n:mobile.tags.mk-twitter-setting-page.twitter-integration%';
- ui.trigger('title', '%i18n:mobile.tags.mk-twitter-setting-page.twitter-integration%');
+ ui.trigger('title', '%fa:twitter%%i18n:mobile.tags.mk-twitter-setting-page.twitter-integration%');
});
diff --git a/src/web/app/mobile/tags/page/user.tag b/src/web/app/mobile/tags/page/user.tag
index 1abeab492a..78ca534eb0 100644
--- a/src/web/app/mobile/tags/page/user.tag
+++ b/src/web/app/mobile/tags/page/user.tag
@@ -20,7 +20,7 @@
Progress.done();
document.title = user.name + ' | Misskey';
// TODO: ユーザー名をエスケープ
- ui.trigger('title', '
' + user.name);
+ ui.trigger('title', '%fa:user%' + user.name);
});
});
diff --git a/src/web/app/mobile/tags/post-detail.tag b/src/web/app/mobile/tags/post-detail.tag
index 28071a5cac..cfc5ee2f40 100644
--- a/src/web/app/mobile/tags/post-detail.tag
+++ b/src/web/app/mobile/tags/post-detail.tag
@@ -1,7 +1,7 @@
@@ -15,7 +15,7 @@
-
+ %fa:retweet%
{ post.user.name }
がRepost
@@ -44,16 +44,16 @@
diff --git a/src/web/app/mobile/tags/post-form.tag b/src/web/app/mobile/tags/post-form.tag
index 2912bfdfa2..a408006949 100644
--- a/src/web/app/mobile/tags/post-form.tag
+++ b/src/web/app/mobile/tags/post-form.tag
@@ -1,6 +1,6 @@
-
+
{ 1000 - refs.text.value.length }
@@ -14,15 +14,15 @@
-
+
%fa:plus%
-
-
-
-
+
+
+
+
diff --git a/src/web/app/status/tags/index.tag b/src/web/app/status/tags/index.tag
index cb379f66bc..dcadc66172 100644
--- a/src/web/app/status/tags/index.tag
+++ b/src/web/app/status/tags/index.tag
@@ -1,6 +1,6 @@
MisskeyStatus
- %i18n:status.all-systems-maybe-operational%
+ %fa:info-circle%%i18n:status.all-systems-maybe-operational%
@@ -19,7 +19,7 @@
font-size 24px
font-weight normal
- > i
+ > [data-fa]
font-style normal
color #f43b16
@@ -31,7 +31,7 @@
//border solid 1px #99ccb2
border-radius 4px
- > i
+ > [data-fa]
margin-right 5px
> main
diff --git a/webpack/module/rules/fa.ts b/webpack/module/rules/fa.ts
new file mode 100644
index 0000000000..57691f9899
--- /dev/null
+++ b/webpack/module/rules/fa.ts
@@ -0,0 +1,54 @@
+/**
+ * Replace fontawesome symbols
+ */
+
+const StringReplacePlugin = require('string-replace-webpack-plugin');
+
+const fontawesome = require('@fortawesome/fontawesome');
+const solid = require('@fortawesome/fontawesome-free-solid');
+
+// Adds all the icons from the Solid style into our library for easy lookup
+fontawesome.library.add(solid);
+
+export default () => ({
+ enforce: 'pre',
+ test: /\.(tag|js|ts)$/,
+ exclude: /node_modules/,
+ loader: StringReplacePlugin.replace({
+ replacements: [{
+ pattern: /%fa:(.+?)%/g, replacement: (_, key) => {
+ const args = key.split(' ');
+ let prefix = 'fas';
+ let klass = '';
+ let transform = '';
+ let name;
+
+ args.forEach(arg => {
+ if (arg == 'R' || arg == 'S') {
+ prefix =
+ arg == 'R' ? 'far' :
+ arg == 'S' ? 'fas' :
+ '';
+ } else if (arg[0] == '.') {
+ klass += arg.substr(1) + ' ';
+ } else if (arg[0] == '-') {
+ transform = arg.substr(1).split('|').join(' ');
+ } else {
+ name = arg;
+ }
+ });
+
+ const icon = fontawesome.icon({ prefix, iconName: name });
+
+ if (icon) {
+ icon.class = klass;
+ icon.transform = fontawesome.parse.transform(transform);
+ return `${icon.html[0]}`;
+ } else {
+ console.warn(`'${name}' not found in fa`);
+ return '';
+ }
+ }
+ }]
+ })
+});
diff --git a/webpack/module/rules/index.ts b/webpack/module/rules/index.ts
index 9c1262b3d6..79740ce48e 100644
--- a/webpack/module/rules/index.ts
+++ b/webpack/module/rules/index.ts
@@ -1,4 +1,5 @@
import i18n from './i18n';
+import fa from './fa';
import base64 from './base64';
import themeColor from './theme-color';
import tag from './tag';
@@ -7,6 +8,7 @@ import typescript from './typescript';
export default (lang, locale) => [
i18n(lang, locale),
+ fa(),
base64(),
themeColor(),
tag(),