mirror of https://gitee.com/cf-fz/WebCAD.git
Merge branch 'master' of https://git.oschina.net/BearCAD/WebThreeJs
commit
70d1cea5da
@ -1,2 +1,61 @@
|
|||||||
/node_modules
|
# Logs
|
||||||
node_modules
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# nyc test coverage
|
||||||
|
.nyc_output
|
||||||
|
|
||||||
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
|
.grunt
|
||||||
|
|
||||||
|
# Bower dependency directory (https://bower.io/)
|
||||||
|
bower_components
|
||||||
|
|
||||||
|
# node-waf configuration
|
||||||
|
.lock-wscript
|
||||||
|
|
||||||
|
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||||
|
build/Release
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
|
jspm_packages/
|
||||||
|
|
||||||
|
# Typescript v1 declaration files
|
||||||
|
typings/
|
||||||
|
|
||||||
|
# Optional npm cache directory
|
||||||
|
.npm
|
||||||
|
|
||||||
|
# Optional eslint cache
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# Optional REPL history
|
||||||
|
.node_repl_history
|
||||||
|
|
||||||
|
# Output of 'npm pack'
|
||||||
|
*.tgz
|
||||||
|
|
||||||
|
# Yarn Integrity file
|
||||||
|
.yarn-integrity
|
||||||
|
|
||||||
|
# dotenv environment variables file
|
||||||
|
.env
|
||||||
|
|
||||||
|
#custom
|
||||||
|
.vscode
|
@ -0,0 +1,3 @@
|
|||||||
|
import * as React from "react";
|
||||||
|
export interface HelloProps { compiler: string; framework: string; }
|
||||||
|
export const Hello = (props: HelloProps) => <h1>Hello from {props.compiler} and {props.framework}!</h1>;
|
@ -1,7 +0,0 @@
|
|||||||
import { Application, Application2 } from "./Application";
|
|
||||||
window.onload = function ()
|
|
||||||
{
|
|
||||||
new Application2();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
import { Application, Application2 } from "./Application";
|
||||||
|
|
||||||
|
import * as React from "react";
|
||||||
|
import * as ReactDOM from "react-dom";
|
||||||
|
|
||||||
|
import { Hello } from "./UI/demo";
|
||||||
|
|
||||||
|
ReactDOM.render(
|
||||||
|
<Hello compiler="TypeScript" framework="React" />,
|
||||||
|
document.body
|
||||||
|
);
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
|
|
||||||
|
new Application2();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue