[openstack][skyline]Menu route problem.
Hello guys. I am working on Skyline and I followed https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1... https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1... I add layouts/menu.jsx ##### { path: '/konitor', name: t('Konitor'), key: /konitor', icon: <DatabaseOutlined />, children: [ { path: '/konitor/konitork', name: t('Konitork'), key: 'konitork', level: 1, } ], } I put my component in pages/konitor/containers/Konitork/index.jsx ####### import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; export class Konitork extends Component { render() { return ( <div>nhk oi</div> ); } } export default observer(Konitork); Here is my routes/index.js ##### import BaseLayout from '../../../layouts/Basic'; import Konitork from '../containers/Konitork'; import Instance from '../containers/Instance'; const PATH = '/konitor'; export default [ { path: PATH, component: BaseLayout, routes: [ { path: `${PATH}/konitork`, component: Konitork, exact: true }, ], }, ]; When click on Menu. Konitor>>Konitork. It return 404. although I have x.x.x.x:9999/konitor/konitork. Pls correct me. Thank you much. Nguyen Huu Khoi
Hello guys. I update, When I do similarly things with user-menu. It worked. I just have problem when Add item on Console menu. Nguyen Huu Khoi On Sun, Sep 17, 2023 at 2:16 PM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello guys.
I am working on Skyline and I followed
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
I add layouts/menu.jsx ##### { path: '/konitor', name: t('Konitor'), key: /konitor', icon: <DatabaseOutlined />, children: [ { path: '/konitor/konitork', name: t('Konitork'), key: 'konitork', level: 1, } ], }
I put my component in
pages/konitor/containers/Konitork/index.jsx
####### import React, { Component } from 'react'; import { inject, observer } from 'mobx-react';
export class Konitork extends Component { render() { return ( <div>nhk oi</div> ); } } export default observer(Konitork);
Here is my routes/index.js
#####
import BaseLayout from '../../../layouts/Basic'; import Konitork from '../containers/Konitork'; import Instance from '../containers/Instance'; const PATH = '/konitor'; export default [ { path: PATH, component: BaseLayout, routes: [ { path: `${PATH}/konitork`, component: Konitork, exact: true }, ], }, ];
When click on Menu. Konitor>>Konitork. It return 404. although I have x.x.x.x:9999/konitor/konitork.
Pls correct me. Thank you much.
Nguyen Huu Khoi
Hello. I resolve my problem by add some things related with new menu to https://github.com/openstack/skyline-console/blob/master/src/pages/basic/rou... I think we need update docs, Nguyen Huu Khoi On Tue, Sep 19, 2023 at 1:10 PM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello guys. I update, When I do similarly things with user-menu. It worked. I just have problem when Add item on Console menu. Nguyen Huu Khoi
On Sun, Sep 17, 2023 at 2:16 PM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello guys.
I am working on Skyline and I followed
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
I add layouts/menu.jsx ##### { path: '/konitor', name: t('Konitor'), key: /konitor', icon: <DatabaseOutlined />, children: [ { path: '/konitor/konitork', name: t('Konitork'), key: 'konitork', level: 1, } ], }
I put my component in
pages/konitor/containers/Konitork/index.jsx
####### import React, { Component } from 'react'; import { inject, observer } from 'mobx-react';
export class Konitork extends Component { render() { return ( <div>nhk oi</div> ); } } export default observer(Konitork);
Here is my routes/index.js
#####
import BaseLayout from '../../../layouts/Basic'; import Konitork from '../containers/Konitork'; import Instance from '../containers/Instance'; const PATH = '/konitor'; export default [ { path: PATH, component: BaseLayout, routes: [ { path: `${PATH}/konitork`, component: Konitork, exact: true }, ], }, ];
When click on Menu. Konitor>>Konitork. It return 404. although I have x.x.x.x:9999/konitor/konitork.
Pls correct me. Thank you much.
Nguyen Huu Khoi
You should open feature request or improvement bug report here and assigned it to yourself https://bugs.launchpad.net/skyline-apiserver Sometimes people lose thread in mailing lists. On Tue, Sep 19, 2023 at 4:53 AM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello. I resolve my problem by add some things related with new menu to
https://github.com/openstack/skyline-console/blob/master/src/pages/basic/rou...
I think we need update docs,
Nguyen Huu Khoi
On Tue, Sep 19, 2023 at 1:10 PM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello guys. I update, When I do similarly things with user-menu. It worked. I just have problem when Add item on Console menu. Nguyen Huu Khoi
On Sun, Sep 17, 2023 at 2:16 PM Nguyễn Hữu Khôi < nguyenhuukhoinw@gmail.com> wrote:
Hello guys.
I am working on Skyline and I followed
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
I add layouts/menu.jsx ##### { path: '/konitor', name: t('Konitor'), key: /konitor', icon: <DatabaseOutlined />, children: [ { path: '/konitor/konitork', name: t('Konitork'), key: 'konitork', level: 1, } ], }
I put my component in
pages/konitor/containers/Konitork/index.jsx
####### import React, { Component } from 'react'; import { inject, observer } from 'mobx-react';
export class Konitork extends Component { render() { return ( <div>nhk oi</div> ); } } export default observer(Konitork);
Here is my routes/index.js
#####
import BaseLayout from '../../../layouts/Basic'; import Konitork from '../containers/Konitork'; import Instance from '../containers/Instance'; const PATH = '/konitor'; export default [ { path: PATH, component: BaseLayout, routes: [ { path: `${PATH}/konitork`, component: Konitork, exact: true }, ], }, ];
When click on Menu. Konitor>>Konitork. It return 404. although I have x.x.x.x:9999/konitor/konitork.
Pls correct me. Thank you much.
Nguyen Huu Khoi
Hi, I will, I think it is just a question. So I wont put it on bugs.launchpad. Thank you. Nguyen Huu Khoi On Tue, Sep 19, 2023 at 6:01 PM Satish Patel <satish.txt@gmail.com> wrote:
You should open feature request or improvement bug report here and assigned it to yourself https://bugs.launchpad.net/skyline-apiserver
Sometimes people lose thread in mailing lists.
On Tue, Sep 19, 2023 at 4:53 AM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> wrote:
Hello. I resolve my problem by add some things related with new menu to
https://github.com/openstack/skyline-console/blob/master/src/pages/basic/rou...
I think we need update docs,
Nguyen Huu Khoi
On Tue, Sep 19, 2023 at 1:10 PM Nguyễn Hữu Khôi < nguyenhuukhoinw@gmail.com> wrote:
Hello guys. I update, When I do similarly things with user-menu. It worked. I just have problem when Add item on Console menu. Nguyen Huu Khoi
On Sun, Sep 17, 2023 at 2:16 PM Nguyễn Hữu Khôi < nguyenhuukhoinw@gmail.com> wrote:
Hello guys.
I am working on Skyline and I followed
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
https://github.com/openstack/skyline-console/blob/master/docs/en/develop/3-1...
I add layouts/menu.jsx ##### { path: '/konitor', name: t('Konitor'), key: /konitor', icon: <DatabaseOutlined />, children: [ { path: '/konitor/konitork', name: t('Konitork'), key: 'konitork', level: 1, } ], }
I put my component in
pages/konitor/containers/Konitork/index.jsx
####### import React, { Component } from 'react'; import { inject, observer } from 'mobx-react';
export class Konitork extends Component { render() { return ( <div>nhk oi</div> ); } } export default observer(Konitork);
Here is my routes/index.js
#####
import BaseLayout from '../../../layouts/Basic'; import Konitork from '../containers/Konitork'; import Instance from '../containers/Instance'; const PATH = '/konitor'; export default [ { path: PATH, component: BaseLayout, routes: [ { path: `${PATH}/konitork`, component: Konitork, exact: true }, ], }, ];
When click on Menu. Konitor>>Konitork. It return 404. although I have x.x.x.x:9999/konitor/konitork.
Pls correct me. Thank you much.
Nguyen Huu Khoi
participants (2)
-
Nguyễn Hữu Khôi
-
Satish Patel