summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-18 17:34:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-18 17:34:14 +0900
commit2d1287d103a4012949f585dec2ec9e779651d295 (patch)
treead6490110e49eb9a936513ea2463c0fa40096415 /src/web/app/desktop/scripts
parent[Client] Update design (diff)
downloadsharkey-2d1287d103a4012949f585dec2ec9e779651d295.tar.gz
sharkey-2d1287d103a4012949f585dec2ec9e779651d295.tar.bz2
sharkey-2d1287d103a4012949f585dec2ec9e779651d295.zip
壁紙廃止
Diffstat (limited to 'src/web/app/desktop/scripts')
-rw-r--r--src/web/app/desktop/scripts/update-wallpaper.ls35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/web/app/desktop/scripts/update-wallpaper.ls b/src/web/app/desktop/scripts/update-wallpaper.ls
deleted file mode 100644
index e7394a0d0c..0000000000
--- a/src/web/app/desktop/scripts/update-wallpaper.ls
+++ /dev/null
@@ -1,35 +0,0 @@
-# Update Wallpaper
-#================================
-
-riot = require 'riot'
-dialog = require './dialog.ls'
-api = require '../../common/scripts/api'
-
-module.exports = (I, cb, file = null) ~>
-
- @set = (file) ~>
- api I, \i/appdata/set do
- data: JSON.stringify do
- wallpaper: file.id
- .then (i) ~>
- dialog do
- '<i class="fa fa-info-circle"></i>壁紙を更新しました'
- '新しい壁紙が反映されるまで時間がかかる場合があります。'
- [
- text: \はい
- ]
- if cb? then cb i
- .catch (err) ~>
- console.error err
- #@opts.ui.trigger \notification 'Error!'
-
- if file?
- @set file
- else
- browser = document.body.append-child document.create-element \mk-select-file-from-drive-window
- browser = riot.mount browser, do
- multiple: false
- title: '<i class="fa fa-picture-o"></i>壁紙にする画像を選択'
- .0
- browser.one \selected (file) ~>
- @set file