Rename to overview

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-08-20 11:39:30 +02:00
parent 341eb47565
commit b199442b16
7 changed files with 18 additions and 22 deletions

View File

@@ -136,7 +136,7 @@ return [
['name' => 'comments_api#delete', 'url' => '/api/v1.0/cards/{cardId}/comments/{commentId}', 'verb' => 'DELETE'], ['name' => 'comments_api#delete', 'url' => '/api/v1.0/cards/{cardId}/comments/{commentId}', 'verb' => 'DELETE'],
// dashboard // dashboard
['name' => 'dashboard_api#findAllWithDue', 'url' => '/api/v1.0/dashboard/due', 'verb' => 'GET'], ['name' => 'overview_api#findAllWithDue', 'url' => '/api/v1.0/overview/due', 'verb' => 'GET'],
['name' => 'dashboard_api#findAssignedCards', 'url' => '/api/v1.0/dashboard/assigned', 'verb' => 'GET'], ['name' => 'overview_api#findAssignedCards', 'url' => '/api/v1.0/overview/assigned', 'verb' => 'GET'],
] ]
]; ];

View File

@@ -23,14 +23,10 @@
<template> <template>
<AppNavigationVue :class="{'icon-loading': loading}"> <AppNavigationVue :class="{'icon-loading': loading}">
<template #list> <template #list>
<AppNavigationItem
:title="t('deck', 'Due cards')"
icon="icon-calendar-dark"
to="/dashboards/due" />
<AppNavigationItem <AppNavigationItem
:title="t('deck', 'My assigned cards')" :title="t('deck', 'My assigned cards')"
icon="icon-group" icon="icon-group"
to="/dashboards/assigned" /> to="/overview/assigned" />
<AppNavigationBoardCategory <AppNavigationBoardCategory
id="deck-navigation-all" id="deck-navigation-all"
to="/board" to="/board"

View File

@@ -94,7 +94,7 @@ const SUPPORTED_FILTERS = [
] ]
export default { export default {
name: 'Dashboards', name: 'Overview',
components: { components: {
Controls, Controls,
CardItem, CardItem,

View File

@@ -29,7 +29,7 @@ import Board from './components/board/Board'
import Sidebar from './components/Sidebar' import Sidebar from './components/Sidebar'
import BoardSidebar from './components/board/BoardSidebar' import BoardSidebar from './components/board/BoardSidebar'
import CardSidebar from './components/card/CardSidebar' import CardSidebar from './components/card/CardSidebar'
import Dashboards from './components/dashboards/Dashboards' import Overview from './components/overview/Overview'
Vue.use(Router) Vue.use(Router)
@@ -43,10 +43,10 @@ export default new Router({
component: Boards, component: Boards,
}, },
{ {
path: '/dashboards/:filter', path: '/overview/:filter',
name: 'dashboards', name: 'overview',
components: { components: {
default: Dashboards, default: Overview,
}, },
props: { props: {
default: (route) => { default: (route) => {

View File

@@ -23,14 +23,14 @@
import axios from '@nextcloud/axios' import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router' import { generateOcsUrl } from '@nextcloud/router'
export class DashboardApi { export class OverviewApi {
url(url) { url(url) {
return generateOcsUrl(`apps/deck/api/v1.0`) + url return generateOcsUrl(`apps/deck/api/v1.0`) + url
} }
findAllWithDue(data) { findAllWithDue(data) {
return axios.get(this.url(`dashboard/due`), { return axios.get(this.url(`overview/due`), {
headers: { 'OCS-APIRequest': 'true' }, headers: { 'OCS-APIRequest': 'true' },
}) })
.then( .then(
@@ -42,7 +42,7 @@ export class DashboardApi {
} }
findMyAssignedCards(data) { findMyAssignedCards(data) {
return axios.get(this.url(`dashboard/assigned`), { return axios.get(this.url(`overview/assigned`), {
headers: { 'OCS-APIRequest': 'true' }, headers: { 'OCS-APIRequest': 'true' },
}) })
.then( .then(

View File

@@ -26,13 +26,13 @@ import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import axios from '@nextcloud/axios' import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router' import { generateOcsUrl } from '@nextcloud/router'
import { BoardApi } from './../services/BoardApi' import { BoardApi } from '../services/BoardApi'
import stack from './stack' import stack from './stack'
import card from './card' import card from './card'
import comment from './comment' import comment from './comment'
import trashbin from './trashbin' import trashbin from './trashbin'
import attachment from './attachment' import attachment from './attachment'
import dashboard from './dashboard' import overview from './overview'
import debounce from 'lodash/debounce' import debounce from 'lodash/debounce'
Vue.use(Vuex) Vue.use(Vuex)
@@ -52,7 +52,7 @@ export default new Vuex.Store({
comment, comment,
trashbin, trashbin,
attachment, attachment,
dashboard, overview,
}, },
strict: debug, strict: debug,
state: { state: {

View File

@@ -22,10 +22,10 @@
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import { DashboardApi } from '../services/DashboardApi' import { OverviewApi } from '../services/OverviewApi'
Vue.use(Vuex) Vue.use(Vuex)
const apiClient = new DashboardApi() const apiClient = new OverviewApi()
export default { export default {
state: { state: {
withDue: [], withDue: [],