From afb046b3b66e0e4b259f02fbf60e1743d90f4a72 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Sat, 25 Feb 2023 02:35:12 +0200 Subject: [PATCH] add buffer support to rpc and add profile pictures --- .gitignore | 1 + frontend/src/components/Message.svelte | 74 +++-- frontend/src/components/MessageInput.svelte | 4 +- .../src/components/PresenceSidebar.svelte | 19 +- frontend/src/components/Sidebar.svelte | 6 +- frontend/src/components/UserTopBar.svelte | 8 - frontend/src/components/UserView.svelte | 38 +++ .../src/components/overlays/Settings.svelte | 27 +- frontend/src/gateway.js | 21 +- frontend/src/request.js | 37 ++- frontend/src/storage.js | 5 + frontend/src/stores.js | 17 +- frontend/src/styles/global.css | 15 +- package.json | 4 +- src/database/init.ts | 5 +- src/database/templates.ts | 8 +- src/gateway/gatewaypayloadtype.ts | 2 + src/gateway/index.ts | 44 ++- src/impl.ts | 1 + src/routes/api/v1/rpc.ts | 4 +- src/routes/matrix/index.ts | 3 +- src/rpc/apis/channels.ts | 14 +- src/rpc/apis/messages.ts | 8 +- src/rpc/apis/users.ts | 111 +++++++- src/rpc/rpc.ts | 79 ++++- src/server.ts | 1 + src/serverconfig.ts | 7 +- src/types/gatewaypresence.d.ts | 1 + src/types/user.d.ts | 7 +- uploads/avatar/.gitkeep | 0 yarn.lock | 269 +++++++++++++++++- 31 files changed, 728 insertions(+), 112 deletions(-) delete mode 100644 frontend/src/components/UserTopBar.svelte create mode 100644 frontend/src/components/UserView.svelte create mode 100644 uploads/avatar/.gitkeep diff --git a/.gitignore b/.gitignore index b9062f9..014cf2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ dist/ frontend-new/ +uploads/avatar/*.webp .env diff --git a/frontend/src/components/Message.svelte b/frontend/src/components/Message.svelte index 4af1b53..143282e 100644 --- a/frontend/src/components/Message.svelte +++ b/frontend/src/components/Message.svelte @@ -1,5 +1,6 @@ + +