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 @@ -