new scaffolding
38
.debuggers
@ -1,38 +0,0 @@
|
||||
[
|
||||
{
|
||||
"key": "api",
|
||||
"component": "CoreDebug",
|
||||
"title": "API V3 Requester",
|
||||
"icon": "Globe"
|
||||
},
|
||||
{
|
||||
"key": "core",
|
||||
"title": "Core",
|
||||
"icon": "Box"
|
||||
},
|
||||
{
|
||||
"key": "theme",
|
||||
"title": "Theme",
|
||||
"icon": "Image"
|
||||
},
|
||||
{
|
||||
"key": "socket",
|
||||
"title": "Socket",
|
||||
"icon": "Box"
|
||||
},
|
||||
{
|
||||
"key": "contextMenu",
|
||||
"title": "contextMenu",
|
||||
"icon": "Menu"
|
||||
},
|
||||
{
|
||||
"key": "verbosity",
|
||||
"title": "Verbosity",
|
||||
"icon": "Edit3"
|
||||
},
|
||||
{
|
||||
"key": "internals",
|
||||
"title": "Internals",
|
||||
"icon": "Box"
|
||||
}
|
||||
]
|
@ -1,14 +0,0 @@
|
||||
import { Command } from 'components/Icons'
|
||||
export default [
|
||||
{
|
||||
key: "inspect_element",
|
||||
title: "Inspect",
|
||||
icon: <Command />,
|
||||
require: "embedded",
|
||||
params: {
|
||||
onClick: (e) => {
|
||||
window.inspectElement(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
@ -1,5 +0,0 @@
|
||||
module.exports = {
|
||||
github:"https://github.com/srgooglo/comty",
|
||||
trello: "https://trello.com/invite/b/UbwvlG1I/2bc02725b9b210d2e9e9a82c5040b895/comty-development",
|
||||
patreon: "https://www.patreon.com/rstudio",
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
import { Watch, CornerDownRight, Menu, AlignCenter, Terminal } from 'components/Icons'
|
||||
|
||||
export default [
|
||||
{
|
||||
id: 'session_noexpire',
|
||||
icon: <Watch />,
|
||||
type: 'switch',
|
||||
title: 'No expire session',
|
||||
description: 'Force the app to not expire any session... [Developer]',
|
||||
},
|
||||
{
|
||||
id: 'search_ontype',
|
||||
icon: <CornerDownRight />,
|
||||
type: 'switch',
|
||||
title: 'Detect input on search bar',
|
||||
description: 'Force the app to automaticly search when a type input is detected... [Developer]',
|
||||
},
|
||||
{
|
||||
id: 'post_hidebar',
|
||||
icon: <Menu />,
|
||||
type: 'switch',
|
||||
title: 'Auto hide postbar',
|
||||
description: 'Force the app to hide the post actions (likes, comments ...etc) automaticly... [Developer]',
|
||||
},
|
||||
{
|
||||
id: 'post_autoposition',
|
||||
icon: <AlignCenter />,
|
||||
type: 'switch',
|
||||
title: 'Auto center on click',
|
||||
description: '',
|
||||
},
|
||||
{
|
||||
id: 'verbosity',
|
||||
icon: <Terminal />,
|
||||
type: 'switch',
|
||||
title: 'Enable core verbosity',
|
||||
description: 'Show all console logs... [Developer]',
|
||||
}
|
||||
]
|
@ -1,13 +0,0 @@
|
||||
[
|
||||
{"id":"session_noexpire","icon":"Watch","type":"switch","title":"No expire session","description":"Force the app to not expire any session... [Developer]"},
|
||||
{"id":"search_ontype","icon":"CornerDownRight","type":"switch","title":"Detect input on search bar","description":"Force the app to automaticly search when a type input is detected... [Developer]"},
|
||||
{"id":"post_hidebar","icon":"Menu","type":"switch","title":"Auto hide postbar","description":"Force the app to hide the post actions (likes, comments ...etc) automaticly... [Developer]"},
|
||||
{"id":"verbosity","icon":"Terminal","type":"switch","title":"Enable core verbosity","description":"Show all console logs... [Developer]"},
|
||||
{
|
||||
"id":"seponetriste",
|
||||
"icon":"Terminal",
|
||||
"type":"switch",
|
||||
"title":"Mayonesa",
|
||||
"description":"liquiedA?"
|
||||
}
|
||||
]
|
@ -1,110 +0,0 @@
|
||||
import { Home, Compass, Bookmark, MessageSquare, Box, Package, Tv, Tool, Settings, LogIn, LogOut } from 'components/Icons'
|
||||
|
||||
/**
|
||||
* Sidebar Menu scheme
|
||||
*
|
||||
* @param id {string} Used for ( key_filter ) & ( router.push(id) ) [required]
|
||||
* @param icon {any} Render an "icon" component on the list | Default => null
|
||||
* @param title {string} Render an string on the list | Default => null
|
||||
* @param attributes.path {string} Override path for router.push(id)
|
||||
* @param attributes.position {string} Sets render position (Only for desktop mode) | Default => "top"
|
||||
* @param attributes.require {string} Sets an render condition | Default => null
|
||||
* @param attributes.desktop {boolean} Activate render for desktop clients | Default => true
|
||||
* @param attributes.mobile {boolean} Activate render for mobile clients | Default => true
|
||||
*/
|
||||
|
||||
export default [
|
||||
{
|
||||
id: 'main',
|
||||
icon: "Home",
|
||||
title: 'Main',
|
||||
attributes: {
|
||||
require: 'login',
|
||||
desktop: false,
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'explore',
|
||||
title: 'Explore',
|
||||
icon: "Compass",
|
||||
},
|
||||
{
|
||||
id: 'saves',
|
||||
title: 'Saves',
|
||||
icon: "Bookmark",
|
||||
attributes: {
|
||||
require: 'login',
|
||||
mobile: false
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'messages',
|
||||
title: 'Messages',
|
||||
icon: "MessageSquare",
|
||||
attributes: {
|
||||
require: 'login'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'rooms',
|
||||
title: 'Rooms',
|
||||
icon: "Box",
|
||||
attributes: {
|
||||
require: 'login'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'workshop',
|
||||
title: 'Workshop',
|
||||
icon: "Package",
|
||||
attributes: {
|
||||
require: 'login'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'streams',
|
||||
title: 'Streams',
|
||||
icon: "Tv",
|
||||
attributes: {
|
||||
require: 'login'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'debug',
|
||||
title: 'Debug',
|
||||
icon: "Tool",
|
||||
attributes: {
|
||||
position: "bottom",
|
||||
require: "dev"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'settings',
|
||||
title: 'Settings',
|
||||
icon: "Settings",
|
||||
attributes: {
|
||||
position: "bottom"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'logout',
|
||||
title: 'Logout',
|
||||
icon: "LogOut",
|
||||
attributes: {
|
||||
position: "bottom",
|
||||
require: 'login'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'login',
|
||||
title: 'Signin',
|
||||
icon: "LogIn",
|
||||
attributes: {
|
||||
position: "bottom",
|
||||
require: "guest"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
@ -1,100 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id":"main",
|
||||
"icon":"Home",
|
||||
"title":"Main",
|
||||
"attributes": {
|
||||
"require":"login",
|
||||
"desktop":false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"explore",
|
||||
"title":"Explore",
|
||||
"icon":"Compass"
|
||||
},
|
||||
{
|
||||
"id":"saves",
|
||||
"title":"Saves",
|
||||
"icon":"Bookmark",
|
||||
"attributes": {
|
||||
"require":"login",
|
||||
"mobile":false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"messages",
|
||||
"title":"Messages",
|
||||
"icon":"MessageSquare",
|
||||
"attributes": {
|
||||
"require":"login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"rooms",
|
||||
"title":"Rooms",
|
||||
"icon":"Box",
|
||||
"attributes": {
|
||||
"require":"login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"workshop",
|
||||
"title":"Workshop",
|
||||
"icon":"Package",
|
||||
"attributes": {
|
||||
"require":"login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"streams",
|
||||
"title":"Streams",
|
||||
"icon":"Tv",
|
||||
"attributes": {
|
||||
"require":"login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"debug",
|
||||
"title":"Debug",
|
||||
"icon":"Tool",
|
||||
"attributes": {
|
||||
"position":"bottom",
|
||||
"require":"dev"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"settings",
|
||||
"title":"Settings",
|
||||
"icon":"Settings",
|
||||
"attributes": {
|
||||
"position":"bottom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"logout",
|
||||
"title":"Logout",
|
||||
"icon":"LogOut",
|
||||
"iconStyle": {
|
||||
"color": 'red',
|
||||
"marginRight": '10px'
|
||||
},
|
||||
"attributes": {
|
||||
"position":"bottom",
|
||||
"require":"login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"login",
|
||||
"title":"Signin",
|
||||
"icon":"Login",
|
||||
"iconStyle": {
|
||||
"color": "blue",
|
||||
"marginRight": "10px"
|
||||
},
|
||||
"attributes": {
|
||||
"position":"bottom",
|
||||
"require":"guest"
|
||||
}
|
||||
}
|
||||
]
|
@ -1,40 +0,0 @@
|
||||
import { Image, Sidebar, Droplet, FontColorsOutlined, Volume2, Moon } from 'components/Icons'
|
||||
|
||||
export default [
|
||||
{
|
||||
id: 'backgroundImage',
|
||||
icon: <Image />,
|
||||
title: 'Background',
|
||||
description: 'Change the background of the app',
|
||||
},
|
||||
{
|
||||
id: 'overlay',
|
||||
icon: <Sidebar />,
|
||||
title: 'Overlay',
|
||||
description: 'Description blah blah',
|
||||
},
|
||||
{
|
||||
id: 'color',
|
||||
icon: <Droplet />,
|
||||
title: 'Colors',
|
||||
description: 'Texts, Buttons, Sliders ...etc',
|
||||
},
|
||||
{
|
||||
id: 'text',
|
||||
icon: <FontColorsOutlined style={{ marginRight: '10px' }} />,
|
||||
title: 'Text',
|
||||
description: 'Sizes, Fonts',
|
||||
},
|
||||
{
|
||||
id: 'sounds',
|
||||
icon: <Volume2 />,
|
||||
title: 'Sounds',
|
||||
description: 'BlipBlopBLup',
|
||||
},
|
||||
{
|
||||
id: 'darkmode',
|
||||
icon: <Moon />,
|
||||
title: 'Dark Mode',
|
||||
description: 'Yeaah, no more daying',
|
||||
}
|
||||
]
|
@ -1,8 +0,0 @@
|
||||
[
|
||||
{"id":"backgroundImage","icon":"Image","title":"Background","description":"Change the background of the app"},
|
||||
{"id":"overlay","icon":"Sidebar","title":"Overlay","description":"Description blah blah"},
|
||||
{"id":"color","icon":"Droplet","title":"Colors","description":"Texts, Buttons, Sliders ...etc"},
|
||||
{"id":"text","icon":"FontColorsOutlined","title":"Text","description":"Sizes, Fonts"},
|
||||
{"id":"sounds","icon":"Volume2","title":"Sounds","description":"BlipBlopBLup"},
|
||||
{"id":"darkmode","icon":"Moon","title":"Dark Mode","description":"Yeaah, no more daying"}
|
||||
]
|
84996
package-lock.json
generated
0
electron-builder.yml → packages/comty-electron/electron-builder.yml
Executable file → Normal file
0
main/configs/config.js → packages/comty-electron/main/configs/config.js
Executable file → Normal file
0
main/icon.png → packages/comty-electron/main/icon.png
Executable file → Normal file
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
4
main/index.js → packages/comty-electron/main/index.js
Executable file → Normal file
@ -17,11 +17,11 @@ const path = require('path')
|
||||
// const { spawn, exec } = require('child_process')
|
||||
// const { autoUpdater } = require('electron-updater')
|
||||
const log = require('electron-log');
|
||||
const packagejson = require('../package.json')
|
||||
const packagejson = require('../../../package.json')
|
||||
const is = require('electron-is')
|
||||
const waitOn = require('wait-on');
|
||||
const { getDoNotDisturb } = require('electron-notification-state');
|
||||
const RuntimeConfig = require("../config");
|
||||
const RuntimeConfig = require("../../comty/config");
|
||||
|
||||
let app_path = is.dev()? "localhost:8000" : `file://${path.join(__dirname, '..', 'renderer')}/index.html`;
|
||||
let mainWindow;
|
0
main/statics/loading.css → packages/comty-electron/main/statics/loading.css
Executable file → Normal file
0
main/statics/loading.html → packages/comty-electron/main/statics/loading.html
Executable file → Normal file
0
main/statics/loading_dev.html → packages/comty-electron/main/statics/loading_dev.html
Executable file → Normal file
0
.umirc.js → packages/comty/.umirc.js
Executable file → Normal file
0
config/app_keys.js → packages/comty/config/app_keys.js
Executable file → Normal file
0
config/endpoints.js → packages/comty/config/endpoints.js
Executable file → Normal file
0
config/handlers/errToFlag.js → packages/comty/config/handlers/errToFlag.js
Executable file → Normal file
0
config/handlers/errToStrings.js → packages/comty/config/handlers/errToStrings.js
Executable file → Normal file
0
config/handlers/flagToBehavior.js → packages/comty/config/handlers/flagToBehavior.js
Executable file → Normal file
0
config/handlers/numToError.js → packages/comty/config/handlers/numToError.js
Executable file → Normal file
3
config/index.js → packages/comty/config/index.js
Executable file → Normal file
@ -1,7 +1,4 @@
|
||||
module.exports = {
|
||||
runtime: {
|
||||
mountElementId: "root"
|
||||
},
|
||||
app: {
|
||||
guid: "7d6b74b5-1b3b-432f-97df-2c5fc2c2b6ae",
|
||||
siteName: 'Comty™',
|
0
globals/badges_list.json → packages/comty/globals/badges_list.json
Executable file → Normal file
11
packages/comty/globals/contextMenu.json
Normal file
@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"key": "inspect_element",
|
||||
"title": "Inspect",
|
||||
"icon": "Command",
|
||||
"require": "embedded",
|
||||
"params": {
|
||||
"onClick": false
|
||||
}
|
||||
}
|
||||
]
|
0
globals/links.json → packages/comty/globals/links.json
Executable file → Normal file
0
globals/post_options.json → packages/comty/globals/post_options.json
Executable file → Normal file
37
packages/comty/globals/settings.json
Normal file
@ -0,0 +1,37 @@
|
||||
[
|
||||
{
|
||||
"id": "session_noexpire",
|
||||
"icon": "Watch",
|
||||
"type": "switch",
|
||||
"title": "No expire session",
|
||||
"description": "Force the app to not expire any session... [Developer]"
|
||||
},
|
||||
{
|
||||
"id": "search_ontype",
|
||||
"icon": "CornerDownRight",
|
||||
"type": "switch",
|
||||
"title": "Detect input on search bar",
|
||||
"description": "Force the app to automaticly search when a type input is detected... [Developer]"
|
||||
},
|
||||
{
|
||||
"id": "post_hidebar",
|
||||
"icon": "Menu",
|
||||
"type": "switch",
|
||||
"title": "Auto hide postbar",
|
||||
"description": "Force the app to hide the post actions (likes, comments ...etc) automaticly... [Developer]"
|
||||
},
|
||||
{
|
||||
"id": "post_autoposition",
|
||||
"icon": "AlignCenter",
|
||||
"type": "switch",
|
||||
"title": "Auto center on click",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": "verbosity",
|
||||
"icon": "Terminal",
|
||||
"type": "switch",
|
||||
"title": "Enable core verbosity",
|
||||
"description": "Show all console logs... [Developer]"
|
||||
}
|
||||
]
|
92
packages/comty/globals/sidebar_menu.json
Normal file
@ -0,0 +1,92 @@
|
||||
[
|
||||
{
|
||||
"id": "main",
|
||||
"icon": "Home",
|
||||
"title": "Main",
|
||||
"attributes": {
|
||||
"require": "login",
|
||||
"desktop": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "explore",
|
||||
"title": "Explore",
|
||||
"icon": "Compass"
|
||||
},
|
||||
{
|
||||
"id": "saves",
|
||||
"title": "Saves",
|
||||
"icon": "Bookmark",
|
||||
"attributes": {
|
||||
"require": "login",
|
||||
"mobile": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "messages",
|
||||
"title": "Messages",
|
||||
"icon": "MessageSquare",
|
||||
"attributes": {
|
||||
"require": "login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "rooms",
|
||||
"title": "Rooms",
|
||||
"icon": "Box",
|
||||
"attributes": {
|
||||
"require": "login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "workshop",
|
||||
"title": "Workshop",
|
||||
"icon": "Package",
|
||||
"attributes": {
|
||||
"require": "login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "streams",
|
||||
"title": "Streams",
|
||||
"icon": "Tv",
|
||||
"attributes": {
|
||||
"require": "login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "debug",
|
||||
"title": "Debug",
|
||||
"icon": "Tool",
|
||||
"attributes": {
|
||||
"position": "bottom",
|
||||
"require": "dev"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "settings",
|
||||
"title": "Settings",
|
||||
"icon": "Settings",
|
||||
"attributes": {
|
||||
"position": "bottom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "logout",
|
||||
"title": "Logout",
|
||||
"icon": "LogOut",
|
||||
"attributes": {
|
||||
"position": "bottom",
|
||||
"require": "login"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "login",
|
||||
"title": "Signin",
|
||||
"icon": "LogIn",
|
||||
"attributes": {
|
||||
"position": "bottom",
|
||||
"require": "guest"
|
||||
}
|
||||
}
|
||||
]
|
38
packages/comty/globals/theme_settings.json
Normal file
@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"id": "backgroundImage",
|
||||
"icon": "Image",
|
||||
"title": "Background",
|
||||
"description": "Change the background of the app"
|
||||
},
|
||||
{
|
||||
"id": "overlay",
|
||||
"icon": "Sidebar",
|
||||
"title": "Overlay",
|
||||
"description": "Description blah blah"
|
||||
},
|
||||
{
|
||||
"id": "color",
|
||||
"icon": "Droplet",
|
||||
"title": "Colors",
|
||||
"description": "Texts, Buttons, Sliders ...etc"
|
||||
},
|
||||
{
|
||||
"id": "text",
|
||||
"icon": "FontColorsOutlined",
|
||||
"title": "Text",
|
||||
"description": "Sizes, Fonts"
|
||||
},
|
||||
{
|
||||
"id": "sounds",
|
||||
"icon": "Volume2",
|
||||
"title": "Sounds",
|
||||
"description": "BlipBlopBLup"
|
||||
},
|
||||
{
|
||||
"id": "darkmode",
|
||||
"icon": "Moon",
|
||||
"title": "Dark Mode",
|
||||
"description": "Yeaah, no more daying"
|
||||
}
|
||||
]
|
0
jest.config.js → packages/comty/jest.config.js
Executable file → Normal file
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "comty",
|
||||
"UUID": "C8mVSr-4nmPp2-pr5Vrz-CU4kg4",
|
||||
"version": "0.11.22",
|
||||
"version": "0.12.8",
|
||||
"stage": "alpha",
|
||||
"description": "An prototype of a social network",
|
||||
"author": "RageStudio",
|
0
plugins/index.js → packages/comty/plugins/index.js
Executable file → Normal file
0
public/dark_full_logo.svg → packages/comty/public/dark_full_logo.svg
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
0
public/dark_logo.svg → packages/comty/public/dark_logo.svg
Executable file → Normal file
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
0
public/favicon.ico → packages/comty/public/favicon.ico
Executable file → Normal file
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
public/favicon.png → packages/comty/public/favicon.png
Executable file → Normal file
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
0
public/full_logo.svg → packages/comty/public/full_logo.svg
Executable file → Normal file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
0
public/logo.svg → packages/comty/public/logo.svg
Executable file → Normal file
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |