diff --git a/css/app/calendar.scss b/css/app/calendar.scss index fe7525ade2..2fa3f1baa3 100644 --- a/css/app/calendar.scss +++ b/css/app/calendar.scss @@ -1,66 +1,6 @@ -/** - * Calendar App - * - * @author Raghu Nayyar - * @author Georg Ehrke - * @copyright 2016 Raghu Nayyar - * @copyright 2016 Georg Ehrke - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE - * License as published by the Free Software Foundation; either - * version 3 of the License, or any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU AFFERO GENERAL PUBLIC LICENSE for more details. - * - * You should have received a copy of the GNU Affero General Public - * License along with this library. If not, see . - * - */ - -.app { - height: 100%; - width: 100%; -} - -.modal-content #app-sidebar { - position: fixed; -} - -#fullcalendar table { - white-space: inherit !important; -} - -.fc-state-highlight.fc-day-number, -#fullcalendar tbody tr, -#fullcalendar tbody tr:hover, -#fullcalendar tbody tr:focus { - background: transparent !important; -} - -#popover-container, -#importpopover-container { - max-height: 0 !important; - max-width: 0 !important; - overflow: hidden !important; -} - -#fullcalendar .fc-axis, -#fullcalendar .fc-day-header { - font-size: 100%; - opacity: .5; -} - -#fullcalendar td.fc-day.fc-sat, -#fullcalendar td.fc-day.fc-sun { - background-color: nc-darken($color-main-background, 3%); -} - @import 'calendarlist.scss'; @import 'confirmation.scss'; + @import 'datepicker.scss'; @import 'eventdialog.scss'; @import 'fullcalendar.scss'; diff --git a/css/app/calendarlist.scss b/css/app/calendarlist.scss index 10851c9122..3395772a90 100644 --- a/css/app/calendarlist.scss +++ b/css/app/calendarlist.scss @@ -1,12 +1,14 @@ /** * Calendar App * - * @author Raghu Nayyar - * @author Georg Ehrke * @copyright 2016 Raghu Nayyar - * @copyright 2016 Georg Ehrke + * @copyright 2018 Georg Ehrke * @copyright 2017 John Molakvoæ * + * @author Raghu Nayyar + * @author Georg Ehrke + * @author John Molakvoæ + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either diff --git a/css/app/eventdialog.scss b/css/app/eventdialog.scss index c8da338a9b..af5541e89e 100644 --- a/css/app/eventdialog.scss +++ b/css/app/eventdialog.scss @@ -330,3 +330,16 @@ button.delete:focus { .dropdown-menu li a:hover { background: #eee; } + + + +.modal-content #app-sidebar { + position: fixed; +} + +#popover-container, +#importpopover-container { + max-height: 0 !important; + max-width: 0 !important; + overflow: hidden !important; +} diff --git a/css/app/fullcalendar.scss b/css/app/fullcalendar.scss index 515213fa35..fcf41fb55d 100644 --- a/css/app/fullcalendar.scss +++ b/css/app/fullcalendar.scss @@ -1,3 +1,32 @@ +/** + * Calendar App + * + * @copyright 2018 Georg Ehrke + * + * @author Georg Ehrke + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE + * License as published by the Free Software Foundation; either + * version 3 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU Affero General Public + * License along with this library. If not, see . + * + */ + +#app-content { + + padding-top: 50px; + +} + + /* Fullcalendar modifications */ @@ -68,3 +97,29 @@ .fc-unthemed td.fc-today { background: #fcf8e3 !important; } + + + +#fullcalendar .fc-axis, +#fullcalendar .fc-day-header { + font-size: 100%; + opacity: .5; +} + +#fullcalendar td.fc-day.fc-sat, +#fullcalendar td.fc-day.fc-sun { + background-color: nc-darken($color-main-background, 3%); +} + + + +#fullcalendar table { + white-space: inherit !important; +} + +.fc-state-highlight.fc-day-number, +#fullcalendar tbody tr, +#fullcalendar tbody tr:hover, +#fullcalendar tbody tr:focus { + background: transparent !important; +} diff --git a/css/app/icons.scss b/css/app/icons.scss new file mode 100644 index 0000000000..96a0fba655 --- /dev/null +++ b/css/app/icons.scss @@ -0,0 +1,21 @@ +/** + * Calendar App + * + * @copyright 2018 Georg Ehrke + * + * @author Georg Ehrke + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE + * License as published by the Free Software Foundation; either + * version 3 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU AFFERO GENERAL PUBLIC LICENSE for more details. + * + * You should have received a copy of the GNU Affero General Public + * License along with this library. If not, see . + * + */ diff --git a/package-lock.json b/package-lock.json index e6841bb9d4..0142119059 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4610,7 +4610,7 @@ }, "fecha": { "version": "2.3.3", - "resolved": "http://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", "integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg==" }, "figures": { @@ -7081,6 +7081,11 @@ "verror": "1.10.0" } }, + "jstz": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/jstz/-/jstz-2.1.1.tgz", + "integrity": "sha512-8hfl5RD6P7rEeIbzStBz3h4f+BQHfq/ABtoU6gXKQv5OcZhnmrIpG7e1pYaZ8hS9e0mp+bxUj08fnDUbKctYyA==" + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -7749,18 +7754,11 @@ "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" }, "moment-timezone": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.21.tgz", - "integrity": "sha512-j96bAh4otsgj3lKydm3K7kdtA3iKf2m6MY2iSYCzCm5a1zmHo1g+aK3068dDEeocLZQIS9kU8bsdQHLqEvgW0A==", + "version": "0.5.23", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.23.tgz", + "integrity": "sha512-WHFH85DkCfiNMDX5D3X7hpNH3/PUhjTGcD0U1SgfBGZxJ3qUmJh5FdvaFjcClxOvB3rzdfj4oRffbI38jEnC1w==", "requires": { "moment": ">= 2.9.0" - }, - "dependencies": { - "moment": { - "version": "2.22.2", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", - "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" - } } }, "move-concurrently": { diff --git a/package.json b/package.json index 09d07882aa..ba871280e7 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "debounce": "^1.2.0", "fullcalendar": "^4.0.0-alpha.2", "ical.js": "^1.2.2", + "jstz": "^2.1.1", "moment": "^2.22.2", "nextcloud-axios": "^0.1.2", "nextcloud-vue": "^0.4.3", diff --git a/src/components/FullCalendar.vue b/src/components/FullCalendar.vue index bed4c5e7ef..7a2a0ff4f3 100644 --- a/src/components/FullCalendar.vue +++ b/src/components/FullCalendar.vue @@ -25,10 +25,114 @@ diff --git a/src/views/Edit.vue b/src/views/EditSidebar.vue similarity index 85% rename from src/views/Edit.vue rename to src/views/EditSidebar.vue index 40cb9e7e02..f8940b0980 100644 --- a/src/views/Edit.vue +++ b/src/views/EditSidebar.vue @@ -1,5 +1,6 @@ diff --git a/src/views/EditSimple.vue b/src/views/EditSimple.vue new file mode 100644 index 0000000000..c3e4d235db --- /dev/null +++ b/src/views/EditSimple.vue @@ -0,0 +1,12 @@ + +