Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #124 [HD-8 #close]
Browse files Browse the repository at this point in the history
[HD-8] v1.0.3
  • Loading branch information
alicerunsonfedora authored Nov 16, 2019
2 parents ae09fc5 + a2a9edc commit 3c8c54d
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 30 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hyperspace",
"productName": "Hyperspace",
"version": "1.0.2",
"productName": "Hyperspace Desktop",
"version": "1.0.3",
"description": "A beautiful, fluffy client for the fediverse",
"author": "Marquis Kurt <hyperspacedev@marquiskurt.net>",
"repository": "https://github.com/hyperspacedev/hyperspace.git",
Expand Down
4 changes: 2 additions & 2 deletions public/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.2",
"version": "1.0.3",
"location": "https://hyperspaceapp.herokuapp.com",
"branding": {
"name": "Hyperspace",
Expand All @@ -24,4 +24,4 @@
"url": "https://thufie.lain.haus/NPL.html"
},
"repository": "https://github.com/hyperspacedev/hyperspace"
}
}
4 changes: 2 additions & 2 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function createMenubar() {
role: 'help',
submenu: [
{
label: 'Hyperspace Docs',
label: 'Hyperspace Desktop Docs',
click () { require('electron').shell.openExternal('https://hyperspace.marquiskurt.net/docs/') }
},
{
Expand All @@ -389,7 +389,7 @@ function createMenubar() {
label: app.getName(),
submenu: [
{
label: 'About Hyperspace',
label: 'About Hyperspace Desktop',
click() {
safelyGoTo("hyperspace://hyperspace/app/#/about")
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ export class AppLayout extends Component<any, IAppLayoutState> {
{this.state.brandName
? this.state.brandName
: "Hyperspace"}{" "}
{this.state.developerMode ? "(Beta)" : null}
Desktop {this.state.developerMode ? "(Beta)" : null}
</Typography>
</div>
);
} else if (process.env.NODE_ENV === "development") {
return (
<div className={classes.titleBarRoot}>
<Typography className={classes.titleBarText}>
Careful: you're running in developer mode.
🛠 Careful: you're running in developer mode.
</Typography>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Post/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export class Post extends React.Component<any, IPostState> {
/>
}
action={
<Tooltip title="More">
<Tooltip title="More" placement="left">
<IconButton
key={`${post.id}_submenu`}
id={`${post.id}_submenu`}
Expand Down
6 changes: 0 additions & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ if (userLoggedIn()) {
refreshUserAccountData();
}

window.onstorage = (event: any) => {
if (event.key == "account") {
window.location.reload();
}
};

ReactDOM.render(
<HashRouter>
<SnackbarProvider
Expand Down
21 changes: 13 additions & 8 deletions src/pages/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ import AssignmentIcon from "@material-ui/icons/Assignment";
import AssignmentIndIcon from "@material-ui/icons/AssignmentInd";
import NetworkCheckIcon from "@material-ui/icons/NetworkCheck";
import UpdateIcon from "@material-ui/icons/Update";
import InfoIcon from "@material-ui/icons/Info";
import NotesIcon from "@material-ui/icons/Notes";
import CodeIcon from "@material-ui/icons/Code";
import TicketAccountIcon from "mdi-material-ui/TicketAccount";
import MastodonIcon from "mdi-material-ui/Mastodon";
import EditIcon from "@material-ui/icons/Edit";
import VpnKeyIcon from "@material-ui/icons/VpnKey";

Expand Down Expand Up @@ -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() {
const { classes } = this.props;

return (
<div className={classes.pageLayoutConstraints}>
<Paper>
Expand Down Expand Up @@ -139,7 +144,7 @@ class AboutPage extends Component<any, IAboutPageState> {
<Typography variant="h4" component="p">
{this.state.brandName
? this.state.brandName
: "Hyperspace"}
: "Hyperspace Desktop"}
</Typography>
<Typography>
Version{" "}
Expand Down Expand Up @@ -297,7 +302,7 @@ class AboutPage extends Component<any, IAboutPageState> {
</div>
</div>
<List className={classes.pageListConstraints}>
{localStorage["isPleroma"] == "false" && (
{this.shouldRenderInstanceContact() ? (
<ListItem>
<ListItemAvatar>
<LinkableAvatar
Expand Down Expand Up @@ -352,7 +357,7 @@ class AboutPage extends Component<any, IAboutPageState> {
</Tooltip>
</ListItemSecondaryAction>
</ListItem>
)}
) : null}
<ListItem>
<ListItemAvatar>
<Avatar>
Expand Down Expand Up @@ -470,8 +475,8 @@ class AboutPage extends Component<any, IAboutPageState> {
developers. All rights reserved.
</Typography>
<Typography variant="caption" paragraph>
{this.state ? this.state.brandName : "Hyperspace"} is
made possible by the{" "}
{this.state ? this.state.brandName : "Hyperspace"}{" "}
Desktop is made possible by the{" "}
<Link
href={"https://material-ui.com"}
target="_blank"
Expand Down
6 changes: 0 additions & 6 deletions src/utilities/accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ export function refreshUserAccountData() {
.catch((err: Error) => {
console.error(err.message);
});
client.get("/instance").then((resp: any) => {
localStorage.setItem(
"isPleroma",
resp.data.version.match(/Pleroma/) ? "true" : "false"
);
});
}

/**
Expand Down

0 comments on commit 3c8c54d

Please sign in to comment.