├── static ├── .gitkeep └── dog.ico ├── .vscode └── settings.json ├── Procfile ├── .eslintignore ├── config ├── prod.env.js ├── test.env.js ├── dev.env.js └── index.js ├── test ├── unit │ ├── .eslintrc │ ├── specs │ │ └── Hello.spec.js │ ├── index.js │ └── karma.conf.js └── e2e │ ├── specs │ └── test.js │ ├── custom-assertions │ └── elementCount.js │ ├── runner.js │ └── nightwatch.conf.js ├── .gitignore ├── .editorconfig ├── .postcssrc.js ├── .gitattributes ├── .babelrc ├── server.js ├── demo ├── index.html └── main.js ├── .eslintrc.js ├── webpack └── webpack.config.js ├── LICENSE ├── README.md ├── package.json └── component └── VueDualList.vue /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: node server.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js 3 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /static/dog.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajesty/Vue-Dual-List/HEAD/static/dog.ico -------------------------------------------------------------------------------- /test/unit/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "mocha": true 4 | }, 5 | "globals": { 6 | "expect": true, 7 | "sinon": true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /config/test.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var devEnv = require('./dev.env') 3 | 4 | module.exports = merge(devEnv, { 5 | NODE_ENV: '"testing"' 6 | }) 7 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | test/unit/coverage 8 | test/e2e/reports 9 | selenium-debug.log 10 | 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserlist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | 2 | webpack/webpack.config.js linguist-vendored 3 | demo/main.js linguist-vendored 4 | build/* linguist-vendored 5 | server.js linguist-vendored 6 | config/* linguist-vendored 7 | demo/* linguist-vendored 8 | test/* linguist-vendored 9 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-2" 5 | ], 6 | "plugins": ["transform-runtime"], 7 | "comments": false, 8 | "env": { 9 | "test": { 10 | "presets": ["env", "stage-2"], 11 | "plugins": [ "istanbul" ] 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test/unit/specs/Hello.spec.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Hello from '@/components/Hello' 3 | 4 | describe('Hello.vue', () => { 5 | it('should render correct contents', () => { 6 | const Constructor = Vue.extend(Hello) 7 | const vm = new Constructor().$mount() 8 | expect(vm.$el.querySelector('.hello h1').textContent) 9 | .to.equal('Welcome to Your Vue.js App') 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | var express = require('express') 2 | var app = express() 3 | var favicon = require('serve-favicon') 4 | app.use('/', express.static(__dirname + '/')) 5 | app.use(favicon(__dirname + '/static/dog.ico')) 6 | 7 | var PORT = process.env.PORT || 5000 8 | 9 | app.get('/', function (req, res) { 10 | res.sendfile('demo/index.html') 11 | }) 12 | 13 | app.listen(PORT, function () { 14 | console.log('Server Running on ' + PORT) 15 | }) 16 | -------------------------------------------------------------------------------- /test/unit/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | 3 | Vue.config.productionTip = false 4 | 5 | // require all test files (files that ends with .spec.js) 6 | const testsContext = require.context('./specs', true, /\.spec$/) 7 | testsContext.keys().forEach(testsContext) 8 | 9 | // require all src files except main.js for coverage. 10 | // you can also change this to match only the subset of files that 11 | // you want coverage for. 12 | const srcContext = require.context('../../demo', true, /^\.\/(?!main(\.js)?$)/) 13 | srcContext.keys().forEach(srcContext) 14 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Vue Dual List 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 |
{{options.selectedItems}} 12 |
13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /test/e2e/specs/test.js: -------------------------------------------------------------------------------- 1 | // For authoring Nightwatch tests, see 2 | // http://nightwatchjs.org/guide#usage 3 | 4 | module.exports = { 5 | 'default e2e tests': function (browser) { 6 | // automatically uses dev Server port from /config.index.js 7 | // default: http://localhost:8080 8 | // see nightwatch.conf.js 9 | const devServer = browser.globals.devServerURL 10 | 11 | browser 12 | .url(devServer) 13 | .waitForElementVisible('#app', 5000) 14 | .assert.elementPresent('.hello') 15 | .assert.containsText('h1', 'Welcome to Your Vue.js App') 16 | .assert.elementCount('img', 1) 17 | .end() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | // http://eslint.org/docs/user-guide/configuring 2 | 3 | module.exports = { 4 | root: true, 5 | parser: 'babel-eslint', 6 | parserOptions: { 7 | sourceType: 'module' 8 | }, 9 | env: { 10 | browser: true, 11 | }, 12 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 13 | extends: 'standard', 14 | // required to lint *.vue files 15 | plugins: [ 16 | 'html' 17 | ], 18 | // add your custom rules here 19 | 'rules': { 20 | // allow paren-less arrow functions 21 | 'arrow-parens': 0, 22 | // allow async-await 23 | 'generator-star-spacing': 0, 24 | // allow debugger during development 25 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /test/e2e/custom-assertions/elementCount.js: -------------------------------------------------------------------------------- 1 | // A custom Nightwatch assertion. 2 | // the name of the method is the filename. 3 | // can be used in tests like this: 4 | // 5 | // browser.assert.elementCount(selector, count) 6 | // 7 | // for how to write custom assertions see 8 | // http://nightwatchjs.org/guide#writing-custom-assertions 9 | exports.assertion = function (selector, count) { 10 | this.message = 'Testing if element <' + selector + '> has count: ' + count 11 | this.expected = count 12 | this.pass = function (val) { 13 | return val === this.expected 14 | } 15 | this.value = function (res) { 16 | return res.value 17 | } 18 | this.command = function (cb) { 19 | var self = this 20 | return this.api.execute(function (selector) { 21 | return document.querySelectorAll(selector).length 22 | }, [selector], function (res) { 23 | cb.call(self, res) 24 | }) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /webpack/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | module.exports = { 3 | 4 | entry: path.resolve(__dirname, '../demo/main.js'), 5 | 6 | output: { 7 | path: __dirname + '/../build', 8 | publicPath: 'build/', 9 | filename: 'build-heroku.js', 10 | chunkFilename: '[name].js' 11 | }, 12 | resolve: { 13 | alias:{ 14 | component: path.resolve( __dirname, '../component'), 15 | vue: 'vue/dist/vue.js', 16 | build: path.resolve( __dirname, '../build') 17 | }, 18 | extensions: ['.ts', '.tsx', '.js', '.vue'], 19 | }, 20 | module: { 21 | loaders: [{ 22 | test: /\.vue$/, 23 | loader: 'vue-loader' 24 | }, { 25 | test: /\.js$/, 26 | exclude: /(node_modules|bower_components)/, 27 | loader: 'babel-loader', 28 | query: { 29 | presets: ["es2015"], 30 | plugins: ["transform-object-rest-spread", "transform-vue-jsx"] 31 | } 32 | }, { 33 | test: /\.css$/, 34 | loaders: ['style', 'css'] 35 | }] 36 | } 37 | }; 38 | -------------------------------------------------------------------------------- /test/unit/karma.conf.js: -------------------------------------------------------------------------------- 1 | // This is a karma config file. For more details see 2 | // http://karma-runner.github.io/0.13/config/configuration-file.html 3 | // we are also using it with karma-webpack 4 | // https://github.com/webpack/karma-webpack 5 | 6 | var webpackConfig = require('../../build/webpack.test.conf') 7 | 8 | module.exports = function (config) { 9 | config.set({ 10 | // to run in additional browsers: 11 | // 1. install corresponding karma launcher 12 | // http://karma-runner.github.io/0.13/config/browsers.html 13 | // 2. add it to the `browsers` array below. 14 | browsers: ['PhantomJS'], 15 | frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'], 16 | reporters: ['spec', 'coverage'], 17 | files: ['./index.js'], 18 | preprocessors: { 19 | './index.js': ['webpack', 'sourcemap'] 20 | }, 21 | webpack: webpackConfig, 22 | webpackMiddleware: { 23 | noInfo: true 24 | }, 25 | coverageReporter: { 26 | dir: './coverage', 27 | reporters: [ 28 | { type: 'lcov', subdir: '.' }, 29 | { type: 'text-summary' } 30 | ] 31 | } 32 | }) 33 | } 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Mike Rodrigues De Lima 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /test/e2e/runner.js: -------------------------------------------------------------------------------- 1 | // 1. start the dev server using production config 2 | process.env.NODE_ENV = 'testing' 3 | var server = require('../../build/dev-server.js') 4 | 5 | server.ready.then(() => { 6 | // 2. run the nightwatch test suite against it 7 | // to run in additional browsers: 8 | // 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings" 9 | // 2. add it to the --env flag below 10 | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox` 11 | // For more information on Nightwatch's config file, see 12 | // http://nightwatchjs.org/guide#settings-file 13 | var opts = process.argv.slice(2) 14 | if (opts.indexOf('--config') === -1) { 15 | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js']) 16 | } 17 | if (opts.indexOf('--env') === -1) { 18 | opts = opts.concat(['--env', 'chrome']) 19 | } 20 | 21 | var spawn = require('cross-spawn') 22 | var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' }) 23 | 24 | runner.on('exit', function (code) { 25 | server.close() 26 | process.exit(code) 27 | }) 28 | 29 | runner.on('error', function (err) { 30 | server.close() 31 | throw err 32 | }) 33 | }) 34 | -------------------------------------------------------------------------------- /test/e2e/nightwatch.conf.js: -------------------------------------------------------------------------------- 1 | require('babel-register') 2 | var config = require('../../config') 3 | 4 | // http://nightwatchjs.org/gettingstarted#settings-file 5 | module.exports = { 6 | src_folders: ['test/e2e/specs'], 7 | output_folder: 'test/e2e/reports', 8 | custom_assertions_path: ['test/e2e/custom-assertions'], 9 | 10 | selenium: { 11 | start_process: true, 12 | server_path: require('selenium-server').path, 13 | host: '127.0.0.1', 14 | port: 4444, 15 | cli_args: { 16 | 'webdriver.chrome.driver': require('chromedriver').path 17 | } 18 | }, 19 | 20 | test_settings: { 21 | default: { 22 | selenium_port: 4444, 23 | selenium_host: 'localhost', 24 | silent: true, 25 | globals: { 26 | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port) 27 | } 28 | }, 29 | 30 | chrome: { 31 | desiredCapabilities: { 32 | browserName: 'chrome', 33 | javascriptEnabled: true, 34 | acceptSslCerts: true 35 | } 36 | }, 37 | 38 | firefox: { 39 | desiredCapabilities: { 40 | browserName: 'firefox', 41 | javascriptEnabled: true, 42 | acceptSslCerts: true 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /demo/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueDualList from 'component/VueDualList' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | el: '#vueduallist', 8 | name: 'vue-dual-list', 9 | data: function () { 10 | return { 11 | options: { 12 | label: 'Demo title', 13 | inputOptions: { uppercase: true, isRequired: false }, 14 | buttonOption: { textLeft: 'Move All', textRight: 'Move All' }, 15 | resizeBox: 'md', 16 | items: [ 17 | { 'id': '1', 'name': 'Alundra' }, 18 | { 'id': '2', 'name': 'Jess' }, 19 | { 'id': '3', 'name': 'Meia' }, 20 | { 'id': '4', 'name': 'Melzas' }, 21 | { 'id': '5', 'name': 'Septimus' }, 22 | 23 | { 'id': '6', 'name': 'Rudy Roughknight' }, 24 | { 'id': '7', 'name': 'Jack Van Burace' }, 25 | { 'id': '8', 'name': 'Hanpan' }, 26 | { 'id': '9', 'name': 'Cecilia Adlehyde' }, 27 | 28 | { 'id': '10', 'name': 'Serge' }, 29 | { 'id': '11', 'name': 'Kid' }, 30 | { 'id': '12', 'name': 'Lynx' }, 31 | { 'id': '13', 'name': 'Harle' } 32 | 33 | ], 34 | colorItems: '#1E90FF', 35 | selectedItems: [] 36 | } 37 | } 38 | }, 39 | components: { 40 | 'VueDualList': VueDualList 41 | } 42 | }) 43 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | // see http://vuejs-templates.github.io/webpack for documentation. 2 | var path = require('path') 3 | 4 | module.exports = { 5 | build: { 6 | env: require('./prod.env'), 7 | index: path.resolve(__dirname, '../dist/index.html'), 8 | assetsRoot: path.resolve(__dirname, '../dist'), 9 | assetsSubDirectory: 'static', 10 | assetsPublicPath: '/', 11 | productionSourceMap: true, 12 | // Gzip off by default as many popular static hosts such as 13 | // Surge or Netlify already gzip all static assets for you. 14 | // Before setting to `true`, make sure to: 15 | // npm install --save-dev compression-webpack-plugin 16 | productionGzip: false, 17 | productionGzipExtensions: ['js', 'css'], 18 | // Run the build command with an extra argument to 19 | // View the bundle analyzer report after build finishes: 20 | // `npm run build --report` 21 | // Set to `true` or `false` to always turn it on or off 22 | bundleAnalyzerReport: process.env.npm_config_report 23 | }, 24 | dev: { 25 | env: require('./dev.env'), 26 | port: 8080, 27 | autoOpenBrowser: true, 28 | assetsSubDirectory: 'static', 29 | assetsPublicPath: '/', 30 | proxyTable: {}, 31 | // CSS Sourcemaps off by default because relative paths are "buggy" 32 | // with this option, according to the CSS-Loader README 33 | // (https://github.com/webpack/css-loader#sourcemaps) 34 | // In our experience, they generally work as expected, 35 | // just be aware of this issue when enabling this option. 36 | cssSourceMap: false 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue Dual List - Dual List using Vuejs and VueMaterial 2 | [![duallist.png](https://i.postimg.cc/W4Jj8tYy/duallist.png)](https://postimg.cc/DWFtyfTQ) 3 | 4 | ## Try it yourself. 5 | [click here](https://vue-dual-list.herokuapp.com/) 6 | 7 | # How to install 8 | ```JavaScript 9 | npm install vue-dual-list --save 10 | ``` 11 | 12 | # How to use 13 | 14 | ```JavaScript 15 | var VueDualList = require('vue-dual-list'); 16 | 17 | new Vue({ 18 | el: '#vueduallist', 19 | name: 'vue-dual-list', 20 | data: function() { 21 | return { 22 | options: { 23 | label: 'Demo title', 24 | inputOptions: { uppercase: true, isRequired: false }, 25 | buttonOption: { textLeft: 'Move All', textRight: 'Move All' }, 26 | resizeBox: "md", 27 | items: [ 28 | { 'id': '1', 'name': 'Alundra' }, 29 | { 'id': '2', 'name': 'Jess' }, 30 | { 'id': '3', 'name': 'Meia' }, 31 | { 'id': '4', 'name': 'Melzas' }, 32 | { 'id': '5', 'name': 'Septimus' }, 33 | 34 | { 'id': '6', 'name': 'Rudy Roughknight' }, 35 | { 'id': '7', 'name': 'Jack Van Burace' }, 36 | { 'id': '8', 'name': 'Hanpan' }, 37 | { 'id': '9', 'name': 'Cecilia Adlehyde' }, 38 | 39 | { 'id': '10', 'name': 'Serge' }, 40 | { 'id': '11', 'name': 'Kid' }, 41 | { 'id': '12', 'name': 'Lynx' }, 42 | { 'id': '13', 'name': 'Harle' }, 43 | 44 | ], 45 | colorItems: '#1E90FF', 46 | selectedItems: [] 47 | } 48 | }; 49 | }, 50 | components: { 51 | 'VueDualList': VueDualList 52 | } 53 | }); 54 | ``` 55 | 56 | 57 | ##### In your page use 58 | 59 | ```Html 60 | 61 | ``` 62 | ##### Dual list options 63 | 64 | * **options: {label}:**(optional): Label that will be displayed in the directive input text.; 65 | * **options.inputOptions: {uppercase}**(required): Indicates if the letters in input text it will be uppercase.; 66 | * **options.inputOptions: {isRequired}**(required): Indicates if the letters in input text it will be required.; 67 | * **options.buttonOption: {textLeft}**(optional): Left button text.; 68 | * **options.buttonOption: {textRight}**(optional): Right button text.; 69 | * **options.resizeBox:**(optional): Height of the items box. [{'xs': 150px},{'md': 225px},{'lg': 350px},{'xl': 500px}]; 70 | * **options.items:**(required): Items that will be on the list.; 71 | * **options.colorItems:**(optional): Color of the items that will be on the list.; 72 | * **options.selectedItems:**(optional): Items selected by the user.; 73 | 74 | #### change dual list 75 | To execute your changes run the command ```npm run compile``` 76 | 77 | #### Used versions 78 | 79 | ##### vue 80 | version: `2.2.6` 81 | ##### vue-material 82 | version: `^0.7.1` 83 | 84 |
85 | 86 | ### License 87 | 88 | It is available under the MIT license. 89 | [License](https://opensource.org/licenses/mit-license.php) 90 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-dual-list", 3 | "version": "1.0.0", 4 | "description": "Dual List in VueJs with VueMaterial", 5 | "author": "mikemajesty ", 6 | "main": "component/vue-dual-list.vue", 7 | "scripts": { 8 | "dev": "nodemon build/dev-server.js", 9 | "start": "nodemon build/dev-server.js", 10 | "build": "nodemon build/build.js", 11 | "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run", 12 | "e2e": "nodemon test/e2e/runner.js", 13 | "test": "npm run unit && npm run e2e", 14 | "lint": "eslint --ext .js,.vue demo test/unit/specs test/e2e/specs", 15 | "compile": "webpack --config ./webpack/webpack.config.js --hot" 16 | }, 17 | "dependencies": { 18 | "vue": "^2.2.6", 19 | "vue-router": "^2.3.1", 20 | "vue-material": "^0.7.1", 21 | "serve-favicon": "2.3.2", 22 | "express": "4.15.2" 23 | }, 24 | "devDependencies": { 25 | "autoprefixer": "^6.7.2", 26 | "babel-core": "^6.22.1", 27 | "babel-eslint": "^7.1.1", 28 | "babel-helper-vue-jsx-merge-props": "^2.0.2", 29 | "babel-loader": "^6.2.10", 30 | "babel-plugin-istanbul": "^4.1.1", 31 | "babel-plugin-syntax-jsx": "^6.18.0", 32 | "babel-plugin-transform-runtime": "^6.22.0", 33 | "babel-plugin-transform-vue-jsx": "^3.4.2", 34 | "babel-preset-env": "^1.3.2", 35 | "babel-preset-es2015": "^6.24.1", 36 | "babel-preset-stage-2": "^6.24.1", 37 | "babel-register": "^6.22.0", 38 | "chai": "^3.5.0", 39 | "chalk": "^1.1.3", 40 | "chromedriver": "^2.27.2", 41 | "connect-history-api-fallback": "^1.3.0", 42 | "copy-webpack-plugin": "^4.0.1", 43 | "cross-env": "^4.0.0", 44 | "cross-spawn": "^5.0.1", 45 | "css-loader": "^0.28.0", 46 | "eslint": "^3.19.0", 47 | "eslint-config-standard": "^6.2.1", 48 | "eslint-friendly-formatter": "^2.0.7", 49 | "eslint-loader": "^1.7.1", 50 | "eslint-plugin-html": "^2.0.0", 51 | "eslint-plugin-promise": "^3.4.0", 52 | "eslint-plugin-standard": "^2.0.1", 53 | "eventsource-polyfill": "^0.9.6", 54 | "express": "^4.14.1", 55 | "extract-text-webpack-plugin": "^2.0.0", 56 | "file-loader": "^0.11.1", 57 | "friendly-errors-webpack-plugin": "^1.1.3", 58 | "html-webpack-plugin": "^2.28.0", 59 | "http-proxy-middleware": "^0.17.3", 60 | "inject-loader": "^3.0.0", 61 | "karma": "^1.4.1", 62 | "karma-coverage": "^1.1.1", 63 | "karma-mocha": "^1.3.0", 64 | "karma-phantomjs-launcher": "^1.0.2", 65 | "karma-phantomjs-shim": "^1.4.0", 66 | "karma-sinon-chai": "^1.3.1", 67 | "karma-sourcemap-loader": "^0.3.7", 68 | "karma-spec-reporter": "0.0.30", 69 | "karma-webpack": "^2.0.2", 70 | "lolex": "^1.5.2", 71 | "mocha": "^3.2.0", 72 | "nightwatch": "^0.9.12", 73 | "opn": "^4.0.2", 74 | "optimize-css-assets-webpack-plugin": "^1.3.0", 75 | "ora": "^1.2.0", 76 | "phantomjs-prebuilt": "^2.1.14", 77 | "rimraf": "^2.6.0", 78 | "selenium-server": "^3.0.1", 79 | "semver": "^5.3.0", 80 | "shelljs": "^0.7.6", 81 | "sinon": "^2.1.0", 82 | "sinon-chai": "^2.8.0", 83 | "url-loader": "^0.5.8", 84 | "vue-loader": "^11.3.4", 85 | "vue-style-loader": "^2.0.5", 86 | "vue-template-compiler": "^2.2.6", 87 | "webpack": "^2.3.3", 88 | "webpack-bundle-analyzer": "^2.2.1", 89 | "webpack-dev-middleware": "^1.10.0", 90 | "webpack-hot-middleware": "^2.18.0", 91 | "webpack-merge": "^4.1.0" 92 | }, 93 | "engines": { 94 | "node": ">= 4.0.0", 95 | "npm": ">= 3.0.0" 96 | }, 97 | "browserslist": [ 98 | "> 1%", 99 | "last 2 versions", 100 | "not ie <= 8" 101 | ] 102 | } 103 | -------------------------------------------------------------------------------- /component/VueDualList.vue: -------------------------------------------------------------------------------- 1 | 52 | 53 | 81 | 82 | 142 | --------------------------------------------------------------------------------