From 2d1287d103a4012949f585dec2ec9e779651d295 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Feb 2017 17:34:14 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A3=81=E7=B4=99=E5=BB=83=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/desktop/mixins.ls | 3 -- .../app/desktop/scripts/update-wallpaper.ls | 35 ------------------- src/web/app/desktop/tags/pages/home.tag | 9 ----- src/web/app/desktop/tags/settings.tag | 13 ------- 4 files changed, 60 deletions(-) delete mode 100644 src/web/app/desktop/scripts/update-wallpaper.ls diff --git a/src/web/app/desktop/mixins.ls b/src/web/app/desktop/mixins.ls index b099b45165..cb01001cb8 100644 --- a/src/web/app/desktop/mixins.ls +++ b/src/web/app/desktop/mixins.ls @@ -34,9 +34,6 @@ module.exports = (me) ~> riot.mixin \update-banner do update-banner: require './scripts/update-banner.ls' - riot.mixin \update-wallpaper do - update-wallpaper: require './scripts/update-wallpaper.ls' - riot.mixin \autocomplete do Autocomplete: require './scripts/autocomplete.ls' 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 - '壁紙を更新しました' - '新しい壁紙が反映されるまで時間がかかる場合があります。' - [ - 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: '壁紙にする画像を選択' - .0 - browser.one \selected (file) ~> - @set file diff --git a/src/web/app/desktop/tags/pages/home.tag b/src/web/app/desktop/tags/pages/home.tag index 5c7ee3342b..bc66a2830c 100644 --- a/src/web/app/desktop/tags/pages/home.tag +++ b/src/web/app/desktop/tags/pages/home.tag @@ -6,10 +6,6 @@ :scope display block - background-position center center - background-attachment fixed - background-size cover -