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

Calendar 2.0 - Vue #926

Merged
merged 515 commits into from
Oct 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
515 commits
Select commit Hold shift + click to select a range
3ba89cd
add new nextcloud-* packages
georgehrke Aug 19, 2019
1e0ecbb
add CalendarObject Model as more generic alternative to EventModel
georgehrke Aug 20, 2019
04abcd7
provide helper function to get unixtime of Date object
georgehrke Aug 20, 2019
51fe223
provide a proper logger-service based on nextcloud-logger
georgehrke Aug 20, 2019
ee788cb
add fetchedTimeRanges and calendarObjects stores
georgehrke Aug 20, 2019
93f954f
add P-Queue as dependency
georgehrke Aug 20, 2019
43727db
Use calendar-js for timezone implementation
georgehrke Aug 22, 2019
cf7438e
basic event rendering and caching of queried events
georgehrke Aug 22, 2019
b6fc6f6
automatically expire time-ranges that have been fetched more than 10 …
georgehrke Aug 22, 2019
5adb826
Bump eslint-loader from 2.2.1 to 3.0.0
dependabot-preview[bot] Aug 25, 2019
094f8f5
Bump p-limit from 2.2.0 to 2.2.1
dependabot-preview[bot] Aug 25, 2019
e0a97c1
Bump sass-loader from 7.2.0 to 7.3.1
dependabot-preview[bot] Aug 25, 2019
85dfb8a
Bump webpack-cli from 3.3.6 to 3.3.7
dependabot-preview[bot] Aug 25, 2019
8554ffe
Bump eslint-plugin-standard from 4.0.0 to 4.0.1
dependabot-preview[bot] Aug 25, 2019
98fdf46
Bump stylelint-scss from 3.9.3 to 3.9.4
dependabot-preview[bot] Aug 25, 2019
4077718
Bump uuid from 3.3.2 to 3.3.3
dependabot-preview[bot] Aug 25, 2019
7aaea7e
Fix error 'Unsupported platform for fsevents' by making optional
jancborchardt Aug 25, 2019
e64d9ff
Add more icons to img/
georgehrke Aug 26, 2019
75e8b05
cleanup principal store
georgehrke Aug 26, 2019
ab822f2
update calendar-js version
georgehrke Aug 26, 2019
21f3229
add icons to icons.scss
georgehrke Aug 26, 2019
b0fac40
load event into EditorComponent
georgehrke Aug 26, 2019
fa5d614
put appinfo/app.php into namespace
georgehrke Aug 26, 2019
54fbf7e
update settings, use hidden input fields
georgehrke Aug 26, 2019
d4be812
allow to close the event editor by pressing the X button
georgehrke Aug 26, 2019
2f8272d
Refactor DatePicker component
georgehrke Aug 26, 2019
493c557
add VUEX actions for adding, updating, deleting and moving calendar-o…
georgehrke Aug 26, 2019
10f87a1
Fix vulnerabilities
jancborchardt Aug 27, 2019
b414e51
Remove Change from date-picker since we use a computed setter now
georgehrke Aug 27, 2019
d82c890
load event into EventSidebar
georgehrke Aug 27, 2019
0952933
fix TimezoneSelect component, proper display of list in settings
georgehrke Aug 27, 2019
8590541
allow to restore contacts birthday calendar from settings
georgehrke Aug 27, 2019
d13477c
make sure calendars are loaded before we aim to open event editor
georgehrke Aug 28, 2019
73b0d58
save event when opening a new one
georgehrke Aug 28, 2019
0916cac
Allow to display custom color for fc-events
georgehrke Aug 28, 2019
3e1877c
show proper download link in editor
georgehrke Aug 28, 2019
d816f2c
show actual title in header of AppSidebar
georgehrke Aug 28, 2019
5d0c5dc
show displayed time-range in browser title
georgehrke Aug 28, 2019
9f00fa6
remove logic from vue template
georgehrke Aug 28, 2019
163fbfe
Don't cause router errors when clicking today button multiple times
georgehrke Aug 28, 2019
6dd5da7
move dateRangeFormatFilter into its own file
georgehrke Aug 28, 2019
0d91547
Connect settings to fullcalendar
georgehrke Aug 28, 2019
610a151
Bump babel-eslint from 10.0.2 to 10.0.3
dependabot-preview[bot] Aug 28, 2019
050541c
Bump cdav-library from `490a431` to `b851a71`
dependabot-preview[bot] Aug 28, 2019
a729d42
Bump webpack from 4.39.2 to 4.39.3
dependabot-preview[bot] Aug 28, 2019
2551aa2
Bump nextcloud-logger from 0.0.3 to 0.0.4
dependabot-preview[bot] Aug 28, 2019
7c79db3
Bump stylelint-scss from 3.9.4 to 3.10.0
dependabot-preview[bot] Aug 28, 2019
bde724a
Bump webpack-merge from 4.2.1 to 4.2.2
dependabot-preview[bot] Aug 29, 2019
24f0d4d
refactor import method, only send limited number of requests at a time
georgehrke Aug 29, 2019
5e0f674
Router: replace today with now instead of actual date to allow users …
georgehrke Aug 30, 2019
144bc83
properly load initial view for fullcalendar
georgehrke Aug 30, 2019
2d4b823
save new event
georgehrke Aug 31, 2019
4a14c6a
show sidebar values
jakobroehrl Aug 28, 2019
2f5e99f
save, new fields
jakobroehrl Aug 30, 2019
3a58916
Create sub components for editor, allow to save this or all future
georgehrke Sep 1, 2019
5f734a4
Bump eslint-plugin-node from 9.1.0 to 9.2.0
dependabot-preview[bot] Sep 1, 2019
b10eebc
Bump nextcloud-dialogs from 0.0.2 to 0.0.3
dependabot-preview[bot] Sep 1, 2019
a3e2d3d
Bump nextcloud-router from 0.0.6 to 0.0.8
dependabot-preview[bot] Sep 1, 2019
bef57bb
Bump vue-router from 3.1.2 to 3.1.3
dependabot-preview[bot] Sep 1, 2019
25f0f00
Bump cdav-library from `17252ee` to `a82ca88`
dependabot-preview[bot] Sep 1, 2019
dcbc7da
Bump nextcloud-axios from 0.2.0 to 0.2.1
dependabot-preview[bot] Sep 2, 2019
9d089ac
Bump nextcloud-logger from 0.0.4 to 0.0.6
dependabot-preview[bot] Sep 2, 2019
442c701
Bump nextcloud-initial-state from 0.0.1 to 0.0.2
dependabot-preview[bot] Sep 2, 2019
b7f120f
Bump nextcloud-vue from 0.12.1 to 0.12.2
dependabot-preview[bot] Sep 2, 2019
2cf1c92
Bump nextcloud-l10n from 0.0.2 to 0.1.0
dependabot-preview[bot] Sep 2, 2019
07618b5
fix implementation of datepicker
georgehrke Sep 2, 2019
6eaea5d
Finish implementation of datepicker
georgehrke Sep 2, 2019
fcccaf3
properly style tentative and cancelled events
georgehrke Sep 2, 2019
8cd1ef0
Make read-only editor legible
georgehrke Sep 2, 2019
e402ebd
properly implement isReadOnly()
georgehrke Sep 2, 2019
d9767e3
outsource eventAllow, eventDrop and eventResize into their dedicated …
georgehrke Sep 2, 2019
c43f5b7
replace fullcalendar-alpha package with new proper fullcalendar packages
georgehrke Sep 2, 2019
2ce3811
Housekeeping: remove unused dependencies
georgehrke Sep 2, 2019
09868d6
Turn VTimezoneNamedTimezone into a proper FullCalendar 4 Plugin:
georgehrke Sep 2, 2019
e4f1929
Do not close New event editor when selecting a new time-range, only u…
georgehrke Sep 3, 2019
a9d2307
Update calendar-js dependency, to make resize and drop work with recu…
georgehrke Sep 3, 2019
b4b4f69
Remove Colorpicker component, because it will be a part of the Nextcl…
georgehrke Sep 3, 2019
17f7c6e
Add two new icons for alarm types
georgehrke Sep 3, 2019
e718013
add default values for alarms
georgehrke Sep 4, 2019
ceea5ca
Mark new calendar objects as not dirty, so if you don't give them any…
georgehrke Sep 4, 2019
44d6901
Basics for Alarm Row layout
georgehrke Sep 4, 2019
4256d3e
Use offical fullcalendar vue component
georgehrke Sep 4, 2019
f575152
Fix filename of PropertyTitleTimepicker.vue
georgehrke Sep 4, 2019
b33d6a5
add fullcalendar/vue to package.json
georgehrke Sep 4, 2019
99e48ca
use beforeRouteUpdate to navigate and change view
georgehrke Sep 4, 2019
eb0298e
Prevent NavigationDuplicate errors from router for eventClick and select
georgehrke Sep 4, 2019
0f91f36
Add special classNames to root item when accessing public share / emb…
georgehrke Sep 4, 2019
6d08710
Do not highlight today if in day view
georgehrke Sep 4, 2019
8b90b4d
Hotfix: map old views to new FullCalendar 4 views
georgehrke Sep 4, 2019
c6e6339
implement AvatarParticipationStatus component
georgehrke Sep 4, 2019
68c5b2c
Bump max version to 18
georgehrke Sep 5, 2019
cb84ebd
refactor Attendee List, show avatar, rsvp, ...
georgehrke Sep 6, 2019
760ee4f
Do not allow Drag&Drop while editor is open
georgehrke Sep 9, 2019
fdc9ff6
major cleanup of css/, improve support for dark mode, today color sti…
georgehrke Sep 9, 2019
31ea23c
show proper loading indicator for calendars
georgehrke Sep 9, 2019
3ed01b3
Do not use lazy loading in fullcalendar, we have our own caching
georgehrke Sep 9, 2019
22bae5c
fix coloring of fc-divider for dark-mode
georgehrke Sep 10, 2019
94b07f0
Show calendar in calendar-grid when selecting it in editor
georgehrke Sep 10, 2019
90206c7
Bump nextcloud-vue from 0.12.2 to 0.12.3
dependabot-preview[bot] Sep 9, 2019
6b959c3
Bump webpack-cli from 3.3.7 to 3.3.8
dependabot-preview[bot] Sep 8, 2019
3de58e4
Bump stylelint-bare-webpack-plugin from 1.1.2 to 1.1.3
dependabot-preview[bot] Sep 8, 2019
3234637
Bump stylelint-scss from 3.10.0 to 3.10.1
dependabot-preview[bot] Sep 8, 2019
cdd4ea9
Bump @babel/preset-env from 7.5.5 to 7.6.0
dependabot-preview[bot] Sep 8, 2019
cbb559a
Bump @babel/core from 7.5.5 to 7.6.0
dependabot-preview[bot] Sep 8, 2019
5af4976
Bump vue-clipboard2 from 0.3.0 to 0.3.1
dependabot-preview[bot] Sep 8, 2019
7fc7e90
Bump @babel/polyfill from 7.4.4 to 7.6.0
dependabot-preview[bot] Sep 10, 2019
5a31b1a
Save forked events when editing this and all future
georgehrke Sep 10, 2019
c0dcef7
Enable fullcalendar progressive event rendering to show events as soo…
georgehrke Sep 10, 2019
edc2315
Bring back colored circle around today
georgehrke Sep 10, 2019
f27690c
properly rerender after modifications
georgehrke Sep 10, 2019
e474ccd
Cut of Alpha off RGBA color property
georgehrke Sep 10, 2019
a838cf0
Show color-indicator of calendar in calendar select
georgehrke Sep 10, 2019
e15dece
Properly handle jstz failures
georgehrke Sep 12, 2019
dba80a2
Create EditorMixin as basis for sidebar and popover editor
georgehrke Sep 12, 2019
2a72b00
Use MOVE verb to move calendars
georgehrke Sep 12, 2019
cea80f7
Add ContactsStore to store fetched contacts for attendeeList
georgehrke Sep 13, 2019
bde1232
Basic Repeat structure
georgehrke Sep 13, 2019
03983a9
Bump calendar-js from `669dd29` to `dbb5314`
dependabot-preview[bot] Sep 13, 2019
8af475b
Bump webpack from 4.39.3 to 4.40.1
dependabot-preview[bot] Sep 13, 2019
1560722
Bump cdav-library from `2a22abc` to `5a3f90a`
dependabot-preview[bot] Sep 13, 2019
c520d8e
Bump vue-jest from 3.0.4 to 3.0.5
dependabot-preview[bot] Sep 13, 2019
9555c99
properly handle undefined color of calendar
georgehrke Sep 14, 2019
2f6a541
api for getting a avatar photo
jakobroehrl Sep 6, 2019
351c952
also expose PHOTO as on other API endpoints, send link to image
georgehrke Sep 14, 2019
49ac4fc
Bump webpack from 4.40.1 to 4.40.2
dependabot-preview[bot] Sep 15, 2019
b091409
Bump eslint-plugin-node from 9.2.0 to 10.0.0
dependabot-preview[bot] Sep 8, 2019
ecd7c24
use new Contacts Controller API for attendee selector
georgehrke Sep 15, 2019
fb8902c
Update reminder icon to remove the new notification dot
georgehrke Sep 15, 2019
4ad7694
Attendee search adaptions
georgehrke Sep 15, 2019
66cee7d
add first version of illustration
georgehrke Sep 16, 2019
4a40e8d
override server's box-sizing: border-box inside .fc, because it's mes…
georgehrke Sep 16, 2019
b4ea1b3
fix compatibility with latest eslint-node plugin
georgehrke Sep 16, 2019
6dff333
properly handle cases where shares is not properly set on the cdav ca…
georgehrke Sep 16, 2019
1979773
Do not show border in Read-only version of editor
georgehrke Sep 16, 2019
ec8bc70
add Illustration header
georgehrke Sep 17, 2019
439bdb1
Keep calendar selection while editor is opne
georgehrke Sep 17, 2019
1547130
icalendar service is no longer used
georgehrke Sep 17, 2019
c40b85a
remove getHostname, adding that to events is discouraged nowadays
georgehrke Sep 17, 2019
9c7564c
fix overall build errors
georgehrke Sep 17, 2019
34f2e39
surpress XSS warning in IllustrationHeadeR
georgehrke Sep 17, 2019
45c4045
update viewNames in SettingsController
georgehrke Sep 17, 2019
ddb8a54
replace view name hotfix with proper migration step
georgehrke Sep 17, 2019
0102d1b
Code formatting fix
georgehrke Sep 17, 2019
84da739
remove IUrlGenerator from ContactsController
georgehrke Sep 17, 2019
4496720
major clean up of EmailController, use email templates
georgehrke Sep 17, 2019
4737c4b
Rate limit EmailController
georgehrke Sep 17, 2019
e9cd11c
refactor view controller
georgehrke Sep 17, 2019
4af3e95
Update PHP Unit tests
georgehrke Sep 17, 2019
55ab7c0
update travis.yml, will likely require more fixes
georgehrke Sep 17, 2019
1a6faba
add empty test skeletons for javascript
georgehrke Sep 18, 2019
0f14680
refactor DatePicker in AppNavigation
georgehrke Sep 18, 2019
e294c91
replace moment with moment-nextcloud, so it's automatically using the…
georgehrke Sep 18, 2019
85922cb
use nextcloud-router in cdav.js
georgehrke Sep 18, 2019
fd4b569
use getRequestToken from nextcloud-auth
georgehrke Sep 18, 2019
40abf76
rename cdav to caldavService
georgehrke Sep 18, 2019
6a765cf
Makefiles fixes, remove composer-init from main dev-setup since this …
georgehrke Sep 19, 2019
7381f33
manually bump nextcloud-moment
georgehrke Sep 19, 2019
dad4b6e
Refactor main.js
georgehrke Sep 19, 2019
ca05965
import dateRangeFilter locally in DatePicker component
georgehrke Sep 19, 2019
fdf427a
rename route param: firstday -> firstDay
georgehrke Sep 19, 2019
a32e234
Create dedicated windowTitleService, remove logic from router.js
georgehrke Sep 19, 2019
c97dbd9
use Content component from nextcloud-vue for root item
georgehrke Sep 19, 2019
ca9d7c5
var -> const
georgehrke Sep 19, 2019
eec9530
refactor ColorService, remove DefaultColorService
georgehrke Sep 19, 2019
3cc5bc8
date.js -> dateService.js
georgehrke Sep 19, 2019
ebb7cf2
remove productInformationProviderService
georgehrke Sep 19, 2019
5f67e8c
Bump stylelint-scss from 3.10.1 to 3.11.1
dependabot-preview[bot] Sep 22, 2019
7077b0a
Bump webpack-cli from 3.3.8 to 3.3.9
dependabot-preview[bot] Sep 22, 2019
eeccd77
Bump stylelint-config-recommended-scss from 3.3.0 to 4.0.0
dependabot-preview[bot] Sep 22, 2019
9a7dddf
Improve documentation
georgehrke Sep 23, 2019
bd863f3
Also show owner avatar in calendar-picker
georgehrke Sep 23, 2019
a5a1233
add title to today button
georgehrke Sep 25, 2019
c4003d3
remove ugly querySelector hack with proper css
georgehrke Sep 25, 2019
fd53830
reorganize components/AppNavigation folder
georgehrke Sep 25, 2019
347bb29
Do not offer to share with: (1) yourself (2) owner of calendar (3) pe…
georgehrke Sep 25, 2019
c81b9ae
Only apply eslint-loader to our own sources, fixing problems related …
georgehrke Sep 25, 2019
d6b91b9
fix linting errors
georgehrke Sep 25, 2019
5d0beb1
Bump @babel/preset-env from 7.6.0 to 7.6.2
dependabot-preview[bot] Sep 29, 2019
2f3efde
Bump nextcloud-l10n from 0.1.0 to 0.1.1
dependabot-preview[bot] Sep 29, 2019
1d3d70f
Bump webpack from 4.40.2 to 4.41.0
dependabot-preview[bot] Sep 29, 2019
cbe201a
Bump stylelint from 10.1.0 to 11.0.0
dependabot-preview[bot] Sep 29, 2019
8f0713a
Bump @babel/core from 7.6.0 to 7.6.2
dependabot-preview[bot] Sep 29, 2019
1e38292
Bump eslint-loader from 3.0.0 to 3.0.2
dependabot-preview[bot] Sep 29, 2019
2b489ec
Clean up stores, use new vue-components for AppNavigation
georgehrke Sep 30, 2019
101bd14
move app navigation to new nextcloud-vue components
georgehrke Oct 3, 2019
529ff89
Travis doesn't like huge outputs to stdout, so disable verbose flag f…
georgehrke Oct 3, 2019
5ef420b
Show subtitle in event editor
georgehrke Oct 3, 2019
3a0ab9f
Add CalendarObjectInstance Model and Store to allow better reactivity…
georgehrke Oct 4, 2019
a8e2654
Bump nextcloud-vue from 0.12.3 to 0.12.4
dependabot-preview[bot] Oct 6, 2019
9224c3d
Bump fsevents from 2.0.7 to 2.1.0
dependabot-preview[bot] Oct 6, 2019
bce7ed4
Bump stylelint-webpack-plugin from 0.10.5 to 1.0.1
dependabot-preview[bot] Oct 6, 2019
c779bde
Move main inputs in editor to new calendarObjectInstance model and vu…
georgehrke Oct 8, 2019
3533b8b
Move Attendees Section to new calendarObjectInstance model, add prope…
georgehrke Oct 8, 2019
679d8ed
Add empty message if no reminders are set
georgehrke Oct 8, 2019
beee805
Update placeholder for location and description
georgehrke Oct 8, 2019
12e62f5
Integrate editor buttons into AppSidebarTab to prevent overlay in sma…
georgehrke Oct 8, 2019
02e7cd9
move certain services that are simply utilities to a utils folder, ad…
georgehrke Oct 8, 2019
aec15a5
Implement proper loading indicator for editor
georgehrke Oct 8, 2019
7298ae5
use nextcloud-l10n whereever possible
georgehrke Oct 9, 2019
76b24d5
Stop using global OC, use nextcloud-l10n, nextcloud-router, etc. instead
georgehrke Oct 9, 2019
15ce7b7
use browserslist-config-nextcloud
georgehrke Oct 9, 2019
a6938b5
use @nextcloud/... packages instead of nextcloud-...
georgehrke Oct 9, 2019
1380e45
Use numerical representation for default alarm triggers
georgehrke Oct 10, 2019
9861693
deprecate getRandomColor
georgehrke Oct 10, 2019
e43f9e8
Bump nextcloud-vue from 0.12.4 to 0.12.6
dependabot-preview[bot] Oct 13, 2019
23caa84
Bump stylelint from 11.0.0 to 11.1.1
dependabot-preview[bot] Oct 13, 2019
4bf29e4
Bump @babel/core from 7.6.2 to 7.6.4
dependabot-preview[bot] Oct 13, 2019
528e5a9
Bump @nextcloud/axios from 0.4.1 to 0.4.2
dependabot-preview[bot] Oct 13, 2019
f742596
Bump stylelint-webpack-plugin from 1.0.1 to 1.0.2
dependabot-preview[bot] Oct 13, 2019
77253e2
Bump p-queue from 6.1.1 to 6.2.0
dependabot-preview[bot] Oct 13, 2019
e17dc39
Bump webpack from 4.41.0 to 4.41.1
dependabot-preview[bot] Oct 13, 2019
46bf4bf
Bump @babel/preset-env from 7.6.2 to 7.6.3
dependabot-preview[bot] Oct 13, 2019
71d8e48
Bump @nextcloud/l10n from 0.2.0 to 0.2.1
dependabot-preview[bot] Oct 13, 2019
8ca6749
Extract recurrence-rule into calendarObjectInstance object
georgehrke Oct 10, 2019
a60785d
Finish implementatation of new recurrence-editor
georgehrke Oct 13, 2019
166bce1
Only offer Update this and all future button after editing recurrence…
georgehrke Oct 13, 2019
270940a
allow removing recurrence rule
georgehrke Oct 13, 2019
ee63e74
Add the attendee role CHAIR
georgehrke Oct 13, 2019
a524c67
Fix selection of role in attendee editor:
georgehrke Oct 13, 2019
0246dfd
Don't fork an event that we just created
georgehrke Oct 13, 2019
4e62886
Do not allow adding the same attendee twice
georgehrke Oct 13, 2019
7a85f86
If the user enters a email address into attendee search field, sugges…
georgehrke Oct 13, 2019
8c9706d
Read-only version of calendar-picker
georgehrke Oct 13, 2019
a74be05
Show timezone-icon in datetimepicker, which triggers a popover with t…
georgehrke Oct 13, 2019
82fedb4
Adapt mechanism, that updates new event editor on select of new time,…
georgehrke Oct 13, 2019
f90472d
App Navigation: replace datepicker label with button, to be focusable…
georgehrke Oct 14, 2019
d658f13
Finish Reminder implementation
georgehrke Oct 15, 2019
09b13e5
Move from nextcloud-vue to @nextcloud/vue. You no longer need to npm …
georgehrke Oct 16, 2019
5066abb
BYSETPOS is an array, not a number
georgehrke Oct 16, 2019
3e2fcb4
Implement circle sharing by @jakobroehrl
georgehrke Oct 16, 2019
708a9c1
Properly implement canEdit in AlarmListItem
georgehrke Oct 16, 2019
d7722b3
Do not allow creating absolute reminders for recurring events
georgehrke Oct 16, 2019
1c168dd
Invitees search: show email address in second line
georgehrke Oct 16, 2019
140e6a2
Properly retain exlusivity of dtend when toggling all-day
georgehrke Oct 16, 2019
9dd055a
Move most of the styling from Vue files to our SCSS
georgehrke Oct 16, 2019
52b9a84
Read-only version of reminder editor
georgehrke Oct 16, 2019
4289578
Automatically create new calendar if there is no writable one
georgehrke Oct 17, 2019
869f2b4
Reduce margin of action-checkbox in appnavigation
georgehrke Oct 17, 2019
f2cb94d
Reimplement popover editor
georgehrke Oct 17, 2019
766b927
Reimplement public sharing and embedding
georgehrke Oct 18, 2019
771e8a0
Set our own Product id for calendar-js
georgehrke Oct 18, 2019
6ac7e64
Fix disabling the popover editor
georgehrke Oct 18, 2019
5059c92
Read only version of Date-time-picker
georgehrke Oct 18, 2019
68973d4
if turning an Allday event without timezone information into a timed …
georgehrke Oct 19, 2019
42fc781
Properly delete empty properties
georgehrke Oct 19, 2019
d588a1f
Enforce stronger injection prevention in IllustrationHeader
georgehrke Oct 19, 2019
e103356
eslint autofix
georgehrke Oct 19, 2019
62322a7
use eslint-config-nextcloud
georgehrke Oct 19, 2019
d241456
fix phpunit tests
georgehrke Oct 19, 2019
982abf0
Update version number in package.json
georgehrke Oct 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
plugins: ['@babel/plugin-syntax-dynamic-import'],
presets: [
[
'@babel/preset-env',
{
targets: {
browsers: ['last 2 versions', 'ie >= 11']
}
}
]
]
}
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'nextcloud'
]
};
File renamed without changes.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ vendor/
*.kdev4

build/
js/node_modules/
js/
node_modules/
*.clover

# just sane ignores
Expand Down
35 changes: 35 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": "stylelint-config-recommended-scss",
"rules": {
"indentation": "tab",
"selector-type-no-unknown": null,
"number-leading-zero": null,
"rule-empty-line-before": [
"always",
{
"ignore": [
"after-comment", "inside-block"
]
}
],
"declaration-empty-line-before": [
"never",
{
"ignore": [
"after-declaration"
]
}
],
"comment-empty-line-before": null,
"selector-type-case": null,
"selector-list-comma-newline-after": null,
"no-descending-specificity": null,
"string-quotes": "single"
},
"plugins": [
"stylelint-scss"
],
"ignoreFiles": [
"css/public/*"
]
}
140 changes: 74 additions & 66 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,98 +1,106 @@
dist: trusty
sudo: required
dist: trusty
language: php
php:
- 7.1
- 7.2
- 7.3
services:
- mysql
- postgresql

addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- libxml2-utils
firefox: "latest"

branches:
only:
- master
- vue

env:
global:
- CORE_BRANCH=master
- NIGHTLY=false
matrix:
- DB=mysql
- CORE_BRANCH=master
- PHP_COVERAGE=FALSE
- TEST_SUITE=TEST-PHP

matrix:
include:
- php: 7.3
env: "TEST_SUITE=PACKAGE"
- php: 7.3
env: "TEST_SUITE=LINT-PHP"
- php: 7.3
env: "TEST_SUITE=TEST-JS"
- php: 7.3
env: "CORE_BRANCH=stable17"
- php: 7.2
env: DB=sqlite
- php: 7.2
env: DB=pgsql
- php: 7.0
env: "DB=mysql CORE_BRANCH=stable14"
env: "CORE_BRANCH=stable17"
- php: 7.1
env: "CORE_BRANCH=stable17"
fast_finish: true


before_install:
# we spawn in /home/travis/build/nextcloud/calendar
# go to /home/travis/build/
- cd ../../
- wget https://phar.phpunit.de/phpunit-5.7.phar
- chmod +x phpunit-5.7.phar
- mkdir bin
- sudo mv phpunit-5.7.phar bin/phpunit
- export PATH="$PWD/bin:$PATH"
- phpunit --version
# get a newer node.js version
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- nvm install 10
- npm install -g npm@latest
# install server
- cd nextcloud
- git clone https://github.com/nextcloud/core.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
- mv calendar nextcloud/apps/
- cd nextcloud

cache:
directories:
- $HOME/.cache/yarn
- "$HOME/.composer/cache/files"
- "$HOME/.npm"

before_script:
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
# Setup Postgres if applicable
- if [[ "$DB" == 'pgsql' ]]; then psql -c 'create database oc_autotest;' -U postgres; fi
- if [[ "$DB" == 'pgsql' ]]; then psql -c "create user oc_autotest with password '';" -U postgres; fi
- if [[ "$DB" == 'pgsql' ]]; then psql -c 'grant all privileges on database oc_autotest to oc_autotest;' -U postgres; fi
before_install:
- php --info
# Setup MySQL if applicable
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost';"; fi
# fill nextcloud with default configs and enable calendar
- mkdir data
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- ./occ app:enable calendar
- ./occ app:check-code calendar
- php -S localhost:8080 &
- cd apps/calendar
# set up nextcloud
- composer self-update
- sh -c "if [ '$TEST_SUITE' = 'TEST-PHP' ]; then make composer-init; fi"
- cd ..
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH core
- mv calendar core/apps/

before_script:
- sh -c "if [ '$TEST_SUITE' = 'TEST-PHP' ]; then php -f core/occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''; fi"

# Set up app
- sh -c "if [ '$TEST_SUITE' = 'TEST-PHP' ]; then php -f core/occ app:enable calendar; fi"
# Enable app twice to check occ errors of registered commands
- sh -c "if [ '$TEST_SUITE' = 'TEST-PHP' ]; then php -f core/occ app:enable calendar; fi"
- cd core/apps/calendar
- sh -c "if [ '$TEST_SUITE' = 'TEST-JS' ]; then npm install -g npm@latest; fi"
- sh -c "if [ '$TEST_SUITE' = 'TEST-JS' ]; then make dev-setup; fi"

# XDebug is only needed if we report coverage -> speeds up other builds
- if [[ "$PHP_COVERAGE" = "FALSE" ]]; then phpenv config-rm xdebug.ini; fi

script:
- make
- make composer || true
- make test
- make dist
# Upload nightly
- if [[ "$NIGHTLY" = "TRUE" ]]; then curl --ftp-create-dirs -T build/artifacts/appstore/calendar.tar.gz -u $FTP_LOGIN:$FTP_PW ftp://upload.portknox.de/htdocs/calendar/nextcloud_calendar_nightly_build_$(date +%Y-%m-%d).tar.gz; fi

after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- cat ./coverage/*/lcov.info | ./js/node_modules/coveralls/bin/coveralls.js

after_failure:
- cat ../../data/nextcloud.log
# Check info.xml schema validity
- wget https://apps.nextcloud.com/schema/apps/info.xsd
- xmllint appinfo/info.xml --schema info.xsd --noout
- rm info.xsd

# Check PHP syntax errors
- sh -c "if [ '$TEST_SUITE' = 'LINT-PHP' ]; then composer run lint; fi"

# Run server's app code checker
- sh -c "if [ '$TEST_SUITE' = 'LINT-PHP' ]; then php ../../occ app:check-code calendar; fi"

# Run JS tests
- sh -c "if [ '$TEST_SUITE' = 'TEST-JS' ]; then npm test --passWithNoTests; fi"

# Run JS lint
- sh -c "if [ '$TEST_SUITE' = 'TEST-JS' ]; then npm run lint; fi"

# Run PHP tests
- sh -c "if [ '$TEST_SUITE' = 'TEST-PHP' ]; then composer run test; fi"
- if [[ "$PHP_COVERAGE" = "TRUE" ]]; then wget https://scrutinizer-ci.com/ocular.phar;
fi
- if [[ "$PHP_COVERAGE" = "TRUE" ]]; then php ocular.phar code-coverage:upload --format=php-clover
tests/clover.xml; fi

# Test packaging
- if [[ "$TEST_SUITE" = "PACKAGE" ]]; then make dev-setup; fi
- if [[ "$TEST_SUITE" = "PACKAGE" ]]; then make build-js-production; fi
- if [[ "$TEST_SUITE" = "PACKAGE" ]]; then make appstore; fi
Loading