@oamdev/backstage-plugin-velaux
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

velaux

Welcome to the velaux plugin!

This plugin adds a sidebar page to allow you to quickly access VelaUX.

Edit packages/app/src/components/Root/Root.tsx to add the sidebar

// packages/app/src/components/Root/Root.tsx
import { VelaLogo } from 'backstage-plugin-velaux';

export const Root = ({ children }: PropsWithChildren<{}>) => (
  <SidebarPage>
        {/* ... */}
        <SidebarDivider />
        <SidebarScrollWrapper>
          {/* BEGIN */}
          <SidebarItem icon={VelaLogo} to="velaux" text="VelaUX" />
          {/* END */}
        </SidebarScrollWrapper>
      {/* ... */}
  </SidebarPage>
);

Edit packages/app/src/App.tsx to add routers

// packages/app/src/App.tsx
import { VelauxPage } from 'backstage-plugin-velaux';

const routes = (
  <FlatRoutes>
    {/* ... */}
    <Route path="/velaux" element={<VelauxPage />} />
    {/* ... */}
  </FlatRoutes>
);

Lastly, you need to make sure you can access the VelaUX webpage. For example, by forwarding the VelaUX addon during development:

vela port-forward -n vela-system addon-velaux 9082:80

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.00

Package Sidebar

Install

npm i @oamdev/backstage-plugin-velaux

Homepage

kubevela.io

Weekly Downloads

0

Version

0.1.0

License

Apache-2.0

Unpacked Size

12.4 kB

Total Files

7

Last publish

Collaborators

  • charlie0129
  • zengqingguo
  • fogdong
  • oam-kubevela