Switch everything to Dexie.js
This commit is contained in:
parent
39f4613719
commit
349872bdb3
16 changed files with 243 additions and 316 deletions
|
@ -7,10 +7,11 @@ import Typography from "@mui/material/Typography";
|
|||
import IconSubscribeSettings from "./IconSubscribeSettings";
|
||||
import * as React from "react";
|
||||
import Box from "@mui/material/Box";
|
||||
import {topicShortUrl} from "../app/utils";
|
||||
|
||||
const ActionBar = (props) => {
|
||||
const title = (props.selectedSubscription !== null)
|
||||
? props.selectedSubscription.shortUrl()
|
||||
const title = (props.selectedSubscription)
|
||||
? topicShortUrl(props.selectedSubscription.baseUrl, props.selectedSubscription.topic)
|
||||
: "ntfy";
|
||||
return (
|
||||
<AppBar position="fixed" sx={{
|
||||
|
@ -37,7 +38,6 @@ const ActionBar = (props) => {
|
|||
</Typography>
|
||||
{props.selectedSubscription !== null && <IconSubscribeSettings
|
||||
subscription={props.selectedSubscription}
|
||||
onClearAll={props.onClearAll}
|
||||
onUnsubscribe={props.onUnsubscribe}
|
||||
/>}
|
||||
</Toolbar>
|
||||
|
@ -45,17 +45,4 @@ const ActionBar = (props) => {
|
|||
);
|
||||
};
|
||||
|
||||
/*
|
||||
To add a top left corner logo box:
|
||||
<Typography variant="h5" noWrap component="div" sx={{
|
||||
display: { xs: 'none', sm: 'block' },
|
||||
width: { sm: `${Navigation.width}px` }
|
||||
}}>
|
||||
ntfy
|
||||
</Typography>
|
||||
|
||||
To make the size of the top bar dynamic based on the drawer:
|
||||
width: { sm: `calc(100% - ${Navigation.width}px)` }
|
||||
*/
|
||||
|
||||
export default ActionBar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue