refactor: aliases ^_^

This commit is contained in:
cha0s 2022-03-24 01:56:25 -05:00
parent 6bec013ddd
commit 811be6dbfd
22 changed files with 10 additions and 12 deletions

View File

@ -11,13 +11,13 @@ import {
} from '@flecks/react/router';
import {useSelector} from '@flecks/redux';
import {userIdSelector} from '@flecks/user';
import '@humus/app/scss/index.scss';
import Ui from '../valent-ui';
import Login from './login';
import Overview from './overview';
import Play from './play';
import './scss/index.scss';
import styles from './index.module.scss';
const Persea = () => {

View File

@ -1,16 +1,14 @@
import {React} from '@flecks/react';
import styles from './index.module.scss';
import Renderable from './renderable';
import Ui from './ui';
function Play() {
return (
<div className={styles.play}>
<>
<Renderable />
<Ui />
</div>
</>
);
}

View File

@ -10,8 +10,7 @@ import {
import {Container, Renderer, Stage} from '@avocado/graphics';
import {Vector} from '@avocado/math';
import {createLoop, destroyLoop} from '@avocado/timing';
import {useRoom, useSelfEntity} from '../../../../hooks';
import {useRoom, useSelfEntity} from '@humus/app/hooks';
const renderer = new Renderer();

View File

@ -1,4 +1,4 @@
@import '../../../scss/graphics.scss';
@import '~@humus/app/scss/graphics.scss';
.hotbar {
position: absolute;

View File

@ -12,14 +12,14 @@ import {
} from '@flecks/react';
import {useDispatch} from '@flecks/redux';
import {useSocket} from '@flecks/socket';
import {
useRoom,
useSelfEntity,
} from '../../../../hooks';
} from '@humus/app/hooks';
import {
setSelfEntity,
} from '../../../../state';
} from '@humus/app/state';
import Hotbar from './hotbar';
const PlayUi = () => {

View File

@ -1,4 +1,4 @@
@import '../../../scss/graphics.scss';
@import '~@humus/app/scss/graphics.scss';
.item-slot {
border: 4px dashed rgba(0, 0, 0, 0.5);

View File

@ -35,6 +35,7 @@
"dependencies": {
"@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",