new scaffolding

This commit is contained in:
srgooglo 2020-12-14 19:48:49 +01:00
parent ee640f7905
commit b61b7e1893
434 changed files with 1299 additions and 85372 deletions

View File

@ -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"
}
]

View File

View File

@ -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)
}
}
}
]

View File

@ -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",
}

View File

@ -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]',
}
]

View File

@ -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?"
}
]

View File

@ -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"
}
}
]

View File

@ -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"
}
}
]

View File

@ -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',
}
]

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -17,11 +17,11 @@ const path = require('path')
// const { spawn, exec } = require('child_process') // const { spawn, exec } = require('child_process')
// const { autoUpdater } = require('electron-updater') // const { autoUpdater } = require('electron-updater')
const log = require('electron-log'); const log = require('electron-log');
const packagejson = require('../package.json') const packagejson = require('../../../package.json')
const is = require('electron-is') const is = require('electron-is')
const waitOn = require('wait-on'); const waitOn = require('wait-on');
const { getDoNotDisturb } = require('electron-notification-state'); 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 app_path = is.dev()? "localhost:8000" : `file://${path.join(__dirname, '..', 'renderer')}/index.html`;
let mainWindow; let mainWindow;

0
.umirc.js → packages/comty/.umirc.js Executable file → Normal file
View File

View File

View File

3
config/index.js → packages/comty/config/index.js Executable file → Normal file
View File

@ -1,7 +1,4 @@
module.exports = { module.exports = {
runtime: {
mountElementId: "root"
},
app: { app: {
guid: "7d6b74b5-1b3b-432f-97df-2c5fc2c2b6ae", guid: "7d6b74b5-1b3b-432f-97df-2c5fc2c2b6ae",
siteName: 'Comty™', siteName: 'Comty™',

View File

View File

@ -0,0 +1,11 @@
[
{
"key": "inspect_element",
"title": "Inspect",
"icon": "Command",
"require": "embedded",
"params": {
"onClick": false
}
}
]

View File

View File

View 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]"
}
]

View 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"
}
}
]

View 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
View File

View File

@ -1,7 +1,7 @@
{ {
"name": "comty", "name": "comty",
"UUID": "C8mVSr-4nmPp2-pr5Vrz-CU4kg4", "UUID": "C8mVSr-4nmPp2-pr5Vrz-CU4kg4",
"version": "0.11.22", "version": "0.12.8",
"stage": "alpha", "stage": "alpha",
"description": "An prototype of a social network", "description": "An prototype of a social network",
"author": "RageStudio", "author": "RageStudio",

0
plugins/index.js → packages/comty/plugins/index.js Executable file → Normal file
View File

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View 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
View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Some files were not shown because too many files have changed in this diff Show More