Commit 8e63fb44 authored by Julien BOUYER's avatar Julien BOUYER
Browse files

UNOTOPLYS-207 feat : création des routes et des vues back

parent c39fc823
import { Authority } from '@/shared/security/authority';
const FormCreationComponent = () => import('@/views/form/form-creation.vue');
const FormEditComponent = () => import('@/views/form/form-edit.vue');
const FormPreviewComponent = () => import('@/views/form/form-preview.vue');
const FormResultsComponent = () => import('@/views/form/form-results.vue');
const FormSettingsComponent = () => import('@/views/form/form-settings.vue');
const FormShareComponent = () => import('@/views/form/form-share.vue');
const FormListComponent = () => import('@/views/form/form-list.vue');
const FormVariablesComponent = () => import('@/views/form/form-variables.vue');
const FormViewComponent = () => import('@/views/form/form-view.vue');
export default [
{
path: '/admin/form/creation',
name: 'FormCreationComponent',
component: FormCreationComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/edit',
name: 'FormEditComponent',
component: FormEditComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/preview',
name: 'FormPreviewComponent',
component: FormPreviewComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/results',
name: 'FormResultsComponent',
component: FormResultsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/settings',
name: 'FormSettingsComponent',
component: FormSettingsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/share',
name: 'FormShareComponent',
component: FormShareComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/list',
name: 'FormListComponent',
component: FormListComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/variables',
name: 'FormVariablesComponent',
component: FormVariablesComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/form/:idForm/view',
name: 'FormViewComponent',
component: FormViewComponent,
meta: { authorities: [Authority.ADMIN] },
},
];
import { Authority } from '@/shared/security/authority';
const JhiConfigurationComponent = () => import('@/admin/configuration/configuration.vue');
const JhiDocsComponent = () => import('@/admin/docs/docs.vue');
const JhiHealthComponent = () => import('@/admin/health/health.vue');
const JhiLogsComponent = () => import('@/admin/logs/logs.vue');
const JhiAuditsComponent = () => import('@/admin/audits/audits.vue');
const JhiMetricsComponent = () => import('@/admin/metrics/metrics.vue');
export default [
{
path: '/admin/docs',
name: 'JhiDocsComponent',
component: JhiDocsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/audits',
name: 'JhiAuditsComponent',
component: JhiAuditsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/jhi-health',
name: 'JhiHealthComponent',
component: JhiHealthComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/logs',
name: 'JhiLogsComponent',
component: JhiLogsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/jhi-metrics',
name: 'JhiMetricsComponent',
component: JhiMetricsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/jhi-configuration',
name: 'JhiConfigurationComponent',
component: JhiConfigurationComponent,
meta: { authorities: [Authority.ADMIN] },
},
];
import { Authority } from '@/shared/security/authority';
const OrganisationViewComponent = () => import('@/views/organisation/organisation-view.vue');
export default [
{
path: '/admin/organisation/:idOrganisation/view',
name: 'OrganisationViewComponent',
component: OrganisationViewComponent,
meta: { authorities: [Authority.ADMIN] },
},
];
import { Authority } from '@/shared/security/authority';
const UserEditComponent = () => import('@/views/user/user-edit.vue');
const UserListComponent = () => import('@/views/user/user-list.vue');
export default [
{
path: '/admin/user/:idUser/edit',
name: 'UserEditComponent',
component: UserEditComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/user/list',
name: 'UserListComponent',
component: UserListComponent,
meta: { authorities: [Authority.ADMIN] },
},
];
import { Authority } from '@/shared/security/authority';
const VariableEditComponent = () => import('@/views/variable/variable-edit.vue');
export default [
{
path: '/admin/variable/:idVariable/edit',
name: 'VariableEditComponent',
component: VariableEditComponent,
meta: { authorities: [Authority.ADMIN] },
},
];
import { Authority } from '@/shared/security/authority';
const WorkspaceCreationComponent = () => import('@/views/workspace/workspace-creation.vue');
const WorkspaceSettingsComponent = () => import('@/views/workspace/workspace-settings.vue');
const WorkspaceListComponent = () => import('@/views/workspace/workspace-list.vue');
const WorkspaceViewComponent = () => import('@/views/workspace/workspace-view.vue');
export default [
{
path: '/admin/workspace/creation',
name: 'WorkspaceCreationComponent',
component: WorkspaceCreationComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/workspace/:idWorkspace/settings',
name: 'WorkspaceSettingsComponent',
component: WorkspaceSettingsComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/workspace/list',
name: 'WorkspaceListComponent',
component: WorkspaceListComponent,
meta: { authorities: [Authority.ADMIN] },
},
{
path: '/admin/workspace/:idWorkspace/view',
name: 'WorkspaceViewComponent',
component: WorkspaceViewComponent,
meta: { authorities: [Authority.ADMIN] },
},
];
import {Authority} from '@/shared/security/authority';
import { Authority } from '@/shared/security/authority';
import adminJhi from '@/router/admin-jhi'; // TODO à supprimer après dev back
import adminForm from '@/router/admin-form';
import adminOrganisation from '@/router/admin-organisation';
import adminUser from '@/router/admin-user';
import adminVariable from '@/router/admin-variable';
import adminWorkspace from '@/router/admin-workspace';
import account from '@/router/account';
import entities from '@/router/entities';
import userManagement from '@/router/user-management';
......@@ -7,13 +13,6 @@ import { ROUTES } from '@/router/routes-constants';
const Admin = () => import('@/admin/admin.vue');
const AdminHomeComponent = () => import('@/admin/home/admin-home.vue');
const JhiConfigurationComponent = () => import('@/admin/configuration/configuration.vue');
const JhiDocsComponent = () => import('@/admin/docs/docs.vue');
const JhiHealthComponent = () => import('@/admin/health/health.vue');
const JhiLogsComponent = () => import('@/admin/logs/logs.vue');
const JhiAuditsComponent = () => import('@/admin/audits/audits.vue');
const JhiMetricsComponent = () => import('@/admin/metrics/metrics.vue');
export default [
{
path: ROUTES.admin.path,
......@@ -23,44 +22,14 @@ export default [
path: '',
name: 'AdminHome',
component: AdminHomeComponent,
meta: {authorities: [Authority.ADMIN]},
},
{
path: '/admin/docs',
name: 'JhiDocsComponent',
component: JhiDocsComponent,
meta: {authorities: [Authority.ADMIN]},
},
{
path: '/admin/audits',
name: 'JhiAuditsComponent',
component: JhiAuditsComponent,
meta: {authorities: [Authority.ADMIN]},
},
{
path: '/admin/jhi-health',
name: 'JhiHealthComponent',
component: JhiHealthComponent,
meta: {authorities: [Authority.ADMIN]},
},
{
path: '/admin/logs',
name: 'JhiLogsComponent',
component: JhiLogsComponent,
meta: {authorities: [Authority.ADMIN]},
},
{
path: '/admin/jhi-metrics',
name: 'JhiMetricsComponent',
component: JhiMetricsComponent,
meta: {authorities: [Authority.ADMIN]},
},
{
path: '/admin/jhi-configuration',
name: 'JhiConfigurationComponent',
component: JhiConfigurationComponent,
meta: {authorities: [Authority.ADMIN]},
meta: { authorities: [Authority.ADMIN] },
},
...adminForm,
...adminOrganisation,
...adminUser,
...adminVariable,
...adminWorkspace,
...adminJhi, // TODO à supprimer après dev back
...account,
...entities,
...userManagement,
......
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormCreation extends Vue {
}
<template>
</template>
<script lang="ts" src="./form-creation.component.ts"/>
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormEdit extends Vue {
}
<template>
</template>
<script lang="ts" src="./form-edit.component.ts"/>
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormList extends Vue {
}
<template>
</template>
<script lang="ts" src="./form-list.component.ts"/>
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormPreview extends Vue {
}
<template>
</template>
<script lang="ts" src="./form-preview.component.ts"/>
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormResults extends Vue {
}
<template>
</template>
<script lang="ts" src="./form-results.component.ts"/>
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormSettings extends Vue {
}
<template>
</template>
<script lang="ts" src="./form-settings.component.ts"/>
import Vue from 'vue';
import Component from 'vue-class-component';
@Component
export default class FormShare extends Vue {
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment