From a73dc70232a62049579e42b06dbd18aac34c8823 Mon Sep 17 00:00:00 2001 From: Razvan Stoenescu Date: Mon, 22 Aug 2016 23:51:13 +0300 Subject: [PATCH] feat: Final build for v0.6.0 --- build/script.dev.js | 5 ++- dev/views/dialog.vue | 41 --------------------- src/components/action-sheet/action-sheet.js | 3 +- src/components/dialog/dialog.html | 14 ------- src/components/dialog/dialog.js | 28 -------------- src/components/modal/modal.js | 32 ++++++++++++---- src/themes/core/colors.styl | 16 ++++---- src/vue-components/slider/slider.vue | 19 +++++++--- 8 files changed, 51 insertions(+), 107 deletions(-) diff --git a/build/script.dev.js b/build/script.dev.js index 5a240483e41..dbb7ffa7532 100644 --- a/build/script.dev.js +++ b/build/script.dev.js @@ -6,6 +6,7 @@ var webpackConfig = require('./webpack.dev.config'), platform = require('./platform'), app = express(), + port = process.env.PORT || 8080, compiler = webpack(webpackConfig), devMiddleware = require('webpack-dev-middleware')(compiler, { publicPath: '', @@ -40,11 +41,11 @@ app.use('/statics', express.static('./dev/statics')) // try to serve Cordova statics for Play App app.use(express.static(platform.cordovaAssets)) -module.exports = app.listen(8080, function (err) { +module.exports = app.listen(port, function (err) { if (err) { console.log(err) return } console.log('Developing with "' + platform.theme + '" theme') - console.log('Listening at http://localhost:8080\n') + console.log('Listening at http://localhost:' + port + '\n') }) diff --git a/dev/views/dialog.vue b/dev/views/dialog.vue index bd9bfa44daf..aef24bb5b50 100644 --- a/dev/views/dialog.vue +++ b/dev/views/dialog.vue @@ -5,7 +5,6 @@ - @@ -251,46 +250,6 @@ export default { ] Dialog.create(options).show() - }, - range () { - Dialog.create({ - title: 'Ranges', - ranges: [ - { - label: 'Volume', - min: 1, - max: 5, - iconMin: 'volume_down', - iconMax: 'volume_up' - }, - { - label: 'Brightness', - min: 1, - max: 5, - value: 2 - }, - { - label: 'Speed', - min: 1, - max: 10, - value: 6 - }, - { - label: 'Noise Level', - min: 4, - max: 15 - } - ], - buttons: [ - 'Cancel', - { - label: 'Change', - handler (data) { - console.log('OK!', data) - } - } - ] - }).show() } } } diff --git a/src/components/action-sheet/action-sheet.js b/src/components/action-sheet/action-sheet.js index 1ddbbb88c6a..01a4e49bbe7 100644 --- a/src/components/action-sheet/action-sheet.js +++ b/src/components/action-sheet/action-sheet.js @@ -59,7 +59,8 @@ function create (data) { .css(getCSS()) .set({ transitionIn: {translateY: [0, '101%']}, - transitionOut: {translateY: ['101%', 0]} + transitionOut: {translateY: ['101%', 0]}, + onBackButton: data.dismissButton.handler }) modal.$el.classList.remove('items-center') diff --git a/src/components/dialog/dialog.html b/src/components/dialog/dialog.html index 6c338aac337..67fa96dcbc8 100644 --- a/src/components/dialog/dialog.html +++ b/src/components/dialog/dialog.html @@ -39,20 +39,6 @@ -