├── .github └── FUNDING.yml ├── .prettierrc.yml ├── .prettierrc ├── public ├── cat1.jpg ├── cat2.jpg ├── favicon.ico ├── forest1.jpg ├── forest2.jpg ├── favicon.1.ico └── index.html ├── babel.config.js ├── vue.config.js ├── src ├── main.js ├── assets │ ├── prism.css │ └── prism.js ├── App.vue └── VueCompareImage.vue ├── CHANGELOG.md ├── .gitignore ├── .all-contributorsrc ├── package.json └── README.md /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: junkboy0315 2 | -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- 1 | singleQuote: true 2 | trailingComma: all -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | trailingComma: "all" 2 | tabWidth: 2 3 | singleQuote: true 4 | -------------------------------------------------------------------------------- /public/cat1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tam315/vue-compare-image/HEAD/public/cat1.jpg -------------------------------------------------------------------------------- /public/cat2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tam315/vue-compare-image/HEAD/public/cat2.jpg -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tam315/vue-compare-image/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/forest1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tam315/vue-compare-image/HEAD/public/forest1.jpg -------------------------------------------------------------------------------- /public/forest2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tam315/vue-compare-image/HEAD/public/forest2.jpg -------------------------------------------------------------------------------- /public/favicon.1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tam315/vue-compare-image/HEAD/public/favicon.1.ico -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset', 4 | ], 5 | }; 6 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // bundle css into commonjs bundle 3 | css: { extract: false }, 4 | }; 5 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import App from './App.vue'; 3 | 4 | Vue.config.productionTip = false; 5 | 6 | new Vue({ 7 | render: h => h(App), 8 | }).$mount('#app'); 9 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## [0.1.5] - 2019-10-23 4 | 5 | ### New Features 6 | 7 | - Add a feature to display labels. 8 | 9 | ## [0.1.4] - 2019-10-21 10 | 11 | ### New Features 12 | 13 | - Add `leftImageAlt` and `rightImageAlt` props. 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |
8 |
9 | {{ code1 }}
10 |
11 |
12 |
13 |
18 |
19 | {{ code2 }}
20 |
21 |
22 |
23 |
35 |
36 | {{ code3 }}
37 |
38 |
39 |
40 |
45 |
46 | {{ code4 }}
47 |
48 |
49 |
50 | Shota Tamura 💻 |
78 | Lukáš Irsák 💻 |
79 | Ricardo Morin 💻 |
80 |