mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
update: some meh
This commit is contained in:
parent
6923ce90c9
commit
fb7a3a8b6a
2
.gitignore
vendored
2
.gitignore
vendored
@ -22,4 +22,4 @@ package-lock.json
|
||||
src/locales/_build
|
||||
src/locales/**/*.js
|
||||
android/
|
||||
direct
|
||||
auxCord
|
@ -1,4 +1,6 @@
|
||||
module.exports = {
|
||||
spotify_client: '609f59064dfd470c8c2abffbd9044843',
|
||||
spotify_secret: 'b7efd276bf2e41039dedb2a514f35951',
|
||||
unsplash_key: "slrHmuo9FEJajV4xvWl38TUhbib6BhhGI4VIZ1-cqnw",
|
||||
unsplash_secret: "dh3UlgLTdunO7a_l_iKjotXbz0xB7w5EuDIBU8Pa8pA",
|
||||
g_recaptcha_key: '6Lc55uUUAAAAAEIACMVf3BUzAJSNCmI3RrjEirZ6',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as Icons from '@ant-design/icons'
|
||||
import * as Icons from 'components/Icons'
|
||||
|
||||
export var BadgesType = [
|
||||
{
|
||||
@ -30,7 +30,7 @@ export var BadgesType = [
|
||||
title: 'DEVELOPER',
|
||||
color: 'default',
|
||||
require: 'dev',
|
||||
icon: (<Icons.RocketOutlined />),
|
||||
icon: (<Icons.GitBranch style={{marginRight: 'unset', verticalAlign: "-0.125em"}} />), //
|
||||
tip: 'DEVELOPER',
|
||||
},
|
||||
{
|
||||
@ -46,7 +46,15 @@ export var BadgesType = [
|
||||
title: 'Pro Chikito',
|
||||
color: '#a0d911',
|
||||
require: '',
|
||||
icon: (<Icons.AndroidOutlined />),
|
||||
icon: ("🐱🐉🧜♀️"),
|
||||
tip: 'Chikito',
|
||||
},
|
||||
{
|
||||
id: 'patreon',
|
||||
title: 'Patreon Member',
|
||||
color: '',
|
||||
require: '',
|
||||
icon: (<Icons.Patreon />),
|
||||
tip: 'Nigas',
|
||||
}
|
||||
]
|
||||
|
62
src/components/MediaPlayer/post_player.js
Normal file
62
src/components/MediaPlayer/post_player.js
Normal file
@ -0,0 +1,62 @@
|
||||
export class PostPlayer extends React.PureComponent {
|
||||
player() {
|
||||
const { file } = this.props
|
||||
let type
|
||||
|
||||
const ImageExtensions = ['.png', '.jpg', '.jpeg', '.gif']
|
||||
const VideoExtensions = ['.mp4', '.mov', '.avi']
|
||||
const AudioExtensions = ['.mp3', '.ogg', '.wav']
|
||||
|
||||
const FilesAllowed = ImageExtensions.concat(
|
||||
VideoExtensions,
|
||||
AudioExtensions
|
||||
)
|
||||
|
||||
for (const prop in FilesAllowed) {
|
||||
if (file.includes(`${ImageExtensions[prop]}`)) {
|
||||
type = 'image'
|
||||
}
|
||||
if (file.includes(`${VideoExtensions[prop]}`)) {
|
||||
type = 'video'
|
||||
}
|
||||
if (file.includes(`${AudioExtensions[prop]}`)) {
|
||||
type = 'audio'
|
||||
}
|
||||
}
|
||||
|
||||
if (type == 'video') {
|
||||
// const payload = {type: 'video', sources: [{src: file,}]}
|
||||
// return (
|
||||
// <PlyrComponent styles={{ width: '100%' }} sources={payload} />
|
||||
// )
|
||||
return (
|
||||
<video id="player" playsInline controls>
|
||||
<source src={file} />
|
||||
</video>
|
||||
)
|
||||
}
|
||||
if (type == 'audio') {
|
||||
return (
|
||||
<audio id="player" controls>
|
||||
<source src={file} />
|
||||
</audio>
|
||||
)
|
||||
}
|
||||
if (type == 'image') {
|
||||
return <img src={file} />
|
||||
}
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<div
|
||||
className={classnames(styles.PlayerContainer, {
|
||||
[styles.mobile]: this.props.isMobile,
|
||||
[styles.entire]: this.props.entire,
|
||||
})}
|
||||
>
|
||||
{this.player()}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
3
src/components/Players/index.js
Normal file
3
src/components/Players/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import Spotify_player from './spotify_player.js'
|
||||
|
||||
export default { Spotify_player }
|
38
src/components/Players/spotify_player.js
Normal file
38
src/components/Players/spotify_player.js
Normal file
@ -0,0 +1,38 @@
|
||||
import React from 'react'
|
||||
import * as antd from 'antd'
|
||||
import * as Icons from 'components/Icons'
|
||||
import * as app from 'app'
|
||||
import styles from './spotify_player.less'
|
||||
|
||||
export default class Spotify_player extends React.PureComponent{
|
||||
|
||||
state = {
|
||||
room_id: null,
|
||||
niga: false,
|
||||
styleMariaguno: { color: "green" },
|
||||
styleJoto: { color: "blue" }
|
||||
|
||||
}
|
||||
|
||||
componentDidMount(){
|
||||
const { room_id } = this.props
|
||||
if (room_id) { this.setState({ room_id: room_id })}
|
||||
|
||||
}
|
||||
|
||||
render(){
|
||||
const { niga, styleMariaguno, styleJoto } = this.state
|
||||
|
||||
const toogleMariaguana = () => {
|
||||
this.setState({ niga: !niga })
|
||||
|
||||
}
|
||||
|
||||
return(
|
||||
<div>
|
||||
<h3 style={ niga? styleMariaguno : styleJoto } >Seccion id: {this.state.room_id}</h3>
|
||||
<antd.Button onClick={() => toogleMariaguana()} > Mariguano MODO </antd.Button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
0
src/components/Players/spotify_player.less
Normal file
0
src/components/Players/spotify_player.less
Normal file
@ -146,16 +146,10 @@ class PostCard extends React.PureComponent {
|
||||
},
|
||||
}
|
||||
const actions = [
|
||||
<div>
|
||||
<Like_button
|
||||
count={post_likes}
|
||||
id={id}
|
||||
liked={app.booleanFix(is_liked) ? true : false}
|
||||
key="like"
|
||||
/>
|
||||
</div>,
|
||||
<Like_button key="like" count={post_likes} id={id} liked={app.booleanFix(is_liked) ? true : false} />,
|
||||
<Icons.Share2 />,
|
||||
<antd.Badge dot={post_comments > 0 ? true : false}>
|
||||
<MICON.InsertComment key="comments" onClick={() => SwapThisPost()} />
|
||||
<Icons.MessageSquare key="comments" onClick={() => SwapThisPost()} />
|
||||
</antd.Badge>,
|
||||
]
|
||||
|
||||
|
@ -107,6 +107,7 @@
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#feather_icon{ margin-right: unset!important; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// @alias from 'components'
|
||||
|
||||
// Helpers & Misc
|
||||
import Players from './Players'
|
||||
export * as Icons from './Icons'
|
||||
import Loader from './Loader/Loader.js'
|
||||
import App_about from './App_about'
|
||||
@ -25,6 +26,7 @@ import PostCreator from './PostCreator'
|
||||
// Mix & Export all
|
||||
export {
|
||||
Feather,
|
||||
Players,
|
||||
App_about,
|
||||
MediaPlayer,
|
||||
UserBadges,
|
||||
|
47
src/pages/debug/spotify.js
Normal file
47
src/pages/debug/spotify.js
Normal file
@ -0,0 +1,47 @@
|
||||
import React from 'react'
|
||||
import * as antd from 'antd'
|
||||
import { Players } from 'components'
|
||||
import * as Icons from 'components/Icons'
|
||||
import * as app from 'app'
|
||||
|
||||
export default class Spotify extends React.PureComponent{
|
||||
constructor(props){
|
||||
super(props)
|
||||
this.state = {
|
||||
active: false,
|
||||
tmp_id: null,
|
||||
room_id: null
|
||||
}
|
||||
}
|
||||
|
||||
handleJoinRoom(id){
|
||||
this.setState({ room_id: id, active: true })
|
||||
|
||||
}
|
||||
|
||||
handleCreateRoom(){
|
||||
|
||||
}
|
||||
|
||||
render(){
|
||||
const { active, room_id } = this.state
|
||||
const handleSesID = (e) => { this.setState({ tmp_id: e.target.value }) }
|
||||
const joinRoom = () => {
|
||||
this.handleJoinRoom(this.state.tmp_id)
|
||||
}
|
||||
const createRoom = e => {
|
||||
|
||||
}
|
||||
|
||||
if (active && room_id) return <Players.Spotify_player room_id={ this.state.room_id }/>
|
||||
return(
|
||||
<>
|
||||
<h1>Spotifyfy Debug NIgaa 1200% 140p download PUNJABI 🐷🐷🐷🐷 halal verifedº</h1><hr/>
|
||||
<div>
|
||||
Join <antd.Input placeholder="Mete el codigo, maricon" onChange={handleSesID} />
|
||||
<antd.Button type="primary" onClick={()=> joinRoom()} > Join </antd.Button>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
0
src/pages/debug/youtube_sync.js
Normal file
0
src/pages/debug/youtube_sync.js
Normal file
Loading…
x
Reference in New Issue
Block a user