mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-02-04 03:08:10 +01:00
commit
3c8c54dc96
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hyperspace",
|
"name": "hyperspace",
|
||||||
"version": "1.0.0",
|
"version": "1.0.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hyperspace",
|
"name": "hyperspace",
|
||||||
"productName": "Hyperspace",
|
"productName": "Hyperspace Desktop",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "A beautiful, fluffy client for the fediverse",
|
"description": "A beautiful, fluffy client for the fediverse",
|
||||||
"author": "Marquis Kurt <hyperspacedev@marquiskurt.net>",
|
"author": "Marquis Kurt <hyperspacedev@marquiskurt.net>",
|
||||||
"repository": "https://github.com/hyperspacedev/hyperspace.git",
|
"repository": "https://github.com/hyperspacedev/hyperspace.git",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"location": "https://hyperspaceapp.herokuapp.com",
|
"location": "https://hyperspaceapp.herokuapp.com",
|
||||||
"branding": {
|
"branding": {
|
||||||
"name": "Hyperspace",
|
"name": "Hyperspace",
|
||||||
@ -24,4 +24,4 @@
|
|||||||
"url": "https://thufie.lain.haus/NPL.html"
|
"url": "https://thufie.lain.haus/NPL.html"
|
||||||
},
|
},
|
||||||
"repository": "https://github.com/hyperspacedev/hyperspace"
|
"repository": "https://github.com/hyperspacedev/hyperspace"
|
||||||
}
|
}
|
||||||
|
@ -368,7 +368,7 @@ function createMenubar() {
|
|||||||
role: 'help',
|
role: 'help',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Hyperspace Docs',
|
label: 'Hyperspace Desktop Docs',
|
||||||
click () { require('electron').shell.openExternal('https://hyperspace.marquiskurt.net/docs/') }
|
click () { require('electron').shell.openExternal('https://hyperspace.marquiskurt.net/docs/') }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -389,7 +389,7 @@ function createMenubar() {
|
|||||||
label: app.getName(),
|
label: app.getName(),
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'About Hyperspace',
|
label: 'About Hyperspace Desktop',
|
||||||
click() {
|
click() {
|
||||||
safelyGoTo("hyperspace://hyperspace/app/#/about")
|
safelyGoTo("hyperspace://hyperspace/app/#/about")
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ export class AppLayout extends Component<any, IAppLayoutState> {
|
|||||||
{this.state.brandName
|
{this.state.brandName
|
||||||
? this.state.brandName
|
? this.state.brandName
|
||||||
: "Hyperspace"}{" "}
|
: "Hyperspace"}{" "}
|
||||||
{this.state.developerMode ? "(Beta)" : null}
|
Desktop {this.state.developerMode ? "(Beta)" : null}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -290,7 +290,7 @@ export class AppLayout extends Component<any, IAppLayoutState> {
|
|||||||
return (
|
return (
|
||||||
<div className={classes.titleBarRoot}>
|
<div className={classes.titleBarRoot}>
|
||||||
<Typography className={classes.titleBarText}>
|
<Typography className={classes.titleBarText}>
|
||||||
Careful: you're running in developer mode.
|
🛠 Careful: you're running in developer mode.
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -646,7 +646,7 @@ export class Post extends React.Component<any, IPostState> {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
action={
|
action={
|
||||||
<Tooltip title="More">
|
<Tooltip title="More" placement="left">
|
||||||
<IconButton
|
<IconButton
|
||||||
key={`${post.id}_submenu`}
|
key={`${post.id}_submenu`}
|
||||||
id={`${post.id}_submenu`}
|
id={`${post.id}_submenu`}
|
||||||
|
@ -22,12 +22,6 @@ if (userLoggedIn()) {
|
|||||||
refreshUserAccountData();
|
refreshUserAccountData();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onstorage = (event: any) => {
|
|
||||||
if (event.key == "account") {
|
|
||||||
window.location.reload();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<HashRouter>
|
<HashRouter>
|
||||||
<SnackbarProvider
|
<SnackbarProvider
|
||||||
|
@ -23,11 +23,9 @@ import AssignmentIcon from "@material-ui/icons/Assignment";
|
|||||||
import AssignmentIndIcon from "@material-ui/icons/AssignmentInd";
|
import AssignmentIndIcon from "@material-ui/icons/AssignmentInd";
|
||||||
import NetworkCheckIcon from "@material-ui/icons/NetworkCheck";
|
import NetworkCheckIcon from "@material-ui/icons/NetworkCheck";
|
||||||
import UpdateIcon from "@material-ui/icons/Update";
|
import UpdateIcon from "@material-ui/icons/Update";
|
||||||
import InfoIcon from "@material-ui/icons/Info";
|
|
||||||
import NotesIcon from "@material-ui/icons/Notes";
|
import NotesIcon from "@material-ui/icons/Notes";
|
||||||
import CodeIcon from "@material-ui/icons/Code";
|
import CodeIcon from "@material-ui/icons/Code";
|
||||||
import TicketAccountIcon from "mdi-material-ui/TicketAccount";
|
import TicketAccountIcon from "mdi-material-ui/TicketAccount";
|
||||||
import MastodonIcon from "mdi-material-ui/Mastodon";
|
|
||||||
import EditIcon from "@material-ui/icons/Edit";
|
import EditIcon from "@material-ui/icons/Edit";
|
||||||
import VpnKeyIcon from "@material-ui/icons/VpnKey";
|
import VpnKeyIcon from "@material-ui/icons/VpnKey";
|
||||||
|
|
||||||
@ -107,9 +105,16 @@ class AboutPage extends Component<any, IAboutPageState> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shouldRenderInstanceContact(): boolean {
|
||||||
|
if (this.state.instance != null) {
|
||||||
|
return this.state.instance.version.match(/Pleroma/) == null;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { classes } = this.props;
|
const { classes } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes.pageLayoutConstraints}>
|
<div className={classes.pageLayoutConstraints}>
|
||||||
<Paper>
|
<Paper>
|
||||||
@ -139,7 +144,7 @@ class AboutPage extends Component<any, IAboutPageState> {
|
|||||||
<Typography variant="h4" component="p">
|
<Typography variant="h4" component="p">
|
||||||
{this.state.brandName
|
{this.state.brandName
|
||||||
? this.state.brandName
|
? this.state.brandName
|
||||||
: "Hyperspace"}
|
: "Hyperspace Desktop"}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography>
|
<Typography>
|
||||||
Version{" "}
|
Version{" "}
|
||||||
@ -297,7 +302,7 @@ class AboutPage extends Component<any, IAboutPageState> {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<List className={classes.pageListConstraints}>
|
<List className={classes.pageListConstraints}>
|
||||||
{localStorage["isPleroma"] == "false" && (
|
{this.shouldRenderInstanceContact() ? (
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemAvatar>
|
<ListItemAvatar>
|
||||||
<LinkableAvatar
|
<LinkableAvatar
|
||||||
@ -352,7 +357,7 @@ class AboutPage extends Component<any, IAboutPageState> {
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</ListItemSecondaryAction>
|
</ListItemSecondaryAction>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
)}
|
) : null}
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemAvatar>
|
<ListItemAvatar>
|
||||||
<Avatar>
|
<Avatar>
|
||||||
@ -470,8 +475,8 @@ class AboutPage extends Component<any, IAboutPageState> {
|
|||||||
developers. All rights reserved.
|
developers. All rights reserved.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="caption" paragraph>
|
<Typography variant="caption" paragraph>
|
||||||
{this.state ? this.state.brandName : "Hyperspace"} is
|
{this.state ? this.state.brandName : "Hyperspace"}{" "}
|
||||||
made possible by the{" "}
|
Desktop is made possible by the{" "}
|
||||||
<Link
|
<Link
|
||||||
href={"https://material-ui.com"}
|
href={"https://material-ui.com"}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
@ -25,12 +25,6 @@ export function refreshUserAccountData() {
|
|||||||
.catch((err: Error) => {
|
.catch((err: Error) => {
|
||||||
console.error(err.message);
|
console.error(err.message);
|
||||||
});
|
});
|
||||||
client.get("/instance").then((resp: any) => {
|
|
||||||
localStorage.setItem(
|
|
||||||
"isPleroma",
|
|
||||||
resp.data.version.match(/Pleroma/) ? "true" : "false"
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user