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 -