refactor: aliases ^_^

This commit is contained in:
cha0s 2022-03-24 01:56:22 -05:00
parent e901873f62
commit b5a71ccdc6
10 changed files with 15 additions and 22 deletions

View File

@ -1,3 +1,4 @@
import Renderer from '@avocado/graphics/renderer';
import {Vector} from '@avocado/math';
import {
forwardRef,
@ -12,7 +13,6 @@ import {
import K from 'kefir';
import Slider from 'rc-slider';
import Renderer from '../../renderer';
import './index.css';
const marks = {

View File

@ -1,7 +1,6 @@
import {Vector} from '@avocado/math';
import RectangleShape from '../../shape/rectangle';
import World from '../../matter/world';
import RectangleShape from '@avocado/physics/shape/rectangle';
import World from '@avocado/physics/matter/world';
const ROOM_BOUND_SIZE = 64;
const HALF_ROOM_BOUND_SIZE = ROOM_BOUND_SIZE / 2;
@ -76,7 +75,7 @@ export default (Room) => class PhysicsRoom extends Room {
};
if (module.hot) {
module.hot.accept('../../matter/world', () => {
module.hot.accept('@avocado/physics/matter/world', () => {
const it = rooms.values();
for (let value = it.next(); value.done !== true; value = it.next()) {
const {value: room} = value;

View File

@ -2,8 +2,7 @@ import {
Vector,
Vertice,
} from '@avocado/math';
import PolygonShape from '../../shape/polygon';
import PolygonShape from '@avocado/physics/shape/polygon';
export default (Tiles) => class PhysicsTiles extends Tiles {

View File

@ -1,5 +1,3 @@
import './index.scss';
import {join} from 'path';
import {
@ -8,6 +6,7 @@ import {
TabList,
TabPanel,
} from '@avocado/react';
import useJsonPatcher from '@avocado/resource-persea/hooks/use-json-patcher';
import {
PropTypes,
React,
@ -17,7 +16,7 @@ import {
useState,
} from '@flecks/react';
import useJsonPatcher from '../../hooks/use-json-patcher';
import './index.scss';
const JsonTabs = ({
createPanel,

View File

@ -1,10 +1,9 @@
import useResourceController from '@avocado/resource-persea/hooks/use-resource-controller';
import {
PropTypes,
React,
} from '@flecks/react';
import useResourceController from '../../hooks/use-resource-controller';
import styles from './index.module.scss';
const Resource = ({resource, uri}) => {

View File

@ -1,10 +1,10 @@
import './component.scss';
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';
import {controller as controllerPropTypes} from '../../prop-types';
import toBuffer from './to-buffer';
const Binary = ({resource}) => {

View File

@ -3,12 +3,11 @@ 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 {React} from '@flecks/react';
import {compare} from 'fast-json-patch';
import useJsonPatcher from '../../hooks/use-json-patcher';
import {controller as controllerPropTypes} from '../../prop-types';
const Json = ({path, resource}) => {
const patch = useJsonPatcher();
return (

View File

@ -12,8 +12,7 @@ import {
vectorPropType,
} from '@avocado/math-persea';
import {useJsonPatcher} from '@avocado/resource-persea';
import AnimationVisualization from '../../components/animation-visualization';
import AnimationVisualization from '@avocado/timing-persea/components/animation-visualization';
const Animation = ({
resource,

View File

@ -10,6 +10,7 @@ import {
useFullJson,
} from '@avocado/resource-persea';
import {AnimationView} from '@avocado/timing';
import AnimationVisualization from '@avocado/timing-persea/components/animation-visualization';
import {
PropTypes,
React,
@ -18,8 +19,6 @@ import {
useState,
} from '@flecks/react';
import AnimationVisualization from '../../components/animation-visualization';
const Animation = ({
json,
}) => {

View File

@ -1,7 +1,7 @@
import {TickingPromise} from '@avocado/core';
import LfoResult from '../../lfo/result';
import TransitionResult from '../../transition/result';
import LfoResult from '@avocado/timing/lfo/result';
import TransitionResult from '@avocado/timing/transition/result';
export default (Entity) => class EvolvingEntity extends Entity {