refactor: integrate persea

This commit is contained in:
cha0s 2022-04-02 07:28:21 -05:00
parent 7416cec896
commit f3993b82ee
149 changed files with 119 additions and 1511 deletions

View File

@ -1,116 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,40 +0,0 @@
{
"name": "@avocado/behavior-persea",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://git.hq.cha0s.io/cha0s/avocado.git",
"directory": "packages/behavior-persea"
},
"main": "index.js",
"scripts": {
"build": "flecks build",
"clean": "flecks clean",
"lint": "flecks lint",
"postversion": "cp package.json dist",
"test": "flecks test"
},
"files": [
"build",
"index.css",
"index.css.map",
"index.js",
"index.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/math": "^3.0.0",
"@avocado/react": "^3.0.0",
"@avocado/resource-persea": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/redux": "^1.4.1",
"natsort": "^2.0.2"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"
}
}

View File

@ -1,5 +0,0 @@
import {expect} from 'chai';
it('exists', () => {
expect(true).to.be.true;
});

View File

@ -20,6 +20,10 @@
"build",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",
"test",
"test.js",
@ -27,14 +31,19 @@
],
"dependencies": {
"@avocado/core": "^3.0.0",
"@avocado/math": "^3.0.0",
"@avocado/react": "^3.0.0",
"@avocado/resource": "^3.0.0",
"@avocado/traits": "^3.0.0",
"@babel/parser": "^7.13.13",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/redux": "^1.4.1",
"babeler": "^1.0.0",
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",
"lru-cache": "^6.0.0"
"lru-cache": "^6.0.0",
"natsort": "^2.0.2"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"

View File

@ -1,5 +1,5 @@
import {Code} from '@avocado/react';
import {Context, replaceResource} from '@avocado/resource-persea';
import {Context, replaceResource} from '@avocado/resource/persea';
import {
PropTypes,
React,

View File

@ -1,4 +1,4 @@
import {TextController} from '@avocado/resource-persea';
import {TextController} from '@avocado/resource/persea';
import Component from './component';

View File

@ -8,10 +8,10 @@ export {
export default {
[Hooks]: {
'@avocado/resource-persea.controllers': () => [
'@avocado/resource/persea.controllers': () => [
ScriptController,
],
'@avocado/traits-persea.components': Flecks.provide(
'@avocado/traits/persea.components': Flecks.provide(
require.context('./traits', false, /\.jsx$/),
{invoke: false},
),

View File

@ -2,7 +2,7 @@ import './behaved.scss';
import {join} from 'path';
import {JsonTabs, useJsonPatcher} from '@avocado/resource-persea';
import {JsonTabs, useJsonPatcher} from '@avocado/resource/persea';
import {
hot,
PropTypes,

View File

@ -1,116 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,41 +0,0 @@
{
"name": "@avocado/entity-persea",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://git.hq.cha0s.io/cha0s/avocado.git",
"directory": "packages/entity-persea"
},
"main": "index.js",
"scripts": {
"build": "flecks build",
"clean": "flecks clean",
"lint": "flecks lint",
"postversion": "cp package.json dist",
"test": "flecks test"
},
"files": [
"build",
"index.css",
"index.css.map",
"index.js",
"index.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/graphics": "^3.0.0",
"@avocado/math": "^3.0.0",
"@avocado/react": "^3.0.0",
"@avocado/resource-persea": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"lodash.difference": "^4.5.0",
"react-autosuggest": "^10.1.0"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"
}
}

View File

@ -1,5 +0,0 @@
import {expect} from 'chai';
it('exists', () => {
expect(true).to.be.true;
});

View File

@ -1,8 +1,3 @@
'@avocado/entity:./src': {}
'@avocado/graphics': {}
'@avocado/resource': {}
'@avocado/traits': {}
'@flecks/core': {}
'@flecks/fleck': {}
'@flecks/react': {}
'@flecks/socket': {}

View File

@ -20,6 +20,10 @@
"build",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",
"test",
"test.js",
@ -31,15 +35,19 @@
"@avocado/core": "^3.0.0",
"@avocado/graphics": "^3.0.0",
"@avocado/math": "^3.0.0",
"@avocado/react": "^3.0.0",
"@avocado/resource": "^3.0.0",
"@avocado/s13n": "^3.0.0",
"@avocado/timing": "^3.0.0",
"@avocado/traits": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/socket": "^1.4.1",
"debug": "4.3.1",
"deepmerge": "^4.2.2",
"lodash.without": "^4.4.0"
"lodash.difference": "^4.5.0",
"lodash.without": "^4.4.0",
"react-autosuggest": "^10.1.0"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"

View File

@ -1,4 +1,4 @@
import {JsonController} from '@avocado/resource-persea';
import {JsonController} from '@avocado/resource/persea';
export default (buffer, flecks) => {
const {Entity} = flecks.get('$avocado/resource.resources');

View File

@ -1,4 +1,4 @@
import {JsonController} from '@avocado/resource-persea';
import {JsonController} from '@avocado/resource/persea';
export default (resource, flecks) => {
const {Entity} = flecks.get('$avocado/resource.resources');

View File

@ -9,7 +9,7 @@ import {
TabList,
TabPanel,
} from '@avocado/react';
import {JsonController, useJsonPatcher} from '@avocado/resource-persea';
import {JsonController, useJsonPatcher} from '@avocado/resource/persea';
import {
PropTypes,
React,
@ -67,7 +67,7 @@ const Traits = ({
.map(([, {type}]) => type),
types,
);
const Components = flecks.get('$avocado/traits-persea.components');
const Components = flecks.get('$avocado/traits/persea.components');
const tabPanels = types.map((type) => {
const Component = Components[type] || JsonTraitComponent;
return (

View File

@ -8,10 +8,10 @@ export {
export default {
[Hooks]: {
'@avocado/resource-persea.controllers': () => [
'@avocado/resource/persea.controllers': () => [
EntityController,
],
'@avocado/traits-persea.components': Flecks.provide(
'@avocado/traits/persea.components': Flecks.provide(
require.context('./traits', false, /\.jsx$/),
{invoke: false},
),

View File

@ -7,7 +7,7 @@ import {
PropTypes,
React,
} from '@flecks/react';
import {useJsonPatcher} from '@avocado/resource-persea';
import {useJsonPatcher} from '@avocado/resource/persea';
const Alive = ({
json,

View File

@ -8,7 +8,7 @@ import {
PropTypes,
React,
} from '@flecks/react';
import {useJsonPatcher} from '@avocado/resource-persea';
import {useJsonPatcher} from '@avocado/resource/persea';
const Directional = ({json, path}) => {
const patch = useJsonPatcher();

View File

@ -1,116 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,36 +0,0 @@
{
"name": "@avocado/graphics-persea",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://git.hq.cha0s.io/cha0s/avocado.git",
"directory": "packages/graphics-persea"
},
"main": "index.js",
"scripts": {
"build": "flecks build",
"clean": "flecks clean",
"lint": "flecks lint",
"postversion": "cp package.json dist",
"test": "flecks test"
},
"files": [
"build",
"index.css",
"index.css.map",
"index.js",
"index.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/resource-persea": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"
}
}

View File

@ -1,5 +0,0 @@
import {expect} from 'chai';
it('exists', () => {
expect(true).to.be.true;
});

View File

@ -22,6 +22,10 @@
"index.css.map",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",
"test",
"test.js",
@ -34,6 +38,7 @@
"@avocado/resource": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/web": "^1.4.1",
"@pixi/constants": "^5.3.9",
"@pixi/core": "^5.3.9",
"@pixi/display": "^5.3.9",

View File

@ -1,4 +1,4 @@
import {BinaryController} from '@avocado/resource-persea';
import {BinaryController} from '@avocado/resource/persea';
import './component.scss';

View File

@ -1,4 +1,4 @@
import {BinaryController} from '@avocado/resource-persea';
import {BinaryController} from '@avocado/resource/persea';
import Component from './component';

View File

@ -8,7 +8,7 @@ export {
export default {
[Hooks]: {
'@avocado/resource-persea.controllers': () => [
'@avocado/resource/persea.controllers': () => [
ImageController,
],
},

View File

@ -20,6 +20,8 @@
"build",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",

View File

@ -1,116 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,41 +0,0 @@
{
"name": "@avocado/physics-persea",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://git.hq.cha0s.io/cha0s/avocado.git",
"directory": "packages/physics-persea"
},
"main": "index.js",
"scripts": {
"build": "flecks build",
"clean": "flecks clean",
"lint": "flecks lint",
"postversion": "cp package.json dist",
"test": "flecks test"
},
"files": [
"build",
"index.css",
"index.css.map",
"index.js",
"index.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/entity": "^3.0.0",
"@avocado/entity-persea": "^3.0.0",
"@avocado/graphics": "^3.0.0",
"@avocado/math": "^3.0.0",
"@avocado/react": "^3.0.0",
"@avocado/resource-persea": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"
}
}

View File

@ -1,5 +0,0 @@
import {expect} from 'chai';
it('exists', () => {
expect(true).to.be.true;
});

View File

@ -20,6 +20,10 @@
"build",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",
"test",
"test.js",
@ -27,11 +31,15 @@
],
"dependencies": {
"@avocado/core": "^3.0.0",
"@avocado/entity": "^3.0.0",
"@avocado/graphics": "^3.0.0",
"@avocado/math": "^3.0.0",
"@avocado/react": "^3.0.0",
"@avocado/resource": "^3.0.0",
"@avocado/timing": "^3.0.0",
"@avocado/traits": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/socket": "^1.4.1",
"deepmerge": "^4.2.2",
"immutable": "^4.0.0-rc.12",

View File

@ -2,7 +2,7 @@ import {Flecks, Hooks} from '@flecks/core';
export default {
[Hooks]: {
'@avocado/traits-persea.components': Flecks.provide(
'@avocado/traits/persea.components': Flecks.provide(
require.context('./traits', false, /\.jsx$/),
{invoke: false},
),

View File

@ -1,7 +1,7 @@
import {join} from 'path';
import {Code, Json} from '@avocado/react';
import {useJsonPatcher} from '@avocado/resource-persea';
import {useJsonPatcher} from '@avocado/resource/persea';
import {
hot,
PropTypes,

View File

@ -3,7 +3,7 @@ import './emitted.scss';
import {join} from 'path';
import {Number} from '@avocado/react';
import {useJsonPatcher} from '@avocado/resource-persea';
import {useJsonPatcher} from '@avocado/resource/persea';
import {
Range,
rangePropType,

View File

@ -1,6 +1,6 @@
import {join} from 'path';
import {JsonTabs} from '@avocado/resource-persea';
import {JsonTabs} from '@avocado/resource/persea';
import {
hot,
memo,

View File

@ -3,10 +3,10 @@ import './particle.scss';
import {join} from 'path';
import {EntityListView} from '@avocado/entity';
import {EntityController} from '@avocado/entity-persea';
import {EntityController} from '@avocado/entity/persea';
import {Stage} from '@avocado/graphics';
import {Number} from '@avocado/react';
import {useJsonPatcher} from '@avocado/resource-persea';
import {useJsonPatcher} from '@avocado/resource/persea';
import {
PropTypes,
React,

View File

@ -1,116 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,41 +0,0 @@
{
"name": "@avocado/resource-persea",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://git.hq.cha0s.io/cha0s/avocado.git",
"directory": "packages/resource-persea"
},
"main": "index.js",
"scripts": {
"build": "flecks build",
"clean": "flecks clean",
"lint": "flecks lint",
"postversion": "cp package.json dist",
"test": "flecks test"
},
"files": [
"build",
"index.css",
"index.css.map",
"index.js",
"index.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/react": "^3.0.0",
"@avocado/resource": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/redux": "^1.4.1",
"fast-json-patch": "^3.0.0-1",
"react-hex-editor": "^0.3.0",
"styled-components": "^5.2.1"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"
}
}

View File

@ -1,5 +0,0 @@
import {expect} from 'chai';
it('exists', () => {
expect(true).to.be.true;
});

View File

@ -20,6 +20,10 @@
"build",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",
"test",
"test.js",
@ -28,9 +32,15 @@
],
"dependencies": {
"@avocado/core": "^3.0.0",
"@avocado/react": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/redux": "^1.4.1",
"deepmerge": "^4.2.2",
"lru-cache": "^6.0.0"
"fast-json-patch": "^3.0.0-1",
"lru-cache": "^6.0.0",
"react-hex-editor": "^0.3.0",
"styled-components": "^5.2.1"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"

View File

@ -6,7 +6,7 @@ import {
TabList,
TabPanel,
} from '@avocado/react';
import useJsonPatcher from '@avocado/resource-persea/hooks/use-json-patcher';
import useJsonPatcher from '@avocado/resource/persea/hooks/use-json-patcher';
import {
PropTypes,
React,

View File

@ -1,4 +1,4 @@
import useResourceController from '@avocado/resource-persea/hooks/use-resource-controller';
import useResourceController from '@avocado/resource/persea/hooks/use-resource-controller';
import {
PropTypes,
React,

View File

@ -1,6 +1,6 @@
import './component.scss';
import {controller as controllerPropTypes} from '@avocado/resource-persea/prop-types';
import {controller as controllerPropTypes} from '@avocado/resource/persea/prop-types';
import {React} from '@flecks/react';
import HexEditor from 'react-hex-editor';
import oneDarkPro from 'react-hex-editor/themes/oneDarkPro';

View File

@ -3,8 +3,8 @@ import './component.scss';
import {join} from 'path';
import {Json as JsonComponent} from '@avocado/react';
import useJsonPatcher from '@avocado/resource-persea/hooks/use-json-patcher';
import {controller as controllerPropTypes} from '@avocado/resource-persea/prop-types';
import useJsonPatcher from '@avocado/resource/persea/hooks/use-json-patcher';
import {controller as controllerPropTypes} from '@avocado/resource/persea/prop-types';
import {React} from '@flecks/react';
import {compare} from 'fast-json-patch';

View File

@ -2,6 +2,6 @@ import {useFlecks} from '@flecks/react';
export default (uri) => (
useFlecks()
.get('$avocado/resource-persea.controllers')
.get('$avocado/resource/persea.controllers')
.find(({matcher}) => uri.match(matcher))
);

View File

@ -27,14 +27,14 @@ export default {
[Hooks]: {
'@flecks/core.starting': async (flecks) => {
const Controllers = (
await flecks.invokeSequentialAsync('@avocado/resource-persea.controllers')
await flecks.invokeSequentialAsync('@avocado/resource/persea.controllers')
).flat();
Controllers.push(
JsonController,
TextController,
BinaryController,
);
flecks.set('$avocado/resource-persea.controllers', Controllers);
flecks.set('$avocado/resource/persea.controllers', Controllers);
},
'@flecks/redux.reducers': () => reducer,
},

View File

@ -1,116 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,38 +0,0 @@
{
"name": "@avocado/sound-persea",
"version": "3.0.0",
"repository": {
"type": "git",
"url": "https://git.hq.cha0s.io/cha0s/avocado.git",
"directory": "packages/sound-persea"
},
"main": "index.js",
"scripts": {
"build": "flecks build",
"clean": "flecks clean",
"lint": "flecks lint",
"postversion": "cp package.json dist",
"test": "flecks test"
},
"files": [
"build",
"index.css",
"index.css.map",
"index.js",
"index.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/react": "^3.0.0",
"@avocado/resource": "^3.0.0",
"@avocado/resource-persea": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1"
},
"devDependencies": {
"@flecks/fleck": "^1.4.1"
}
}

View File

@ -1,5 +0,0 @@
import {expect} from 'chai';
it('exists', () => {
expect(true).to.be.true;
});

View File

@ -20,15 +20,21 @@
"build",
"index.js",
"index.js.map",
"persea.css",
"persea.css.map",
"persea.js",
"persea.js.map",
"src",
"test",
"test.js",
"test.js.map"
],
"dependencies": {
"@avocado/react": "^3.0.0",
"@avocado/resource": "^3.0.0",
"@avocado/traits": "^3.0.0",
"@flecks/core": "^1.4.1",
"@flecks/react": "^1.4.1",
"@flecks/socket": "^1.4.1",
"debug": "4.3.1",
"lru-cache": "^6.0.0"

View File

@ -1,4 +1,4 @@
import {BinaryController} from '@avocado/resource-persea';
import {BinaryController} from '@avocado/resource/persea';
import {
PropTypes,
React,

View File

@ -1,4 +1,4 @@
import {BinaryController} from '@avocado/resource-persea';
import {BinaryController} from '@avocado/resource/persea';
import Component from './component';

View File

@ -5,7 +5,7 @@ import {join} from 'path';
import {
Number,
} from '@avocado/react';
import {useJsonPatcher} from '@avocado/resource-persea';
import {useJsonPatcher} from '@avocado/resource/persea';
import {
PropTypes,
React,

View File

@ -1,4 +1,4 @@
import {JsonController} from '@avocado/resource-persea';
import {JsonController} from '@avocado/resource/persea';
import Component from './component';

View File

@ -10,11 +10,11 @@ export {
export default {
[Hooks]: {
'@avocado/resource-persea.controllers': () => [
'@avocado/resource/persea.controllers': () => [
AudioController,
SoundController,
],
'@avocado/traits-persea.components': Flecks.provide(
'@avocado/traits/persea.components': Flecks.provide(
require.context('./traits', false, /\.jsx$/),
{invoke: false},
),

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