diff --git a/.vscode/settings.json b/.vscode/settings.json index bdee587..e85392e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,6 +14,9 @@ "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" }, + "[md]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, "[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } diff --git a/README.md b/README.md index b8d01ef..51edd12 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Version](https://img.shields.io/npm/v/@tenrok/vue-cron-editor-bootstrap.svg)](https://www.npmjs.com/package/@tenrok/vue-cron-editor-bootstrap) [![License](https://img.shields.io/npm/l/@tenrok/vue-cron-editor-bootstrap.svg)](https://github.com/tenrok/vue-cron-editor-bootstrap/blob/main/LICENSE) -[![Vue.js](https://img.shields.io/badge/vue-2.7.14-brightgreen.svg?logo=vue.js)](https://github.com/vuejs/vue) +[![Vue.js](https://img.shields.io/badge/vue-2.7.15-brightgreen.svg?logo=vue.js)](https://github.com/vuejs/vue) [![GitHub last commit](https://img.shields.io/github/last-commit/tenrok/vue-cron-editor-bootstrap.svg)](https://github.com/tenrok/vue-cron-editor-bootstrap) [![Downloads](https://img.shields.io/npm/dm/@tenrok/vue-cron-editor-bootstrap.svg)](https://npmcharts.com/compare/@tenrok/vue-cron-editor-bootstrap?minimal=true) [![Demo](https://img.shields.io/badge/demo-demo-blue.svg)](https://tenrok.github.io/vue-cron-editor-bootstrap/) @@ -13,36 +13,49 @@ Inspired by https://github.com/karoletrych/vue-cron-editor # Requirements - Vue ^2.0 -- @tenrok/bootstrap-vue ^2.23.2 +- Bootstrap-Vue ^2.23.1 -# Installation +# Quickstart + +Install using ``` npm install @tenrok/vue-cron-editor-bootstrap --save ``` -# Usage +Then, initalize the plugin in the starting point of your app (most likely src/main.js): +```js +// main.js +import { Plugin } from '@tenrok/vue-cron-editor-bootstrap' +Vue.use(Plugin) ``` + +The components will be registered globally and you can use them immediately. + +You can also import individual components into .vue SFC (Single File Component): + +```html + ``` @@ -56,11 +69,8 @@ To preserve expression on switch to **advanced** tab set the `preserveStateOnSwi The language of the component can be selected with the `locale` prop. -``` - +```html + ``` Currently supported languages: @@ -70,37 +80,38 @@ Currently supported languages: Custom locales can be provided via a `customLocales` prop: -``` + +```html ``` diff --git a/lib/components/VueCronEditor.vue b/lib/components/VueCronEditor.vue index ed06d53..5852281 100644 --- a/lib/components/VueCronEditor.vue +++ b/lib/components/VueCronEditor.vue @@ -34,17 +34,9 @@
{{ translate('onlyOn') }} - - - - - - - - -
- - +
+ +
{{ translate('at') }} @@ -78,18 +70,13 @@