Skip to content

Commit

Permalink
style(frontend): add "view" suffix to view component names
Browse files Browse the repository at this point in the history
  • Loading branch information
pablolmedorado committed Nov 2, 2021
1 parent c9c8e57 commit 274b727
Show file tree
Hide file tree
Showing 29 changed files with 66 additions and 66 deletions.
4 changes: 2 additions & 2 deletions frontend/src/modules/analytics/routes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Analytics from "@/modules/analytics/views/Analytics";
import AnalyticsView from "@/modules/analytics/views/AnalyticsView";

export default [
{
path: "/analytics",
name: "analytics",
component: Analytics,
component: AnalyticsView,
meta: {
keepAlive: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ import UserStoryUserChart from "@/modules/scrum/components/charts/UserStoryUserC
import useLoading from "@/composables/useLoading";
export default {
name: "Analytics",
name: "AnalyticsView",
metaInfo: {
title: "Análisis",
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/modules/breakfasts/routes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Breakfasts from "@/modules/breakfasts/views/Breakfasts";
import BreakfastsView from "@/modules/breakfasts/views/BreakfastsView";

export default [
{
path: "/breakfasts",
name: "breakfasts",
component: Breakfasts,
component: BreakfastsView,
meta: {
keepAlive: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import useLoading from "@/composables/useLoading";
import { getServiceByBasename } from "@/services";
export default {
name: "Breakfasts",
name: "BreakfastsView",
metaInfo: {
title: "Desayunos",
},
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/modules/calendar/routes.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import Timeline from "@/modules/calendar/views/Timeline";
import Calendar from "@/modules/calendar/views/Calendar";
import Events from "@/modules/calendar/views/events/Events";
import EventDetail from "@/modules/calendar/views/events/EventDetail";
import TimelineView from "@/modules/calendar/views/TimelineView";
import CalendarView from "@/modules/calendar/views/CalendarView";
import EventListView from "@/modules/calendar/views/events/EventListView";
import EventDetailView from "@/modules/calendar/views/events/EventDetailView";

export default [
{
path: "/timeline",
name: "timeline",
component: Timeline,
component: TimelineView,
meta: {
keepAlive: true,
},
},
{
path: "/calendar",
name: "calendar",
component: Calendar,
component: CalendarView,
props: true,
meta: {
keepAlive: true,
Expand All @@ -24,15 +24,15 @@ export default [
{
path: "/calendar/events",
name: "events",
component: Events,
component: EventListView,
meta: {
keepAlive: true,
},
},
{
path: "/calendar/events/:id",
name: "event",
component: EventDetail,
component: EventDetailView,
props: true,
meta: {
keepAlive: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ import useLocalStorage from "@/composables/useLocalStorage";
import { getFontColourFromBackground, hex2rgba } from "@/utils/colours";
export default {
name: "Calendar",
name: "CalendarView",
metaInfo: {
title: "Calendario",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import useLoading from "@/composables/useLoading";
import { applyDarkVariant, getFontColourFromBackground } from "@/utils/colours";
export default {
name: "Timeline",
name: "TimelineView",
metaInfo: {
title: "Timeline",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import { handleError } from "@/utils/error-handlers";
import { truncate } from "@/filters";
export default {
name: "EventDetail",
name: "EventDetailView",
metaInfo: {
title: "Evento",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import useEventTypes from "@/modules/calendar/composables/useEventTypes";
import { getReadableDuration, isoDateToLocaleString, isoDateTimeToLocaleString } from "@/utils/dates";
export default {
name: "Events",
name: "EventListView",
metaInfo: {
title: "Eventos",
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/modules/green-working-days/routes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import GreenWorkingDays from "@/modules/green-working-days/views/GreenWorkingDays";
import GreenWorkingDayListView from "@/modules/green-working-days/views/GreenWorkingDayListView";

export default [
{
path: "/green-days",
name: "green-days",
component: GreenWorkingDays,
component: GreenWorkingDayListView,
meta: {
keepAlive: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ import { getServiceByBasename } from "@/services";
import { userHasPermission } from "@/utils/permissions";
export default {
name: "GreenWorkingDays",
name: "GreenWorkingDayListView",
metaInfo: {
title: "Jornadas especiales",
},
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/modules/holidays/routes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import UserHolidays from "@/modules/holidays/views/HolidaysUser";
import TeamHolidays from "@/modules/holidays/views/HolidaysTeam";
import HolidayListUserView from "@/modules/holidays/views/HolidayListUserView";
import HolidayListTeamView from "@/modules/holidays/views/HolidayListTeamView";

export default [
{
Expand All @@ -10,15 +10,15 @@ export default [
{
path: "/holidays/user",
name: "user-holidays",
component: UserHolidays,
component: HolidayListUserView,
meta: {
keepAlive: true,
},
},
{
path: "/holidays/team",
name: "team-holidays",
component: TeamHolidays,
component: HolidayListTeamView,
meta: {
keepAlive: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import { userHasPermission } from "@/utils/permissions";
const currentDate = DateTime.local();
export default {
name: "HolidaysTeam",
name: "HolidayListTeamView",
metaInfo: {
title: "Vacaciones equipo",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ import useLoading from "@/composables/useLoading";
const currentDate = DateTime.local();
export default {
name: "HolidaysUser",
name: "HolidayListUserView",
metaInfo: {
title: "Vacaciones usuario",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ import { getServiceByBasename } from "@/services";
import { isoDateTimeToLocaleString } from "@/utils/dates";
export default {
name: "Notifications",
name: "NotificationListView",
metaInfo: {
title: "Notificaciones",
},
Expand Down
46 changes: 23 additions & 23 deletions frontend/src/modules/scrum/routes.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import UserStory from "@/modules/scrum/models/user-story";

import Effort from "@/modules/scrum/views/Effort";
import Epics from "@/modules/scrum/views/Epics";
import SprintChart from "@/modules/scrum/views/sprints/SprintChart";
import SprintDeploymentReport from "@/modules/scrum/views/sprints/SprintDeploymentReport";
import SprintGantt from "@/modules/scrum/views/sprints/SprintGantt";
import SprintKanban from "@/modules/scrum/views/sprints/SprintKanban";
import Sprints from "@/modules/scrum/views/sprints/Sprints";
import UserStories from "@/modules/scrum/views/user-stories/UserStories";
import UserStoryDetail from "@/modules/scrum/views/user-stories/UserStoryDetail";
import EffortListView from "@/modules/scrum/views/EffortListView";
import EpicListView from "@/modules/scrum/views/EpicListView";
import SprintBurnChartView from "@/modules/scrum/views/sprints/SprintBurnChartView";
import SprintDeploymentReportView from "@/modules/scrum/views/sprints/SprintDeploymentReportView";
import SprintGanttView from "@/modules/scrum/views/sprints/SprintGanttView";
import SprintKanbanView from "@/modules/scrum/views/sprints/SprintKanbanView";
import SprintListView from "@/modules/scrum/views/sprints/SprintListView";
import UserStoryListView from "@/modules/scrum/views/user-stories/UserStoryListView";
import UserStoryDetailView from "@/modules/scrum/views/user-stories/UserStoryDetailView";

import { usersWithPermissionOnly } from "@/utils/router-guards";

Expand All @@ -21,15 +21,15 @@ export default [
{
path: "/scrum/sprints",
name: "sprints",
component: Sprints,
component: SprintListView,
meta: {
keepAlive: true,
},
},
{
path: "/scrum/sprints/:sprintId/kanban",
name: "sprint-kanban",
component: SprintKanban,
component: SprintKanbanView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -38,7 +38,7 @@ export default [
{
path: "/scrum/sprints/:sprintId/chart",
name: "sprint-chart",
component: SprintChart,
component: SprintBurnChartView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -47,7 +47,7 @@ export default [
{
path: "/scrum/sprints/:sprintId/gantt",
name: "sprint-gantt",
component: SprintGantt,
component: SprintGanttView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -56,7 +56,7 @@ export default [
{
path: "/scrum/sprints/:sprintId/deployment-report",
name: "sprint-deployment-report",
component: SprintDeploymentReport,
component: SprintDeploymentReportView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -65,7 +65,7 @@ export default [
{
path: "/scrum/sprints/:sprintId/user-stories",
name: "sprint-user-stories",
component: UserStories,
component: UserStoryListView,
props: true,
meta: {
keepAlive: true,
Expand All @@ -74,15 +74,15 @@ export default [
{
path: "/scrum/epics",
name: "epics",
component: Epics,
component: EpicListView,
meta: {
keepAlive: true,
},
},
{
path: "/scrum/epics/:epicId/user-stories",
name: "epic-user-stories",
component: UserStories,
component: UserStoryListView,
props: true,
meta: {
keepAlive: true,
Expand All @@ -91,15 +91,15 @@ export default [
{
path: "/scrum/user-stories",
name: "user-stories",
component: UserStories,
component: UserStoryListView,
meta: {
keepAlive: true,
},
},
{
path: "/scrum/user-stories/new",
name: "user-story-new",
component: UserStoryDetail,
component: UserStoryDetailView,
beforeEnter: usersWithPermissionOnly(UserStory.ADD_PERMISSION),
props: (route) => ({ sprintId: route.query.sprint, epicId: route.query.epic }),
meta: {
Expand All @@ -109,7 +109,7 @@ export default [
{
path: "/scrum/user-stories/:id",
name: "user-story",
component: UserStoryDetail,
component: UserStoryDetailView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -118,7 +118,7 @@ export default [
{
path: "/scrum/sprints/:sprintId/user-stories/:id",
name: "sprint-user-story",
component: UserStoryDetail,
component: UserStoryDetailView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -127,7 +127,7 @@ export default [
{
path: "/scrum/epics/:epicId/user-stories/:id",
name: "epic-user-story",
component: UserStoryDetail,
component: UserStoryDetailView,
props: true,
meta: {
keepAlive: false,
Expand All @@ -136,7 +136,7 @@ export default [
{
path: "/scrum/effort",
name: "effort",
component: Effort,
component: EffortListView,
meta: {
keepAlive: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import EffortReportDialog from "@/modules/scrum/components/dialogs/EffortReportD
import { userHasPermission } from "@/utils/permissions";
export default {
name: "Effort",
name: "EffortListView",
metaInfo: {
title: "Esfuerzo",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import EpicFilters from "@/modules/scrum/components/filters/EpicFilters";
import EpicForm from "@/modules/scrum/components/forms/EpicForm";
export default {
name: "Epics",
name: "EpicListView",
metaInfo: {
title: "Épicas",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import useLoading from "@/composables/useLoading";
import useScrumContext from "@/modules/scrum/composables/useScrumContext";
export default {
name: "SprintChart",
name: "SprintBurnChartView",
metaInfo: {
title: "Sprint - Gráfica",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ import useUserStoryTypes from "@/modules/scrum/composables/useUserStoryTypes";
import { defaultTableOptions } from "@/utils/constants";
export default {
name: "SprintDeploymentReport",
name: "SprintDeploymentReportView",
metaInfo: {
title: "Sprint - Informe de despliegue",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import useLoading from "@/composables/useLoading";
import useScrumContext from "@/modules/scrum/composables/useScrumContext";
export default {
name: "SprintGantt",
name: "SprintGanttView",
metaInfo: {
title: "Sprint - Gantt",
},
Expand Down
Loading

0 comments on commit 274b727

Please sign in to comment.