diff --git a/packages/app/config/index.js b/packages/app/config/index.js
index c2fc0903..50e330c0 100755
--- a/packages/app/config/index.js
+++ b/packages/app/config/index.js
@@ -6,17 +6,24 @@ const envOrigins = {
"localhost": {
mainApi: `http://${window.location.hostname}:3010`,
messagingApi: `http://${window.location.hostname}:3020`,
+ livestreamingApi: `http://${window.location.hostname}:3030`,
},
"development": {
mainApi: `https://indev_api.comty.app`,
messagingApi: `https://indev_messaging_api.comty.app`,
+ livestreamingApi: `https://indev_livestreaming_api.comty.app`,
},
"production": {
mainApi: "https://api.comty.app",
messagingApi: `https://messaging_api.comty.app`,
+ livestreamingApi: `https://livestreaming_api.comty.app`,
}
}
+function composeRemote(path) {
+ return window.location.hostname.includes("localhost") ? envOrigins["localhost"][path] : envOrigins[process.env.NODE_ENV][path]
+}
+
console.log(`Config loaded with mode: [${process.env.NODE_ENV}]`)
export default {
@@ -25,6 +32,7 @@ export default {
defaultSoundPack: defaultSoundPack,
author: "RageStudio©",
fundingLink: "https://www.paypal.com/donate/?hosted_button_id=S4TWMAN79KC76",
+ githubRepoLink: "https://github.com/ragestudio/comty",
footerLinks: [
{
label: "Terms of Service",
@@ -54,8 +62,9 @@ export default {
ragestudio_full: "https://storage.ragestudio.net/rstudio/branding/ragestudio/labeled/ragestudio-labeled_white.svg",
},
remotes: {
- mainApi: window.location.hostname.includes("localhost") ? envOrigins["localhost"].mainApi : envOrigins[process.env.NODE_ENV].mainApi,
- messagingApi: window.location.hostname.includes("localhost") ? envOrigins["localhost"].messagingApi : envOrigins[process.env.NODE_ENV].messagingApi,
+ mainApi: composeRemote("mainApi"),
+ messagingApi: composeRemote("messagingApi"),
+ livestreamingApi: composeRemote("livestreamingApi"),
},
app: {
title: packagejson.name,
diff --git a/packages/app/constants/settings/changelogs/index.jsx b/packages/app/constants/settings/changelogs/index.jsx
new file mode 100644
index 00000000..c65f8885
--- /dev/null
+++ b/packages/app/constants/settings/changelogs/index.jsx
@@ -0,0 +1,97 @@
+import React from "react"
+import ReactMarkdown from "react-markdown"
+import remarkGfm from "remark-gfm"
+import {
+ Result,
+ Skeleton
+} from "antd"
+import { SiGithub } from "react-icons/si"
+import config from "config"
+
+import "./index.less"
+
+const FetchChangelogs = async () => {
+ const response = await app.cores.api.customRequest({
+ method: "GET",
+ url: `/release-notes`,
+ })
+
+ return response.data
+}
+
+export default {
+ id: "changelogs",
+ icon: "MdHistory",
+ label: "Changelogs",
+ group: "bottom",
+ render: () => {
+ const [L_Changelogs, R_Changelogs, E_Changelogs,] = app.cores.api.useRequest(FetchChangelogs)
+
+ console.log(R_Changelogs, E_Changelogs)
+
+ if (L_Changelogs) {
+ return
{changelog.date}
+