GLRenderer: temporarily disables it from slate-react-system, cuts a new release 0.0.3

This commit is contained in:
@wwwjim 2020-07-07 01:35:08 -07:00
parent ed0fde04c5
commit eb1b23473e
5 changed files with 34 additions and 19 deletions

View File

@ -6,9 +6,6 @@ import { PeersList } from "~/components/system/modules/PeersList";
import { CreateFilecoinAddress } from "~/components/system/modules/CreateFilecoinAddress"; import { CreateFilecoinAddress } from "~/components/system/modules/CreateFilecoinAddress";
import { CreateFilecoinStorageDeal } from "~/components/system/modules/CreateFilecoinStorageDeal"; import { CreateFilecoinStorageDeal } from "~/components/system/modules/CreateFilecoinStorageDeal";
// NOTE(jim): Experimental
import GLRenderer from "~/components/three/GLRenderer";
// NOTE(jim): Components // NOTE(jim): Components
import { import {
ButtonPrimary, ButtonPrimary,
@ -52,8 +49,6 @@ import * as OldSVG from "~/common/svg";
// NOTE(jim): Export everything. // NOTE(jim): Export everything.
export { export {
// NOTE(jim): Experimental
GLRenderer,
// NOTE(jim): Modules // NOTE(jim): Modules
CreateToken, CreateToken,
PeersList, PeersList,

10
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -41,6 +41,7 @@
"ws": "^7.3.0" "ws": "^7.3.0"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^8.1.0", "@rollup/plugin-node-resolve": "^8.1.0",
"rollup": "^2.18.1", "rollup": "^2.18.1",
"rollup-plugin-babel": "^4.4.0", "rollup-plugin-babel": "^4.4.0",

View File

@ -1,20 +1,27 @@
import * as React from 'react'; import * as React from "react";
import * as System from '~/components/system'; import * as System from "~/components/system";
import GLRenderer from '~/components/three/GLRenderer'; import GLRenderer from "~/components/three/GLRenderer";
import SystemPage from '~/components/system/SystemPage'; import SystemPage from "~/components/system/SystemPage";
import ViewSourceLink from '~/components/system/ViewSourceLink'; import ViewSourceLink from "~/components/system/ViewSourceLink";
export default class SystemPageGlobe extends React.Component { export default class SystemPageGlobe extends React.Component {
render() { render() {
return ( return (
<SystemPage title="SDS: Globe" description="..." url="https://fps.onrender.com/system/globe"> <SystemPage
title="SDS: Globe"
description="..."
url="https://fps.onrender.com/system/globe"
>
<System.H1> <System.H1>
Globe <ViewSourceLink file="system/globe.js" /> Globe <ViewSourceLink file="system/globe.js" />
</System.H1> </System.H1>
<br /> <br />
<br /> <br />
<System.P>The Globe component is used to show peers and file transfers on the Filecoin network.</System.P> <System.P>
The Globe component is used to show peers and file transfers on the
Filecoin network.
</System.P>
<br /> <br />
<br /> <br />
<br /> <br />
@ -22,13 +29,14 @@ export default class SystemPageGlobe extends React.Component {
<hr /> <hr />
<br /> <br />
<System.P> <System.P>
Import React and the GLRenderer Components. Import React and the GLRenderer Components. Unfortunately the
GLRenderer is not usable outside of this application.
</System.P> </System.P>
<br /> <br />
<br /> <br />
<System.CodeBlock> <System.CodeBlock>
{`import * as React from 'react'; {`import * as React from 'react';
import { GLRenderer } from 'slate-react-system';`} import GLRenderer from '~/components/three/GLRenderer';`}
</System.CodeBlock> </System.CodeBlock>
<br /> <br />
<br /> <br />
@ -38,13 +46,14 @@ import { GLRenderer } from 'slate-react-system';`}
<System.P>Declare the Globe component.</System.P> <System.P>Declare the Globe component.</System.P>
<br /> <br />
<System.CodeBlock> <System.CodeBlock>
{`class ExampleOne extends React.Component { {`class ExampleOne extends React.Component {
render() { render() {
return( return(
<GLRenderer width={768} height={480} /> <GLRenderer width={768} height={480} />
) )
} }
}`}</System.CodeBlock> }`}
</System.CodeBlock>
<br /> <br />
<br /> <br />
<System.H2>Output</System.H2> <System.H2>Output</System.H2>

View File

@ -2,6 +2,7 @@ import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs"; import commonjs from "rollup-plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve"; import resolve from "@rollup/plugin-node-resolve";
import { terser } from "rollup-plugin-terser"; import { terser } from "rollup-plugin-terser";
import json from "@rollup/plugin-json";
const input = "./components/system/index.js"; const input = "./components/system/index.js";
@ -14,8 +15,9 @@ const generateOutput = (outputPath) => {
}, },
external: ["@emotion/react", "react", "react-dom"], external: ["@emotion/react", "react", "react-dom"],
plugins: [ plugins: [
json({ exclude: ["node_modules/**"], compact: true }),
babel({ babel({
exclude: "node_modules/**", exclude: ["node_modules/**", "**/*.json"],
runtimeHelpers: true, runtimeHelpers: true,
}), }),
resolve(), resolve(),