Skip to content

Commit

Permalink
Fixed #776 - Update to full calendar 5
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Dec 14, 2020
1 parent 4f6e3c8 commit 993f419
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 24 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"primeicons": "4.0.0",
"prismjs": "^1.15.0",
"quill": "1.3.3",
"@fullcalendar/core": "4.0.2",
"@fullcalendar/daygrid": "4.0.1",
"@fullcalendar/interaction": "4.0.2",
"@fullcalendar/timegrid": "4.0.1",
"@fullcalendar/core": "5.4.0",
"@fullcalendar/daygrid": "5.4.0",
"@fullcalendar/interaction": "5.4.0",
"@fullcalendar/timegrid": "5.4.0",
"sass-loader": "^7.0.1",
"node-sass": "^4.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/fullcalendar/FullCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
},
methods: {
initialize() {
let defaultConfig = {theme: false};
let defaultConfig = {themeSystem: false};
let config = this.options ? {...this.options, ...defaultConfig} : defaultConfig;
this.calendar = new Calendar(this.$el, config);
this.calendar.render();
Expand Down
3 changes: 0 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ import './assets/styles/primevue.css';
import 'primeflex/primeflex.css';
import 'primeicons/primeicons.css';
import 'prismjs/themes/prism-coy.css';
import '@fullcalendar/core/main.min.css';
import '@fullcalendar/daygrid/main.min.css';
import '@fullcalendar/timegrid/main.min.css';
import './assets/styles/flags.css';
import Vuelidate from 'vuelidate';

Expand Down
4 changes: 2 additions & 2 deletions src/views/fullcalendar/FullCalendarDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialDate: '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down
21 changes: 7 additions & 14 deletions src/views/fullcalendar/FullCalendarDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import FullCalendar from 'primevue/fullcalendar';
</CodeHighlight>

<h5>Getting Started</h5>
<p>FullCalendar is a wrapper around on <a href="https://fullcalendar.io/docs/v4">FullCalendar 4.0.0+</a> so fullcalendar needs to be included in your project.
<p>FullCalendar is a wrapper around on <a href="https://fullcalendar.io/docs/v4">FullCalendar 5.4.0+</a> so fullcalendar needs to be included in your project.
For a complete documentation and samples please refer to the <a href="https://fullcalendar.io/">fullcalendar website</a>.</p>
<CodeHighlight>
npm install @fullcalendar/core --save
Expand All @@ -19,13 +19,6 @@ npm install @fullcalendar/core --save
npm install @fullcalendar/daygrid --save
npm install @fullcalendar/timegrid --save
npm install @fullcalendar/interaction --save
</CodeHighlight>

<p>Include the core style and the styles of the plugins that you use in your application.</p>
<CodeHighlight>
import '@fullcalendar/core/main.min.css';
import '@fullcalendar/daygrid/main.min.css';
import '@fullcalendar/timegrid/main.min.css';
</CodeHighlight>

<p>Events should be an array and defined using the events property.</p>
Expand Down Expand Up @@ -125,8 +118,8 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialDate '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down Expand Up @@ -154,8 +147,8 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialDate '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down Expand Up @@ -221,8 +214,8 @@ export default {
return {
options: {
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
defaultDate: '2019-01-01',
header: {
initialDate '2019-01-01',
headerToolbar: {
left: 'prev,next',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
Expand Down

0 comments on commit 993f419

Please sign in to comment.