Skip to content

Commit b199442

Browse files
committed
Rename to overview
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 341eb47 commit b199442

7 files changed

Lines changed: 18 additions & 22 deletions

File tree

appinfo/routes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
['name' => 'card#removeLabel', 'url' => '/cards/{cardId}/label/{labelId}', 'verb' => 'DELETE'],
6666
['name' => 'card#assignUser', 'url' => '/cards/{cardId}/assign', 'verb' => 'POST'],
6767
['name' => 'card#unassignUser', 'url' => '/cards/{cardId}/unassign', 'verb' => 'PUT'],
68-
68+
6969
// attachments
7070
['name' => 'attachment#getAll', 'url' => '/cards/{cardId}/attachments', 'verb' => 'GET'],
7171
['name' => 'attachment#create', 'url' => '/cards/{cardId}/attachment', 'verb' => 'POST'],
@@ -136,7 +136,7 @@
136136
['name' => 'comments_api#delete', 'url' => '/api/v1.0/cards/{cardId}/comments/{commentId}', 'verb' => 'DELETE'],
137137

138138
// dashboard
139-
['name' => 'dashboard_api#findAllWithDue', 'url' => '/api/v1.0/dashboard/due', 'verb' => 'GET'],
140-
['name' => 'dashboard_api#findAssignedCards', 'url' => '/api/v1.0/dashboard/assigned', 'verb' => 'GET'],
139+
['name' => 'overview_api#findAllWithDue', 'url' => '/api/v1.0/overview/due', 'verb' => 'GET'],
140+
['name' => 'overview_api#findAssignedCards', 'url' => '/api/v1.0/overview/assigned', 'verb' => 'GET'],
141141
]
142-
];
142+
];

src/components/navigation/AppNavigation.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@
2323
<template>
2424
<AppNavigationVue :class="{'icon-loading': loading}">
2525
<template #list>
26-
<AppNavigationItem
27-
:title="t('deck', 'Due cards')"
28-
icon="icon-calendar-dark"
29-
to="/dashboards/due" />
3026
<AppNavigationItem
3127
:title="t('deck', 'My assigned cards')"
3228
icon="icon-group"
33-
to="/dashboards/assigned" />
29+
to="/overview/assigned" />
3430
<AppNavigationBoardCategory
3531
id="deck-navigation-all"
3632
to="/board"

src/components/overview/Overview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const SUPPORTED_FILTERS = [
9494
]
9595
9696
export default {
97-
name: 'Dashboards',
97+
name: 'Overview',
9898
components: {
9999
Controls,
100100
CardItem,

src/router.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import Board from './components/board/Board'
2929
import Sidebar from './components/Sidebar'
3030
import BoardSidebar from './components/board/BoardSidebar'
3131
import CardSidebar from './components/card/CardSidebar'
32-
import Dashboards from './components/dashboards/Dashboards'
32+
import Overview from './components/overview/Overview'
3333

3434
Vue.use(Router)
3535

@@ -43,10 +43,10 @@ export default new Router({
4343
component: Boards,
4444
},
4545
{
46-
path: '/dashboards/:filter',
47-
name: 'dashboards',
46+
path: '/overview/:filter',
47+
name: 'overview',
4848
components: {
49-
default: Dashboards,
49+
default: Overview,
5050
},
5151
props: {
5252
default: (route) => {

src/services/OverviewApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
import axios from '@nextcloud/axios'
2424
import { generateOcsUrl } from '@nextcloud/router'
2525

26-
export class DashboardApi {
26+
export class OverviewApi {
2727

2828
url(url) {
2929
return generateOcsUrl(`apps/deck/api/v1.0`) + url
3030
}
3131

3232
findAllWithDue(data) {
33-
return axios.get(this.url(`dashboard/due`), {
33+
return axios.get(this.url(`overview/due`), {
3434
headers: { 'OCS-APIRequest': 'true' },
3535
})
3636
.then(
@@ -42,7 +42,7 @@ export class DashboardApi {
4242
}
4343

4444
findMyAssignedCards(data) {
45-
return axios.get(this.url(`dashboard/assigned`), {
45+
return axios.get(this.url(`overview/assigned`), {
4646
headers: { 'OCS-APIRequest': 'true' },
4747
})
4848
.then(

src/store/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ import Vue from 'vue'
2626
import Vuex from 'vuex'
2727
import axios from '@nextcloud/axios'
2828
import { generateOcsUrl } from '@nextcloud/router'
29-
import { BoardApi } from './../services/BoardApi'
29+
import { BoardApi } from '../services/BoardApi'
3030
import stack from './stack'
3131
import card from './card'
3232
import comment from './comment'
3333
import trashbin from './trashbin'
3434
import attachment from './attachment'
35-
import dashboard from './dashboard'
35+
import overview from './overview'
3636
import debounce from 'lodash/debounce'
3737
Vue.use(Vuex)
3838

@@ -52,7 +52,7 @@ export default new Vuex.Store({
5252
comment,
5353
trashbin,
5454
attachment,
55-
dashboard,
55+
overview,
5656
},
5757
strict: debug,
5858
state: {

src/store/overview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
import Vue from 'vue'
2424
import Vuex from 'vuex'
25-
import { DashboardApi } from '../services/DashboardApi'
25+
import { OverviewApi } from '../services/OverviewApi'
2626
Vue.use(Vuex)
2727

28-
const apiClient = new DashboardApi()
28+
const apiClient = new OverviewApi()
2929
export default {
3030
state: {
3131
withDue: [],

0 commit comments

Comments
 (0)