Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions css/app-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,27 @@
}
}

.app-navigation-entry-new-calendar {
.app-navigation-entry__title {
color: var(--color-text-maxcontrast) !important;
}

&:hover,
&--open {
.app-navigation-entry__title {
color: var(--color-text-light) !important;
}
}

.action-item:not(.action-item--open) {
.action-item__menutoggle:not(:hover):not(:focus):not(:active) {
opacity: .5;
}
}

}


ul {

// Calendar list items / Subscription list items
Expand Down
2 changes: 2 additions & 0 deletions css/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
@include icon-black-white('eye', 'calendar', 4);
@include icon-black-white('invitees-no-response', 'calendar', 5);
@include icon-black-white('leftarrow', 'calendar', 2);
@include icon-black-white('new-calendar', 'calendar', 2);
@include icon-black-white('new-calendar-with-task-list', 'calendar', 2);
@include icon-black-white('random', 'calendar', 1);
@include icon-black-white('reminder', 'calendar', 4);
@include icon-black-white('reminder-audio', 'calendar', 1);
Expand Down
10 changes: 10 additions & 0 deletions img/LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@
- Created by: Google
- License: Apache License version 2.0
- Link: https://material.io/resources/icons/?search=view_&icon=view_week&style=baseline

## new-calendar.svg
- Created by: Austin Andrews
- License: Apache License version 2.0
- Link: https://materialdesignicons.com/icon/calendar-blank

## new-calendar-with-task-list.svg
- Created by: Google
- License: Apache License version 2.0
- Link: https://materialdesignicons.com/icon/calendar-check
1 change: 1 addition & 0 deletions img/new-calendar-with-task-list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/new-calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 11 additions & 29 deletions src/components/AppNavigation/CalendarList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,22 @@
id="calendars-list"
name="list"
tag="ul">
<CalendarListNew
:key="newCalendarKey"
:disabled="loadingCalendars" />
<AppNavigationSpacer :key="spacerKey" />
<CalendarListItemLoadingPlaceholder v-if="loadingCalendars" :key="loadingKeyCalendars" />
<CalendarListItem
v-for="calendar in calendars"
:key="calendar.id"
:calendar="calendar" />

<AppNavigationSpacer
:key="spacerKey" />

<SubscriptionListNew :key="newSubscriptionKey" :disabled="loadingCalendars" />
<CalendarListItemLoadingPlaceholder v-if="loadingCalendars" :key="loadingKeySubscriptions" />
<CalendarListItem
v-for="calendar in subscriptions"
v-for="calendar in allCalendars"
:key="calendar.id"
:calendar="calendar" />
<CalendarListNew
v-if="!loadingCalendars"
:key="newCalendarKey"
:disabled="loadingCalendars" />
</transition-group>
<transition-group v-else
id="calendars-list"
name="list"
tag="ul">
<CalendarListItemLoadingPlaceholder v-if="loadingCalendars" :key="loadingKeySubscriptions" />
<CalendarListItemLoadingPlaceholder v-if="loadingCalendars" :key="loadingKeyCalendars" />
<PublicCalendarListItem
v-for="calendar in subscriptions"
:key="calendar.id"
Expand All @@ -56,26 +48,22 @@
</template>

<script>
import {
AppNavigationSpacer
} from '@nextcloud/vue'
import {
mapGetters
} from 'vuex'
import { AppNavigationSpacer } from '@nextcloud/vue'
import CalendarListNew from './CalendarList/CalendarListNew.vue'
import CalendarListItem from './CalendarList/CalendarListItem.vue'
import PublicCalendarListItem from './CalendarList/PublicCalendarListItem.vue'
import CalendarListItemLoadingPlaceholder from './CalendarList/CalendarListItemLoadingPlaceholder.vue'
import CalendarListNew from './CalendarList/CalendarListNew.vue'
import SubscriptionListNew from './CalendarList/SubscriptionListNew.vue'

export default {
name: 'CalendarList',
components: {
AppNavigationSpacer,
CalendarListNew,
CalendarListItem,
CalendarListItemLoadingPlaceholder,
CalendarListNew,
SubscriptionListNew,
PublicCalendarListItem
},
props: {
Expand All @@ -90,7 +78,7 @@ export default {
},
computed: {
...mapGetters({
calendars: 'sortedCalendars',
allCalendars: 'sortedCalendarsSubscriptions',
subscriptions: 'sortedSubscriptions'
}),
newCalendarKey() {
Expand All @@ -99,12 +87,6 @@ export default {
loadingKeyCalendars() {
return this._uid + '-loading-placeholder-calendars'
},
loadingKeySubscriptions() {
return this._uid + '-loading-placeholder-subscriptions'
},
newSubscriptionKey() {
return this._uid + '-new-subscription'
},
spacerKey() {
return this._uid + '-spacer'
}
Expand Down
Loading