From 79f2355b24a9b8e2566395eb1479450f981a0fc2 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Wed, 12 Jul 2023 11:10:52 +0000 Subject: [PATCH] added privacy doc reader --- packages/app/config/index.js | 15 +++++----- .../app/constants/settings/privacy/index.jsx | 28 +++++++++++++++++++ .../constants/settingsGroupsDecorators.json | 4 +++ 3 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 packages/app/constants/settings/privacy/index.jsx diff --git a/packages/app/config/index.js b/packages/app/config/index.js index 7d2d926d..8cc8de6b 100755 --- a/packages/app/config/index.js +++ b/packages/app/config/index.js @@ -9,6 +9,14 @@ export default { author: "RageStudio©", fundingLink: "https://www.paypal.com/donate/?hosted_button_id=S4TWMAN79KC76", githubRepoLink: "https://github.com/ragestudio/comty", + locations: { + terms: "/terms", + privacy: "/privacy", + }, + legal: { + terms: "https://storage.ragestudio.net/rstudio/legal_docs/comty/terms/latest.md", + privacy: "https://storage.ragestudio.net/rstudio/legal_docs/comty/privacy/latest.md", + }, footerLinks: [ { label: "Terms of Service", @@ -44,13 +52,6 @@ export default { mainPath: "/", authPath: "/login", copyright: "Comty - RageStudio© 2023", - storage: { - basics: "user", - token: "token", - session_frame: "session", - signkey: "certified", - settings: "app_settings" - }, }, i18n: { languages: [ diff --git a/packages/app/constants/settings/privacy/index.jsx b/packages/app/constants/settings/privacy/index.jsx new file mode 100644 index 00000000..a55e769a --- /dev/null +++ b/packages/app/constants/settings/privacy/index.jsx @@ -0,0 +1,28 @@ +import { Icons } from "components/Icons" + +export default { + id: "privacy", + icon: "MdOutlinePrivacyTip", + label: "Privacy", + group: "basic", + settings: [ + { + id: "request-data", + group: "privacy.general", + icon: "IoMdDownload", + title: "Request all my data", + description: "Start the process of requesting all your data storaged from our services.", + component: "Button", + props: { + type: "primary", + children: "Request" + }, + storaged: false, + }, + ], + footer: () => { + return
+ Take a look to our privacy policy. +
+ } +} \ No newline at end of file diff --git a/packages/app/constants/settingsGroupsDecorators.json b/packages/app/constants/settingsGroupsDecorators.json index cec1bbc2..8bdf6747 100755 --- a/packages/app/constants/settingsGroupsDecorators.json +++ b/packages/app/constants/settingsGroupsDecorators.json @@ -54,5 +54,9 @@ "ui.sounds": { "title": "UI Sounds", "icon": "Volume2" + }, + "privacy.general": { + "title": "Privacy", + "icon": "MdOutlinePrivacyTip" } } \ No newline at end of file