├── .eslintignore ├── .browserslistrc ├── screenshot.gif ├── .postcssrc.js ├── .babelrc ├── src ├── public │ └── font.woff2 ├── main.js ├── utils │ ├── filters.js │ ├── CONSTANTS.js │ ├── props.js │ └── buildCalendar.js └── App.vue ├── tests └── unit │ ├── .eslintrc.js │ ├── buildCalendar.spec.js │ └── App.spec.js ├── jest ├── .gitignore ├── vue.config.js ├── dist ├── demo.html ├── draggableCal.umd.min.js └── draggableCal.common.js ├── .eslintrc.js ├── jest.config.js ├── demo ├── style.css └── index.html ├── package.json ├── .prettierrc.js └── README.md /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/* 2 | -------------------------------------------------------------------------------- /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not ie <= 10 4 | -------------------------------------------------------------------------------- /screenshot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liloow/vue-draggableCal/HEAD/screenshot.gif -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | autoprefixer: {} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@vue/app"], 3 | "plugins": ["transform-object-rest-spread"] 4 | } 5 | -------------------------------------------------------------------------------- /src/public/font.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liloow/vue-draggableCal/HEAD/src/public/font.woff2 -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueCal from '@/App.vue' 3 | export default new Vue({ 4 | el: '#app', 5 | render: h => h(VueCal), 6 | }) 7 | -------------------------------------------------------------------------------- /tests/unit/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | jest: true 4 | }, 5 | rules: { 6 | 'import/no-extraneous-dependencies': 'off' 7 | } 8 | } -------------------------------------------------------------------------------- /jest: -------------------------------------------------------------------------------- 1 | export VUE_CLI_BABEL_TARGET_NODE=true 2 | export VUE_CLI_BABEL_TRANSPILE_MODULES=true 3 | ./node_modules/jest/bin/jest.js --clearCache 4 | node --inspect-brk ./node_modules/jest/bin/jest.js --verbose -i 5 | 6 | -------------------------------------------------------------------------------- /src/utils/filters.js: -------------------------------------------------------------------------------- 1 | export const abr = value => { 2 | if (!value) return '' 3 | return `${value.slice(0, 3).toUpperCase()}` 4 | } 5 | 6 | export const ymd = obj => { 7 | if (!obj) return '' 8 | return `${obj.fullYear}-${obj.monthNumber}-${obj.day}` 9 | } 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | coverage 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 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | baseUrl: '.', 3 | configureWebpack: () => ({ 4 | entry: process.env.NODE_ENV === 'production' ? './src/App.vue' : './src/main.js', 5 | devtool: false, 6 | }), 7 | lintOnSave: true, 8 | css: { 9 | extract: false, 10 | loaderOptions: { 11 | css: {minimize: true}, 12 | }, 13 | }, 14 | } 15 | -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 |