なんかもうめっちゃ変えた

This commit is contained in:
syuilo
2017-01-21 21:08:40 +09:00
parent cd6b681748
commit 5da436a285
10 changed files with 31 additions and 49 deletions

View File

@@ -55,11 +55,10 @@
e.stop-propagation!
@I.data.no_donation = true
@I.update!
@api \i/appdata/set do
data: JSON.stringify do
no_donation: @I.data.no_donation
.then ~>
@update-i!
@unmount!

View File

@@ -81,21 +81,15 @@
@set-avatar = ~>
@refs.ctx.close!
@update-avatar @I, (i) ~>
@update-i i
, @file
@update-avatar @I, null, @file
@set-banner = ~>
@refs.ctx.close!
@update-banner @I, (i) ~>
@update-i i
, @file
@update-banner @I, null, @file
@set-wallpaper = ~>
@refs.ctx.close!
@update-wallpaper @I, (i) ~>
@update-i i
, @file
@update-wallpaper @I, null, @file
@add-app = ~>
@NotImplementedException!

View File

@@ -46,11 +46,9 @@
@mixin \update-banner
@set-avatar = ~>
@update-avatar @I, (i) ~>
@update-i i
@update-avatar @I
@set-banner = ~>
@update-banner @I, (i) ~>
@update-i i
@update-banner @I
</script>
</mk-profile-home-widget>

View File

@@ -35,8 +35,7 @@
@mixin \update-avatar
@set = ~>
@update-avatar @I, (i) ~>
@update-i i
@update-avatar @I
@close = (e) ~>
e.prevent-default!

View File

@@ -35,8 +35,7 @@
@mixin \update-banner
@set = ~>
@update-banner @I, (i) ~>
@update-i i
@update-banner @I
@close = (e) ~>
e.prevent-default!

View File

@@ -250,12 +250,10 @@
@page = page
@avatar = ~>
@update-avatar @I, (i) ~>
@update-i i
@update-avatar @I
@wallpaper = ~>
@update-wallpaper @I, (i) ~>
@update-i i
@update-wallpaper @I
@update-account = ~>
@api \i/update do
@@ -264,7 +262,6 @@
bio: @refs.account-bio.value
birthday: @refs.account-birthday.value
.then (i) ~>
@update-i i
alert \ok
.catch (err) ~>
console.error err
@@ -274,23 +271,17 @@
@api \i/appdata/set do
data: JSON.stringify do
cache: @I.data.cache
.then ~>
@update-i!
@update-debug = ~>
@I.data.debug = !@I.data.debug
@api \i/appdata/set do
data: JSON.stringify do
debug: @I.data.debug
.then ~>
@update-i!
@update-nya = ~>
@I.data.nya = !@I.data.nya
@api \i/appdata/set do
data: JSON.stringify do
nya: @I.data.nya
.then ~>
@update-i!
</script>
</mk-settings>