Skip to content

Commit 1bf34cc

Browse files
committed
Fix electron, v0.0.96
1 parent e69c87f commit 1bf34cc

File tree

13 files changed

+70
-115
lines changed

13 files changed

+70
-115
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
mac_certs: ${{ secrets.mac_certs }}
115115
mac_certs_password: ${{ secrets.mac_certs_password }}
116116
env:
117+
VITE_API_DOMAIN: ${{ secrets.API_DOMAIN }}
117118
# macOS notarization API key
118119
API_KEY_ID: ${{ secrets.api_key_id }}
119120
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "electron",
33
"description": "All-in-one chat and forums for communities.",
4-
"version": "0.0.95",
4+
"version": "0.0.96",
55
"private": true,
66
"repository": "github:joincomet/comet",
77
"homepage": "https://joincomet.app",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "comet",
3-
"version": "0.0.95",
3+
"version": "0.0.96",
44
"private": true,
55
"license": "MPL-2.0",
66
"author": {

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "server",
3-
"version": "0.0.95",
3+
"version": "0.0.96",
44
"private": true,
55
"engines": {
66
"node": "16.x.x"

web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "web",
33
"description": "All-in-one chat and forums for communities.",
4-
"version": "0.0.95",
4+
"version": "0.0.96",
55
"private": true,
66
"repository": "github:joincomet/comet",
77
"homepage": "https://joincomet.app",
@@ -24,6 +24,7 @@
2424
"@headlessui/react": "^1.3.0",
2525
"@n1ru4l/graphql-live-query": "^0.7.1",
2626
"@n1ru4l/graphql-live-query-patch": "^0.3.2",
27+
"@n1ru4l/graphql-live-query-patch-json-patch": "^0.3.2",
2728
"@n1ru4l/push-pull-async-iterable-iterator": "^2.1.4",
2829
"@netlify/classnames-template-literals": "^1.0.0",
2930
"@popperjs/core": "^2.9.2",

web/src/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Routes from '@/pages/Routes'
44
import { ApolloProvider } from '@apollo/client/react'
55
import ResponsiveToaster from '@/components/ui/ResponsiveToaster'
66
import CustomDragLayer from '@/components/ui/CustomDragLayer'
7-
import { BrowserRouter as Router } from 'react-router-dom'
7+
import { BrowserRouter, HashRouter } from 'react-router-dom'
88
import { Helmet, HelmetProvider } from 'react-helmet-async'
99
import TitleBar from '@/components/ui/electron/titlebar/TitleBar'
1010
import { getOS } from '@/utils/getOS'
@@ -16,6 +16,7 @@ import UserProvider from '@/providers/UserProvider'
1616

1717
export default function App() {
1818
const isMac = getOS() === 'Mac OS'
19+
const Router = window.electron ? HashRouter : BrowserRouter
1920

2021
return (
2122
<ApolloProvider client={apolloClient}>

web/src/components/BottomBar.jsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { OnlineStatus, useChangeOnlineStatusMutation } from '@/graphql/hooks'
1414
import { Link } from 'react-router-dom'
1515
import { getDownloadLink } from '@/hooks/getDownloadLink'
1616
import { useLoginDialog } from '@/hooks/useLoginDialog'
17-
import {getOS} from "@/utils/getOS";
17+
import { getOS } from '@/utils/getOS'
1818

1919
export default function BottomBar() {
2020
const [currentUser] = useCurrentUser()
@@ -90,13 +90,18 @@ export default function BottomBar() {
9090
)}
9191

9292
<div className="ml-auto flex items-center space-x-4 text-primary">
93-
{/*{os === 'Windows' && !window.electron && (
93+
{os === 'Windows' && !window.electron && (
9494
<Tippy content="Download Comet for Desktop">
95-
<a className="block" target="_blank" rel="noopener noreferrer" href={downloadLink}>
95+
<a
96+
className="block"
97+
target="_blank"
98+
rel="noopener noreferrer"
99+
href={downloadLink}
100+
>
96101
<IconDownload className="w-4.5 h-4.5 text-tertiary cursor-pointer" />
97102
</a>
98103
</Tippy>
99-
)}*/}
104+
)}
100105

101106
<Tippy
102107
content={`${

web/src/components/ui/EndReached.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { memo } from 'react'
2+
import astronaut from './astronaut.png'
23

34
export default memo(function EndReached({
45
children = 'No more posts loaded!',
@@ -8,7 +9,7 @@ export default memo(function EndReached({
89
<div className="flex flex-col items-center justify-center text-primary py-6">
910
<img
1011
alt="astronaut"
11-
src="/astronaut.png"
12+
src={astronaut}
1213
className={`object-contain opacity-50 animate-float select-none pointer-events-none ${className}`}
1314
/>
1415
<div className="text-tertiary pt-3 text-lg font-semibold">{children}</div>

web/src/components/ui/MobileComingSoon.jsx

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)