Skip to content

Commit

Permalink
feat(intelligence-next): removes Brain related and content Intelligen…
Browse files Browse the repository at this point in the history
…ces pages
  • Loading branch information
cristiantela committed May 29, 2024
1 parent c3ff027 commit 06847ff
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,75 +156,6 @@ const router = new Router({
},
],
},
{
path: '/brain/preview',
name: 'brain-preview-full-page',
component: RouterPreviewFullPage,
beforeEnter: async (to, from, next) => {
store.dispatch('externalLogin', { token: `Bearer ${to.query?.token}` });
store.dispatch('projectSelected', { project: to.query?.project_uuid });

store.state.Auth.connectProjectUuid = to.query?.project_uuid;

sessionStorage.setItem(
'projectUuid',
store.state.Auth.connectProjectUuid,
);

next();
},
},
{
path: '/router',
name: 'router',
component: RepositoryContentBasesForm,
redirect: () => {
return { name: 'router-personalization' };
},
async beforeEnter(_to, _from, next) {
const { data } = await nexusaiAPI.router.read({
projectUuid: store.state.Auth.connectProjectUuid,
});

store.state.router.contentBaseUuid = data.uuid;
store.state.router.intelligenceUuid = data.intelligence;

next();
},
children: [
{
path: 'personalization',
name: 'router-personalization',
},
{
path: 'content',
name: 'router-content',
},
{
path: 'actions',
name: 'router-actions',
},
{
path: 'tunings',
name: 'router-tunings',
},
],
},
{
path: '/intelligences/:intelligenceUuid',
name: 'intelligence-home',
component: RepositoryContentBases,
},
{
path: '/intelligences/:intelligenceUuid/edit',
name: 'intelligence-edit',
component: RepositoryContentAdjustment,
},
{
path: '/intelligences/:intelligenceUuid/bases/:contentBaseUuid/edit',
name: 'intelligence-content-base-edit',
component: RepositoryContentBasesForm,
},
{
path: '/dashboard',
name: 'dashboard',
Expand Down

0 comments on commit 06847ff

Please sign in to comment.