Skip to content

Commit 861a617

Browse files
committed
revert font change, work on inbox page, bug fixes, v0.0.60
1 parent 37e6dc8 commit 861a617

File tree

88 files changed

+586
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+586
-291
lines changed

electron/electron/loading/loading.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
align-items: center;
4141
justify-items: center;
4242
box-sizing: border-box;
43-
background-color: #333338;
43+
background-color: #31343C;
4444
border-radius: 1rem;
4545
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
4646
}

electron/package.json

Lines changed: 3 additions & 3 deletions
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.59",
4+
"version": "0.0.60",
55
"private": true,
66
"repository": "github:joincomet/comet",
77
"homepage": "https://joincomet.app",
@@ -27,12 +27,12 @@
2727
"electron-is-dev": "^2.0.0",
2828
"electron-log": "^4.3.5",
2929
"electron-store": "^8.0.0",
30-
"electron-updater": "^4.3.8",
30+
"electron-updater": "^4.3.9",
3131
"typescript": "^4.2.4"
3232
},
3333
"devDependencies": {
3434
"electron": "12.0.7",
35-
"electron-builder": "^22.11.2"
35+
"electron-builder": "^22.11.3"
3636
},
3737
"build": {
3838
"productName": "Comet",

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.59",
3+
"version": "0.0.60",
44
"private": true,
55
"license": "MPL-2.0",
66
"author": {

server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "server",
3-
"version": "0.0.59",
3+
"version": "0.0.60",
44
"private": true,
55
"engines": {
66
"node": "15.x.x"
@@ -20,7 +20,7 @@
2020
"@n1ru4l/in-memory-live-query-store": "^0.6.4",
2121
"apollo-server-express": "^2.24.0",
2222
"argon2": "^0.27.2",
23-
"aws-sdk": "^2.904.0",
23+
"aws-sdk": "^2.905.0",
2424
"class-validator": "^0.13.1",
2525
"cors": "^2.8.5",
2626
"cross-env": "^7.0.3",
@@ -59,7 +59,7 @@
5959
"sharp": "^0.28.2",
6060
"type-graphql": "^1.1.1",
6161
"typescript": "^4.2.4",
62-
"user-agents": "^1.0.648",
62+
"user-agents": "^1.0.649",
6363
"validator": "^13.6.0",
6464
"ws": "^7.4.5",
6565
"xss": "^1.0.9"

server/src/resolver/reply/queries/replies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function replies({ em, userId }: Context): Promise<Reply[]> {
99
'user',
1010
'comment.author.user',
1111
'comment.author.roles',
12-
'comment.post',
12+
'comment.post.server',
1313
'comment.parentComment.author.user',
1414
'comment.parentComment.author.roles'
1515
],

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="icon" type="image/svg+xml" href="/logos/logo_icon.svg"/>
77
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
88
<title>Comet – All-in-one chat and forums for communities.</title>
9-
9+
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
1010
<!-- Start Single Page Apps for GitHub Pages -->
1111
<script type="text/javascript">
1212
// Single Page Apps for GitHub Pages

web/package.json

Lines changed: 5 additions & 5 deletions
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.59",
4+
"version": "0.0.60",
55
"private": true,
66
"repository": "github:joincomet/comet",
77
"homepage": "https://joincomet.app",
@@ -19,7 +19,7 @@
1919
"preview": "vite preview --port 3000"
2020
},
2121
"dependencies": {
22-
"@apollo/client": "^3.3.16",
22+
"@apollo/client": "^3.3.17",
2323
"@electron/remote": "^1.1.0",
2424
"@headlessui/react": "^1.2.0",
2525
"@n1ru4l/graphql-live-query": "^0.7.1",
@@ -34,13 +34,13 @@
3434
"@tiptap/extension-placeholder": "^2.0.0-beta.15",
3535
"@tiptap/extension-underline": "^2.0.0-beta.12",
3636
"@tiptap/react": "^2.0.0-beta.33",
37-
"@tiptap/starter-kit": "^2.0.0-beta.51",
37+
"@tiptap/starter-kit": "^2.0.0-beta.52",
3838
"cross-env": "^7.0.3",
3939
"date-fns": "^2.21.3",
4040
"dayjs": "^1.10.4",
4141
"dayjs-twitter": "^0.4.0",
4242
"extract-files": "^10.0.0",
43-
"framer-motion": "^4.1.13",
43+
"framer-motion": "^4.1.15",
4444
"fuse.js": "^6.4.6",
4545
"graphql": "^15.4.0-experimental-stream-defer.1",
4646
"graphql-ws": "^4.5.0",
@@ -96,7 +96,7 @@
9696
"string-hash": "^1.1.3",
9797
"tailwind-scrollbar": "^1.3.0",
9898
"tailwindcss": "^2.1.2",
99-
"vite": "^2.2.4"
99+
"vite": "^2.3.0"
100100
},
101101
"resolutions": {
102102
"prosemirror-model": "1.14.1"

web/src/components/BottomBar.jsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import { version } from '../../package.json'
1414
import { useStore } from '@/hooks/useStore'
1515
import { useChangeOnlineStatusMutation } from '@/graphql/hooks'
1616
import { Link } from 'react-router-dom'
17+
import { useCopyToClipboard } from 'react-use'
18+
import toast from 'react-hot-toast'
1719

1820
export default function BottomBar() {
1921
const [currentUser] = useCurrentUser()
@@ -42,14 +44,25 @@ export default function BottomBar() {
4244
}, 15000)
4345
return () => clearInterval(id)
4446
})
47+
const copyToClipboard = useCopyToClipboard()[1]
4548

4649
return (
4750
<>
4851
<UserSettingsDialog open={open} setOpen={setOpen} />
4952

5053
<div className="flex items-center shadow-md px-5 bottom-0 h-5.5 bg-gray-700 z-50">
5154
<UserAvatar size={4.5} className="mr-2" user={currentUser} />
52-
<div className="dark:text-white text-sm">{currentUser.name}</div>
55+
<Tippy content={currentUser.username}>
56+
<div
57+
className="dark:text-white text-sm cursor-pointer"
58+
onClick={() => {
59+
copyToClipboard(currentUser.username)
60+
toast.success('Copied username!')
61+
}}
62+
>
63+
{currentUser.name}
64+
</div>
65+
</Tippy>
5366
<div className="w-2 h-2 rounded-full bg-green-500 ml-2" />
5467
<div className="ml-auto flex items-center space-x-4 text-primary">
5568
<Tippy
@@ -83,7 +96,7 @@ export default function BottomBar() {
8396
</div>
8497
</Tippy>
8598

86-
<Tippy content="Search" offset={offset}>
99+
{/*<Tippy content="Search" offset={offset}>
87100
<div>
88101
<IconSearch className="w-4.5 h-4.5 cursor-pointer" />
89102
</div>
@@ -93,7 +106,7 @@ export default function BottomBar() {
93106
<div>
94107
<IconFolder className="w-4.5 h-4.5 cursor-pointer" />
95108
</div>
96-
</Tippy>
109+
</Tippy>*/}
97110

98111
<Tippy content="Notifications" offset={offset}>
99112
<Link to="/me/inbox">

web/src/components/channel/ChannelContextMenu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function ChannelContextMenu({ channel, ContextMenuItem }) {
3333
<>
3434
<ContextMenuSection>
3535
<ContextMenuItem label={t('channel.context.markRead')} />
36-
<ContextMenuItem label={t('channel.context.mute')} />
36+
{/*<ContextMenuItem label={t('channel.context.mute')} />*/}
3737
<ContextMenuItem label={t('channel.context.edit')} />
3838
{canManageChannels && (
3939
<ContextMenuItem

web/src/components/folder/FolderContextMenu.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useTranslation } from 'react-i18next'
22
import ContextMenuSection from '@/components/ui/context/ContextMenuSection'
3-
import { useState } from 'react'
43
import { matchPath, useHistory, useLocation } from 'react-router-dom'
54
import { useCurrentUser } from '@/hooks/graphql/useCurrentUser'
65
import {
@@ -17,11 +16,10 @@ export default function FolderContextMenu({ folder, ContextMenuItem }) {
1716
const [currentUser] = useCurrentUser()
1817
const userFolders = useUserFolders()
1918
const isFollowing = userFolders
20-
.filter(f => f.owner.id !== currentUser.id)
19+
.filter(f => f.owner?.id !== currentUser.id)
2120
.map(f => f.id)
2221
.includes(folder.id)
2322
const editable = folder.name !== 'Read Later' && folder.name !== 'Favorites'
24-
const [c, setC] = useState(false)
2523
const [updateFolder] = useUpdateFolderMutation()
2624
const [followFolder] = useFollowFolderMutation()
2725
const [unfollowFolder] = useUnfollowFolderMutation()
@@ -36,7 +34,7 @@ export default function FolderContextMenu({ folder, ContextMenuItem }) {
3634
<ContextMenuSection>
3735
<ContextMenuItem label={t('folder.context.copyLink')} />
3836

39-
{folder.owner.id !== currentUser.id && (
37+
{folder.owner?.id !== currentUser.id && (
4038
<>
4139
{isFollowing ? (
4240
<ContextMenuItem

0 commit comments

Comments
 (0)