summaryrefslogtreecommitdiff
path: root/src/web/app/desktop
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-13 07:39:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-13 07:39:54 +0900
commit96cd073bda6ecffb4e9b2489af512f05c9f8dd8c (patch)
treec5b6dbd035460297f059e8ff24a9fc620c84547c /src/web/app/desktop
parent[Test] :v: (diff)
downloadmisskey-96cd073bda6ecffb4e9b2489af512f05c9f8dd8c.tar.gz
misskey-96cd073bda6ecffb4e9b2489af512f05c9f8dd8c.tar.bz2
misskey-96cd073bda6ecffb4e9b2489af512f05c9f8dd8c.zip
[Client] LS to JS and some Clean up :v:
Diffstat (limited to 'src/web/app/desktop')
-rw-r--r--src/web/app/desktop/scripts/update-avatar.ls2
-rw-r--r--src/web/app/desktop/scripts/update-banner.ls2
-rw-r--r--src/web/app/desktop/scripts/update-wallpaper.ls2
-rw-r--r--src/web/app/desktop/tags/detect-slow-internet-connection-notice.tag60
-rw-r--r--src/web/app/desktop/tags/home.tag1
-rw-r--r--src/web/app/desktop/tags/index.js1
6 files changed, 3 insertions, 65 deletions
diff --git a/src/web/app/desktop/scripts/update-avatar.ls b/src/web/app/desktop/scripts/update-avatar.ls
index 513a59074c..351e54fe51 100644
--- a/src/web/app/desktop/scripts/update-avatar.ls
+++ b/src/web/app/desktop/scripts/update-avatar.ls
@@ -3,7 +3,7 @@
riot = require 'riot'
dialog = require './dialog.ls'
-api = require '../../common/scripts/api.ls'
+api = require '../../common/scripts/api'
module.exports = (I, cb, file = null) ~>
diff --git a/src/web/app/desktop/scripts/update-banner.ls b/src/web/app/desktop/scripts/update-banner.ls
index 5754cdcdb1..2417b8ab2a 100644
--- a/src/web/app/desktop/scripts/update-banner.ls
+++ b/src/web/app/desktop/scripts/update-banner.ls
@@ -3,7 +3,7 @@
riot = require 'riot'
dialog = require './dialog.ls'
-api = require '../../common/scripts/api.ls'
+api = require '../../common/scripts/api'
module.exports = (I, cb, file = null) ~>
diff --git a/src/web/app/desktop/scripts/update-wallpaper.ls b/src/web/app/desktop/scripts/update-wallpaper.ls
index 49632400c0..e7394a0d0c 100644
--- a/src/web/app/desktop/scripts/update-wallpaper.ls
+++ b/src/web/app/desktop/scripts/update-wallpaper.ls
@@ -3,7 +3,7 @@
riot = require 'riot'
dialog = require './dialog.ls'
-api = require '../../common/scripts/api.ls'
+api = require '../../common/scripts/api'
module.exports = (I, cb, file = null) ~>
diff --git a/src/web/app/desktop/tags/detect-slow-internet-connection-notice.tag b/src/web/app/desktop/tags/detect-slow-internet-connection-notice.tag
deleted file mode 100644
index 09a746fb9b..0000000000
--- a/src/web/app/desktop/tags/detect-slow-internet-connection-notice.tag
+++ /dev/null
@@ -1,60 +0,0 @@
-<mk-detect-slow-internet-connection-notice><i><i class="fa fa-exclamation"></i></i>
- <div>
- <p>インターネット回線が遅いようです。</p>
- </div>
- <style type="stylus">
- :scope
- display block
- pointer-events none
- position fixed
- z-index 16384
- top 64px
- right 16px
- margin 0
- padding 0
- width 298px
- font-size 0.9em
- background #fff
- box-shadow 0 1px 4px rgba(0, 0, 0, 0.25)
- opacity 0
-
- > i
- display block
- width 48px
- line-height 48px
- margin-right 0.25em
- text-align center
- color $theme-color-foreground
- font-size 1.5em
- background $theme-color
-
- > div
- display block
- position absolute
- top 0
- left 48px
- margin 0
- width 250px
- height 48px
- color #666
-
- > p
- display block
- margin 0
- padding 8px
-
- </style>
- <script>
- @mixin \net
-
- @net.on \detected-slow-network ~>
- Velocity @root, {
- opacity: 1
- } 200ms \linear
- set-timeout ~>
- Velocity @root, {
- opacity: 0
- } 200ms \linear
- , 10000ms
- </script>
-</mk-detect-slow-internet-connection-notice>
diff --git a/src/web/app/desktop/tags/home.tag b/src/web/app/desktop/tags/home.tag
index c7dc82efc9..b969aec444 100644
--- a/src/web/app/desktop/tags/home.tag
+++ b/src/web/app/desktop/tags/home.tag
@@ -7,7 +7,6 @@
</main>
<div class="right" ref="right"></div>
</div>
- <mk-detect-slow-internet-connection-notice></mk-detect-slow-internet-connection-notice>
<style type="stylus">
:scope
display block
diff --git a/src/web/app/desktop/tags/index.js b/src/web/app/desktop/tags/index.js
index 449bb71ae1..e88d8d27e9 100644
--- a/src/web/app/desktop/tags/index.js
+++ b/src/web/app/desktop/tags/index.js
@@ -54,7 +54,6 @@ require('./following-setuper.tag');
require('./ellipsis-icon.tag');
require('./ui.tag');
require('./home.tag');
-require('./detect-slow-internet-connection-notice.tag');
require('./user-header.tag');
require('./user-profile.tag');
require('./user-timeline.tag');