Commit graph

362 commits

Author SHA1 Message Date
smartfrigde
84b7c560e0 fix setup + shelter plugin loading 2024-07-19 17:24:17 +02:00
smartfrigde
4fc401211e don't inject our plugins when running straight from src 2024-07-16 15:27:55 +02:00
smartfrigde
6056a2c8d8 disable tray by default on macOS 2024-07-16 12:56:06 +02:00
smartfrigde
6258874580 remove badge count when not needed 2024-07-16 12:18:30 +02:00
smartfrigde
5d48938864 add ping indicator on macOS 2024-07-16 12:00:24 +02:00
smartfrigde
a6bc52e8c1 fix macOS dock behaviour 2024-07-16 11:10:11 +02:00
smartfrigde
66abca95d3 print macOS permission status 2024-07-16 10:43:21 +02:00
smartfrigde
7457b88eb7 fix screenshare css 2024-07-16 08:51:15 +02:00
smartfrigde
260a215392 lint 2024-07-15 22:33:17 +02:00
smartfrigde
246fd2233d add armcord plugins automatically 2024-07-15 22:31:34 +02:00
smartfrigde
fc56f4fe25 allow for 2 mods 2024-07-15 21:30:25 +02:00
smartfrigde
85d3354e23 feat: re-add channel switching 2024-07-15 19:46:57 +02:00
smartfrigde
f9290db01a remove useless ipc + lint 2024-07-15 15:45:24 +02:00
smartfrigde
b0e6f606c5 remove webviewTag from discord windows 2024-07-14 22:47:09 +02:00
smartfrigde
2feb4d18bd expose restart api 2024-07-14 18:13:51 +02:00
smartfrigde
5d1442a57b expose i18n apis 2024-07-14 11:49:41 +02:00
smartfrigde
8ec52d6679 remove in-app settings
+ prepare for shelter settings
2024-07-13 08:42:49 -07:00
smartfrigde
ec6969c6d0 fix custom titlebar on macOS 2024-07-12 13:18:14 -07:00
smartfrigde
5aaea8b6d6 fix pasting on macOS 2024-07-12 13:03:05 -07:00
smartfridge
5258023c50
feat: rollup (#652)
* rollup base

* rollup main building

* fix preload

* fix all browserwindows

* add esbuild minify

* fix some linting errors

* fix linting errors

* use correct arrpc repo

* [temp] drop pnpm lock

* recreate pnpm-lock

* flush pnpm lock

* clean up rollup building

---------

Co-authored-by: Aiden <amb@aspy.dev>
2024-07-12 12:55:54 -07:00
Aiden
c74184419e
Fix linting, partially break theme loaders (themes can no longer be hot-loaded, the client must be restarted) 2024-06-27 17:13:46 -04:00
Aiden
fd79b62088
Implement Autoscrolling toggle (#643) 2024-06-27 16:19:23 -04:00
smartfrigde
f1c6fcb948 fix: app not loading 2024-06-27 22:08:16 +02:00
smartfrigde
0fcf628aa2 fix: use loopback instead of loopbackWithMute 2024-06-27 21:58:18 +02:00
smartfrigde
653cc4381a fix: X11 screensharing 2024-06-27 21:30:21 +02:00
smartfrigde
65b4cc1dd1 chore: remove wip from arRPC in settings 2024-06-27 21:30:21 +02:00
smartfrigde
344f01f136 fix: theme manager 2024-06-22 21:18:17 +02:00
smartfrigde
003cbb1abd linting 2024-06-16 15:33:20 +02:00
smartfrigde
651f197dd2 fix: theme manager flag 2024-06-16 15:29:43 +02:00
smartfrigde
dc607615f6 feat: improve useragent generation 2024-06-16 15:29:43 +02:00
smartfrigde
2eece1ca39 chore: remove duplicate code 2024-06-16 15:29:43 +02:00
smartfrigde
31cef3a093 fix: saving ics files
solves https://github.com/ArmCord/ArmCord/issues/613
2024-06-16 14:02:48 +02:00
smartfrigde
9f6a25801f switch to electron-is-dev 2024-06-16 13:30:40 +02:00
smartfrigde
ac1d090ead feat: rewrite minimize to tray 2024-06-16 12:59:30 +02:00
Aiden
3ae9a77f25
Implement Add an option for disabling smooth scrolling #623 (#624) 2024-06-15 20:24:20 +02:00
Aiden
4d545ed684
Fix Fresh installs (no .config/armcord) will crash #621 (#622) 2024-06-15 19:28:28 +02:00
smartfrigde
6da51782ad fix: quit properly in tray 2024-06-15 11:41:35 +02:00
smartfrigde
46a72f99cd feat: return back to loadURL for discord window 2024-06-15 11:14:16 +02:00
smartfrigde
a347fd8fd0 fix: reload discord if it's unresponsive 2024-06-15 10:58:44 +02:00
smartfrigde
0329b2ee92 fix: use existing config folders
solves https://github.com/ArmCord/ArmCord/issues/617 after package name change
2024-06-15 10:46:51 +02:00
smartfrigde
35a321bd59 remove unused code 2024-06-15 10:34:35 +02:00
smartfrigde
3f7b154068 fix titlebar loading
solves https://github.com/ArmCord/ArmCord/issues/616
2024-06-15 10:33:07 +02:00
SelfMadeSystem
69c34435f2
Add transparency to linux (#618)
Co-authored-by: smartfridge <37928912+smartfrigde@users.noreply.github.com>
2024-06-15 10:22:03 +02:00
Ritiek Malhotra
d9d24d9473
Improve multi-instance behaviour (#604)
* Experiment with two windows

* Improve multi-instance behaviour

Previously, ArmCord would attempt to launch up a completely new
instance each time when multi-instances setting were enabled. This
doesn't work well as Electron doesn't support running multiple instances
of the same app pointing to the same user data directory
(which by default on GNU/Linux is `~/.config/ArmCord`). Doing so would
result in this error:
> Failed to open LevelDB database" "file currently in use"

It's possible to workaround this behaviour by passing in a parameter to
a different user data directory when launching subsequent instances of
armcord, like so:
```shell
$ armcord --user-data-directory=$HOME/.config/ArmCord-2
```

However, this method ends up taking disk storage in the multiples of the
number of armcord instances that are simultaneously running, which isn't
ideal.

Looking into this more, it looks like Electron can do multiple windows
fine with the same user data directory. I gave this a try and it seems
to be working nice. With this PR, running any subsequent instances of
armcord will open up a new window in the original armcord instance. This
should also help with better resource utilization when compared to
running multiple full blown instances of armcord.

* Fix lints
2024-06-15 10:20:44 +02:00
Aiden
10b7e638de
Updates and Linting (#578)
* Updates and Linting

* fix lint task

* [ImgBot] Optimize images

*Total -- 404.98kb -> 304.38kb (24.84%)

/assets/screenshot-1920x1080.png -- 205.00kb -> 123.21kb (39.9%)
/build/appx/Square150x150Logo.png -- 9.63kb -> 7.71kb (20%)
/assets/ac_icon.png -- 40.15kb -> 34.98kb (12.88%)
/assets/StoreLogo.png -- 40.15kb -> 34.98kb (12.88%)
/assets/Square150x150Logo.png -- 7.24kb -> 6.53kb (9.83%)
/assets/ac_icon_transparent.png -- 45.54kb -> 42.00kb (7.76%)
/assets/ac_plug_colored.png -- 17.98kb -> 16.72kb (7%)
/assets/ac_black_plug.png -- 8.49kb -> 8.06kb (5.06%)
/assets/ac_black_plug_hollow.png -- 10.30kb -> 9.95kb (3.4%)
/build/appx/Square44x44Logo.png -- 1.69kb -> 1.64kb (2.89%)
/assets/Square44x44Logo.png -- 1.90kb -> 1.85kb (2.83%)
/assets/Wide310x150Logo.png -- 4.21kb -> 4.17kb (0.97%)
/build/appx/Wide310x150Logo.png -- 4.21kb -> 4.17kb (0.97%)
/assets/ac_white_plug.png -- 8.49kb -> 8.42kb (0.83%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

* Asyncification!!!
Check `REVIEW` comments

* More async for `src/discord`

* update packages to latest minor version

* Void some promises

* Add some types - 93 problems left!

* make DeepScan Happy

* DeepScan part 2

* I am the Constant

* preload must be `.mts`

* Migrate electron context menu official package

* fix bad preload on setup window

* fix minor import oversights

* fix modloader

* Stop main window from continuing during setup

* update packages, slow dependabot

* Remove paste override, it seems to work without now

* IPC typing

* Package updates & a few more typings

* fix linting errors in screenshare

* use pnpm in actions

* fix dev releaser?

* update node build, fix dev one more time

* release action is broke

* Fix Release

* update actions

* actions are so finicky

* remove delete-tag-and-release

* add github token env

* Hopefully this fixes the release workflow

* [debug]

* this should actually fix it

* Fix typo in dev action

* put everything in a dir and then get it

* use a different releaser

* correct release file location

* action places it in a folder named x.zip, recurse into that and grab the actual files

* Cleanup actions a bit

* release is dependent on mac build

* remove mac build

* split linux arm and x86

* rely on linux arm

* remove deprecated action

* attempt to fix weird recursive zip

* fix env

* use pnpm in actions

fix dev releaser?

update node build, fix dev one more time

release action is broke

Fix Release

update actions

actions are so finicky

remove delete-tag-and-release

add github token env

Hopefully this fixes the release workflow

[debug]

this should actually fix it

Fix typo in dev action

put everything in a dir and then get it

use a different releaser

correct release file location

action places it in a folder named x.zip, recurse into that and grab the actual files

Cleanup actions a bit

release is dependent on mac build

remove mac build

split linux arm and x86

rely on linux arm

remove deprecated action

attempt to fix weird recursive zip

fix env

* don't globally install pnpm packages (I don't think the cache checks global)

* Type the armcord window

* Finalize typings

* fix deepscan issues

* fix screenshare preload

* fix app quitting

---------

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: smartfrigde <37928912+smartfrigde@users.noreply.github.com>
2024-06-14 14:57:34 +02:00
Ritiek Malhotra
4559a39b0a
Remove redundant code for saveSettings ipc call (#601) 2024-06-03 20:37:40 +02:00
Aiden
36e5f95705
include file extensions on imports (#599)
* include file extensions on imports

* missed two
2024-06-01 11:56:19 +02:00
smartfrigde
871202aad1 fix: modloader downloading 2024-05-30 18:52:54 +02:00
Aiden
a49ae6b378
Fix #584 (#597) 2024-05-28 23:55:29 +02:00
smartfrigde
f51fbff540 fix: in-app settings injection 2024-05-15 21:06:41 +02:00