Skip to content

Commit

Permalink
fix tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
shivhendo committed Aug 6, 2022
1 parent 279ce44 commit 6c23b9b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
"plugin:import/warnings",
"plugin:react/recommended",
"react-app",
"react-app/jest",
],
overrides: [
{
Expand Down
5 changes: 4 additions & 1 deletion modules/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@
"typescript": "4.3.5"
},
"eslintConfig": {
"extends": "../../.eslintrc.js"
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
Expand Down
15 changes: 13 additions & 2 deletions modules/client/src/components/renderer3D.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ import { Environment, OrbitControls } from "@react-three/drei";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";

export const Renderer3D = (src: any) => {
console.log(typeof(src));
const gltf = useLoader(GLTFLoader, "src");
console.log(src);

const loader = new GLTFLoader();
loader.load("https://arweave.net/8kWTyLavFfivf3uhtyWiCa8VQ6M8R7XHP3ed991NrLA", (gltf) => {
console.log(gltf);
}, undefined, (error) => {
console.log( error );
});

/*
const gltf = useLoader(GLTFLoader, "https://arweave.net/i3_yhRX_pFqWR2pBcjX8KR7yM-aGv1cAThqxSiNOxuI");
return (
<div style = {{height:"100vh", width:"80vw"}}>
<Canvas>
Expand All @@ -19,4 +28,6 @@ export const Renderer3D = (src: any) => {
</Canvas>
</div>
);
*/
return <> Hello </>
};
4 changes: 2 additions & 2 deletions modules/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"types": "dist/bundle.d.ts",
"files": ["dist/bundle.js", "dist/bundle.esm.js", "dist/bundle.d.ts"],
"scripts": {
"build": "rollup -c rollup.config.js"
"build": "rollup --config rollup.config.js"
},
"dependencies": {
"@sinclair/typebox": "0.20.5"
Expand All @@ -21,6 +21,6 @@
"@rollup/plugin-typescript": "8.3.4",
"rollup": "2.77.2",
"rollup-plugin-dts": "4.2.2",
"typescript": "4.3.5"
"typescript": "^4.7.4"
}
}

0 comments on commit 6c23b9b

Please sign in to comment.