summaryrefslogtreecommitdiff
path: root/src/web/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-30 06:45:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-30 06:45:43 +0900
commitaf03db6ae6cfc37b309fed10eb807181e584ce3f (patch)
tree19f09ac8bf5c10878d96f748432a4d926fe2241c /src/web/app/common
parentUpdate Misskey icon :art: (diff)
downloadmisskey-af03db6ae6cfc37b309fed10eb807181e584ce3f.tar.gz
misskey-af03db6ae6cfc37b309fed10eb807181e584ce3f.tar.bz2
misskey-af03db6ae6cfc37b309fed10eb807181e584ce3f.zip
[Client] :v:
Diffstat (limited to 'src/web/app/common')
-rw-r--r--src/web/app/common/tags/index.js1
-rw-r--r--src/web/app/common/tags/public-timeline.tag111
2 files changed, 0 insertions, 112 deletions
diff --git a/src/web/app/common/tags/index.js b/src/web/app/common/tags/index.js
index 567f2ffd78..dfec571478 100644
--- a/src/web/app/common/tags/index.js
+++ b/src/web/app/common/tags/index.js
@@ -24,7 +24,6 @@ require('./messaging/message.tag');
require('./messaging/index.tag');
require('./messaging/form.tag');
require('./stream-indicator.tag');
-require('./public-timeline.tag');
require('./activity-table.tag');
require('./reaction-picker.tag');
require('./reactions-viewer.tag');
diff --git a/src/web/app/common/tags/public-timeline.tag b/src/web/app/common/tags/public-timeline.tag
deleted file mode 100644
index 98b1a12a7c..0000000000
--- a/src/web/app/common/tags/public-timeline.tag
+++ /dev/null
@@ -1,111 +0,0 @@
-<mk-public-timeline>
- <inside-renderer each="{ posts }"></inside-renderer>
- <style>
- :scope
- display block
- </style>
- <script>
- this.mixin('api');
-
- this.posts = [];
- this.isFetching = true;
-
- this.on('mount', () => {
- this.api('posts', {
- limit: 5,
- repost: false,
- reply: false,
- media: false,
- poll: false
- }).then(posts => {
- this.update({
- isFetching: false,
- posts: posts
- });
- });
- });
- </script>
-</mk-public-timeline>
-
-<inside-renderer>
- <article>
- <img src={ user.avatar_url + '?thumbnail&size=64' } alt="avatar"/>
- <div>
- <header>
- <span class="name">{ user.name }</span>
- <span class="username">@{ user.username }</span>
- </header>
- <div class="body">
- <div class="text" ref="text"></div>
- </div>
- </div>
- </article>
- <style>
- :scope
- display block
-
- > article
- padding 28px
- border-bottom solid 1px #eee
-
- &:last-child
- border-bottom none
-
- > img
- display block
- position absolute
- width 58px
- height 58px
- margin 0
- border-radius 100%
- vertical-align bottom
-
- > div
- min-height 58px
- padding-left 68px
-
- > header
- margin-bottom 2px
-
- > .name
- margin 0 .5em 0 0
- padding 0
- color #777
-
- > .username
- margin 0 .5em 0 0
- color #ccc
-
- > .body
- > .text
- cursor default
- display block
- margin 0
- padding 0
- overflow-wrap break-word
- font-size 1.1em
- color #717171
-
- </style>
- <script>
- import compile from '../../common/scripts/text-compiler';
-
- this.on('mount', () => {
- const html = compile(this.ast);
- this.refs.text.innerHTML = html;
-
- this.refs.text.children.forEach(e => {
- if (e.tagName == 'MK-URL') riot.mount(e);
- });
-
- // URLをプレビュー
- this.ast
- .filter(t => (t.type == 'url' || t.type == 'link') && !t.silent)
- .map(t => {
- riot.mount(this.refs.text.appendChild(document.createElement('mk-url-preview')), {
- url: t.url
- });
- });
- });
- </script>
-</inside-renderer>