diff --git a/.DS_Store b/.DS_Store
index 00f97d00..69e88e22 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/packages/comty/src/debuggers/contextmenu.js b/packages/comty/src/debuggers/contextmenu.js
deleted file mode 100644
index 196ca2f4..00000000
--- a/packages/comty/src/debuggers/contextmenu.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import ContextMenu from 'components/Layout/ContextMenu'
-import { connect } from 'umi'
-import * as antd from 'antd'
-import React from 'react'
-
-@connect(({ app }) => ({ app }))
-export default class ContextMenuDebug extends React.Component{
-
- openContext(){
- const list = [
- {
- key: "something",
- title: "test",
- params: {
- onClick: (e) => {
- console.log("yepe", e)
- }
- }
- }
- ]
- ContextMenu({ xPos: 0, yPos: 0, renderList: list })
- }
-
- render(){
- return(
-
- )
- }
-}
\ No newline at end of file
diff --git a/packages/comty/src/debuggers/core.js b/packages/comty/src/debuggers/core.js
deleted file mode 100644
index b3a6da1c..00000000
--- a/packages/comty/src/debuggers/core.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as core from 'core'
-import { connect } from 'umi'
-
-@connect(({ app, extended }) => ({ app, extended }))
-export default class CoreDebug extends React.Component {
- state = {
- rawPluginInitInput: null
- }
- handleInitPlugin(e){
- this.props.dispatch({
- type: "app/initializePlugins",
- payload: {
- array: e
- }
- })
- }
- render(){
- const handleGenerateUUID = () => { console.log(core.generateUUID()) }
- const handleChange = (e) => { this.setState({ rawPluginInitInput: e.target.value }) }
- const module3TestString = "https://api.ragestudio.net/std/moduleTest3.js"
-
- return(
-
-
handleGenerateUUID()} >generate uuid
-
- this.setState({ rawPluginInitInput: module3TestString })}> Set MODULE3 TEST
-
- { this.handleInitPlugin(this.state.rawPluginInitInput) }} > init
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/packages/comty/src/debuggers/internals.js b/packages/comty/src/debuggers/internals.js
deleted file mode 100644
index 40feb57f..00000000
--- a/packages/comty/src/debuggers/internals.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import { connect } from 'umi'
-
-@connect(({ app }) => ({ app }))
-export default class InternalDebug extends React.Component{
- state = {
- internals: window.Internal
- }
-
- handleDispatch(){
- this.props.dispatch({
- type: "app/initializeInternal",
- payload: [
- {
- id: "test",
- payload: () => {
- console.log("Hey i am alivee")
- }
- }
- ]
- })
- }
-
- handleCallTest(){
- if (window.Internal.test != null) {
- window.Internal.test()
- }
- }
-
- render(){
- return(
-
-
- {JSON.stringify(this.state.internals) ?? "No internals to show"}
-
-
-
this.handleDispatch()} > init example
-
this.handleCallTest()} > Call test
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/packages/comty/src/debuggers/redux.js b/packages/comty/src/debuggers/redux.js
deleted file mode 100644
index bce5d5f7..00000000
--- a/packages/comty/src/debuggers/redux.js
+++ /dev/null
@@ -1,109 +0,0 @@
-import React from 'react';
-import { connect } from 'umi';
-import * as antd from 'antd'
-import { Database, Redux, AlertTriangle } from 'components/Icons'
-import { ParamsList } from 'components'
-import { objectToArrayMap } from 'core'
-import store from 'store'
-
-const storeKey = "dbg_redux_selecteKeys"
-class ReduxDebugger extends React.Component {
- constructor(props){
- super(props)
- this.state = {
- selectedKeys: this.storagedKeys.get() ?? []
- }
- }
-
- renderAllStore() {
- return objectToArrayMap(this.props).map(element => {
- return (
-
- {ParamsList(element.value)}
-
- )
- })
- }
-
- storagedKeys = {
- get: () => {
- try {
- const storaged = store.get(storeKey)
- if (typeof(storaged) == "object" && storaged !== null) {
- let mix = []
- storaged.forEach(e => {
- mix[e.key] = e.value
- })
- return mix
- }
- return []
- } catch (error) {
- console.log(error)
- }
- },
- set: (data) => {
- store.set(storeKey, objectToArrayMap(data))
- }
- }
-
- renderCheckboxes() {
- const keys = Object.keys(this.props)
- const onChange = (event, key) => {
- let resultKeys = this.state.selectedKeys
- resultKeys[key] = event.target.checked
-
-
- this.storagedKeys.set(resultKeys)
- this.setState({ selectedKeys: resultKeys })
- }
- return keys.map((e) => {
- return (
- onChange(event, e)}>{e}
- )
- })
- }
- render() {
- const returnSelectedKeys = () => {
- // const getStores = () => {
- // let stores = []
- // objectToArrayMap(this.state.selectedKeys).forEach((e) => {
- // if (this.props[e.key] && e.value) {
- // stores[e.key] = this.props[e.key]
- // }
- // })
- // }
- return objectToArrayMap(this.props).map(e => {
- if (!this.state.selectedKeys[e.key]) {
- return null
- }
- return (
-
-
- {e.key}
-
- }>
- {ParamsList(e.value)}
-
- )
- })
- }
- return (
-
-
-
Redux Store Dangerously experimental debugger
-
{this.renderCheckboxes()}
-
-
-
- {returnSelectedKeys()}
-
-
- )
- }
-}
-
-export default connect((store) => (store))(ReduxDebugger)
\ No newline at end of file
diff --git a/packages/comty/src/debuggers/socket.js b/packages/comty/src/debuggers/socket.js
deleted file mode 100644
index 1a8a7121..00000000
--- a/packages/comty/src/debuggers/socket.js
+++ /dev/null
@@ -1,96 +0,0 @@
-import React from 'react'
-import jwt from 'jsonwebtoken'
-import io from 'socket.io-client'
-import { connect } from 'umi'
-import * as antd from 'antd'
-import { objectToArrayMap } from 'core'
-import settings from 'core/libs/settings'
-
-const defaultSocketAddress = "localhost:7000"
-
-@connect(({ app, socket }) => ({ app, socket }))
-export default class SocketDebug extends React.Component {
- state = {
- InputRaw: defaultSocketAddress
- }
-
- dispatchSocket(value) {
- this.props.dispatch({
- type: `socket/createNodeSocket`,
- payload: {
- address: value
- }
- })
- }
-
- handleDisconnectSocket() {
- const socket = this.props.socket.socket_conn
- if (socket) {
- console.log("closing")
- socket.conn.close()
- }
- }
-
- render() {
- const { socket_opt } = this.props.socket
- return (
-
-
- socket state
- {
- try {
- const v = JSON.stringify(e.value)
- if (!v) return false
- return (
-
-
-
- {v}
-
-
-
- )
- } catch (error) {
- return
- This could not be rendered > ({e.key}) [{typeof(e.value)}]
-
- }
- }}
- />
-
-
-
- {socket_opt ?
-
- socket_opt
- {
- return (
-
-
{e.key}{JSON.stringify(e.value)}
-
- )
- }}
- />
-
- : null}
-
-
- this.dispatchSocket(this.state.InputRaw)} > Connect
- this.handleDisconnectSocket()} > Disconnect
- this.setState({ InputRaw: defaultSocketAddress })} > Set default
- this.setState({ InputRaw: e.target.value })} value={this.state.InputRaw} placeholder="ws:// http:// some.bruh:9090" />
-
-
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/packages/comty/src/debuggers/theme.js b/packages/comty/src/debuggers/theme.js
deleted file mode 100644
index 843fb04c..00000000
--- a/packages/comty/src/debuggers/theme.js
+++ /dev/null
@@ -1,79 +0,0 @@
-import React from 'react'
-import * as antd from 'antd'
-import * as themeLIB from 'core/libs/style'
-
-function getBase64(img, callback) {
- const reader = new FileReader()
- reader.addEventListener('load', () => callback(reader.result))
- reader.readAsDataURL(img)
- }
-
-export default class themedebug extends React.PureComponent {
- state = {
- textColor: {r: '255', g: '255', b: '255'},
- overlayColor: {r: '0', g: '0', b: '0'},
-
- optimal: null,
- file: null,
- fileURL: null,
- }
- ToogleUpload() {
- this.setState({ uploader: !this.state.uploader })
- }
- handleDeleteFile = () => {
- this.setState({ fileURL: null })
- }
- handleFileUpload = info => {
- if (info.file.status === 'uploading') {
- this.setState({ loading: true })
- return
- }
- if (info.file.status === 'done') {
- this.setState({ file: info.file.originFileObj, uploader: false })
- getBase64(info.file.originFileObj, fileURL => {
- this.setState({ fileURL, loading: false })
- })
- }
- }
-
- handleGetOptimal() {
- const optimal = themeLIB.getOptimalOpacityFromIMG({ textColor: this.state.textColor, overlayColor: this.state.overlayColor, img: this.state.fileURL })
- this.setState({ optimal: optimal })
- }
-
- schemeToRGB(values) {
- return `rgb(${values.r}, ${values.g}, ${values.b})`
- }
-
- render(){
-
- return(
-
-
this.handleGetOptimal()}> Get OPACITY
-
-
- Click to Upload
-
-
-
- {JSON.stringify(this.state.file)}
- textColor:{JSON.stringify(this.state.textColor)}
- overlayColor:{JSON.stringify(this.state.overlayColor)}
-
-
-
-
-
-
Sample text
-

-
-
-
-
-
- )
- }
-}
\ No newline at end of file
diff --git a/packages/comty/src/debuggers/verbosity.js b/packages/comty/src/debuggers/verbosity.js
deleted file mode 100644
index d2135f0c..00000000
--- a/packages/comty/src/debuggers/verbosity.js
+++ /dev/null
@@ -1,70 +0,0 @@
-import React from 'react'
-import settings from 'core/libs/settings'
-import { verbosity } from '@nodecorejs/utils'
-import * as antd from 'antd'
-
-const verbosity_enabled = settings('verbosity')
-export default class Verbosity extends React.Component{
- state = {
-
- }
-
- componentDidMount(){
- verbosity("Single text test")
- }
-
- handleSend(){
- const { raw0, raw1, color, type, method, line, file, time } = this.state
- let data = []
- let params = { color, type}
- let stackTraceParams = { line, file, time, method }
-
- if (typeof(raw0) !== "undefined") {
- data[0] = raw0
- }
- if (typeof(raw1) !== "undefined") {
- data[1] = raw1
- }
-
- verbosity(
- data,
- params,
- stackTraceParams
- )
- }
-
- render(){
- const handleRawChange = (e) => {
- const obj = {}
- obj[e.target.id] = e.target.value
- this.setState(obj)
- }
- const handleCheckChange = (e) => {
- const obj = {}
- obj[e.target.id] = e.target.checked
- this.setState(obj)
- }
- return(
-
- verbosity => {verbosity_enabled ? "enabled" : "disabled"}
-
-
-
-
-
this.handleSend()}> send
-
{this.setState({ type: e})}} >
- log
- debug
- error
-
-
handleRawChange(e)} placeholder="color" />
- method
- line
- file
- time
-
-
-
- )
- }
-}
\ No newline at end of file