-
Notifications
You must be signed in to change notification settings - Fork 164
site event calendar #670
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
Open
ScuffedNewt
wants to merge
11
commits into
lk-arpg:develop
Choose a base branch
from
ScuffedNewt:feature/calendar
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
site event calendar #670
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
36dcdd7
feat: calendar for prompts/news/sales
ScuffedNewt 461170b
set height so all content is viewable on initial splash
ScuffedNewt c34d838
darken prompt colour a bit
ScuffedNewt 409b3a7
refactor: fix PHP styling
84494bb
fix layout usage
ScuffedNewt e4bd276
Merge branch 'develop' of https://github.com/Ne-wt/lorekeeper into fe…
ScuffedNewt aca5804
remove model traces and add config for colours
ScuffedNewt f117fe9
Merge branch 'develop' into feature/calendar
ScuffedNewt b375825
refactor: fix PHP styling
a4c1d55
Merge branch 'develop' of https://github.com/corowne/lorekeeper into …
ScuffedNewt 2c9e23b
fix: remove decode on vote data
ScuffedNewt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| @extends('layouts.app') | ||
|
|
||
| @section('title') | ||
| Calendar | ||
| @endsection | ||
|
|
||
| @section('sidebar') | ||
| <ul> | ||
| <li class="sidebar-header"><a href="{{ url('/calendar') }}" class="card-link">Calendar</a></li> | ||
| <li class="sidebar-section"> | ||
| <div class="sidebar-section-header">Items</div> | ||
| <div class="sidebar-item"><a href="{{ url('prompts') }}" class="{{ set_active('prompts') }}">Prompts</a></div> | ||
| <div class="sidebar-item"><a href="{{ url('news') }}" class="{{ set_active('news') }}">News</a></div> | ||
| <div class="sidebar-item"><a href="{{ url('sales') }}" class="{{ set_active('sales') }}">Sales</a></div> | ||
| </li> | ||
| </ul> | ||
| @endsection | ||
|
|
||
| @section('content') | ||
| {!! breadcrumbs(['World' => 'world', 'Calendar' => 'world/calendar']) !!} | ||
| <h1>Calendar</h1> | ||
|
|
||
| <div id='calendar'></div> | ||
|
|
||
| <script src="{{ asset('js/calendar.min.js') }}"></script> | ||
| <script> | ||
| document.addEventListener('DOMContentLoaded', function() { | ||
| const calendarEl = document.getElementById('calendar') | ||
| const calendar = new FullCalendar.Calendar(calendarEl, { | ||
| initialView: 'dayGridMonth', | ||
| lazyFetching: true, | ||
| height: '60vh', | ||
| timeZone: "{{ config('app.timezone') }}", | ||
| headerToolbar: { | ||
| left: 'prev,next', | ||
| center: 'title', | ||
| right: 'dayGridMonth multiMonthYear listWeek', | ||
| }, | ||
| eventSources: [{ | ||
| url: "{{ url('calendar/events') }}", | ||
| format: 'json', | ||
| }] | ||
| }) | ||
| calendar.render() | ||
| }) | ||
| </script> | ||
| @endsection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.