From 55be57ad21599dafb41bd71db7453dba38f3da4c Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 26 Jun 2018 18:47:09 +0900 Subject: [PATCH] Clean up --- .../components/misskey-flavored-markdown.ts | 11 ------- .../desktop/views/components/note-detail.vue | 32 ------------------- .../desktop/views/components/notes.note.vue | 32 ------------------- .../desktop/views/pages/deck/deck.note.vue | 28 ---------------- .../mobile/views/components/note-detail.vue | 28 ---------------- .../app/mobile/views/components/note.vue | 28 ---------------- 6 files changed, 159 deletions(-) diff --git a/src/client/app/common/views/components/misskey-flavored-markdown.ts b/src/client/app/common/views/components/misskey-flavored-markdown.ts index 30ad3ce3f..c321c7610 100644 --- a/src/client/app/common/views/components/misskey-flavored-markdown.ts +++ b/src/client/app/common/views/components/misskey-flavored-markdown.ts @@ -40,17 +40,6 @@ export default Vue.component('misskey-flavored-markdown', { ast = this.ast; } - if (ast.filter(x => x.type != 'hashtag').length == 0) { - return; - } - - while (ast[ast.length - 1] && ( - ast[ast.length - 1].type == 'hashtag' || - (ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == ' ') || - (ast[ast.length - 1].type == 'text' && ast[ast.length - 1].content == '\n'))) { - ast.pop(); - } - // Parse ast to DOM const els = flatten(ast.map(token => { switch (token.type) { diff --git a/src/client/app/desktop/views/components/note-detail.vue b/src/client/app/desktop/views/components/note-detail.vue index a9640ff9c..e3d16d705 100644 --- a/src/client/app/desktop/views/components/note-detail.vue +++ b/src/client/app/desktop/views/components/note-detail.vue @@ -47,9 +47,6 @@ -
- {{ tag }} -
%fa:map-marker-alt% %i18n:@location%
@@ -363,35 +360,6 @@ root(isDark) > .mk-url-preview margin-top 8px - > .tags - margin 4px 0 0 0 - - > * - display inline-block - margin 0 8px 0 0 - padding 2px 8px 2px 16px - font-size 90% - color #8d969e - background #edf0f3 - border-radius 4px - - &:before - content "" - display block - position absolute - top 0 - bottom 0 - left 4px - width 8px - height 8px - margin auto 0 - background #fff - border-radius 100% - - &:hover - text-decoration none - background #e2e7ec - > footer font-size 1.2em diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index 24f8d2f65..b8aff2d86 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -32,9 +32,6 @@
-
- {{ tag }} -
%fa:map-marker-alt% 位置情報
@@ -465,35 +462,6 @@ root(isDark) &:empty display none - > .tags - margin 4px 0 0 0 - - > * - display inline-block - margin 0 0 4px 6px - padding 2px 8px 2px 16px - font-size 90% - color $theme-color - background isDark ? #313543 : #edf0f3 - border-radius 4px - - &:before - content "" - display block - position absolute - top 0 - bottom 0 - left 4px - width 8px - height 8px - margin auto 0 - background isDark ? #282c37 : #fff - border-radius 100% - - &:hover - text-decoration none - background #e2e7ec - .mk-url-preview margin-top 8px diff --git a/src/client/app/desktop/views/pages/deck/deck.note.vue b/src/client/app/desktop/views/pages/deck/deck.note.vue index f4139c1bd..c7df715a0 100644 --- a/src/client/app/desktop/views/pages/deck/deck.note.vue +++ b/src/client/app/desktop/views/pages/deck/deck.note.vue @@ -32,9 +32,6 @@
-
- {{ tag }} -
%fa:map-marker-alt% %i18n:@location%
@@ -373,31 +370,6 @@ root(isDark) .mk-url-preview margin-top 8px - > .tags - margin 4px 0 0 0 - - > * - display inline-block - margin 0 0 4px 6px - padding 2px 8px 2px 16px - font-size 90% - color $theme-color - background isDark ? #313543 : #edf0f3 - border-radius 4px - - &:before - content "" - display block - position absolute - top 0 - bottom 0 - left 4px - width 8px - height 8px - margin auto 0 - background isDark ? #282c37 : #fff - border-radius 100% - > .media > img display block diff --git a/src/client/app/mobile/views/components/note-detail.vue b/src/client/app/mobile/views/components/note-detail.vue index 48c9c8bcb..fa1592218 100644 --- a/src/client/app/mobile/views/components/note-detail.vue +++ b/src/client/app/mobile/views/components/note-detail.vue @@ -40,9 +40,6 @@ (%i18n:@deleted%)
-
- {{ tag }} -
@@ -370,31 +367,6 @@ root(isDark) display block max-width 100% - > .tags - margin 4px 0 0 0 - - > * - display inline-block - margin 0 8px 0 0 - padding 2px 8px 2px 16px - font-size 90% - color #8d969e - background #edf0f3 - border-radius 4px - - &:before - content "" - display block - position absolute - top 0 - bottom 0 - left 4px - width 8px - height 8px - margin auto 0 - background #fff - border-radius 100% - > .time font-size 16px color isDark ? #606984 : #c0c0c0 diff --git a/src/client/app/mobile/views/components/note.vue b/src/client/app/mobile/views/components/note.vue index c947a6c56..8fc8af7f8 100644 --- a/src/client/app/mobile/views/components/note.vue +++ b/src/client/app/mobile/views/components/note.vue @@ -32,9 +32,6 @@ -
- {{ tag }} -
%fa:map-marker-alt% %i18n:@location%
@@ -417,31 +414,6 @@ root(isDark) .mk-url-preview margin-top 8px - > .tags - margin 4px 0 0 0 - - > * - display inline-block - margin 0 0 4px 6px - padding 2px 8px 2px 16px - font-size 90% - color $theme-color - background isDark ? #313543 : #edf0f3 - border-radius 4px - - &:before - content "" - display block - position absolute - top 0 - bottom 0 - left 4px - width 8px - height 8px - margin auto 0 - background isDark ? #282c37 : #fff - border-radius 100% - > .media > img display block