From f920bcfb6412fe1235ca7b962f520b9442ef684f Mon Sep 17 00:00:00 2001 From: srgooglo <38926803+srgooglo@users.noreply.github.com> Date: Thu, 6 Feb 2020 15:01:53 +0100 Subject: [PATCH] PostCreator and Post functionality --- config/ycore.config.js | 2 + package.json | 2 +- src/components/PostCard/index.js | 4 +- src/components/PostCard/index.less | 7 ++- src/components/PostCreator/index.js | 66 +++++++++++++++++--- src/components/PostCreator/index.less | 83 ++++++++++++++++++------ src/pages/main/index.js | 34 +++------- src/ycore_worker.js | 90 ++++++++++++++++++++++++++- 8 files changed, 229 insertions(+), 59 deletions(-) diff --git a/config/ycore.config.js b/config/ycore.config.js index adc0ff31..b8a9bd7e 100644 --- a/config/ycore.config.js +++ b/config/ycore.config.js @@ -26,7 +26,9 @@ module.exports = { openwheater_apiKey:'2acf34be0b8f033b89ba4de1e674d42a', }, Endpoints: { + get_sessions: "https://api.ragestudio.net/RS-YIBTP/yid/session_id?access_token=", auth_endpoint: "https://api.ragestudio.net/RS-YIBTP/yid/auth", + new_post: "https://api.ragestudio.net/RS-YIBTP/yid/new_post?access_token=", get_servicesHandler: 'https://api.ragestudio.net/RS-YIBTP/rs/servicesHandler', get_modhandler: "https://api.ragestudio.net/RS-YIBTP/rs/modHandler", get_subscriptionHandler: "https://api.ragestudio.net/RS-YIBTP/rs/subscriptionHandler", diff --git a/package.json b/package.json index 080317af..ead9d675 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "comty-development", - "version": "0.1.05", + "version": "0.1.06", "description": "", "main": "index.js", "author": "", diff --git a/src/components/PostCard/index.js b/src/components/PostCard/index.js index 8552d83b..4ee5d237 100644 --- a/src/components/PostCard/index.js +++ b/src/components/PostCard/index.js @@ -21,14 +21,14 @@ class PostCard extends React.PureComponent{ const ident = payload if (ident.includes('.mp4')) { return ( -