Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Timeline, Daily and Weekly views support #26

Closed
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8726326
Initial setup for multiview development
bb140856 Jun 22, 2022
2836f75
Frontend multiview support
bb140856 Jun 23, 2022
ecce55e
weekly WIP (on hold) swap do Daily
bb140856 Jun 27, 2022
030a08e
WIP (Day, Week, Month backend done)
bb140856 Jul 1, 2022
29dd61f
Day, Week and Month view implemented - initial stage
bb140856 Jul 4, 2022
71ee01f
upstream v1.4.0 merged
bb140856 Jul 4, 2022
ccf8595
Added visibility of multiday events on day view even if they started …
bb140856 Jul 11, 2022
1feabcf
LoadingView added to present loading indicator during HTTP API request
bb140856 Jul 12, 2022
149126c
fixed week view multi-day overlapping
bb140856 Jul 12, 2022
3fb4942
direct links to weeks and days on month view and days on week view
bb140856 Jul 12, 2022
c4aee5f
event height decrease to 2.0 em
bb140856 Jul 14, 2022
9758555
.gitignore update
bb140856 Jul 14, 2022
f45a01d
recompilation
bb140856 Jul 14, 2022
4b691b6
recompilation
bb140856 Jul 14, 2022
ec17f62
added Timeline view, direct links are disabled Week and Month view if…
bb140856 Jul 14, 2022
da5ae9a
Merge branch 'feature/timeline-view' into p4
bb140856 Jul 14, 2022
ad314b8
compile to prod
bb140856 Jul 14, 2022
6f1d95e
Merge branch 'feature/timeline-view' into p4
bb140856 Jul 14, 2022
79e8dfe
Vue files review
bb140856 Jul 24, 2022
6a0bb29
DocBlocks added to modified classes
bb140856 Jul 24, 2022
ea93caf
1.5,2 changes pulled
bb140856 Jul 24, 2022
99cd94d
Prod compilation
bb140856 Jul 24, 2022
e7ed257
Readme update after timeline, daily and weekly views added
bb140856 Jul 24, 2022
16cbfc2
Sample CalendarDataProvider updated for Timeline, Daily and Weekly views
bb140856 Jul 24, 2022
d3dea47
Constructor fix for MonthCalendar
bb140856 Jul 25, 2022
068e86f
Default layout fix (after upgrade from previous versions)
bb140856 Jul 25, 2022
6813cfa
Fixed withEvents function for Month view
bb140856 Jul 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Constructor fix for MonthCalendar
bb140856 committed Jul 25, 2022
commit d3dea4790e2d2817e584e7f698d3e1d5cf4ca30c
18 changes: 8 additions & 10 deletions src/DataProvider/MonthCalendar.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
* © Copyright 2022 · Willem Vervuurt, Studio Delfuego
* © Copyright 2022 · Willem Vervuurt, Studio Delfuego, Bartosz Bujak
*
* You can modify, use and distribute this package under one of two licenses:
* 1. GNU AGPLv3
@@ -13,22 +13,20 @@
* using calendar views, but don't embed this package or a modified version
* of it in free or paid-for software libraries and packages aimed at developers).
*/

namespace Wdelfuego\NovaCalendar\DataProvider;

use Wdelfuego\NovaCalendar\Interface\MonthDataProviderInterface;
use Illuminate\Support\Carbon;
use Wdelfuego\NovaCalendar\NovaCalendar;
use Wdelfuego\NovaCalendar\Interface\MonthDataProviderInterface;

/* for backward compatibility purposes */
/* for backward compatibility purposes */

abstract class MonthCalendar extends Calendar implements MonthDataProviderInterface
{
{
public function __construct(int $year = null, int $month = null)
{
$this->firstDayOfWeek = NovaCalendar::MONDAY;
$this->year = $year ?? now()->year;
$this->month = $month ?? now()->month;
$this->updateViewRanges();
$this->initialize();
parent::__construct();
info('WARNING: change parent of your Calendar Data Provider class to Wdelfuego\NovaCalendar\DataProvider\Calendar instead of Wdelfuego\NovaCalendar\DataProvider\MonthCalendar');
}
}