mirror of
https://github.com/kopia/kopia.git
synced 2026-03-31 04:25:50 -04:00
- better initial configuration flow - fixed few fields that were mistakenly marked as required
47 lines
1.8 KiB
JavaScript
47 lines
1.8 KiB
JavaScript
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
import React from 'react';
|
|
import Container from 'react-bootstrap/Container';
|
|
import Nav from 'react-bootstrap/Nav';
|
|
import Navbar from 'react-bootstrap/Navbar';
|
|
import { BrowserRouter as Router, NavLink, Route, Switch, Redirect } from 'react-router-dom';
|
|
import './App.css';
|
|
import { DirectoryObject } from "./DirectoryObject";
|
|
import logo from './kopia-flat.svg';
|
|
import { PoliciesTable } from "./PoliciesTable";
|
|
import { RepoStatus } from "./RepoStatus";
|
|
import { SnapshotsTable } from "./SnapshotsTable";
|
|
import { SourcesTable } from "./SourcesTable";
|
|
|
|
function App() {
|
|
return (
|
|
<Router>
|
|
<Navbar bg="light" expand="sm">
|
|
<Navbar.Brand href="/"><img src={logo} className="App-logo" alt="logo" /></Navbar.Brand>
|
|
<Navbar.Toggle aria-controls="basic-navbar-nav" />
|
|
<Navbar.Collapse id="basic-navbar-nav">
|
|
<Nav className="mr-auto">
|
|
<NavLink className="nav-link" activeClassName="active" to="/snapshots">Snapshots</NavLink>
|
|
<NavLink className="nav-link" activeClassName="active" to="/policies">Policies</NavLink>
|
|
<NavLink className="nav-link" activeClassName="active" to="/repo">Repository</NavLink>
|
|
</Nav>
|
|
</Navbar.Collapse>
|
|
</Navbar>
|
|
|
|
<Container fluid>
|
|
<Switch>
|
|
<Route path="/snapshots/single-source/" component={SnapshotsTable} />
|
|
<Route path="/snapshots/dir/:oid" component={DirectoryObject} />
|
|
<Route path="/snapshots" component={SourcesTable} />
|
|
<Route path="/policies" component={PoliciesTable} />
|
|
<Route path="/repo" component={RepoStatus} />
|
|
<Route exact path="/">
|
|
<Redirect to="/snapshots" />
|
|
</Route>
|
|
</Switch>
|
|
</Container>
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
export default App;
|