Initial commit

This commit is contained in:
pasketti
2026-04-05 16:14:49 -04:00
commit ebee3a5534
14059 changed files with 2588797 additions and 0 deletions

21
node_modules/react-hot-loader/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2016 Dan Abramov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

7
node_modules/react-hot-loader/babel.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/babel.production.min.js');
} else {
module.exports = require('./dist/babel.development.js');
}

172
node_modules/react-hot-loader/dist/babel.development.js generated vendored Normal file
View File

@@ -0,0 +1,172 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
// the same as before
var PREFIX = '__reactstandin__';
var REGENERATE_METHOD = PREFIX + 'regenerateByEval';
var templateOptions = {
placeholderPattern: /^([A-Z0-9]+)([A-Z0-9_]+)$/
/* eslint-disable */
};var shouldIgnoreFile = function shouldIgnoreFile(file) {
return !!file.split('\\').join('/').match(/node_modules\/(react|react-hot-loader)([\/]|$)/);
};
/* eslint-enable */
module.exports = function plugin(args) {
// This is a Babel plugin, but the user put it in the Webpack config.
if (this && this.callback) {
throw new Error('React Hot Loader: You are erroneously trying to use a Babel plugin ' + 'as a Webpack loader. We recommend that you use Babel, ' + 'remove "react-hot-loader/babel" from the "loaders" section ' + 'of your Webpack configuration, and instead add ' + '"react-hot-loader/babel" to the "plugins" section of your .babelrc file. ' + 'If you prefer not to use Babel, replace "react-hot-loader/babel" with ' + '"react-hot-loader/webpack" in the "loaders" section of your Webpack configuration. ');
}
var t = args.types,
template = args.template;
var buildRegistration = template('reactHotLoader.register(ID, NAME, FILENAME);', templateOptions);
var headerTemplate = template('(function () {\n var enterModule = require(\'react-hot-loader\').enterModule;\n enterModule && enterModule(module);\n }())', templateOptions);
var evalTemplate = template('this[key]=eval(code);', templateOptions);
// We're making the IIFE we insert at the end of the file an unused variable
// because it otherwise breaks the output of the babel-node REPL (#359).
var buildTagger = template('\n(function () {\n var reactHotLoader = require(\'react-hot-loader\').default;\n var leaveModule = require(\'react-hot-loader\').leaveModule;\n\n if (!reactHotLoader) {\n return;\n }\n\n REGISTRATIONS\n\n leaveModule(module);\n}());\n ', templateOptions);
// Gather top-level variables, functions, and classes.
// Try our best to avoid variables from require().
// Ideally we only want to find components defined by the user.
function shouldRegisterBinding(binding) {
var _binding$path = binding.path,
type = _binding$path.type,
node = _binding$path.node;
switch (type) {
case 'FunctionDeclaration':
case 'ClassDeclaration':
case 'VariableDeclaration':
return true;
case 'VariableDeclarator':
{
var init = node.init;
if (t.isCallExpression(init) && init.callee.name === 'require') {
return false;
}
return true;
}
default:
return false;
}
}
var REGISTRATIONS = Symbol('registrations');
return {
visitor: {
ExportDefaultDeclaration: function ExportDefaultDeclaration(path, state) {
var file = state.file;
// Default exports with names are going
// to be in scope anyway so no need to bother.
if (path.node.declaration.id) {
return;
}
// Move export default right hand side to a variable
// so we can later refer to it and tag it with __source.
var id = path.scope.generateUidIdentifier('default');
var expression = t.isExpression(path.node.declaration) ? path.node.declaration : t.toExpression(path.node.declaration);
path.insertBefore(t.variableDeclaration('const', [t.variableDeclarator(id, expression)]));
path.node.declaration = id; // eslint-disable-line no-param-reassign
// It won't appear in scope.bindings
// so we'll manually remember it exists.
state[REGISTRATIONS].push(buildRegistration({
ID: id,
NAME: t.stringLiteral('default'),
FILENAME: t.stringLiteral(file.opts.filename)
}));
},
Program: {
enter: function enter(_ref, state) {
var scope = _ref.scope;
var file = state.file;
state[REGISTRATIONS] = []; // eslint-disable-line no-param-reassign
// Everything in the top level scope, when reasonable,
// is going to get tagged with __source.
/* eslint-disable guard-for-in,no-restricted-syntax */
for (var id in scope.bindings) {
var binding = scope.bindings[id];
if (shouldRegisterBinding(binding)) {
state[REGISTRATIONS].push(buildRegistration({
ID: binding.identifier,
NAME: t.stringLiteral(id),
FILENAME: t.stringLiteral(file.opts.filename)
}));
}
}
/* eslint-enable */
},
exit: function exit(_ref2, state) {
var node = _ref2.node;
var file = state.file;
var registrations = state[REGISTRATIONS];
state[REGISTRATIONS] = [];
// inject the code only if applicable
if (registrations && registrations.length && !shouldIgnoreFile(file.opts.filename)) {
node.body.unshift(headerTemplate());
// Inject the generated tagging code at the very end
// so that it is as minimally intrusive as possible.
node.body.push(t.emptyStatement());
node.body.push(buildTagger({ REGISTRATIONS: registrations }));
node.body.push(t.emptyStatement());
}
}
},
Class: function Class(classPath) {
var classBody = classPath.get('body');
var hasRegenerateMethod = false;
var hasMethods = false;
classBody.get('body').forEach(function (path) {
var node = path.node;
// don't apply transform to static class properties
if (node.static) {
return;
}
if (node.key.name !== REGENERATE_METHOD) {
hasMethods = true;
} else {
hasRegenerateMethod = true;
}
});
if (hasMethods && !hasRegenerateMethod) {
var regenerateMethod = t.classMethod('method', t.identifier(REGENERATE_METHOD), [t.identifier('key'), t.identifier('code')], t.blockStatement([evalTemplate()]));
classBody.pushContainer('body', regenerateMethod);
classBody.get('body').forEach(function (path) {
var node = path.node;
if (node.key.name === REGENERATE_METHOD) {
path.addComment('leading', ' @ts-ignore', true);
path.get('body').get('body')[0].addComment('leading', ' @ts-ignore', true);
}
});
}
}
}
};
};
module.exports.shouldIgnoreFile = shouldIgnoreFile;

View File

@@ -0,0 +1 @@
"use strict";function plugin(){return{visitor:{}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=plugin;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},AppContainer=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.render=function(){return React.Children.only(this.props.children)},e}(React.Component),hot_prod=function(){return function(t){return t}},areComponentsEqual=function(t,e){return t===e},setConfig=function(){},cold=function(t){return t};exports.AppContainer=AppContainer,exports.hot=hot_prod,exports.areComponentsEqual=areComponentsEqual,exports.setConfig=setConfig,exports.cold=cold;

21
node_modules/react-hot-loader/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
'use strict'
var evalAllowed = false;
try {
eval('evalAllowed = true');
} catch (e) {
// eval not allowed due to CSP
}
// RHL needs setPrototypeOf to operate Component inheritance, and eval to patch methods
var platformSupported = !!Object.setPrototypeOf && evalAllowed;
if (!module.hot || process.env.NODE_ENV === 'production' || !platformSupported) {
if (module.hot) {
// we are not in prod mode, but RHL could not be activated
console.warn('React-Hot-Loaded is not supported in this environment');
}
module.exports = require('./dist/react-hot-loader.production.min.js');
} else {
module.exports = require('./dist/react-hot-loader.development.js');
}

97
node_modules/react-hot-loader/package.json generated vendored Normal file
View File

@@ -0,0 +1,97 @@
{
"name": "react-hot-loader",
"version": "4.3.11",
"description": "Tweak React components in real time.",
"main": "index.js",
"types": "react-hot-loader.d.ts",
"homepage": "https://github.com/gaearon/react-hot-loader",
"repository": "https://github.com/gaearon/react-hot-loader/",
"license": "MIT",
"author": "Dan Abramov",
"lint-staged": {
"*.{js,md,ts,json}": [
"prettier --write",
"git add"
]
},
"files": [
"dist",
"index.js",
"babel.js",
"patch.js",
"react-hot-loader.d.ts"
],
"devDependencies": {
"babel-cli": "^6.7.5",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.3",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.5.0",
"codecov": "^3.0.1",
"conventional-github-releaser": "^2.0.2",
"create-react-class": "^15.6.3",
"cross-env": "^5.1.4",
"enzyme": "^3.3.0",
"enzyme-adapter-react-15": "^1.0.5",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.0.0",
"eslint-config-prettier": "^2.6.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"husky": "^0.14.3",
"jest": "^22.4.3",
"lint-staged": "^7.1.0",
"prettier": "^1.12.1",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-mount": "^0.1.3",
"react-test-renderer": "16.3.2",
"recompose": "^0.27.0",
"rimraf": "^2.5.2",
"rollup": "^0.58.2",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^3.0.0",
"standard-version": "^4.3.0"
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0"
},
"dependencies": {
"fast-levenshtein": "^2.0.6",
"global": "^4.3.0",
"hoist-non-react-statics": "^2.5.0",
"prop-types": "^15.6.1",
"react-lifecycles-compat": "^3.0.4",
"shallowequal": "^1.0.2"
},
"engines": {
"node": ">= 6"
},
"jest": {
"moduleDirectories": [
"node_modules",
"<rootDir>"
],
"setupFiles": [
"<rootDir>/testConfig/setupTests.js"
],
"transform": {
"^.+\\.js$": "<rootDir>/testConfig/babel.js"
}
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/react-hot-loader"
}
}

7
node_modules/react-hot-loader/patch.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use strict'
if (!module.hot || process.env.NODE_ENV === 'production') {
module.exports = require('./dist/react-hot-loader.production.min.js');
} else {
module.exports = require('./dist/react-hot-loader.development.js');
}