diff --git a/.gitignore b/.gitignore index 418b3367..e803e3c4 100755 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ /**/**/.evite /**/**/uploads /**/**/d_data +/**/**/redis_data /**/**/*.tar /**/**/*.7z /**/**/*.zip diff --git a/.gitmodules b/.gitmodules index 7c71543c..401ba0fb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "evite"] path = evite url = https://github.com/ragestudio/evite +[submodule "linebridge"] + path = linebridge + url = https://github.com/ragestudio/linebridge diff --git a/.ignorepackages b/.ignorepackages new file mode 100644 index 00000000..0e50a085 --- /dev/null +++ b/.ignorepackages @@ -0,0 +1,3 @@ +rtengine +wrapper +comty.js \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index ce175bff..1a6c947c 100755 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,25 +1,25 @@ { "discord.enabled": false, "workbench.colorCustomizations": { - "activityBar.activeBackground": "#65c89b", - "activityBar.background": "#65c89b", + "activityBar.activeBackground": "#ff9396", + "activityBar.background": "#ff9396", "activityBar.foreground": "#15202b", "activityBar.inactiveForeground": "#15202b99", - "activityBarBadge.background": "#945bc4", + "activityBarBadge.background": "#048000", "activityBarBadge.foreground": "#e7e7e7", "commandCenter.border": "#15202b99", - "sash.hoverBorder": "#65c89b", - "statusBar.background": "#42b883", + "sash.hoverBorder": "#ff9396", + "statusBar.background": "#ff6064", "statusBar.foreground": "#15202b", - "statusBarItem.hoverBackground": "#359268", - "statusBarItem.remoteBackground": "#42b883", + "statusBarItem.hoverBackground": "#ff2d32", + "statusBarItem.remoteBackground": "#ff6064", "statusBarItem.remoteForeground": "#15202b", - "titleBar.activeBackground": "#42b883", + "titleBar.activeBackground": "#ff6064", "titleBar.activeForeground": "#15202b", - "titleBar.inactiveBackground": "#42b88399", + "titleBar.inactiveBackground": "#ff606499", "titleBar.inactiveForeground": "#15202b99" }, - "peacock.remoteColor": "#42b883", + "peacock.remoteColor": "#ff6064", "docify.inlineComments": true, "docify.moreExpressiveComments": true, "docify.sidePanelReviewMode": false, diff --git a/changelogs/v0-58-2.md b/changelogs/v0-58-2.md new file mode 100644 index 00000000..0e1d7e39 --- /dev/null +++ b/changelogs/v0-58-2.md @@ -0,0 +1,13 @@ +* [+6/-6][chat_server | file_server | marketplace_server | music_server | server | sync_server] [bump version](https://github.com/ragestudio/comty/commit/9f745b706988f301dffc2308ea3cfaa7ce4150cc) - by [@SrGooglo](https://github.com/srgooglo) + +* [+11/-11][app | chat_server | comty.js | file_server | marketplace_server | music_server | server | sync_server | wrapper] [Bump version to 0.58.2](https://github.com/ragestudio/comty/commit/5195f019f609841e1f041ddd2d6d7357bd6cdd80) - by [@SrGooglo](https://github.com/srgooglo) + +* [+28/-1][app] [add touch effect](https://github.com/ragestudio/comty/commit/a0098296885d5d059e4bf9129be1504f2a734883) - by [@SrGooglo](https://github.com/srgooglo) + +* [+374/-85][app | comty.js | music_server | sync_server | classes] [Supporting multiplatform track likes](https://github.com/ragestudio/comty/commit/4add14652c387e2c23b557e3d68188888c9117c6) - by [@SrGooglo](https://github.com/srgooglo) + +* [+482/-127][app] [support sliders with profiles](https://github.com/ragestudio/comty/commit/fec281dece9263dd446e7dd460f4f4af471af8b4) - by [@SrGooglo](https://github.com/srgooglo) + +* [+2/-1][app] [force `max-width`](https://github.com/ragestudio/comty/commit/510ad757bb73ac4ed0d5e064105c94fd4fba6edb) - by [@SrGooglo](https://github.com/srgooglo) + +* [+17/-0][v0-58-1.md] [added changelog](https://github.com/ragestudio/comty/commit/6387a22edddbb9fab47cc5f6ee893c67390d7cbb) - by [@SrGooglo](https://github.com/srgooglo) \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 9bfa7dfa..015cbd2e 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,14 +54,21 @@ services: env_file: - ./env_files/file.production.env redis: - image: docker.dragonflydb.io/dragonflydb/dragonfly + image: docker.dragonflydb.io/dragonflydb/dragonfly:latest restart: unless-stopped + ulimits: + memlock: -1 + command: + - "--requirepass=changeme2424" networks: - internal_network env_file: - ./env_files/redis.env ports: - "6379:6379" + volumes: + - ./redis_data:/data + networks: internal_network: \ No newline at end of file diff --git a/ecosystem.config.js b/ecosystem.config.js index 5c235f4f..4bce946c 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,8 +3,8 @@ module.exports = { { name: "main_api", script: "./dist/index.js", - // instances: "max", - // exec_mode: "cluster", + instances: "max", + exec_mode: "cluster", env: { "NODE_ENV": "production", "MAIN_LISTEN_PORT": 5000, @@ -64,7 +64,7 @@ module.exports = { { name: "sync_api", script: "./dist/index.js", - env:{ + env: { "NODE_ENV": "production", "HTTP_LISTEN_PORT": 5005, }, diff --git a/linebridge b/linebridge new file mode 160000 index 00000000..13b01b21 --- /dev/null +++ b/linebridge @@ -0,0 +1 @@ +Subproject commit 13b01b21d6b63ecddd8625781a69355861d38db5 diff --git a/packages/app/constants/defaultTheme.json b/packages/app/constants/defaultTheme.json index 37c9557f..cfb4039a 100755 --- a/packages/app/constants/defaultTheme.json +++ b/packages/app/constants/defaultTheme.json @@ -1,5 +1,6 @@ { "defaultVars": { + "fontScale": "1", "backgroundBlur": "10px", "colorPrimary": "#ff6064", "app-color": "#ff6064", diff --git a/packages/app/constants/settings/about/index.jsx b/packages/app/constants/settings/about/index.jsx index ada173a6..0893ab9f 100755 --- a/packages/app/constants/settings/about/index.jsx +++ b/packages/app/constants/settings/about/index.jsx @@ -1,6 +1,8 @@ import React from "react" import * as antd from "antd" +import { version as linebridgeVersion } from "linebridge/package.json" + import { Icons } from "components/Icons" import config from "config" @@ -13,27 +15,6 @@ const connectionsTooltipStrings = { warning: "This connection is secure but the server cannot be verified on the trusted certificate authority.", } -const Footer = () => { - const isDevMode = window.__evite?.env?.NODE_ENV !== "production" - - return
-
-
{config.app?.siteName}
-
- - v{window.app.version} - -
-
- - {isDevMode ? : } - {isDevMode ? "development" : "production"} - -
-
-
-} - const latencyToColor = (latency, type) => { switch (type) { case "http": { @@ -98,19 +79,6 @@ export default { } } - const fetchServerHealth = async () => { - const response = await app.cores.api.customRequest({ - method: "GET", - url: "/server/health", - }).catch(() => null) - - console.log(response.data) - - if (response) { - setServerHealth(response.data) - } - } - const measurePing = async () => { const result = await app.cores.api.measurePing() @@ -123,13 +91,11 @@ export default { checkServerVersion() checkServerOrigin() - fetchServerHealth() measurePing() setCapacitorInfo() const measureInterval = setInterval(() => { - fetchServerHealth() measurePing() }, 3000) @@ -237,20 +203,6 @@ export default { -
-
-

Instance usage

-
- -
- -
-
-
@@ -287,7 +239,21 @@ export default {
-

Evite Engine

+

Linebridge Engine

+
+ +
+ {linebridgeVersion ?? globalThis._linebrige_version ?? "Unknown"} +
+
+ +
+
+
+ +
+ +

Evite Framework

diff --git a/packages/app/constants/settings/apparence/index.jsx b/packages/app/constants/settings/apparence/index.jsx index 9ae8e374..94ac4094 100755 --- a/packages/app/constants/settings/apparence/index.jsx +++ b/packages/app/constants/settings/apparence/index.jsx @@ -103,6 +103,32 @@ export default { }, storaged: true }, + { + id: "style.uiFontScale", + group: "aspect", + component: "Slider", + title: "UI font scale", + description: "Change the font scale of the application.", + props: { + min: 1, + max: 1.2, + step: 0.01, + tooltip: { + formatter: (value) => `${value}x` + } + }, + defaultValue: () => { + return app.cores.style.getValue("fontScale") + }, + onUpdate: (value) => { + app.cores.style.modify({ + "fontScale": value + }) + + return value + }, + storaged: true + }, { id: "style.uiFont", group: "aspect", diff --git a/packages/app/package.json b/packages/app/package.json index b9976968..40e2c8a8 100755 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -66,7 +66,7 @@ "jsmediatags": "^3.9.7", "jwt-decode": "3.1.2", "less": "4.1.2", - "linebridge": "0.15.7", + "linebridge": "0.16.0", "lottie-react": "^2.4.0", "lru-cache": "^10.0.0", "luxon": "^3.0.4", @@ -115,7 +115,6 @@ "tone": "^14.7.77", "tseep": "^1.1.1", "ua-parser-js": "^1.0.36", - "uuid": "^9.0.0", "virtual-scroller": "^1.12.3", "wait-on": "^6.0.1" }, diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx index 7065e3ce..20049579 100755 --- a/packages/app/src/App.jsx +++ b/packages/app/src/App.jsx @@ -408,7 +408,10 @@ class ComtyApp extends React.Component { app.eventBus.emit("layout.animations.fadeIn") }, "auth:logout_success": async () => { + app.cores.api.disconnectWebsockets() + app.navigation.goAuth() + await this.flushState() }, "session.invalid": async (error) => { diff --git a/packages/app/src/components/ConnectedFriends/index.jsx b/packages/app/src/components/ConnectedFriends/index.jsx index 069938ca..42a0df57 100755 --- a/packages/app/src/components/ConnectedFriends/index.jsx +++ b/packages/app/src/components/ConnectedFriends/index.jsx @@ -11,7 +11,6 @@ export default (props) => { const fetchConnectedFriends = async () => { const result = await User.getConnectedUsersFollowing().catch((err) => { console.error(err) - app.message.error("Failed to fetch connected friends") return null }) @@ -47,16 +46,18 @@ export default (props) => { return
{ - connectedUsers.length === 0 ? - No connected friends : - connectedUsers.map((user_id, index) => { - return
- -
- }) + connectedUsers.length === 0 && No connected friends + } + + { + connectedUsers.length > 0 && connectedUsers.map((user, index) => { + return
+ +
+ }) }
} \ No newline at end of file diff --git a/packages/app/src/components/Login/index.less b/packages/app/src/components/Login/index.less index c9ff2b48..dc2a88a5 100755 --- a/packages/app/src/components/Login/index.less +++ b/packages/app/src/components/Login/index.less @@ -28,6 +28,7 @@ h1 { font-family: "Space Grotesk", sans-serif; margin: 0; + font-size: 1.8rem; } h3 { diff --git a/packages/app/src/components/Player/ExtraActions/index.jsx b/packages/app/src/components/Player/ExtraActions/index.jsx index 23e02aae..7217a01c 100644 --- a/packages/app/src/components/Player/ExtraActions/index.jsx +++ b/packages/app/src/components/Player/ExtraActions/index.jsx @@ -17,7 +17,7 @@ const ExtraActions = (props) => { app.isMobile &&