Beispiel #1
0
            <Icon icon='menu-backup-new' /> {_('backupNewPage')}
          </NavLink>
          <NavLink to='/backup/restore'>
            <Icon icon='menu-backup-restore' /> {_('backupRestorePage')}
          </NavLink>
          <NavLink to='/backup/file-restore'>
            <Icon icon='menu-backup-file-restore' />{' '}
            {_('backupFileRestorePage')}
          </NavLink>
        </NavTabs>
      </Col>
    </Row>
  </Container>
)

const Backup = routes('overview', {
  ':id/edit': Edit,
  new: DEVELOPMENT ? New : DeprecatedMsg,
  overview: Overview,
  restore: MovingRestoreMessage,
  'file-restore': MovingFileRestoreMessage,
})(
  adminOnly(({ children }) => (
    <Page header={HEADER} title='backupPage' formatTitle>
      {children}
    </Page>
  ))
)

export default Backup
Beispiel #2
0
          </NavLink>
          <NavLink to='/settings/config'>
            <Icon icon='menu-settings-config' /> {_('settingsConfigPage')}
          </NavLink>
        </NavTabs>
      </Col>
    </Row>
  </Container>
)

const Settings = routes('servers', {
  acls: Acls,
  'cloud-configs': CloudConfigs,
  config: Config,
  groups: Groups,
  ips: Ips,
  logs: Logs,
  plugins: Plugins,
  remotes: Remotes,
  servers: Servers,
  users: Users,
})(
  adminOnly(({ children }) => (
    <Page header={HEADER} title='settingsPage' formatTitle>
      {children}
    </Page>
  ))
)

export default Settings