-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change Our Availabilities System to Use FullCalendar and Work on Dates instead of Days of The Week #174
Closed
Closed
Change Our Availabilities System to Use FullCalendar and Work on Dates instead of Days of The Week #174
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions
22
schedule_lessons/accounts/migrations/0027_auto_20190913_2008.py
This file contains 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,22 @@ | ||
# Generated by Django 2.0.6 on 2019-09-13 20:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounts', '0026_auto_20190827_1359'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='availability', | ||
name='day', | ||
), | ||
migrations.AddField( | ||
model_name='availability', | ||
name='repeat_weekly', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
This file contains 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 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 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 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
20 changes: 20 additions & 0 deletions
20
schedule_lessons/static/fullcalendar/bootstrap/LICENSE.txt
This file contains 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,20 @@ | ||
Copyright (c) 2019 Adam Shaw | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains 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,8 @@ | ||
|
||
# FullCalendar Bootstrap Plugin | ||
|
||
Bootstrap 4 theming for your calendar | ||
|
||
[View the docs »](https://fullcalendar.io/docs/bootstrap-theme) | ||
|
||
This package was created from the [FullCalendar monorepo »](https://github.com/fullcalendar/fullcalendar) |
This file contains 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,36 @@ | ||
.fc.fc-bootstrap a { | ||
text-decoration: none; | ||
} | ||
|
||
.fc.fc-bootstrap a[data-goto]:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.fc-bootstrap hr.fc-divider { | ||
border-color: inherit; | ||
} | ||
|
||
.fc-bootstrap .fc-today.alert { | ||
border-radius: 0; | ||
} | ||
|
||
.fc-bootstrap a.fc-event:not([href]):not([tabindex]) { | ||
color: #fff; | ||
} | ||
|
||
.fc-bootstrap .fc-popover.card { | ||
position: absolute; | ||
} | ||
|
||
/* Popover | ||
--------------------------------------------------------------------------------------------------*/ | ||
.fc-bootstrap .fc-popover .card-body { | ||
padding: 0; | ||
} | ||
|
||
/* TimeGrid Slats (lines that run horizontally) | ||
--------------------------------------------------------------------------------------------------*/ | ||
.fc-bootstrap .fc-time-grid .fc-slats table { | ||
/* some themes have background color. see through to slats */ | ||
background: none; | ||
} |
This file contains 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,12 @@ | ||
// Generated by dts-bundle v0.7.3-fork.1 | ||
// Dependencies for this module: | ||
// ../../../../../@fullcalendar/core | ||
|
||
declare module '@fullcalendar/bootstrap' { | ||
import { Theme } from '@fullcalendar/core'; | ||
export class BootstrapTheme extends Theme { | ||
} | ||
const _default: import("@fullcalendar/core").PluginDef; | ||
export default _default; | ||
} | ||
|
83 changes: 83 additions & 0 deletions
83
schedule_lessons/static/fullcalendar/bootstrap/main.esm.js
This file contains 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,83 @@ | ||
/*! | ||
FullCalendar Bootstrap Plugin v4.3.0 | ||
Docs & License: https://fullcalendar.io/ | ||
(c) 2019 Adam Shaw | ||
*/ | ||
|
||
import { createPlugin, Theme } from '@fullcalendar/core'; | ||
|
||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
|
||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
|
||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
|
||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
|
||
var BootstrapTheme = /** @class */ (function (_super) { | ||
__extends(BootstrapTheme, _super); | ||
function BootstrapTheme() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
return BootstrapTheme; | ||
}(Theme)); | ||
BootstrapTheme.prototype.classes = { | ||
widget: 'fc-bootstrap', | ||
tableGrid: 'table-bordered', | ||
tableList: 'table', | ||
tableListHeading: 'table-active', | ||
buttonGroup: 'btn-group', | ||
button: 'btn btn-primary', | ||
buttonActive: 'active', | ||
today: 'alert alert-info', | ||
popover: 'card card-primary', | ||
popoverHeader: 'card-header', | ||
popoverContent: 'card-body', | ||
// day grid | ||
// for left/right border color when border is inset from edges (all-day in timeGrid view) | ||
// avoid `table` class b/c don't want margins/padding/structure. only border color. | ||
headerRow: 'table-bordered', | ||
dayRow: 'table-bordered', | ||
// list view | ||
listView: 'card card-primary' | ||
}; | ||
BootstrapTheme.prototype.baseIconClass = 'fa'; | ||
BootstrapTheme.prototype.iconClasses = { | ||
close: 'fa-times', | ||
prev: 'fa-chevron-left', | ||
next: 'fa-chevron-right', | ||
prevYear: 'fa-angle-double-left', | ||
nextYear: 'fa-angle-double-right' | ||
}; | ||
BootstrapTheme.prototype.iconOverrideOption = 'bootstrapFontAwesome'; | ||
BootstrapTheme.prototype.iconOverrideCustomButtonOption = 'bootstrapFontAwesome'; | ||
BootstrapTheme.prototype.iconOverridePrefix = 'fa-'; | ||
var main = createPlugin({ | ||
themeClasses: { | ||
bootstrap: BootstrapTheme | ||
} | ||
}); | ||
|
||
export default main; | ||
export { BootstrapTheme }; |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not necessary, remove comments here