commit
f420f5aeaa
28402 changed files with 2762158 additions and 0 deletions
@ -0,0 +1,23 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. |
||||
|
||||
# dependencies |
||||
/node_modules |
||||
/.pnp |
||||
.pnp.js |
||||
|
||||
# testing |
||||
/coverage |
||||
|
||||
# production |
||||
/build |
||||
|
||||
# misc |
||||
.DS_Store |
||||
.env.local |
||||
.env.development.local |
||||
.env.test.local |
||||
.env.production.local |
||||
|
||||
npm-debug.log* |
||||
yarn-debug.log* |
||||
yarn-error.log* |
||||
@ -0,0 +1,68 @@
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
||||
|
||||
## Available Scripts |
||||
|
||||
In the project directory, you can run: |
||||
|
||||
### `npm start` |
||||
|
||||
Runs the app in the development mode.<br /> |
||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
||||
|
||||
The page will reload if you make edits.<br /> |
||||
You will also see any lint errors in the console. |
||||
|
||||
### `npm test` |
||||
|
||||
Launches the test runner in the interactive watch mode.<br /> |
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
||||
|
||||
### `npm run build` |
||||
|
||||
Builds the app for production to the `build` folder.<br /> |
||||
It correctly bundles React in production mode and optimizes the build for the best performance. |
||||
|
||||
The build is minified and the filenames include the hashes.<br /> |
||||
Your app is ready to be deployed! |
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
||||
|
||||
### `npm run eject` |
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
||||
|
||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
||||
|
||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
||||
|
||||
## Learn More |
||||
|
||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/). |
||||
|
||||
### Code Splitting |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting |
||||
|
||||
### Analyzing the Bundle Size |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size |
||||
|
||||
### Making a Progressive Web App |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app |
||||
|
||||
### Advanced Configuration |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration |
||||
|
||||
### Deployment |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment |
||||
|
||||
### `npm run build` fails to minify |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@
|
||||
{ |
||||
"name": "01", |
||||
"version": "0.1.0", |
||||
"private": true, |
||||
"dependencies": { |
||||
"react": "^16.12.0", |
||||
"react-dom": "^16.12.0", |
||||
"react-scripts": "3.2.0" |
||||
}, |
||||
"scripts": { |
||||
"start": "react-scripts start", |
||||
"build": "react-scripts build", |
||||
"test": "react-scripts test", |
||||
"eject": "react-scripts eject" |
||||
}, |
||||
"eslintConfig": { |
||||
"extends": "react-app" |
||||
}, |
||||
"browserslist": { |
||||
"production": [ |
||||
">0.2%", |
||||
"not dead", |
||||
"not op_mini all" |
||||
], |
||||
"development": [ |
||||
"last 1 chrome version", |
||||
"last 1 firefox version", |
||||
"last 1 safari version" |
||||
] |
||||
} |
||||
} |
||||
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<body> |
||||
<noscript>You need to enable JavaScript to run this app.</noscript> |
||||
<div class="person"> |
||||
<h1>Max Power</h1> |
||||
<p>Level: 99</p> |
||||
</div> |
||||
|
||||
<div class="person"> |
||||
<h1>Abu Jafar</h1> |
||||
<p>Level: 55</p> |
||||
</div> |
||||
|
||||
<div id="p1"></div> |
||||
|
||||
<div id="p2"></div> |
||||
|
||||
<div id="app"></div> |
||||
</body> |
||||
</html> |
||||
@ -0,0 +1,8 @@
|
||||
.person { |
||||
display: inline-block; |
||||
margin: 10px; |
||||
border: 1px solid #eee; |
||||
box-shadow: 0 2px 2px #ccc; |
||||
width: 200px; |
||||
padding: 20px; |
||||
} |
||||
@ -0,0 +1,28 @@
|
||||
import React from 'react'; |
||||
import ReactDOM from 'react-dom'; |
||||
import './index.css'; |
||||
|
||||
function Person(props) { |
||||
return ( |
||||
<div class="person"> |
||||
<h1>{props.name}</h1> |
||||
<p>Level: {props.level}</p> |
||||
</div> |
||||
); |
||||
} |
||||
|
||||
var app = ( |
||||
<div> |
||||
<Person name="Go Hi" level="35"/> |
||||
<Person name="Lu Pu" level="64"/> |
||||
</div> |
||||
); |
||||
|
||||
ReactDOM.render(app, |
||||
document.querySelector('#app')); |
||||
|
||||
ReactDOM.render(<Person name="Au Goda" level="80"/>,
|
||||
document.querySelector('#p1')); |
||||
|
||||
ReactDOM.render(<Person name="Ono Shin" level="78"/>,
|
||||
document.querySelector('#p2')); |
||||
@ -0,0 +1,68 @@
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
||||
|
||||
## Available Scripts |
||||
|
||||
In the project directory, you can run: |
||||
|
||||
### `npm start` |
||||
|
||||
Runs the app in the development mode.<br /> |
||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
||||
|
||||
The page will reload if you make edits.<br /> |
||||
You will also see any lint errors in the console. |
||||
|
||||
### `npm test` |
||||
|
||||
Launches the test runner in the interactive watch mode.<br /> |
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
||||
|
||||
### `npm run build` |
||||
|
||||
Builds the app for production to the `build` folder.<br /> |
||||
It correctly bundles React in production mode and optimizes the build for the best performance. |
||||
|
||||
The build is minified and the filenames include the hashes.<br /> |
||||
Your app is ready to be deployed! |
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
||||
|
||||
### `npm run eject` |
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
||||
|
||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
||||
|
||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
||||
|
||||
## Learn More |
||||
|
||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/). |
||||
|
||||
### Code Splitting |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting |
||||
|
||||
### Analyzing the Bundle Size |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size |
||||
|
||||
### Making a Progressive Web App |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app |
||||
|
||||
### Advanced Configuration |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration |
||||
|
||||
### Deployment |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment |
||||
|
||||
### `npm run build` fails to minify |
||||
|
||||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
||||
@ -0,0 +1 @@
|
||||
../ansi-html/bin/ansi-html |
||||
@ -0,0 +1 @@
|
||||
../autoprefixer/bin/autoprefixer |
||||
@ -0,0 +1 @@
|
||||
../babylon/bin/babylon.js |
||||
@ -0,0 +1 @@
|
||||
../browserslist/cli.js |
||||
@ -0,0 +1 @@
|
||||
../css-blank-pseudo/cli.js |
||||
@ -0,0 +1 @@
|
||||
../css-has-pseudo/cli.js |
||||
@ -0,0 +1 @@
|
||||
../css-prefers-color-scheme/cli.js |
||||
@ -0,0 +1 @@
|
||||
../cssesc/bin/cssesc |
||||
@ -0,0 +1 @@
|
||||
../detect-port-alt/bin/detect-port |
||||
@ -0,0 +1 @@
|
||||
../detect-port-alt/bin/detect-port |
||||
@ -0,0 +1 @@
|
||||
../escodegen/bin/escodegen.js |
||||
@ -0,0 +1 @@
|
||||
../escodegen/bin/esgenerate.js |
||||
@ -0,0 +1 @@
|
||||
../eslint/bin/eslint.js |
||||
@ -0,0 +1 @@
|
||||
../esprima/bin/esparse.js |
||||
@ -0,0 +1 @@
|
||||
../esprima/bin/esvalidate.js |
||||
@ -0,0 +1 @@
|
||||
../handlebars/bin/handlebars |
||||
@ -0,0 +1 @@
|
||||
../html-minifier/cli.js |
||||
@ -0,0 +1 @@
|
||||
../import-local/fixtures/cli.js |
||||
@ -0,0 +1 @@
|
||||
../jest-runtime/bin/jest-runtime.js |
||||
@ -0,0 +1 @@
|
||||
../js-yaml/bin/js-yaml.js |
||||
@ -0,0 +1 @@
|
||||
../loose-envify/cli.js |
||||
@ -0,0 +1 @@
|
||||
../miller-rabin/bin/miller-rabin |
||||
@ -0,0 +1 @@
|
||||
../mkdirp/bin/cmd.js |
||||
@ -0,0 +1 @@
|
||||
../multicast-dns/cli.js |
||||
@ -0,0 +1 @@
|
||||
../@babel/parser/bin/babel-parser.js |
||||
@ -0,0 +1 @@
|
||||
../react-scripts/bin/react-scripts.js |
||||
@ -0,0 +1 @@
|
||||
../regjsparser/bin/parser |
||||
@ -0,0 +1 @@
|
||||
../semver/bin/semver.js |
||||
@ -0,0 +1 @@
|
||||
../sshpk/bin/sshpk-conv |
||||
@ -0,0 +1 @@
|
||||
../sshpk/bin/sshpk-sign |
||||
@ -0,0 +1 @@
|
||||
../sshpk/bin/sshpk-verify |
||||
@ -0,0 +1 @@
|
||||
../terser/bin/terser |
||||
@ -0,0 +1 @@
|
||||
../uglify-js/bin/uglifyjs |
||||
@ -0,0 +1 @@
|
||||
../@cnakazawa/watch/cli.js |
||||
@ -0,0 +1 @@
|
||||
../webpack/bin/webpack.js |
||||
@ -0,0 +1 @@
|
||||
../webpack-dev-server/bin/webpack-dev-server.js |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar EventEmitter = require('events').EventEmitter,\n inherits = require('inherits'),\n eventUtils = require('../../utils/event'),\n browser = require('../../utils/browser'),\n urlUtils = require('../../utils/url');\n\nvar debug = function () {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:sender:xdr');\n} // References:\n// http://ajaxian.com/archives/100-line-ajax-wrapper\n// http://msdn.microsoft.com/en-us/library/cc288060(v=VS.85).aspx\n\n\nfunction XDRObject(method, url, payload) {\n debug(method, url);\n var self = this;\n EventEmitter.call(this);\n setTimeout(function () {\n self._start(method, url, payload);\n }, 0);\n}\n\ninherits(XDRObject, EventEmitter);\n\nXDRObject.prototype._start = function (method, url, payload) {\n debug('_start');\n var self = this;\n var xdr = new global.XDomainRequest(); // IE caches even POSTs\n\n url = urlUtils.addQuery(url, 't=' + +new Date());\n\n xdr.onerror = function () {\n debug('onerror');\n\n self._error();\n };\n\n xdr.ontimeout = function () {\n debug('ontimeout');\n\n self._error();\n };\n\n xdr.onprogress = function () {\n debug('progress', xdr.responseText);\n self.emit('chunk', 200, xdr.responseText);\n };\n\n xdr.onload = function () {\n debug('load');\n self.emit('finish', 200, xdr.responseText);\n\n self._cleanup(false);\n };\n\n this.xdr = xdr;\n this.unloadRef = eventUtils.unloadAdd(function () {\n self._cleanup(true);\n });\n\n try {\n // Fails with AccessDenied if port number is bogus\n this.xdr.open(method, url);\n\n if (this.timeout) {\n this.xdr.timeout = this.timeout;\n }\n\n this.xdr.send(payload);\n } catch (x) {\n this._error();\n }\n};\n\nXDRObject.prototype._error = function () {\n this.emit('finish', 0, '');\n\n this._cleanup(false);\n};\n\nXDRObject.prototype._cleanup = function (abort) {\n debug('cleanup', abort);\n\n if (!this.xdr) {\n return;\n }\n\n this.removeAllListeners();\n eventUtils.unloadDel(this.unloadRef);\n this.xdr.ontimeout = this.xdr.onerror = this.xdr.onprogress = this.xdr.onload = null;\n\n if (abort) {\n try {\n this.xdr.abort();\n } catch (x) {// intentionally empty\n }\n }\n\n this.unloadRef = this.xdr = null;\n};\n\nXDRObject.prototype.close = function () {\n debug('close');\n\n this._cleanup(true);\n}; // IE 8/9 if the request target uses the same scheme - #79\n\n\nXDRObject.enabled = !!(global.XDomainRequest && browser.hasDomain());\nmodule.exports = XDRObject;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import React from 'react';\nimport './App.css'; // function App() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// </div>\n// );\n// return React.createElement('div', null, 'h1', 'p','oie');\n// }\n\nclass App extends React.Component {\n render() {\n return React.createElement('div', null, 'h1');\n }\n\n}\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","App","Component","render","createElement"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP,C,CAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,GAAN,SAAkBD,KAAK,CAACE,SAAxB,CAAkC;AAChCC,EAAAA,MAAM,GAAG;AACP,WAAOH,KAAK,CAACI,aAAN,CAAoB,KAApB,EAA2B,IAA3B,EAAiC,IAAjC,CAAP;AACD;;AAH+B;;AAMlC,eAAeH,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\n\n// function App() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// </div>\n// );\n// return React.createElement('div', null, 'h1', 'p','oie');\n// }\n\nclass App extends React.Component {\n render() {\n return React.createElement('div', null, 'h1');\n }\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import React from 'react';\nimport './App.css'; // function App() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// </div>\n// );\n// return React.createElement('div', null, 'h1', 'p','oie');\n// }\n\nclass App extends React.Component {\n render() {\n return React.createElement('div', null, 'h1', 'p', 'oie');\n }\n\n}\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","App","Component","render","createElement"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP,C,CAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,GAAN,SAAkBD,KAAK,CAACE,SAAxB,CAAkC;AAChCC,EAAAA,MAAM,GAAG;AACP,WAAOH,KAAK,CAACI,aAAN,CAAoB,KAApB,EAA2B,IAA3B,EAAiC,IAAjC,EAAuC,GAAvC,EAA2C,KAA3C,CAAP;AACD;;AAH+B;;AAMlC,eAAeH,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\n\n// function App() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// </div>\n// );\n// return React.createElement('div', null, 'h1', 'p','oie');\n// }\n\nclass App extends React.Component {\n render() {\n return React.createElement('div', null, 'h1', 'p','oie');\n }\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import React from 'react';\nimport './App.css';\n\nfunction App() {\n // return (\n // <div className=\"App\">\n // <h1>Hi, I'm a React App, I'm cute.</h1>\n // </div>\n // );\n return React.createElement('div', null, 'h1', 'p', 'oie');\n}\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","App","createElement"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP;;AAEA,SAASC,GAAT,GAAe;AACb;AACA;AACA;AACA;AACA;AACA,SAAOD,KAAK,CAACE,aAAN,CAAoB,KAApB,EAA2B,IAA3B,EAAiC,IAAjC,EAAuC,GAAvC,EAA2C,KAA3C,CAAP;AACD;;AAED,eAAeD,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\n\nfunction App() {\n // return (\n // <div className=\"App\">\n // <h1>Hi, I'm a React App, I'm cute.</h1>\n // </div>\n // );\n return React.createElement('div', null, 'h1', 'p','oie');\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nmodule.exports = {\n isString: function (arg) {\n return typeof arg === 'string';\n },\n isObject: function (arg) {\n return typeof arg === 'object' && arg !== null;\n },\n isNull: function (arg) {\n return arg === null;\n },\n isNullOrUndefined: function (arg) {\n return arg == null;\n }\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n if (typeof str !== 'string') {\n throw new TypeError('Expected a string');\n }\n\n return str.replace(matchOperatorsRe, '\\\\$&');\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar JSON3 = require('json3'); // Some extra characters that Chrome gets wrong, and substitutes with\n// something else on the wire.\n// eslint-disable-next-line no-control-regex\n\n\nvar extraEscapable = /[\\x00-\\x1f\\ud800-\\udfff\\ufffe\\uffff\\u0300-\\u0333\\u033d-\\u0346\\u034a-\\u034c\\u0350-\\u0352\\u0357-\\u0358\\u035c-\\u0362\\u0374\\u037e\\u0387\\u0591-\\u05af\\u05c4\\u0610-\\u0617\\u0653-\\u0654\\u0657-\\u065b\\u065d-\\u065e\\u06df-\\u06e2\\u06eb-\\u06ec\\u0730\\u0732-\\u0733\\u0735-\\u0736\\u073a\\u073d\\u073f-\\u0741\\u0743\\u0745\\u0747\\u07eb-\\u07f1\\u0951\\u0958-\\u095f\\u09dc-\\u09dd\\u09df\\u0a33\\u0a36\\u0a59-\\u0a5b\\u0a5e\\u0b5c-\\u0b5d\\u0e38-\\u0e39\\u0f43\\u0f4d\\u0f52\\u0f57\\u0f5c\\u0f69\\u0f72-\\u0f76\\u0f78\\u0f80-\\u0f83\\u0f93\\u0f9d\\u0fa2\\u0fa7\\u0fac\\u0fb9\\u1939-\\u193a\\u1a17\\u1b6b\\u1cda-\\u1cdb\\u1dc0-\\u1dcf\\u1dfc\\u1dfe\\u1f71\\u1f73\\u1f75\\u1f77\\u1f79\\u1f7b\\u1f7d\\u1fbb\\u1fbe\\u1fc9\\u1fcb\\u1fd3\\u1fdb\\u1fe3\\u1feb\\u1fee-\\u1fef\\u1ff9\\u1ffb\\u1ffd\\u2000-\\u2001\\u20d0-\\u20d1\\u20d4-\\u20d7\\u20e7-\\u20e9\\u2126\\u212a-\\u212b\\u2329-\\u232a\\u2adc\\u302b-\\u302c\\uaab2-\\uaab3\\uf900-\\ufa0d\\ufa10\\ufa12\\ufa15-\\ufa1e\\ufa20\\ufa22\\ufa25-\\ufa26\\ufa2a-\\ufa2d\\ufa30-\\ufa6d\\ufa70-\\ufad9\\ufb1d\\ufb1f\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40-\\ufb41\\ufb43-\\ufb44\\ufb46-\\ufb4e\\ufff0-\\uffff]/g,\n extraLookup; // This may be quite slow, so let's delay until user actually uses bad\n// characters.\n\nvar unrollLookup = function (escapable) {\n var i;\n var unrolled = {};\n var c = [];\n\n for (i = 0; i < 65536; i++) {\n c.push(String.fromCharCode(i));\n }\n\n escapable.lastIndex = 0;\n c.join('').replace(escapable, function (a) {\n unrolled[a] = '\\\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);\n return '';\n });\n escapable.lastIndex = 0;\n return unrolled;\n}; // Quote string, also taking care of unicode characters that browsers\n// often break. Especially, take care of unicode surrogates:\n// http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Surrogates\n\n\nmodule.exports = {\n quote: function (string) {\n var quoted = JSON3.stringify(string); // In most cases this should be very fast and good enough.\n\n extraEscapable.lastIndex = 0;\n\n if (!extraEscapable.test(quoted)) {\n return quoted;\n }\n\n if (!extraLookup) {\n extraLookup = unrollLookup(extraEscapable);\n }\n\n return quoted.replace(extraEscapable, function (a) {\n return extraLookup[a];\n });\n }\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar urlUtils = require('./utils/url'),\n eventUtils = require('./utils/event'),\n JSON3 = require('json3'),\n FacadeJS = require('./facade'),\n InfoIframeReceiver = require('./info-iframe-receiver'),\n iframeUtils = require('./utils/iframe'),\n loc = require('./location');\n\nvar debug = function () {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:iframe-bootstrap');\n}\n\nmodule.exports = function (SockJS, availableTransports) {\n var transportMap = {};\n availableTransports.forEach(function (at) {\n if (at.facadeTransport) {\n transportMap[at.facadeTransport.transportName] = at.facadeTransport;\n }\n }); // hard-coded for the info iframe\n // TODO see if we can make this more dynamic\n\n transportMap[InfoIframeReceiver.transportName] = InfoIframeReceiver;\n var parentOrigin;\n /* eslint-disable camelcase */\n\n SockJS.bootstrap_iframe = function () {\n /* eslint-enable camelcase */\n var facade;\n iframeUtils.currentWindowId = loc.hash.slice(1);\n\n var onMessage = function (e) {\n if (e.source !== parent) {\n return;\n }\n\n if (typeof parentOrigin === 'undefined') {\n parentOrigin = e.origin;\n }\n\n if (e.origin !== parentOrigin) {\n return;\n }\n\n var iframeMessage;\n\n try {\n iframeMessage = JSON3.parse(e.data);\n } catch (ignored) {\n debug('bad json', e.data);\n return;\n }\n\n if (iframeMessage.windowId !== iframeUtils.currentWindowId) {\n return;\n }\n\n switch (iframeMessage.type) {\n case 's':\n var p;\n\n try {\n p = JSON3.parse(iframeMessage.data);\n } catch (ignored) {\n debug('bad json', iframeMessage.data);\n break;\n }\n\n var version = p[0];\n var transport = p[1];\n var transUrl = p[2];\n var baseUrl = p[3];\n debug(version, transport, transUrl, baseUrl); // change this to semver logic\n\n if (version !== SockJS.version) {\n throw new Error('Incompatible SockJS! Main site uses:' + ' \"' + version + '\", the iframe:' + ' \"' + SockJS.version + '\".');\n }\n\n if (!urlUtils.isOriginEqual(transUrl, loc.href) || !urlUtils.isOriginEqual(baseUrl, loc.href)) {\n throw new Error('Can\\'t connect to different domain from within an ' + 'iframe. (' + loc.href + ', ' + transUrl + ', ' + baseUrl + ')');\n }\n\n facade = new FacadeJS(new transportMap[transport](transUrl, baseUrl));\n break;\n\n case 'm':\n facade._send(iframeMessage.data);\n\n break;\n\n case 'c':\n if (facade) {\n facade._close();\n }\n\n facade = null;\n break;\n }\n };\n\n eventUtils.attachEvent('message', onMessage); // Start\n\n iframeUtils.postMessage('s');\n };\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar EventEmitter = require('events').EventEmitter,\n inherits = require('inherits');\n\nfunction XHRFake()\n/* method, url, payload, opts */\n{\n var self = this;\n EventEmitter.call(this);\n this.to = setTimeout(function () {\n self.emit('finish', 200, '{}');\n }, XHRFake.timeout);\n}\n\ninherits(XHRFake, EventEmitter);\n\nXHRFake.prototype.close = function () {\n clearTimeout(this.to);\n};\n\nXHRFake.timeout = 2000;\nmodule.exports = XHRFake;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"var _jsxFileName = \"/home/f2256342/forge/udemy-react/02/src/App.js\";\nimport React from 'react';\nimport './App.css';\nimport Person from './Person/Person';\n\nfunction App() {\n return React.createElement(\"div\", {\n className: \"App\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7\n },\n __self: this\n }, React.createElement(\"h1\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8\n },\n __self: this\n }, \"Hi, I'm a React App, I'm cute.\"), React.createElement(\"p\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9\n },\n __self: this\n }, \"Created using Functional code\"), React.createElement(Person, {\n name: \"Yutsuo\",\n ilvl: \"320\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10\n },\n __self: this\n }), React.createElement(Person, {\n name: \"Schwarzgeist\",\n ilvl: \"200\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11\n },\n __self: this\n }), React.createElement(Person, {\n name: \"Murom\",\n ilvl: \"78\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12\n },\n __self: this\n })); // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n} // class App extends React.Component {\n// render() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// <p>Created using OOP code</p>\n// </div>\n// );\n// // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n// }\n// }\n\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","Person","App"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,iBAAnB;;AAEA,SAASC,GAAT,GAAe;AACb,SACE;AAAK,IAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAFF,EAGE,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,IAAI,EAAC,KAA3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAHF,EAIE,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC,cAAb;AAA4B,IAAA,IAAI,EAAC,KAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAJF,EAKE,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC,OAAb;AAAqB,IAAA,IAAI,EAAC,IAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALF,CADF,CADa,CAUb;AACD,C,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,eAAeA,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\nimport Person from './Person/Person';\n\nfunction App() {\n return (\n <div className=\"App\">\n <h1>Hi, I'm a React App, I'm cute.</h1>\n <p>Created using Functional code</p>\n <Person name=\"Yutsuo\" ilvl=\"320\"/>\n <Person name=\"Schwarzgeist\" ilvl=\"200\"/>\n <Person name=\"Murom\" ilvl=\"78\"/>\n </div>\n );\n // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n}\n\n// class App extends React.Component {\n// render() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// <p>Created using OOP code</p>\n// </div>\n// );\n// // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n// }\n// }\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nif (global.crypto && global.crypto.getRandomValues) {\n module.exports.randomBytes = function (length) {\n var bytes = new Uint8Array(length);\n global.crypto.getRandomValues(bytes);\n return bytes;\n };\n} else {\n module.exports.randomBytes = function (length) {\n var bytes = new Array(length);\n\n for (var i = 0; i < length; i++) {\n bytes[i] = Math.floor(Math.random() * 256);\n }\n\n return bytes;\n };\n}","map":null,"metadata":{},"sourceType":"script"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import React from 'react';\nimport './App.css'; // function App() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// </div>\n// );\n// return React.createElement('div', null, 'h1', 'p','oie');\n// }\n\nclass App extends React.Component {\n render() {\n return React.createElement('div', null, React.createElement('h1', null, \"Oh Hay I'm a React App!!!\"));\n }\n\n}\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","App","Component","render","createElement"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP,C,CAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,GAAN,SAAkBD,KAAK,CAACE,SAAxB,CAAkC;AAChCC,EAAAA,MAAM,GAAG;AACP,WAAOH,KAAK,CAACI,aAAN,CAAoB,KAApB,EAA2B,IAA3B,EAAiCJ,KAAK,CAACI,aAAN,CAAoB,IAApB,EAA0B,IAA1B,8BAAjC,CAAP;AACD;;AAH+B;;AAMlC,eAAeH,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\n\n// function App() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// </div>\n// );\n// return React.createElement('div', null, 'h1', 'p','oie');\n// }\n\nclass App extends React.Component {\n render() {\n return React.createElement('div', null, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n }\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n XhrDriver = require('../driver/xhr');\n\nfunction XHRCorsObject(method, url, payload, opts) {\n XhrDriver.call(this, method, url, payload, opts);\n}\n\ninherits(XHRCorsObject, XhrDriver);\nXHRCorsObject.enabled = XhrDriver.enabled && XhrDriver.supportsCORS;\nmodule.exports = XHRCorsObject;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"module.exports = global.EventSource;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nmodule.exports = global.location || {\n origin: 'http://localhost:80',\n protocol: 'http:',\n host: 'localhost',\n port: 80,\n href: 'http://localhost/',\n hash: ''\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"var _jsxFileName = \"/home/f2256342/forge/udemy-react/02/src/Person/Person.js\";\nimport React from 'react';\n\nconst person = () => {\n return React.createElement(\"p\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 4\n },\n __self: this\n }, \"I'm a Person!\");\n};\n\nexport default person;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/Person/Person.js"],"names":["React","person"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;AAEA,MAAMC,MAAM,GAAG,MAAM;AACjB,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAP;AACH,CAFD;;AAIA,eAAeA,MAAf","sourcesContent":["import React from 'react';\n\nconst person = () => {\n return <p>I'm a Person!</p>\n}\n\nexport default person;"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"module.exports = function (module) {\n if (!module.webpackPolyfill) {\n module.deprecate = function () {};\n\n module.paths = []; // module.parent = undefined by default\n\n if (!module.children) module.children = [];\n Object.defineProperty(module, \"loaded\", {\n enumerable: true,\n get: function () {\n return module.l;\n }\n });\n Object.defineProperty(module, \"id\", {\n enumerable: true,\n get: function () {\n return module.i;\n }\n });\n module.webpackPolyfill = 1;\n }\n\n return module;\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nmodule.exports = [// streaming transports\nrequire('./transport/websocket'), require('./transport/xhr-streaming'), require('./transport/xdr-streaming'), require('./transport/eventsource'), require('./transport/lib/iframe-wrap')(require('./transport/eventsource')) // polling transports\n, require('./transport/htmlfile'), require('./transport/lib/iframe-wrap')(require('./transport/htmlfile')), require('./transport/xhr-polling'), require('./transport/xdr-polling'), require('./transport/lib/iframe-wrap')(require('./transport/xhr-polling')), require('./transport/jsonp-polling')];","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n EventEmitter = require('events').EventEmitter,\n JSON3 = require('json3'),\n XHRLocalObject = require('./transport/sender/xhr-local'),\n InfoAjax = require('./info-ajax');\n\nfunction InfoReceiverIframe(transUrl) {\n var self = this;\n EventEmitter.call(this);\n this.ir = new InfoAjax(transUrl, XHRLocalObject);\n this.ir.once('finish', function (info, rtt) {\n self.ir = null;\n self.emit('message', JSON3.stringify([info, rtt]));\n });\n}\n\ninherits(InfoReceiverIframe, EventEmitter);\nInfoReceiverIframe.transportName = 'iframe-info-receiver';\n\nInfoReceiverIframe.prototype.close = function () {\n if (this.ir) {\n this.ir.close();\n this.ir = null;\n }\n\n this.removeAllListeners();\n};\n\nmodule.exports = InfoReceiverIframe;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"var _jsxFileName = \"/home/f2256342/forge/udemy-react/02/src/App.js\";\nimport React from 'react';\nimport './App.css';\nimport Person from './Person/Person';\n\nfunction App() {\n return React.createElement(\"div\", {\n className: \"App\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7\n },\n __self: this\n }, React.createElement(\"h1\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8\n },\n __self: this\n }, \"Hi, I'm a React App, I'm cute.\"), React.createElement(\"p\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9\n },\n __self: this\n }, \"Created using Functional code\"), React.createElement(Person, {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10\n },\n __self: this\n })); // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n} // class App extends React.Component {\n// render() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// <p>Created using OOP code</p>\n// </div>\n// );\n// // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n// }\n// }\n\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","Person","App"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,iBAAnB;;AAEA,SAASC,GAAT,GAAe;AACb,SACE;AAAK,IAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAFF,EAGE,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAHF,CADF,CADa,CAQb;AACD,C,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,eAAeA,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\nimport Person from './Person/Person';\n\nfunction App() {\n return (\n <div className=\"App\">\n <h1>Hi, I'm a React App, I'm cute.</h1>\n <p>Created using Functional code</p>\n <Person />\n </div>\n );\n // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n}\n\n// class App extends React.Component {\n// render() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// <p>Created using OOP code</p>\n// </div>\n// );\n// // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n// }\n// }\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict';\n\nvar stringifyPrimitive = function (v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function (obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return map(objectKeys(obj), function (k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n\n if (isArray(obj[k])) {\n return map(obj[k], function (v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq + encodeURIComponent(stringifyPrimitive(obj));\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\nfunction map(xs, f) {\n if (xs.map) return xs.map(f);\n var res = [];\n\n for (var i = 0; i < xs.length; i++) {\n res.push(f(xs[i], i));\n }\n\n return res;\n}\n\nvar objectKeys = Object.keys || function (obj) {\n var res = [];\n\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\n }\n\n return res;\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n Event = require('./event');\n\nfunction TransportMessageEvent(data) {\n Event.call(this);\n this.initEvent('message', false, false);\n this.data = data;\n}\n\ninherits(TransportMessageEvent, Event);\nmodule.exports = TransportMessageEvent;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nmodule.exports = options => {\n options = Object.assign({\n onlyFirst: false\n }, options);\n const pattern = ['[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:[a-zA-Z\\\\d]*(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)', '(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))'].join('|');\n return new RegExp(pattern, options.onlyFirst ? undefined : 'g');\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nmodule.exports = {\n isObject: function (obj) {\n var type = typeof obj;\n return type === 'function' || type === 'object' && !!obj;\n },\n extend: function (obj) {\n if (!this.isObject(obj)) {\n return obj;\n }\n\n var source, prop;\n\n for (var i = 1, length = arguments.length; i < length; i++) {\n source = arguments[i];\n\n for (prop in source) {\n if (Object.prototype.hasOwnProperty.call(source, prop)) {\n obj[prop] = source[prop];\n }\n }\n }\n\n return obj;\n }\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"\"use strict\";\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return '@media ' + item[2] + '{' + content + '}';\n } else {\n return content;\n }\n }).join('');\n }; // import a list of modules into the list\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (i = 0; i < modules.length; i++) {\n var item = modules[i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n}","map":null,"metadata":{},"sourceType":"script"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"var _jsxFileName = \"/home/f2256342/forge/udemy-react/02/src/App.js\";\nimport React from 'react';\nimport './App.css';\nimport Person from './Person/Person';\n\nfunction App() {\n return React.createElement(\"div\", {\n className: \"App\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 7\n },\n __self: this\n }, React.createElement(\"h1\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 8\n },\n __self: this\n }, \"Hi, I'm a React App, I'm cute.\"), React.createElement(\"p\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9\n },\n __self: this\n }, \"Created using Functional code\"), React.createElement(Person, {\n name: \"Yutsuo\",\n ilvl: \"320\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 10\n },\n __self: this\n }, \" Main Character \"), React.createElement(Person, {\n name: \"Schwarzgeist\",\n ilvl: \"200\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11\n },\n __self: this\n }), React.createElement(Person, {\n name: \"Murom\",\n ilvl: \"78\",\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12\n },\n __self: this\n })); // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n} // class App extends React.Component {\n// render() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// <p>Created using OOP code</p>\n// </div>\n// );\n// // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n// }\n// }\n\n\nexport default App;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/App.js"],"names":["React","Person","App"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,WAAP;AACA,OAAOC,MAAP,MAAmB,iBAAnB;;AAEA,SAASC,GAAT,GAAe;AACb,SACE;AAAK,IAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCADF,EAEE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAFF,EAGE,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,IAAI,EAAC,KAA3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAHF,EAIE,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC,cAAb;AAA4B,IAAA,IAAI,EAAC,KAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAJF,EAKE,oBAAC,MAAD;AAAQ,IAAA,IAAI,EAAC,OAAb;AAAqB,IAAA,IAAI,EAAC,IAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IALF,CADF,CADa,CAUb;AACD,C,CAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAEA,eAAeA,GAAf","sourcesContent":["import React from 'react';\nimport './App.css';\nimport Person from './Person/Person';\n\nfunction App() {\n return (\n <div className=\"App\">\n <h1>Hi, I'm a React App, I'm cute.</h1>\n <p>Created using Functional code</p>\n <Person name=\"Yutsuo\" ilvl=\"320\"> Main Character </Person>\n <Person name=\"Schwarzgeist\" ilvl=\"200\"/>\n <Person name=\"Murom\" ilvl=\"78\"/>\n </div>\n );\n // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n}\n\n// class App extends React.Component {\n// render() {\n// return (\n// <div className=\"App\">\n// <h1>Hi, I'm a React App, I'm cute.</h1>\n// <p>Created using OOP code</p>\n// </div>\n// );\n// // return React.createElement('div', {className: 'App'}, React.createElement('h1', null, `Oh Hay I'm a React App!!!`));\n// }\n// }\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"var _jsxFileName = \"/home/f2256342/forge/udemy-react/02/src/Person/Person.js\";\nimport React from 'react';\n\nconst person = () => {\n return React.createElement(\"p\", {\n __source: {\n fileName: _jsxFileName,\n lineNumber: 4\n },\n __self: this\n }, \"I'm a Monk and my ilvl is Math.floor(Math.random() * 300) ready to raid!\");\n};\n\nexport default person;","map":{"version":3,"sources":["/home/f2256342/forge/udemy-react/02/src/Person/Person.js"],"names":["React","person"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;AAEA,MAAMC,MAAM,GAAG,MAAM;AACjB,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gFAAP;AACH,CAFD;;AAIA,eAAeA,MAAf","sourcesContent":["import React from 'react';\n\nconst person = () => {\n return <p>I'm a Monk and my ilvl is Math.floor(Math.random() * 300) ready to raid!</p>\n};\n\nexport default person;"]},"metadata":{},"sourceType":"module"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar EventEmitter = require('events').EventEmitter,\n inherits = require('inherits'),\n urlUtils = require('./utils/url'),\n XDR = require('./transport/sender/xdr'),\n XHRCors = require('./transport/sender/xhr-cors'),\n XHRLocal = require('./transport/sender/xhr-local'),\n XHRFake = require('./transport/sender/xhr-fake'),\n InfoIframe = require('./info-iframe'),\n InfoAjax = require('./info-ajax');\n\nvar debug = function () {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:info-receiver');\n}\n\nfunction InfoReceiver(baseUrl, urlInfo) {\n debug(baseUrl);\n var self = this;\n EventEmitter.call(this);\n setTimeout(function () {\n self.doXhr(baseUrl, urlInfo);\n }, 0);\n}\n\ninherits(InfoReceiver, EventEmitter); // TODO this is currently ignoring the list of available transports and the whitelist\n\nInfoReceiver._getReceiver = function (baseUrl, url, urlInfo) {\n // determine method of CORS support (if needed)\n if (urlInfo.sameOrigin) {\n return new InfoAjax(url, XHRLocal);\n }\n\n if (XHRCors.enabled) {\n return new InfoAjax(url, XHRCors);\n }\n\n if (XDR.enabled && urlInfo.sameScheme) {\n return new InfoAjax(url, XDR);\n }\n\n if (InfoIframe.enabled()) {\n return new InfoIframe(baseUrl, url);\n }\n\n return new InfoAjax(url, XHRFake);\n};\n\nInfoReceiver.prototype.doXhr = function (baseUrl, urlInfo) {\n var self = this,\n url = urlUtils.addPath(baseUrl, '/info');\n debug('doXhr', url);\n this.xo = InfoReceiver._getReceiver(baseUrl, url, urlInfo);\n this.timeoutRef = setTimeout(function () {\n debug('timeout');\n\n self._cleanup(false);\n\n self.emit('finish');\n }, InfoReceiver.timeout);\n this.xo.once('finish', function (info, rtt) {\n debug('finish', info, rtt);\n\n self._cleanup(true);\n\n self.emit('finish', info, rtt);\n });\n};\n\nInfoReceiver.prototype._cleanup = function (wasClean) {\n debug('_cleanup');\n clearTimeout(this.timeoutRef);\n this.timeoutRef = null;\n\n if (!wasClean && this.xo) {\n this.xo.close();\n }\n\n this.xo = null;\n};\n\nInfoReceiver.prototype.close = function () {\n debug('close');\n this.removeAllListeners();\n\n this._cleanup(false);\n};\n\nInfoReceiver.timeout = 8000;\nmodule.exports = InfoReceiver;","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n/* global crypto:true */\n\nvar crypto = require('crypto'); // This string has length 32, a power of 2, so the modulus doesn't introduce a\n// bias.\n\n\nvar _randomStringChars = 'abcdefghijklmnopqrstuvwxyz012345';\nmodule.exports = {\n string: function (length) {\n var max = _randomStringChars.length;\n var bytes = crypto.randomBytes(length);\n var ret = [];\n\n for (var i = 0; i < length; i++) {\n ret.push(_randomStringChars.substr(bytes[i] % max, 1));\n }\n\n return ret.join('');\n },\n number: function (max) {\n return Math.floor(Math.random() * max);\n },\n numberString: function (max) {\n var t = ('' + (max - 1)).length;\n var p = new Array(t + 1).join('0');\n return (p + this.number(max)).slice(-t);\n }\n};","map":null,"metadata":{},"sourceType":"script"} |
||||
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict'; // TODO: we might want to make this injectable to support DEV-time non-root URLs.\n\nmodule.exports = '/__open-stack-frame-in-editor';","map":null,"metadata":{},"sourceType":"script"} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
{"ast":null,"code":"'use strict';\n\nvar inherits = require('inherits'),\n iframeUtils = require('../../utils/iframe'),\n urlUtils = require('../../utils/url'),\n EventEmitter = require('events').EventEmitter,\n random = require('../../utils/random');\n\nvar debug = function () {};\n\nif (process.env.NODE_ENV !== 'production') {\n debug = require('debug')('sockjs-client:receiver:htmlfile');\n}\n\nfunction HtmlfileReceiver(url) {\n debug(url);\n EventEmitter.call(this);\n var self = this;\n iframeUtils.polluteGlobalNamespace();\n this.id = 'a' + random.string(6);\n url = urlUtils.addQuery(url, 'c=' + decodeURIComponent(iframeUtils.WPrefix + '.' + this.id));\n debug('using htmlfile', HtmlfileReceiver.htmlfileEnabled);\n var constructFunc = HtmlfileReceiver.htmlfileEnabled ? iframeUtils.createHtmlfile : iframeUtils.createIframe;\n global[iframeUtils.WPrefix][this.id] = {\n start: function () {\n debug('start');\n self.iframeObj.loaded();\n },\n message: function (data) {\n debug('message', data);\n self.emit('message', data);\n },\n stop: function () {\n debug('stop');\n\n self._cleanup();\n\n self._close('network');\n }\n };\n this.iframeObj = constructFunc(url, function () {\n debug('callback');\n\n self._cleanup();\n\n self._close('permanent');\n });\n}\n\ninherits(HtmlfileReceiver, EventEmitter);\n\nHtmlfileReceiver.prototype.abort = function () {\n debug('abort');\n\n this._cleanup();\n\n this._close('user');\n};\n\nHtmlfileReceiver.prototype._cleanup = function () {\n debug('_cleanup');\n\n if (this.iframeObj) {\n this.iframeObj.cleanup();\n this.iframeObj = null;\n }\n\n delete global[iframeUtils.WPrefix][this.id];\n};\n\nHtmlfileReceiver.prototype._close = function (reason) {\n debug('_close', reason);\n this.emit('close', null, reason);\n this.removeAllListeners();\n};\n\nHtmlfileReceiver.htmlfileEnabled = false; // obfuscate to avoid firewalls\n\nvar axo = ['Active'].concat('Object').join('X');\n\nif (axo in global) {\n try {\n HtmlfileReceiver.htmlfileEnabled = !!new global[axo]('htmlfile');\n } catch (x) {// intentionally empty\n }\n}\n\nHtmlfileReceiver.enabled = HtmlfileReceiver.htmlfileEnabled || iframeUtils.iframeEnabled;\nmodule.exports = HtmlfileReceiver;","map":null,"metadata":{},"sourceType":"script"} |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue