1565055774
On average, we embark on two or three unplanned events daily. It could be in the office, at home, even at coffee shops. A friend could easily bump into you, and before you know it, you guys are heading to a place you didn’t know you’d go five minutes ago.
This is why task schedulers are important to keep us focused on what we must do, even in the face of increasing distraction. With a task scheduler, all you need to do is open your schedule and see what your next task is and what time you have scheduled to get it done.
They help us schedule specific tasks, and set them to be completed at specific times. This is a good way to check ourselves and organize our tasks in a rather simple manner to increase efficiency and improve productivity. In this post, we will demonstrate how you can build one for yourself using Vue.js and the Kendo UI Scheduler component.
First, we have to create a Vue.js project with which we can demonstrate the implementation of our task scheduler. Without further ado, open a terminal window on your preferred directory and run the command below:
$ vue create scheduler-demo
If you don’t have Vue CLI installed globally, please follow this guide to do so and come back to continue with this lesson afterward.
When you’re done bootstrapping your Vue application, change into the new Vue application directory and start the development server.
$ cd scheduler-demo
$ npm run serve
This will serve your Vue application on localhost:8080
. Navigate to it on your browser and you will see your Vue application live.
Next, let’s add Kendo UI to our new Vue project. For the scope of this demonstration, we’ll need:
To do that, open a terminal window in the project’s root directory and run the commands below:
// Install Kendo UI vue package
$ npm install --save @progress/kendo-ui
// Install Kendo UI dropdown wrapper for vue
$ npm install --save @progress/kendo-scheduler-vue-wrapper
// Install Kendo UI default theme package
$ npm install --save @progress/kendo-theme-default
index.html
file in the public
directory and add this snippet within the <head>
tag:<!-- public/index.html -->
<!--Load Kendo styles from the Kendo CDN service-->
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.3.913/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.3.913/styles/kendo.default.min.css"/>
<!--Load the required libraries - jQuery, Kendo, Babel and Vue-->
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2017.3.913/js/kendo.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js"></script>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<!--Load the required Kendo Vue package(s)-->
<script src="https://unpkg.com/@progress/kendo-scheduler-vue-wrapper/dist/cdn/kendo-scheduler-vue-wrapper.js"></script>
Now that we have all the Kendo UI packages we need for our scheduler app, let’s go ahead and modify our Vue app to render the scheduler. To do this, open the src/components/
folder. You should find an existing file HelloWorld.vue
. Rename the file to Scheduler.vue
and update it with the code below:
<!-- src/components/Scheduler.vue -->
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<div id="vueapp" class="vue-app">
<div>
<kendo-scheduler :data-source="localDataSource"
:date="date"
:height="600"
:timezone="'Etc/UTC'"
@add="onAdd"
@navigate="onNavigate"
<kendo-scheduler-view :type="'day'"></kendo-scheduler-view>
<kendo-scheduler-view :type="'workWeek'" :selected="true"></kendo-scheduler-view>
<kendo-scheduler-view :type="'week'"></kendo-scheduler-view>
<kendo-scheduler-view :type="'month'"></kendo-scheduler-view>
<kendo-scheduler-view :type="'agenda'"></kendo-scheduler-view>
</kendo-scheduler>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Scheduler',
data: function() {
return {
date: new Date('2013/6/6'),
localDataSource: [
{
id: 1,
start: new Date("2019/2/18 08:00 AM"),
end: new Date("2019/2/19 09:00 AM"),
title: "Interview"
}
]
};
},
methods: {
onAdd: function (ev) {
console.log("Event :: add");
},
onNavigate: function (ev) {
console.log("Event :: navigate");
},
},
props: {
msg: String
}
}
</script>
Here, we have rendered the <kendo-scheduler>
widget on the application’s template section. The scheduler comes with a lot of events like onChange
, onNavigate
, onAdd
, etc. There are a lot more scheduler events you should totally check out here.
We also rendered the <kendo-scheduler-view>
widgets with their respective types to provide the option to render scheduled events in different views – as a single day, a whole week, or month, or as a list of tasks which needs to be accomplished.
Next, we predefined a task in the localDataSource
array to render it on the scheduler when we run our app. We have also set up two events on our Vue methods
object to define the events on the scheduler widget.
Next, let’s import this component in the App.vue
file and render it to the screen. Open the App.vue
file and update it with the code below:
<!-- src/App.vue -->
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<Scheduler msg="Welcome to your task scheduler"/>
</div>
</template>
<script>
import Scheduler from './components/Scheduler.vue'
export default {
name: 'app',
components: {
Scheduler
}
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Finally, we import the SchedulerInstaller
in our main.js
file. Then add it to our Vue instance to make it available everywhere in our app. Open the main.js
file and update it with the code below:
<!-- src/main.js -->
import Vue from 'vue'
import App from './App.vue'
import { SchedulerInstaller } from '@progress/kendo-scheduler-vue-wrapper'
Vue.use(SchedulerInstaller)
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
At this point, if you save the changes and check back on the browser, you should see the scheduler rendered like so:
Great, we have our task scheduler working exactly as expected! We can see how the predefined task has been rendered on our scheduler and we can view it in the details on the Agenda
tab.
What if we wanted to add a new custom task to our scheduler – how do we go about it? Well, it’s straightforward. We open the Scheduler
component and update our localDataSource
array like so:
...
{
id: 2,
start: new Date("2019/2/22 1:00 PM"),
end: new Date("2019/2/22 2:00 PM"),
title: "Conference"
},
Here, we are creating another conference task on the 22nd of Feb, 2019. This conference will happen between 1 pm - 2 pm according to our schedule; however, it’ll be rendered 1hr early for us. If you save this change and reload the browser, you should see that our new task has been scheduled on our scheduler:
In this post, we have demonstrated how to build your own task scheduler in Vue.js using Kendo UI Scheduler component. It is very simple and straightforward to implement. Feel free to learn more about this component on the official documentation page.
Further reading:
Vue.js Pattern for Async Requests: Using Renderless Components
☞ https://morioh.com/p/832aed252b1d
Getting Started with Vuetify 2.0
☞ https://morioh.com/p/dc6e62b85093
Vue.js 3: Future-Oriented Programming
☞ https://morioh.com/p/b929f8586b80
#vue-js #javascript
1600583123
In this article, we are going to list out the most popular websites using Vue JS as their frontend framework.
Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.
This framework was created by Evan You and still it is maintained by his private team members. Vue is of course an open-source framework which is based on MVVM concept (Model-view view-Model) and used extensively in building sublime user-interfaces and also considered a prime choice for developing single-page heavy applications.
Released in February 2014, Vue JS has gained 64,828 stars on Github, making it very popular in recent times.
Evan used Angular JS on many operations while working for Google and integrated many features in Vue to cover the flaws of Angular.
“I figured, what if I could just extract the part that I really liked about Angular and build something really lightweight." - Evan You
#vuejs #vue #vue-with-laravel #vue-top-story #vue-3 #build-vue-frontend #vue-in-laravel #vue.js
1578061020
Icons are the vital element of the user interface of the product enabling successful and effective interaction with it. In this article, I will collect 10 Vue icon component to bring more interactivity, better UI design to your Vue application.
A clean and simple Vue wrapper for SweetAlert’s fantastic status icons. This wrapper is intended for users who are interested in just the icons. For the standard SweetAlert modal with all of its bells and whistles, you should probably use Vue-SweetAlert 2
Demo: https://vue-sweetalert-icons.netlify.com/
Download: https://github.com/JorgenVatle/vue-sweetalert-icons/archive/master.zip
Create 2-state, SVG-powered animated icons.
Demo: https://codesandbox.io/s/6v20q76xwr
Download: https://github.com/kai-oswald/vue-svg-transition/archive/master.zip
Awesome SVG icon component for Vue.js, with built-in Font Awesome icons.
Demo: https://justineo.github.io/vue-awesome/demo/
Download: https://github.com/Justineo/vue-awesome/archive/master.zip
Transitioning Result Icon for Vue.js
A scalable result icon (SVG) that transitions the state change, that is the SVG shape change is transitioned as well as the color. Demonstration can be found here.
A transitioning (color and SVG) result icon (error or success) for Vue.
Demo: https://transitioning-result-icon.dexmo-hq.com/
Download: https://github.com/dexmo007/vue-transitioning-result-icon/archive/master.zip
Easily add Zondicon icons to your vue web project.
Demo: http://www.zondicons.com/icons.html
Download: https://github.com/TerryMooreII/vue-zondicons/archive/master.zip
Vicon is an simple iconfont componenet for vue.
iconfont
iconfont is a Vector Icon Management & Communication Platform made by Alimama MUX.
Download: https://github.com/Lt0/vicon/archive/master.zip
A tool to create svg icon components. (vue 2.x)
Demo: https://mmf-fe.github.io/vue-svgicon/v3/
Download: https://github.com/MMF-FE/vue-svgicon/archive/master.zip
This library is a collection of Vue single-file components to render Material Design Icons, sourced from the MaterialDesign project. It also includes some CSS that helps make the scaling of the icons a little easier.
Demo: https://gitlab.com/robcresswell/vue-material-design-icons
Download: https://gitlab.com/robcresswell/vue-material-design-icons/tree/master
Vue Icon Set Components from Ionic Team
Design Icons, sourced from the Ionicons project.
Demo: https://mazipan.github.io/vue-ionicons/
Download: https://github.com/mazipan/vue-ionicons/archive/master.zip
Dead easy, Google Material Icons for Vue.
This package’s aim is to get icons into your Vue.js project as quick as possible, at the cost of all the bells and whistles.
Demo: https://material.io/resources/icons/?style=baseline
Download: https://github.com/paulcollett/vue-ico/archive/master.zip
I hope you like them!
#vue #vue-icon #icon-component #vue-js #vue-app
1565055774
On average, we embark on two or three unplanned events daily. It could be in the office, at home, even at coffee shops. A friend could easily bump into you, and before you know it, you guys are heading to a place you didn’t know you’d go five minutes ago.
This is why task schedulers are important to keep us focused on what we must do, even in the face of increasing distraction. With a task scheduler, all you need to do is open your schedule and see what your next task is and what time you have scheduled to get it done.
They help us schedule specific tasks, and set them to be completed at specific times. This is a good way to check ourselves and organize our tasks in a rather simple manner to increase efficiency and improve productivity. In this post, we will demonstrate how you can build one for yourself using Vue.js and the Kendo UI Scheduler component.
First, we have to create a Vue.js project with which we can demonstrate the implementation of our task scheduler. Without further ado, open a terminal window on your preferred directory and run the command below:
$ vue create scheduler-demo
If you don’t have Vue CLI installed globally, please follow this guide to do so and come back to continue with this lesson afterward.
When you’re done bootstrapping your Vue application, change into the new Vue application directory and start the development server.
$ cd scheduler-demo
$ npm run serve
This will serve your Vue application on localhost:8080
. Navigate to it on your browser and you will see your Vue application live.
Next, let’s add Kendo UI to our new Vue project. For the scope of this demonstration, we’ll need:
To do that, open a terminal window in the project’s root directory and run the commands below:
// Install Kendo UI vue package
$ npm install --save @progress/kendo-ui
// Install Kendo UI dropdown wrapper for vue
$ npm install --save @progress/kendo-scheduler-vue-wrapper
// Install Kendo UI default theme package
$ npm install --save @progress/kendo-theme-default
index.html
file in the public
directory and add this snippet within the <head>
tag:<!-- public/index.html -->
<!--Load Kendo styles from the Kendo CDN service-->
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.3.913/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2017.3.913/styles/kendo.default.min.css"/>
<!--Load the required libraries - jQuery, Kendo, Babel and Vue-->
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2017.3.913/js/kendo.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js"></script>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<!--Load the required Kendo Vue package(s)-->
<script src="https://unpkg.com/@progress/kendo-scheduler-vue-wrapper/dist/cdn/kendo-scheduler-vue-wrapper.js"></script>
Now that we have all the Kendo UI packages we need for our scheduler app, let’s go ahead and modify our Vue app to render the scheduler. To do this, open the src/components/
folder. You should find an existing file HelloWorld.vue
. Rename the file to Scheduler.vue
and update it with the code below:
<!-- src/components/Scheduler.vue -->
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<div id="vueapp" class="vue-app">
<div>
<kendo-scheduler :data-source="localDataSource"
:date="date"
:height="600"
:timezone="'Etc/UTC'"
@add="onAdd"
@navigate="onNavigate"
<kendo-scheduler-view :type="'day'"></kendo-scheduler-view>
<kendo-scheduler-view :type="'workWeek'" :selected="true"></kendo-scheduler-view>
<kendo-scheduler-view :type="'week'"></kendo-scheduler-view>
<kendo-scheduler-view :type="'month'"></kendo-scheduler-view>
<kendo-scheduler-view :type="'agenda'"></kendo-scheduler-view>
</kendo-scheduler>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Scheduler',
data: function() {
return {
date: new Date('2013/6/6'),
localDataSource: [
{
id: 1,
start: new Date("2019/2/18 08:00 AM"),
end: new Date("2019/2/19 09:00 AM"),
title: "Interview"
}
]
};
},
methods: {
onAdd: function (ev) {
console.log("Event :: add");
},
onNavigate: function (ev) {
console.log("Event :: navigate");
},
},
props: {
msg: String
}
}
</script>
Here, we have rendered the <kendo-scheduler>
widget on the application’s template section. The scheduler comes with a lot of events like onChange
, onNavigate
, onAdd
, etc. There are a lot more scheduler events you should totally check out here.
We also rendered the <kendo-scheduler-view>
widgets with their respective types to provide the option to render scheduled events in different views – as a single day, a whole week, or month, or as a list of tasks which needs to be accomplished.
Next, we predefined a task in the localDataSource
array to render it on the scheduler when we run our app. We have also set up two events on our Vue methods
object to define the events on the scheduler widget.
Next, let’s import this component in the App.vue
file and render it to the screen. Open the App.vue
file and update it with the code below:
<!-- src/App.vue -->
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<Scheduler msg="Welcome to your task scheduler"/>
</div>
</template>
<script>
import Scheduler from './components/Scheduler.vue'
export default {
name: 'app',
components: {
Scheduler
}
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Finally, we import the SchedulerInstaller
in our main.js
file. Then add it to our Vue instance to make it available everywhere in our app. Open the main.js
file and update it with the code below:
<!-- src/main.js -->
import Vue from 'vue'
import App from './App.vue'
import { SchedulerInstaller } from '@progress/kendo-scheduler-vue-wrapper'
Vue.use(SchedulerInstaller)
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
At this point, if you save the changes and check back on the browser, you should see the scheduler rendered like so:
Great, we have our task scheduler working exactly as expected! We can see how the predefined task has been rendered on our scheduler and we can view it in the details on the Agenda
tab.
What if we wanted to add a new custom task to our scheduler – how do we go about it? Well, it’s straightforward. We open the Scheduler
component and update our localDataSource
array like so:
...
{
id: 2,
start: new Date("2019/2/22 1:00 PM"),
end: new Date("2019/2/22 2:00 PM"),
title: "Conference"
},
Here, we are creating another conference task on the 22nd of Feb, 2019. This conference will happen between 1 pm - 2 pm according to our schedule; however, it’ll be rendered 1hr early for us. If you save this change and reload the browser, you should see that our new task has been scheduled on our scheduler:
In this post, we have demonstrated how to build your own task scheduler in Vue.js using Kendo UI Scheduler component. It is very simple and straightforward to implement. Feel free to learn more about this component on the official documentation page.
Further reading:
Vue.js Pattern for Async Requests: Using Renderless Components
☞ https://morioh.com/p/832aed252b1d
Getting Started with Vuetify 2.0
☞ https://morioh.com/p/dc6e62b85093
Vue.js 3: Future-Oriented Programming
☞ https://morioh.com/p/b929f8586b80
#vue-js #javascript
1578472348
Vue highlight is often used to highlight text and syntax. Here are the 7 Vue highlight components I’ve collected.
Vue3 Snippets, This extension adds Vue3 Code Snippets into Visual Studio Code.
Vim syntax and indent plugin for vue files
Vue directive for highlight multiple istances of a word.
Beautiful code syntax highlighting as Vue.js component.
A dead simple code editor with syntax highlighting and line numbers. 7kb/gz
Features
A simple port from react-highlight-words
Vue component to highlight words within a larger body of text.
Vue component for highlight multiple istances of a word.
Thank for read!
#vue-highlight #vue #vue-highlight-component #highlight-vue
1578332107
Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown.
The 10 Vue markdown components below will give you a clear view.
Use showdown as a Vue component.
A markdown editor using codemirror and previewer using showdown for Vue.js.
The vue lib for markdown-it.
perfect-markdown is a markdown editor based on Vue & markdown-it. The core is inspired by the implementation of mavonEditor, so perfect-markdown has almost all of the functions of mavonEditor. What’s more, perfect-markdown also extends some features based on mavonEditor.
Vue.js Markdown Editor component.
Markdown to Vue component loader for Webpack.
fo-markdown-note is a Vue.js component that provides a simple Markdown editor that can be included in your Vue.js project.
fo-markdown-note is a thin Vue.js wrapper around the SimpleMDE Markdown editor JavaScript control.
Markdown Editor component for Vue.js. Support both vue1.0 & vue2.0
A nice vue.js markdown editor. Support WYSIWYG editing mode, reading mode and so on.
A Powerful and Highspeed Markdown Parser for Vue.
Thank for read!
#vue-markdown #vue-js #vue-markdown-component #vue