Fix styling and rename to actual dashboard api
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -69,10 +69,12 @@ import { Modal } from '@nextcloud/vue'
|
||||
import attachmentUpload from '../mixins/attachmentUpload'
|
||||
import { loadState } from '@nextcloud/initial-state'
|
||||
|
||||
let maxUploadSizeState = -1
|
||||
let maxUploadSizeState
|
||||
try {
|
||||
loadState('deck', 'maxUploadSize')
|
||||
} catch (e) {}
|
||||
maxUploadSizeState = loadState('deck', 'maxUploadSize')
|
||||
} catch (e) {
|
||||
maxUploadSizeState = -1
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'AttachmentDragAndDrop',
|
||||
|
||||
@@ -21,11 +21,7 @@
|
||||
-->
|
||||
|
||||
<template>
|
||||
<<<<<<< HEAD
|
||||
<div v-if="card" class="badges">
|
||||
=======
|
||||
<div class="badges" v-if="card">
|
||||
>>>>>>> 37196bbf... Move duedate to separate component
|
||||
<div v-if="card.commentsUnread > 0" class="icon icon-comment" />
|
||||
|
||||
<div v-if="card.description && checkListCount > 0" class="card-tasks icon icon-checkmark">
|
||||
@@ -59,11 +55,7 @@ export default {
|
||||
return (this.card.description.match(/^\s*([*+-]|(\d\.))\s+\[\s*(\s|x)\s*\](.*)$/gim) || []).length
|
||||
},
|
||||
checkListCheckedCount() {
|
||||
<<<<<<< HEAD
|
||||
return (this.card.description.match(/^\s*([*+-]|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length
|
||||
=======
|
||||
return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length
|
||||
>>>>>>> 37196bbf... Move duedate to separate component
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
-->
|
||||
|
||||
<template>
|
||||
<div class="duedate" v-if="card">
|
||||
<div v-if="card" class="duedate">
|
||||
<transition name="zoom">
|
||||
<div v-if="card.duedate" :class="dueIcon">
|
||||
<span>{{ relativeDate }}</span>
|
||||
@@ -65,7 +65,7 @@ export default {
|
||||
dueDateTooltip() {
|
||||
return moment(this.card.duedate).format('LLLL')
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<AppNavigationVue :class="{'icon-loading': loading}">
|
||||
<template #list>
|
||||
<AppNavigationItem
|
||||
:title="t('deck', 'My assigned cards')"
|
||||
:title="t('deck', 'Assigned cards')"
|
||||
icon="icon-group"
|
||||
to="/overview/assigned" />
|
||||
<AppNavigationBoardCategory
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<Controls :dashboard-name="filterDisplayName" />
|
||||
<Controls :overview-name="filterDisplayName" />
|
||||
|
||||
<div v-if="loading" key="loading" class="emptycontent">
|
||||
<div class="icon icon-loading" />
|
||||
@@ -33,46 +33,46 @@
|
||||
<div v-else>
|
||||
<div v-if="isValidFilter" class="dashboard">
|
||||
<div class="dashboard-column">
|
||||
<h2>{{ t('deck', 'No due') }}</h2>
|
||||
<div v-for="card in cardsByDueDate.nodue" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-column">
|
||||
<h2>{{ t('deck', 'Overdue') }}</h2>
|
||||
<h3>{{ t('deck', 'Overdue') }}</h3>
|
||||
<div v-for="card in cardsByDueDate.overdue" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-column">
|
||||
<h2>{{ t('deck', 'Today') }}</h2>
|
||||
<h3>{{ t('deck', 'Today') }}</h3>
|
||||
<div v-for="card in cardsByDueDate.today" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-column">
|
||||
<h2>{{ t('deck', 'Tomorrow') }}</h2>
|
||||
<h3>{{ t('deck', 'Tomorrow') }}</h3>
|
||||
<div v-for="card in cardsByDueDate.tomorrow" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-column">
|
||||
<h2>{{ t('deck', 'This week') }}</h2>
|
||||
<h3>{{ t('deck', 'This week') }}</h3>
|
||||
<div v-for="card in cardsByDueDate.thisWeek" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-column">
|
||||
<h2>{{ t('deck', 'Later') }}</h2>
|
||||
<h3>{{ t('deck', 'Later') }}</h3>
|
||||
<div v-for="card in cardsByDueDate.later" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-column">
|
||||
<h3>{{ t('deck', 'No due') }}</h3>
|
||||
<div v-for="card in cardsByDueDate.nodue" :key="card.id">
|
||||
<CardItem :id="card.id" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -102,7 +102,7 @@ export default {
|
||||
props: {
|
||||
filter: {
|
||||
type: String,
|
||||
default: '',
|
||||
default: FILTER_ASSIGNED,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
@@ -116,8 +116,8 @@ export default {
|
||||
},
|
||||
filterDisplayName() {
|
||||
switch (this.filter) {
|
||||
case 'assigned':
|
||||
return t('deck', 'My assigned cards')
|
||||
case FILTER_ASSIGNED:
|
||||
return t('deck', 'Assigned cards')
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
@@ -211,13 +211,15 @@ export default {
|
||||
.dashboard {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
margin: $board-spacing;
|
||||
margin-left: $board-spacing;
|
||||
margin-right: $board-spacing;
|
||||
|
||||
.dashboard-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: $stack-width;
|
||||
margin: $stack-spacing;
|
||||
min-width: $stack-width;
|
||||
margin-left: $stack-spacing;
|
||||
margin-right: $stack-spacing;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user