vue-ctk-date-time-picker
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "vue-ctk-date-time-picker", | ||
"description": "A vue component for a select date & time (by Chronotruck)", | ||
"version": "0.2.0", | ||
"description": "A vue component for select date & time (by Chronotruck)", | ||
"version": "0.3.0", | ||
"author": "Mazel <loic.mazuel@chronotruck.com>", | ||
"license": "MIT", | ||
"main": "src/main.js", | ||
"private": false, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", | ||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules", | ||
"lint": "./node_modules/eslint/bin/eslint.js ./" | ||
}, | ||
"main": "dist/ctk-date-time-picker.min.js", | ||
"dependencies": { | ||
@@ -19,29 +20,2 @@ "vue": "^2.5.16", | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^3.0.0-beta.15", | ||
"@vue/cli-plugin-eslint": "^3.0.0-beta.15", | ||
"@vue/cli-service": "^3.0.0-beta.15", | ||
"node-sass": "^4.9.0", | ||
"sass-loader": "^7.0.2", | ||
"vue-template-compiler": "^2.5.16" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:vue/essential", | ||
"eslint:recommended" | ||
], | ||
"rules": {}, | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
} | ||
}, | ||
"postcss": { | ||
"plugins": { | ||
"autoprefixer": {} | ||
} | ||
}, | ||
"browserslist": [ | ||
@@ -52,2 +26,18 @@ "> 1%", | ||
], | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"cross-env": "^5.0.5", | ||
"css-loader": "^0.28.7", | ||
"file-loader": "^1.1.4", | ||
"node-sass": "^4.5.3", | ||
"sass-loader": "^6.0.6", | ||
"vue-loader": "^13.0.5", | ||
"vue-template-compiler": "^2.4.4", | ||
"webpack": "^3.6.0", | ||
"webpack-dev-server": "^2.9.1", | ||
"eslint": "^4.19.1" | ||
}, | ||
"repository": { | ||
@@ -54,0 +44,0 @@ "type": "git", |
@@ -1,7 +0,7 @@ | ||
# vue-ctk-datetime-picker | ||
# vue-ctk-time-picker | ||
> A vue component for select date & time (by Chronotruck) | ||
> A vue component for select time (by Chronotruck) | ||
## Demo | ||
An [example](https://htmlpreview.github.io/?https://github.com/chronotruck/vue-ctk-datetime-picker/blob/master/demo/dist/index.html) is available | ||
An [example](https://htmlpreview.github.io/?https://github.com/chronotruck/vue-ctk-time-picker/blob/master/demo/dist/index.html) is available | ||
@@ -11,10 +11,10 @@ ## Install | ||
``` bash | ||
npm install vue-ctk-date-time-picker --save | ||
npm install vue-ctk-time-picker --save | ||
``` | ||
#### In single component | ||
``` js | ||
import CtkDateTimePicker from 'vue-ctk-date-time-picker' | ||
import CtkTimePicker from 'vue-ctk-time-picker' | ||
var yourComponent = new Vue({ | ||
components: { CtkDateTimePicker }, | ||
components: { CtkTimePicker }, | ||
... | ||
@@ -26,4 +26,4 @@ }) | ||
... | ||
<ctk-date-time-picker | ||
v-model="value" | ||
<ctk-time-picker | ||
v-model="value" // if you want init value : always this format 'HH:mm' | ||
:label="'Choose a time'" | ||
@@ -52,3 +52,3 @@ :hint="'Text'" | ||
**error-hint : When is `true` --> Input border & label are red | ||
**error-hint : When is `true` --> Input border & label are red | ||
@@ -64,6 +64,3 @@ ***color: Replace color for the hint, the borders & time selected in dropdown | ||
# serve with hot reload at localhost:8080 | ||
npm run serve | ||
# build component | ||
vue-cli-service build --target wc --name ctk-date-time-picker ./src/main-build.js | ||
npm run dev | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
11
0
38023
14
36
63