Endpoints Update

This commit is contained in:
srgooglo 2020-03-27 04:16:39 +01:00
parent 839ea58aba
commit 37654a11c3
13 changed files with 61 additions and 281 deletions

View File

@ -0,0 +1,23 @@
module.exports={
comty_endpoints: {
comments_actions: "https://api.ragestudio.net/RSA-COMTY/r/comments?access_token=",
get_post_data: "https://api.ragestudio.net/RSA-COMTY/r/get-post-data?access_token=",
get_user_tags: "https://api.ragestudio.net/RSA-COMTY/r/user_tags?access_token=",
get_general_data: "https://api.ragestudio.net/RSA-COMTY/r/get-general-data?access_token=",
follow_user: "https://api.ragestudio.net/RSA-COMTY/r/follow-user?access_token=",
action_post: "https://api.ragestudio.net/RSA-COMTY/r/post-actions?access_token=",
get_posts: "https://api.ragestudio.net/RSA-COMTY/r/posts?access_token=",
find_user: "https://api.ragestudio.net/RSA-COMTY/r/find_user?access_token=",
search_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/search?access_token=",
all_sessions: "https://api.ragestudio.net/RSA-COMTY/r/sessions?access_token=",
get_sessions: "https://api.ragestudio.net/RSA-COMTY/r/session_id?access_token=",
auth_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/auth",
new_post: "https://comty.julioworld.club/api/new_post?access_token=",
get_config_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-site-settings?access_token=",
get_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/get-user-data?access_token=",
update_userData_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/update-user-data?access_token=",
removeToken: "https://api.ragestudio.net/RSA-COMTY/r/delete-access-token?access_token=",
register_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/create-account",
resetPassword_endpoint: "https://api.ragestudio.net/RSA-COMTY/r/send-reset-password-email?access_token=",
}
}

View File

@ -0,0 +1,2 @@
export * from './comty_endpoints.js'
export * from './twitter_endpoints.js'

View File

@ -0,0 +1,6 @@
module.exports = {
twitter_endpoints: {
oa_access: "https://api.twitter.com/oauth/access_token",
oa_request: "https://api.twitter.com/oauth/request_token",
}
}

View File

@ -9,7 +9,7 @@ export const comty_get = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.all_sessions, endpoints.comty_endpoints.all_sessions,
formdata formdata
) )
}, },
@ -26,7 +26,7 @@ export const comty_get = {
return callback(err, '0x0000') return callback(err, '0x0000')
} }
}, },
endpoints.get_sessions, endpoints.comty_endpoints.get_sessions,
formdata) formdata)
}, },
session: (callback) => { session: (callback) => {
@ -36,7 +36,7 @@ export const comty_get = {
API_Call((err,res) => { API_Call((err,res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.get_sessions, endpoints.comty_endpoints.get_sessions,
formdata) formdata)
}, },
general_data: (callback, payload) => { general_data: (callback, payload) => {
@ -50,7 +50,7 @@ export const comty_get = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.get_general_data, endpoints.comty_endpoints.get_general_data,
formdata formdata
) )
}, },

View File

@ -26,7 +26,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.get_posts, endpoints.comty_endpoints.get_posts,
formdata formdata
) )
}, },
@ -47,7 +47,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.get_post_data, endpoints.comty_endpoints.get_post_data,
formdata formdata
) )
}, },
@ -68,7 +68,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.new_post, endpoints.comty_endpoints.new_post,
formdata, formdata,
callOptions callOptions
) )
@ -87,7 +87,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },
@ -105,7 +105,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },
@ -123,7 +123,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },
@ -146,7 +146,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.get_posts, endpoints.comty_endpoints.get_posts,
formdata formdata
) )
}, },
@ -166,7 +166,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },
@ -184,7 +184,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },
@ -202,7 +202,7 @@ export const comty_post = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },

View File

@ -15,7 +15,7 @@ export const comty_post_comment = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.comments_actions, endpoints.comty_endpoints.comments_actions,
formdata formdata
) )
}, },
@ -34,7 +34,7 @@ export const comty_post_comment = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.action_post, endpoints.comty_endpoints.action_post,
formdata formdata
) )
}, },

View File

@ -15,7 +15,7 @@ export const comty_search = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.search_endpoint, endpoints.comty_endpoints.search_endpoint,
formdata, formdata,
callOptions callOptions
) )

View File

@ -15,7 +15,7 @@ export const comty_user = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.follow_user, endpoints.comty_endpoints.follow_user,
formdata formdata
) )
}, },
@ -37,7 +37,7 @@ export const comty_user = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.find_user, endpoints.comty_endpoints.find_user,
formdata, formdata,
callOptions callOptions
) )
@ -55,7 +55,7 @@ export const comty_user = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
endpoints.get_user_tags, endpoints.comty_endpoints.get_user_tags,
formdata formdata
) )
}, },

View File

@ -42,7 +42,7 @@ export const __rscloud = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
ycore.endpoints.auth_endpoint, ycore.endpoints.comty_endpoints.auth_endpoint,
formdata, formdata,
callOptions callOptions
) )
@ -53,7 +53,7 @@ export const __rscloud = {
(err, res) => { (err, res) => {
return callback(err, res) return callback(err, res)
}, },
ycore.endpoints.removeToken, ycore.endpoints.comty_endpoints.removeToken,
null, null,
callOptions callOptions
) )
@ -80,7 +80,7 @@ export const __rscloud = {
return callback(true, error) return callback(true, error)
} }
}, },
ycore.endpoints.get_userData_endpoint, ycore.endpoints.comty_endpoints.get_userData_endpoint,
formdata, formdata,
optionCall, optionCall,
user_token user_token

View File

@ -5,7 +5,7 @@
* @licensed Pending... * @licensed Pending...
*/ */
import { Endpoints } from 'globals/endpoints.js' import * as Endpoints from 'globals/endpoints/index.js'
import * as Icons from '@ant-design/icons' import * as Icons from '@ant-design/icons'
import localforage from 'localforage' import localforage from 'localforage'
import { format } from 'timeago.js' import { format } from 'timeago.js'

View File

@ -1,251 +0,0 @@
@import '~themes/index.less';
@LDarkMode-backgroud: rgba(47, 46, 48, 0.74);
@LLightMode-backgroud: #fff;
@LDarkMode-color: #fff;
@LLightMode-color: #2F2E30;
.chatTitle {
font-family: "Poppins", sans-serif;
padding: 0 10px 0 0;
float: right;
display: flex;
h1 {
line-height: 1.2;
margin-right: 5px;
}
svg {
font-size: 20px;
}
}
.something_thats_pulling_me_down {
:global {
text-align: center;
bottom: 0;
position: absolute;
width: 100%;
}
}
.siderhead {
font-family: 'Source Sans Pro', sans-serif;
display: flex;
align-items: center;
justify-content: center;
::first-letter {
margin-left: 7px;
}
height: 60px;
font-size: 17px;
}
.siderwrapper {
border-color: transparent;
font-size: 13px;
font-family: "Poppins", sans-serif;
height: 100%;
width: 100%;
left: 0;
position: absolute;
:global {
.ant-layout-sider-dark {
background-color: @LDarkMode-backgroud;
color: @DarkMode-color;
h2 {
color: @Theme-SiderDeco-Color;
}
.ant-menu-item {
color: @DarkMode-color;
}
.ant-menu-inline,
.ant-menu-vertical,
.ant-menu-vertical-left {
:hover {
background-color: rgb(80, 80, 80);
color: #fff;
}
border-right: 1px solid transparent;
}
}
.ant-layout-sider-light {
background-color: @Theme-SiderDeco-Backgroud;
color: @Theme-SiderDeco-Color;
h2 {
color: @Theme-SiderDeco-Color;
}
.ant-menu-item {
color: @Theme-SiderDeco-Color;
}
.ant-menu-inline,
.ant-menu-vertical,
.ant-menu-vertical-left {
:hover {
background-color: @Theme-Hover-Backgroud;
color: #fff;
}
border-right: 1px solid transparent;
}
}
}
}
.chatsider {
float: right;
background-color: transparent;
border: 1px @LDarkMode-color solid;
height: 100%;
z-index: 50;
:global {
.ant-menu-dark {
background-color: @LDarkMode-backgroud;
color: @LDarkMode-color;
}
.ant-menu-light {
background-color: @LLightMode-backgroud;
color: @LLightMode-color;
}
}
.menuItems {
background-color: transparent;
margin-bottom: 8px;
width: 100%;
animation: fadein 0.5s;
:global {
.ant-menu-item-selected {
background-color: transparent;
}
}
}
.menuItemsCollapsed {
background-color: transparent;
color: @LDarkMode-color;
width: 100%;
animation: fadein 0.5s;
:global {
.ant-menu-item {
padding: 0 !important;
margin: 2px 0 2px 0;
width: 100%;
text-align: center;
font-size: 20px;
}
.ant-menu-item-selected {
background-color: rgba(82, 82, 82, 0.562);
}
}
}
.chatContainer {
height: 100%;
margin: 18px 0 8px 0;
.scrollbar-container {
position: initial;
height: 100%;
}
overflow-x: hidden;
flex: 1;
&::-webkit-scrollbar-thumb {
background-color: transparent;
}
&:hover {
&::-webkit-scrollbar-thumb {
background-color: rgba(59, 59, 59, 0.2);
}
}
:global {
.ant-layout-sider-children {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.ant-layout-sider-collapsed {
.ant-menu-item {
left: 0;
margin: 0;
padding: 0;
}
.ant-menu-inline-collapsed>.ant-menu-item {
padding: 0;
left: 0;
}
}
.scrollbar-container {
position: initial;
height: 100%;
}
.ant-menu-inline .ant-menu-item {
font-size: 14px;
font-family: 'Source Sans Pro', sans-serif;
}
.ant-menu-dark .ant-menu-item a {
color: rgb(197, 197, 197);
}
}
}
}
.scrollbar-container {
position: initial;
height: 100%;
}
@keyframes fadeLeftIn {
0% {
transform: translateX(5px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
.search {
position: relative;
bottom: 0;
width: 100%;
visibility: bottom;
}
.chatbox {
width: 100%;
background: transparent;
border-radius: 6px;
height: 100%;
}

View File

@ -25,9 +25,9 @@
>.container_bg { >.container_bg {
border-radius: @__Global_layout_border-rd; border-radius: @__Global_layout_border-rd;
} }
@media (min-width: 1000px) { //@media (min-width: 1000px) {
width: 95.4% // width: 95.4%
} //}
} }
&.half { &.half {

View File

@ -151,9 +151,9 @@ class PostCreator extends React.PureComponent {
} }
handlePublishPost = e => { handlePublishPost = e => {
const { rawtext, shareWith, file } = this.state const { rawtext, shareWith, file, fileURL} = this.state
if (!rawtext) { if (!rawtext && !fileURL) {
return null return false
} }
this.setState({ this.setState({
posting: true, posting: true,