mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 09:26:17 -05:00
Reformatting pages in a consistent way.
This commit is contained in:
parent
73af881f74
commit
51b7c1cc75
10 changed files with 57 additions and 51 deletions
|
|
@ -1,20 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" style="height: 100% ">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="theme-color" content="#000000"/>
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<!--<link rel="apple-touch-icon" href="logo192.png" />-->
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/>
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
|
|
@ -25,19 +25,19 @@
|
|||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>WROLPi - Bring your personal internet, off-grid</title>
|
||||
</head>
|
||||
<body style="margin: 0px">
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
</head>
|
||||
<body style="margin: 0px">
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ function Welcome() {
|
|||
}
|
||||
|
||||
return (
|
||||
<Container style={{marginTop: '2em'}}>
|
||||
<Container fluid>
|
||||
<SearchInput initValue={searchStr} onSubmit={setSearchStr} size='big' placeholder='Search Everywhere...'/>
|
||||
{body}
|
||||
</Container>
|
||||
|
|
@ -84,7 +84,7 @@ function Welcome() {
|
|||
|
||||
function PageNotFound() {
|
||||
return (
|
||||
<Container>
|
||||
<Container fluid>
|
||||
<h1 className="display-4">Page Not Found!</h1>
|
||||
<p>The page you requested cannot be found</p>
|
||||
</Container>
|
||||
|
|
@ -97,17 +97,19 @@ export default function App() {
|
|||
<header>
|
||||
<NavBar/>
|
||||
</header>
|
||||
<Switch>
|
||||
<Route path='/videos/video/:video_id' exact component={VideoWrapper}/>
|
||||
<Route path='/videos/channel/:channel_link/video/:video_id' exact component={VideoWrapper}/>
|
||||
<Route path="/" exact={true} component={Welcome}/>
|
||||
<Route path="/videos" component={VideosRoute}/>
|
||||
<Route path="/admin" component={Admin}/>
|
||||
<Route path="/apps" component={AppsRoute}/>
|
||||
<Route path="/inventory" component={InventoryRoute}/>
|
||||
<Route path='/archive' component={ArchiveRoute}/>
|
||||
<Route component={PageNotFound}/>
|
||||
</Switch>
|
||||
<Container fluid style={{marginTop: '1em', padding: '1em'}}>
|
||||
<Switch>
|
||||
<Route path='/videos/video/:video_id' exact component={VideoWrapper}/>
|
||||
<Route path='/videos/channel/:channel_link/video/:video_id' exact component={VideoWrapper}/>
|
||||
<Route path="/" exact={true} component={Welcome}/>
|
||||
<Route path="/videos" component={VideosRoute}/>
|
||||
<Route path="/admin" component={Admin}/>
|
||||
<Route path="/apps" component={AppsRoute}/>
|
||||
<Route path="/inventory" component={InventoryRoute}/>
|
||||
<Route path='/archive' component={ArchiveRoute}/>
|
||||
<Route component={PageNotFound}/>
|
||||
</Switch>
|
||||
</Container>
|
||||
<SemanticToastContainer position="top-right"/>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class Settings extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Container fluid>
|
||||
<p>
|
||||
The global settings for your server.
|
||||
</p>
|
||||
|
|
@ -144,7 +144,7 @@ class WROLMode extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Container fluid>
|
||||
|
||||
<Header as="h1">WROL Mode</Header>
|
||||
<h4>
|
||||
|
|
@ -382,7 +382,7 @@ class Admin extends React.Component {
|
|||
];
|
||||
|
||||
return (
|
||||
<Container style={{marginTop: '2em'}}>
|
||||
<Container fluid>
|
||||
<Tab panes={panes}/>
|
||||
</Container>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -147,10 +147,10 @@ export class AppsRoute extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<>
|
||||
<Container style={{marginTop: '2em', marginBottom: '2em'}}>
|
||||
<Container fluid>
|
||||
<Route path='/apps/otp' exact component={OTP}/>
|
||||
</Container>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -335,8 +335,12 @@ export class ArchiveRoute extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<Container style={{marginTop: '2em', marginBottom: '2em'}}>
|
||||
<Tab panes={this.archivePanes} activeIndex={this.state.activeIndex} renderActiveOnly={true}/>
|
||||
<Container fluid>
|
||||
<Tab
|
||||
panes={this.archivePanes}
|
||||
activeIndex={this.state.activeIndex}
|
||||
renderActiveOnly={true}
|
||||
/>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ class ChannelPage extends APIForm {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<Container>
|
||||
<Container fluid>
|
||||
<Header as="h1">{this.props.header}</Header>
|
||||
<Form
|
||||
id="editChannel"
|
||||
|
|
@ -393,7 +393,7 @@ class ChannelPage extends APIForm {
|
|||
</Accordion.Content>
|
||||
</Accordion>
|
||||
|
||||
<Container style={{marginTop: '2em'}}>
|
||||
<Container>
|
||||
<Message error
|
||||
header={this.state.message_header}
|
||||
content={this.state.message_content}
|
||||
|
|
|
|||
|
|
@ -1106,7 +1106,7 @@ export class InventoryRoute extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<>
|
||||
<Container fluid style={{marginTop: '2em', marginBottom: '2em'}}>
|
||||
<Container fluid>
|
||||
<Route path='/inventory' exact component={InventoryTab}/>
|
||||
</Container>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ function VideoPage(props) {
|
|||
let tabPanes = [descriptionPane, statisticsPane];
|
||||
|
||||
return (
|
||||
<Container textAlign='left' style={{marginTop: '2em'}}>
|
||||
<Container textAlign='left'>
|
||||
<Button
|
||||
style={{marginTop: '1em', marginBottom: '1em'}}
|
||||
onClick={() => props.history.goBack()}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class ManageVideos extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<Container>
|
||||
<Container fluid>
|
||||
<Header as="h1">Manage Videos</Header>
|
||||
|
||||
<p>
|
||||
|
|
@ -423,7 +423,7 @@ class Videos extends React.Component {
|
|||
);
|
||||
|
||||
return (
|
||||
<Container textAlign='center'>
|
||||
<Container textAlign='center' fluid>
|
||||
<Grid columns={4} stackable>
|
||||
<Grid.Column textAlign='left' width={6}>
|
||||
<h1>
|
||||
|
|
@ -480,7 +480,7 @@ class Videos extends React.Component {
|
|||
/>
|
||||
</Grid.Column>
|
||||
</Grid>
|
||||
<Container textAlign='center'>
|
||||
<Container textAlign='center' fluid>
|
||||
{body}
|
||||
</Container>
|
||||
{pagination}
|
||||
|
|
@ -496,7 +496,7 @@ class ManageTabs extends React.Component {
|
|||
{menuItem: 'Statistics', render: () => <Tab.Pane><Statistics/></Tab.Pane>},
|
||||
]
|
||||
return (
|
||||
<Container>
|
||||
<Container fluid>
|
||||
<Tab panes={panes}/>
|
||||
</Container>
|
||||
)
|
||||
|
|
@ -508,7 +508,7 @@ export class VideosRoute extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<>
|
||||
<Container fluid={true} style={{margin: '2em', padding: '0.5em'}}>
|
||||
<Container fluid>
|
||||
<Route path='/videos' exact
|
||||
component={(i) =>
|
||||
<Videos
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from sqlalchemy.orm.exc import NoResultFound
|
|||
from wrolpi.common import sanitize_link, run_after, get_relative_to_media_directory, make_media_directory, logger
|
||||
from wrolpi.dates import today
|
||||
from wrolpi.db import get_db_session, get_db_curs
|
||||
from wrolpi.downloader import download_manager, Download
|
||||
from wrolpi.downloader import download_manager
|
||||
from wrolpi.errors import UnknownChannel, UnknownDirectory, APIError, ValidationError, InvalidDownload
|
||||
from ..common import check_for_channel_conflicts
|
||||
from ..lib import save_channels_config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue