Add files using upload-large-folder tool
Browse files- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/index.js +9 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/loader/index.js +196 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js +17 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js +23 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js +18 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js +9 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js +25 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/validators/index.js +55 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js +142 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/config/index.js +7 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/loader/index.js +188 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/compose.js +13 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/curry.js +19 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js +14 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js +5 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js +21 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/validators/index.js +50 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/types.d.ts +23 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/.github/FUNDING.yml +12 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.d.ts +232 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.js +2 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.js.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.mjs +2 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.mjs.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/README.md +171 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/package.json +44 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.stat/README.md +126 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.stat/package.json +37 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.walk/README.md +215 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.walk/package.json +44 -0
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
var index = require('./loader/index.js');
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
exports.default = index['default'];
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/loader/index.js
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
|
| 6 |
+
var state = require('state-local');
|
| 7 |
+
var index = require('../config/index.js');
|
| 8 |
+
var index$1 = require('../validators/index.js');
|
| 9 |
+
var compose = require('../utils/compose.js');
|
| 10 |
+
var deepMerge = require('../utils/deepMerge.js');
|
| 11 |
+
var makeCancelable = require('../utils/makeCancelable.js');
|
| 12 |
+
|
| 13 |
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
| 14 |
+
|
| 15 |
+
var state__default = /*#__PURE__*/_interopDefaultLegacy(state);
|
| 16 |
+
|
| 17 |
+
/** the local state of the module */
|
| 18 |
+
|
| 19 |
+
var _state$create = state__default['default'].create({
|
| 20 |
+
config: index['default'],
|
| 21 |
+
isInitialized: false,
|
| 22 |
+
resolve: null,
|
| 23 |
+
reject: null,
|
| 24 |
+
monaco: null
|
| 25 |
+
}),
|
| 26 |
+
_state$create2 = _rollupPluginBabelHelpers.slicedToArray(_state$create, 2),
|
| 27 |
+
getState = _state$create2[0],
|
| 28 |
+
setState = _state$create2[1];
|
| 29 |
+
/**
|
| 30 |
+
* set the loader configuration
|
| 31 |
+
* @param {Object} config - the configuration object
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
function config(globalConfig) {
|
| 36 |
+
var _validators$config = index$1['default'].config(globalConfig),
|
| 37 |
+
monaco = _validators$config.monaco,
|
| 38 |
+
config = _rollupPluginBabelHelpers.objectWithoutProperties(_validators$config, ["monaco"]);
|
| 39 |
+
|
| 40 |
+
setState(function (state) {
|
| 41 |
+
return {
|
| 42 |
+
config: deepMerge['default'](state.config, config),
|
| 43 |
+
monaco: monaco
|
| 44 |
+
};
|
| 45 |
+
});
|
| 46 |
+
}
|
| 47 |
+
/**
|
| 48 |
+
* handles the initialization of the monaco-editor
|
| 49 |
+
* @return {Promise} - returns an instance of monaco (with a cancelable promise)
|
| 50 |
+
*/
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
function init() {
|
| 54 |
+
var state = getState(function (_ref) {
|
| 55 |
+
var monaco = _ref.monaco,
|
| 56 |
+
isInitialized = _ref.isInitialized,
|
| 57 |
+
resolve = _ref.resolve;
|
| 58 |
+
return {
|
| 59 |
+
monaco: monaco,
|
| 60 |
+
isInitialized: isInitialized,
|
| 61 |
+
resolve: resolve
|
| 62 |
+
};
|
| 63 |
+
});
|
| 64 |
+
|
| 65 |
+
if (!state.isInitialized) {
|
| 66 |
+
setState({
|
| 67 |
+
isInitialized: true
|
| 68 |
+
});
|
| 69 |
+
|
| 70 |
+
if (state.monaco) {
|
| 71 |
+
state.resolve(state.monaco);
|
| 72 |
+
return makeCancelable['default'](wrapperPromise);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
if (window.monaco && window.monaco.editor) {
|
| 76 |
+
storeMonacoInstance(window.monaco);
|
| 77 |
+
state.resolve(window.monaco);
|
| 78 |
+
return makeCancelable['default'](wrapperPromise);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
compose['default'](injectScripts, getMonacoLoaderScript)(configureLoader);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
return makeCancelable['default'](wrapperPromise);
|
| 85 |
+
}
|
| 86 |
+
/**
|
| 87 |
+
* injects provided scripts into the document.body
|
| 88 |
+
* @param {Object} script - an HTML script element
|
| 89 |
+
* @return {Object} - the injected HTML script element
|
| 90 |
+
*/
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
function injectScripts(script) {
|
| 94 |
+
return document.body.appendChild(script);
|
| 95 |
+
}
|
| 96 |
+
/**
|
| 97 |
+
* creates an HTML script element with/without provided src
|
| 98 |
+
* @param {string} [src] - the source path of the script
|
| 99 |
+
* @return {Object} - the created HTML script element
|
| 100 |
+
*/
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
function createScript(src) {
|
| 104 |
+
var script = document.createElement('script');
|
| 105 |
+
return src && (script.src = src), script;
|
| 106 |
+
}
|
| 107 |
+
/**
|
| 108 |
+
* creates an HTML script element with the monaco loader src
|
| 109 |
+
* @return {Object} - the created HTML script element
|
| 110 |
+
*/
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
function getMonacoLoaderScript(configureLoader) {
|
| 114 |
+
var state = getState(function (_ref2) {
|
| 115 |
+
var config = _ref2.config,
|
| 116 |
+
reject = _ref2.reject;
|
| 117 |
+
return {
|
| 118 |
+
config: config,
|
| 119 |
+
reject: reject
|
| 120 |
+
};
|
| 121 |
+
});
|
| 122 |
+
var loaderScript = createScript("".concat(state.config.paths.vs, "/loader.js"));
|
| 123 |
+
|
| 124 |
+
loaderScript.onload = function () {
|
| 125 |
+
return configureLoader();
|
| 126 |
+
};
|
| 127 |
+
|
| 128 |
+
loaderScript.onerror = state.reject;
|
| 129 |
+
return loaderScript;
|
| 130 |
+
}
|
| 131 |
+
/**
|
| 132 |
+
* configures the monaco loader
|
| 133 |
+
*/
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
function configureLoader() {
|
| 137 |
+
var state = getState(function (_ref3) {
|
| 138 |
+
var config = _ref3.config,
|
| 139 |
+
resolve = _ref3.resolve,
|
| 140 |
+
reject = _ref3.reject;
|
| 141 |
+
return {
|
| 142 |
+
config: config,
|
| 143 |
+
resolve: resolve,
|
| 144 |
+
reject: reject
|
| 145 |
+
};
|
| 146 |
+
});
|
| 147 |
+
var require = window.require;
|
| 148 |
+
|
| 149 |
+
require.config(state.config);
|
| 150 |
+
|
| 151 |
+
require(['vs/editor/editor.main'], function (monaco) {
|
| 152 |
+
storeMonacoInstance(monaco);
|
| 153 |
+
state.resolve(monaco);
|
| 154 |
+
}, function (error) {
|
| 155 |
+
state.reject(error);
|
| 156 |
+
});
|
| 157 |
+
}
|
| 158 |
+
/**
|
| 159 |
+
* store monaco instance in local state
|
| 160 |
+
*/
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
function storeMonacoInstance(monaco) {
|
| 164 |
+
if (!getState().monaco) {
|
| 165 |
+
setState({
|
| 166 |
+
monaco: monaco
|
| 167 |
+
});
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
/**
|
| 171 |
+
* internal helper function
|
| 172 |
+
* extracts stored monaco instance
|
| 173 |
+
* @return {Object|null} - the monaco instance
|
| 174 |
+
*/
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
function __getMonacoInstance() {
|
| 178 |
+
return getState(function (_ref4) {
|
| 179 |
+
var monaco = _ref4.monaco;
|
| 180 |
+
return monaco;
|
| 181 |
+
});
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
var wrapperPromise = new Promise(function (resolve, reject) {
|
| 185 |
+
return setState({
|
| 186 |
+
resolve: resolve,
|
| 187 |
+
reject: reject
|
| 188 |
+
});
|
| 189 |
+
});
|
| 190 |
+
var loader = {
|
| 191 |
+
config: config,
|
| 192 |
+
init: init,
|
| 193 |
+
__getMonacoInstance: __getMonacoInstance
|
| 194 |
+
};
|
| 195 |
+
|
| 196 |
+
exports.default = loader;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
var compose = function compose() {
|
| 6 |
+
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 7 |
+
fns[_key] = arguments[_key];
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
return function (x) {
|
| 11 |
+
return fns.reduceRight(function (y, f) {
|
| 12 |
+
return f(y);
|
| 13 |
+
}, x);
|
| 14 |
+
};
|
| 15 |
+
};
|
| 16 |
+
|
| 17 |
+
exports.default = compose;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
function curry(fn) {
|
| 6 |
+
return function curried() {
|
| 7 |
+
var _this = this;
|
| 8 |
+
|
| 9 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 10 |
+
args[_key] = arguments[_key];
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
return args.length >= fn.length ? fn.apply(this, args) : function () {
|
| 14 |
+
for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
| 15 |
+
nextArgs[_key2] = arguments[_key2];
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
return curried.apply(_this, [].concat(args, nextArgs));
|
| 19 |
+
};
|
| 20 |
+
};
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
exports.default = curry;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
|
| 6 |
+
|
| 7 |
+
function merge(target, source) {
|
| 8 |
+
Object.keys(source).forEach(function (key) {
|
| 9 |
+
if (source[key] instanceof Object) {
|
| 10 |
+
if (target[key]) {
|
| 11 |
+
Object.assign(source[key], merge(target[key], source[key]));
|
| 12 |
+
}
|
| 13 |
+
}
|
| 14 |
+
});
|
| 15 |
+
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, target), source);
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
exports.default = merge;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
function isObject(value) {
|
| 6 |
+
return {}.toString.call(value).includes('Object');
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
exports.default = isObject;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325
|
| 6 |
+
var CANCELATION_MESSAGE = {
|
| 7 |
+
type: 'cancelation',
|
| 8 |
+
msg: 'operation is manually canceled'
|
| 9 |
+
};
|
| 10 |
+
|
| 11 |
+
function makeCancelable(promise) {
|
| 12 |
+
var hasCanceled_ = false;
|
| 13 |
+
var wrappedPromise = new Promise(function (resolve, reject) {
|
| 14 |
+
promise.then(function (val) {
|
| 15 |
+
return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);
|
| 16 |
+
});
|
| 17 |
+
promise["catch"](reject);
|
| 18 |
+
});
|
| 19 |
+
return wrappedPromise.cancel = function () {
|
| 20 |
+
return hasCanceled_ = true;
|
| 21 |
+
}, wrappedPromise;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
exports.CANCELATION_MESSAGE = CANCELATION_MESSAGE;
|
| 25 |
+
exports.default = makeCancelable;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/cjs/validators/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict';
|
| 2 |
+
|
| 3 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 4 |
+
|
| 5 |
+
var curry = require('../utils/curry.js');
|
| 6 |
+
var isObject = require('../utils/isObject.js');
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* validates the configuration object and informs about deprecation
|
| 10 |
+
* @param {Object} config - the configuration object
|
| 11 |
+
* @return {Object} config - the validated configuration object
|
| 12 |
+
*/
|
| 13 |
+
|
| 14 |
+
function validateConfig(config) {
|
| 15 |
+
if (!config) errorHandler('configIsRequired');
|
| 16 |
+
if (!isObject['default'](config)) errorHandler('configType');
|
| 17 |
+
|
| 18 |
+
if (config.urls) {
|
| 19 |
+
informAboutDeprecation();
|
| 20 |
+
return {
|
| 21 |
+
paths: {
|
| 22 |
+
vs: config.urls.monacoBase
|
| 23 |
+
}
|
| 24 |
+
};
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
return config;
|
| 28 |
+
}
|
| 29 |
+
/**
|
| 30 |
+
* logs deprecation message
|
| 31 |
+
*/
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
function informAboutDeprecation() {
|
| 35 |
+
console.warn(errorMessages.deprecation);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
function throwError(errorMessages, type) {
|
| 39 |
+
throw new Error(errorMessages[type] || errorMessages["default"]);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
var errorMessages = {
|
| 43 |
+
configIsRequired: 'the configuration object is required',
|
| 44 |
+
configType: 'the configuration object should be an object',
|
| 45 |
+
"default": 'an unknown error accured in `@monaco-editor/loader` package',
|
| 46 |
+
deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
|
| 47 |
+
};
|
| 48 |
+
var errorHandler = curry['default'](throwError)(errorMessages);
|
| 49 |
+
var validators = {
|
| 50 |
+
config: validateConfig
|
| 51 |
+
};
|
| 52 |
+
|
| 53 |
+
exports.default = validators;
|
| 54 |
+
exports.errorHandler = errorHandler;
|
| 55 |
+
exports.errorMessages = errorMessages;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function _defineProperty(obj, key, value) {
|
| 2 |
+
if (key in obj) {
|
| 3 |
+
Object.defineProperty(obj, key, {
|
| 4 |
+
value: value,
|
| 5 |
+
enumerable: true,
|
| 6 |
+
configurable: true,
|
| 7 |
+
writable: true
|
| 8 |
+
});
|
| 9 |
+
} else {
|
| 10 |
+
obj[key] = value;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
return obj;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
function ownKeys(object, enumerableOnly) {
|
| 17 |
+
var keys = Object.keys(object);
|
| 18 |
+
|
| 19 |
+
if (Object.getOwnPropertySymbols) {
|
| 20 |
+
var symbols = Object.getOwnPropertySymbols(object);
|
| 21 |
+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
| 22 |
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
| 23 |
+
});
|
| 24 |
+
keys.push.apply(keys, symbols);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
return keys;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
function _objectSpread2(target) {
|
| 31 |
+
for (var i = 1; i < arguments.length; i++) {
|
| 32 |
+
var source = arguments[i] != null ? arguments[i] : {};
|
| 33 |
+
|
| 34 |
+
if (i % 2) {
|
| 35 |
+
ownKeys(Object(source), true).forEach(function (key) {
|
| 36 |
+
_defineProperty(target, key, source[key]);
|
| 37 |
+
});
|
| 38 |
+
} else if (Object.getOwnPropertyDescriptors) {
|
| 39 |
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
| 40 |
+
} else {
|
| 41 |
+
ownKeys(Object(source)).forEach(function (key) {
|
| 42 |
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
| 43 |
+
});
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
return target;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
| 51 |
+
if (source == null) return {};
|
| 52 |
+
var target = {};
|
| 53 |
+
var sourceKeys = Object.keys(source);
|
| 54 |
+
var key, i;
|
| 55 |
+
|
| 56 |
+
for (i = 0; i < sourceKeys.length; i++) {
|
| 57 |
+
key = sourceKeys[i];
|
| 58 |
+
if (excluded.indexOf(key) >= 0) continue;
|
| 59 |
+
target[key] = source[key];
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
return target;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
function _objectWithoutProperties(source, excluded) {
|
| 66 |
+
if (source == null) return {};
|
| 67 |
+
|
| 68 |
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
| 69 |
+
|
| 70 |
+
var key, i;
|
| 71 |
+
|
| 72 |
+
if (Object.getOwnPropertySymbols) {
|
| 73 |
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
| 74 |
+
|
| 75 |
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
| 76 |
+
key = sourceSymbolKeys[i];
|
| 77 |
+
if (excluded.indexOf(key) >= 0) continue;
|
| 78 |
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
| 79 |
+
target[key] = source[key];
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
return target;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
function _slicedToArray(arr, i) {
|
| 87 |
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
function _arrayWithHoles(arr) {
|
| 91 |
+
if (Array.isArray(arr)) return arr;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
function _iterableToArrayLimit(arr, i) {
|
| 95 |
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
| 96 |
+
var _arr = [];
|
| 97 |
+
var _n = true;
|
| 98 |
+
var _d = false;
|
| 99 |
+
var _e = undefined;
|
| 100 |
+
|
| 101 |
+
try {
|
| 102 |
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
| 103 |
+
_arr.push(_s.value);
|
| 104 |
+
|
| 105 |
+
if (i && _arr.length === i) break;
|
| 106 |
+
}
|
| 107 |
+
} catch (err) {
|
| 108 |
+
_d = true;
|
| 109 |
+
_e = err;
|
| 110 |
+
} finally {
|
| 111 |
+
try {
|
| 112 |
+
if (!_n && _i["return"] != null) _i["return"]();
|
| 113 |
+
} finally {
|
| 114 |
+
if (_d) throw _e;
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
return _arr;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
function _unsupportedIterableToArray(o, minLen) {
|
| 122 |
+
if (!o) return;
|
| 123 |
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
| 124 |
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
| 125 |
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
| 126 |
+
if (n === "Map" || n === "Set") return Array.from(o);
|
| 127 |
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
function _arrayLikeToArray(arr, len) {
|
| 131 |
+
if (len == null || len > arr.length) len = arr.length;
|
| 132 |
+
|
| 133 |
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
| 134 |
+
|
| 135 |
+
return arr2;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
function _nonIterableRest() {
|
| 139 |
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/config/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var config = {
|
| 2 |
+
paths: {
|
| 3 |
+
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs'
|
| 4 |
+
}
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
export default config;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/loader/index.js
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';
|
| 2 |
+
import state from 'state-local';
|
| 3 |
+
import config$1 from '../config/index.js';
|
| 4 |
+
import validators from '../validators/index.js';
|
| 5 |
+
import compose from '../utils/compose.js';
|
| 6 |
+
import merge from '../utils/deepMerge.js';
|
| 7 |
+
import makeCancelable from '../utils/makeCancelable.js';
|
| 8 |
+
|
| 9 |
+
/** the local state of the module */
|
| 10 |
+
|
| 11 |
+
var _state$create = state.create({
|
| 12 |
+
config: config$1,
|
| 13 |
+
isInitialized: false,
|
| 14 |
+
resolve: null,
|
| 15 |
+
reject: null,
|
| 16 |
+
monaco: null
|
| 17 |
+
}),
|
| 18 |
+
_state$create2 = _slicedToArray(_state$create, 2),
|
| 19 |
+
getState = _state$create2[0],
|
| 20 |
+
setState = _state$create2[1];
|
| 21 |
+
/**
|
| 22 |
+
* set the loader configuration
|
| 23 |
+
* @param {Object} config - the configuration object
|
| 24 |
+
*/
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
function config(globalConfig) {
|
| 28 |
+
var _validators$config = validators.config(globalConfig),
|
| 29 |
+
monaco = _validators$config.monaco,
|
| 30 |
+
config = _objectWithoutProperties(_validators$config, ["monaco"]);
|
| 31 |
+
|
| 32 |
+
setState(function (state) {
|
| 33 |
+
return {
|
| 34 |
+
config: merge(state.config, config),
|
| 35 |
+
monaco: monaco
|
| 36 |
+
};
|
| 37 |
+
});
|
| 38 |
+
}
|
| 39 |
+
/**
|
| 40 |
+
* handles the initialization of the monaco-editor
|
| 41 |
+
* @return {Promise} - returns an instance of monaco (with a cancelable promise)
|
| 42 |
+
*/
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
function init() {
|
| 46 |
+
var state = getState(function (_ref) {
|
| 47 |
+
var monaco = _ref.monaco,
|
| 48 |
+
isInitialized = _ref.isInitialized,
|
| 49 |
+
resolve = _ref.resolve;
|
| 50 |
+
return {
|
| 51 |
+
monaco: monaco,
|
| 52 |
+
isInitialized: isInitialized,
|
| 53 |
+
resolve: resolve
|
| 54 |
+
};
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
if (!state.isInitialized) {
|
| 58 |
+
setState({
|
| 59 |
+
isInitialized: true
|
| 60 |
+
});
|
| 61 |
+
|
| 62 |
+
if (state.monaco) {
|
| 63 |
+
state.resolve(state.monaco);
|
| 64 |
+
return makeCancelable(wrapperPromise);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
if (window.monaco && window.monaco.editor) {
|
| 68 |
+
storeMonacoInstance(window.monaco);
|
| 69 |
+
state.resolve(window.monaco);
|
| 70 |
+
return makeCancelable(wrapperPromise);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
compose(injectScripts, getMonacoLoaderScript)(configureLoader);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
return makeCancelable(wrapperPromise);
|
| 77 |
+
}
|
| 78 |
+
/**
|
| 79 |
+
* injects provided scripts into the document.body
|
| 80 |
+
* @param {Object} script - an HTML script element
|
| 81 |
+
* @return {Object} - the injected HTML script element
|
| 82 |
+
*/
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
function injectScripts(script) {
|
| 86 |
+
return document.body.appendChild(script);
|
| 87 |
+
}
|
| 88 |
+
/**
|
| 89 |
+
* creates an HTML script element with/without provided src
|
| 90 |
+
* @param {string} [src] - the source path of the script
|
| 91 |
+
* @return {Object} - the created HTML script element
|
| 92 |
+
*/
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
function createScript(src) {
|
| 96 |
+
var script = document.createElement('script');
|
| 97 |
+
return src && (script.src = src), script;
|
| 98 |
+
}
|
| 99 |
+
/**
|
| 100 |
+
* creates an HTML script element with the monaco loader src
|
| 101 |
+
* @return {Object} - the created HTML script element
|
| 102 |
+
*/
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
function getMonacoLoaderScript(configureLoader) {
|
| 106 |
+
var state = getState(function (_ref2) {
|
| 107 |
+
var config = _ref2.config,
|
| 108 |
+
reject = _ref2.reject;
|
| 109 |
+
return {
|
| 110 |
+
config: config,
|
| 111 |
+
reject: reject
|
| 112 |
+
};
|
| 113 |
+
});
|
| 114 |
+
var loaderScript = createScript("".concat(state.config.paths.vs, "/loader.js"));
|
| 115 |
+
|
| 116 |
+
loaderScript.onload = function () {
|
| 117 |
+
return configureLoader();
|
| 118 |
+
};
|
| 119 |
+
|
| 120 |
+
loaderScript.onerror = state.reject;
|
| 121 |
+
return loaderScript;
|
| 122 |
+
}
|
| 123 |
+
/**
|
| 124 |
+
* configures the monaco loader
|
| 125 |
+
*/
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
function configureLoader() {
|
| 129 |
+
var state = getState(function (_ref3) {
|
| 130 |
+
var config = _ref3.config,
|
| 131 |
+
resolve = _ref3.resolve,
|
| 132 |
+
reject = _ref3.reject;
|
| 133 |
+
return {
|
| 134 |
+
config: config,
|
| 135 |
+
resolve: resolve,
|
| 136 |
+
reject: reject
|
| 137 |
+
};
|
| 138 |
+
});
|
| 139 |
+
var require = window.require;
|
| 140 |
+
|
| 141 |
+
require.config(state.config);
|
| 142 |
+
|
| 143 |
+
require(['vs/editor/editor.main'], function (monaco) {
|
| 144 |
+
storeMonacoInstance(monaco);
|
| 145 |
+
state.resolve(monaco);
|
| 146 |
+
}, function (error) {
|
| 147 |
+
state.reject(error);
|
| 148 |
+
});
|
| 149 |
+
}
|
| 150 |
+
/**
|
| 151 |
+
* store monaco instance in local state
|
| 152 |
+
*/
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
function storeMonacoInstance(monaco) {
|
| 156 |
+
if (!getState().monaco) {
|
| 157 |
+
setState({
|
| 158 |
+
monaco: monaco
|
| 159 |
+
});
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
/**
|
| 163 |
+
* internal helper function
|
| 164 |
+
* extracts stored monaco instance
|
| 165 |
+
* @return {Object|null} - the monaco instance
|
| 166 |
+
*/
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
function __getMonacoInstance() {
|
| 170 |
+
return getState(function (_ref4) {
|
| 171 |
+
var monaco = _ref4.monaco;
|
| 172 |
+
return monaco;
|
| 173 |
+
});
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
var wrapperPromise = new Promise(function (resolve, reject) {
|
| 177 |
+
return setState({
|
| 178 |
+
resolve: resolve,
|
| 179 |
+
reject: reject
|
| 180 |
+
});
|
| 181 |
+
});
|
| 182 |
+
var loader = {
|
| 183 |
+
config: config,
|
| 184 |
+
init: init,
|
| 185 |
+
__getMonacoInstance: __getMonacoInstance
|
| 186 |
+
};
|
| 187 |
+
|
| 188 |
+
export default loader;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/compose.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var compose = function compose() {
|
| 2 |
+
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 3 |
+
fns[_key] = arguments[_key];
|
| 4 |
+
}
|
| 5 |
+
|
| 6 |
+
return function (x) {
|
| 7 |
+
return fns.reduceRight(function (y, f) {
|
| 8 |
+
return f(y);
|
| 9 |
+
}, x);
|
| 10 |
+
};
|
| 11 |
+
};
|
| 12 |
+
|
| 13 |
+
export default compose;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/curry.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function curry(fn) {
|
| 2 |
+
return function curried() {
|
| 3 |
+
var _this = this;
|
| 4 |
+
|
| 5 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
| 6 |
+
args[_key] = arguments[_key];
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
return args.length >= fn.length ? fn.apply(this, args) : function () {
|
| 10 |
+
for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
| 11 |
+
nextArgs[_key2] = arguments[_key2];
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
return curried.apply(_this, [].concat(args, nextArgs));
|
| 15 |
+
};
|
| 16 |
+
};
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
export default curry;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
| 2 |
+
|
| 3 |
+
function merge(target, source) {
|
| 4 |
+
Object.keys(source).forEach(function (key) {
|
| 5 |
+
if (source[key] instanceof Object) {
|
| 6 |
+
if (target[key]) {
|
| 7 |
+
Object.assign(source[key], merge(target[key], source[key]));
|
| 8 |
+
}
|
| 9 |
+
}
|
| 10 |
+
});
|
| 11 |
+
return _objectSpread2(_objectSpread2({}, target), source);
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
export default merge;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
function isObject(value) {
|
| 2 |
+
return {}.toString.call(value).includes('Object');
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
export default isObject;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325
|
| 2 |
+
var CANCELATION_MESSAGE = {
|
| 3 |
+
type: 'cancelation',
|
| 4 |
+
msg: 'operation is manually canceled'
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
function makeCancelable(promise) {
|
| 8 |
+
var hasCanceled_ = false;
|
| 9 |
+
var wrappedPromise = new Promise(function (resolve, reject) {
|
| 10 |
+
promise.then(function (val) {
|
| 11 |
+
return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);
|
| 12 |
+
});
|
| 13 |
+
promise["catch"](reject);
|
| 14 |
+
});
|
| 15 |
+
return wrappedPromise.cancel = function () {
|
| 16 |
+
return hasCanceled_ = true;
|
| 17 |
+
}, wrappedPromise;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
export default makeCancelable;
|
| 21 |
+
export { CANCELATION_MESSAGE };
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/es/validators/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import curry from '../utils/curry.js';
|
| 2 |
+
import isObject from '../utils/isObject.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* validates the configuration object and informs about deprecation
|
| 6 |
+
* @param {Object} config - the configuration object
|
| 7 |
+
* @return {Object} config - the validated configuration object
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
function validateConfig(config) {
|
| 11 |
+
if (!config) errorHandler('configIsRequired');
|
| 12 |
+
if (!isObject(config)) errorHandler('configType');
|
| 13 |
+
|
| 14 |
+
if (config.urls) {
|
| 15 |
+
informAboutDeprecation();
|
| 16 |
+
return {
|
| 17 |
+
paths: {
|
| 18 |
+
vs: config.urls.monacoBase
|
| 19 |
+
}
|
| 20 |
+
};
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
return config;
|
| 24 |
+
}
|
| 25 |
+
/**
|
| 26 |
+
* logs deprecation message
|
| 27 |
+
*/
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
function informAboutDeprecation() {
|
| 31 |
+
console.warn(errorMessages.deprecation);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
function throwError(errorMessages, type) {
|
| 35 |
+
throw new Error(errorMessages[type] || errorMessages["default"]);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
var errorMessages = {
|
| 39 |
+
configIsRequired: 'the configuration object is required',
|
| 40 |
+
configType: 'the configuration object should be an object',
|
| 41 |
+
"default": 'an unknown error accured in `@monaco-editor/loader` package',
|
| 42 |
+
deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
|
| 43 |
+
};
|
| 44 |
+
var errorHandler = curry(throwError)(errorMessages);
|
| 45 |
+
var validators = {
|
| 46 |
+
config: validateConfig
|
| 47 |
+
};
|
| 48 |
+
|
| 49 |
+
export default validators;
|
| 50 |
+
export { errorHandler, errorMessages };
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/loader/lib/types.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as monacoEditor from 'monaco-editor/esm/vs/editor/editor.api';
|
| 2 |
+
|
| 3 |
+
export type Monaco = typeof monacoEditor;
|
| 4 |
+
|
| 5 |
+
interface CancelablePromise<T> extends Promise<T> {
|
| 6 |
+
cancel: () => void;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
declare namespace loader {
|
| 10 |
+
function init(): CancelablePromise<Monaco>;
|
| 11 |
+
function config(params: {
|
| 12 |
+
paths?: {
|
| 13 |
+
vs?: string,
|
| 14 |
+
},
|
| 15 |
+
'vs/nls'?: {
|
| 16 |
+
availableLanguages?: object,
|
| 17 |
+
},
|
| 18 |
+
monaco?: Monaco,
|
| 19 |
+
}): void;
|
| 20 |
+
function __getMonacoInstance(): Monaco | null;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
export default loader;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/.github/FUNDING.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# These are supported funding model platforms
|
| 2 |
+
|
| 3 |
+
github: [suren-atoyan]
|
| 4 |
+
patreon: suren_atoyan
|
| 5 |
+
open_collective: # Replace with a single Open Collective username
|
| 6 |
+
ko_fi: # Replace with a single Ko-fi username
|
| 7 |
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
| 8 |
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
| 9 |
+
liberapay: # Replace with a single Liberapay username
|
| 10 |
+
issuehunt: # Replace with a single IssueHunt username
|
| 11 |
+
otechie: # Replace with a single Otechie username
|
| 12 |
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/.github/ISSUE_TEMPLATE/bug_report.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: Bug report
|
| 3 |
+
about: Create a report to help us improve
|
| 4 |
+
title: ''
|
| 5 |
+
labels: ''
|
| 6 |
+
assignees: ''
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
**Describe the bug**
|
| 11 |
+
A clear and concise description of what the bug is.
|
| 12 |
+
|
| 13 |
+
**To Reproduce**
|
| 14 |
+
|
| 15 |
+
Steps to reproduce the behavior:
|
| 16 |
+
1. Go to '...'
|
| 17 |
+
2. Click on '....'
|
| 18 |
+
3. Scroll down to '....'
|
| 19 |
+
4. See error
|
| 20 |
+
|
| 21 |
+
Or, please add a minimal code snippet to reproduce the issue, for example in [codesandbox](https://codesandbox.io/).
|
| 22 |
+
|
| 23 |
+
**Expected behavior**
|
| 24 |
+
A clear and concise description of what you expected to happen.
|
| 25 |
+
|
| 26 |
+
**Screenshots**
|
| 27 |
+
If applicable, add screenshots to help to explain your problem.
|
| 28 |
+
|
| 29 |
+
**Desktop (please complete the following information):**
|
| 30 |
+
- OS: [e.g. iOS]
|
| 31 |
+
- Browser [e.g. chrome, safari]
|
| 32 |
+
- Version [e.g. 22]
|
| 33 |
+
|
| 34 |
+
**Additional context**
|
| 35 |
+
Add any other context about the problem here.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/.github/ISSUE_TEMPLATE/feature_request.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: Feature request
|
| 3 |
+
about: Suggest an idea for this project
|
| 4 |
+
title: ''
|
| 5 |
+
labels: ''
|
| 6 |
+
assignees: ''
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
**Is your feature request related to a problem? Please describe.**
|
| 11 |
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
| 12 |
+
|
| 13 |
+
**Describe the solution you'd like**
|
| 14 |
+
A clear and concise description of what you want to happen.
|
| 15 |
+
|
| 16 |
+
**Describe alternatives you've considered**
|
| 17 |
+
A clear and concise description of any alternative solutions or features you've considered.
|
| 18 |
+
|
| 19 |
+
**Additional context**
|
| 20 |
+
Add any other context or screenshots about the feature request here.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.d.ts
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { default as loader } from '@monaco-editor/loader';
|
| 2 |
+
import * as react from 'react';
|
| 3 |
+
import { ReactNode } from 'react';
|
| 4 |
+
import * as monaco_editor from 'monaco-editor';
|
| 5 |
+
import { editor } from 'monaco-editor';
|
| 6 |
+
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
| 7 |
+
|
| 8 |
+
type MonacoDiffEditor = editor.IStandaloneDiffEditor;
|
| 9 |
+
type DiffOnMount = (editor: MonacoDiffEditor, monaco: Monaco) => void;
|
| 10 |
+
type DiffBeforeMount = (monaco: Monaco) => void;
|
| 11 |
+
type DiffEditorProps = {
|
| 12 |
+
/**
|
| 13 |
+
* The original source (left one) value
|
| 14 |
+
*/
|
| 15 |
+
original?: string;
|
| 16 |
+
/**
|
| 17 |
+
* The modified source (right one) value
|
| 18 |
+
*/
|
| 19 |
+
modified?: string;
|
| 20 |
+
/**
|
| 21 |
+
* Language for the both models - original and modified
|
| 22 |
+
*/
|
| 23 |
+
language?: string;
|
| 24 |
+
/**
|
| 25 |
+
* This prop gives you the opportunity to specify the language of the
|
| 26 |
+
* original source separately, otherwise, it will get the value of the language property
|
| 27 |
+
*/
|
| 28 |
+
originalLanguage?: string;
|
| 29 |
+
/**
|
| 30 |
+
* This prop gives you the opportunity to specify the language of the
|
| 31 |
+
* modified source separately, otherwise, it will get the value of language property
|
| 32 |
+
*/
|
| 33 |
+
modifiedLanguage?: string;
|
| 34 |
+
/**
|
| 35 |
+
* Path for the "original" model
|
| 36 |
+
* Will be passed as a third argument to `.createModel` method
|
| 37 |
+
* `monaco.editor.createModel(..., ..., monaco.Uri.parse(originalModelPath))`
|
| 38 |
+
*/
|
| 39 |
+
originalModelPath?: string;
|
| 40 |
+
/**
|
| 41 |
+
* Path for the "modified" model
|
| 42 |
+
* Will be passed as a third argument to `.createModel` method
|
| 43 |
+
* `monaco.editor.createModel(..., ..., monaco.Uri.parse(modifiedModelPath))`
|
| 44 |
+
*/
|
| 45 |
+
modifiedModelPath?: string;
|
| 46 |
+
/**
|
| 47 |
+
* Indicator whether to dispose the current original model when the DiffEditor is unmounted or not
|
| 48 |
+
* @default false
|
| 49 |
+
*/
|
| 50 |
+
keepCurrentOriginalModel?: boolean;
|
| 51 |
+
/**
|
| 52 |
+
* Indicator whether to dispose the current modified model when the DiffEditor is unmounted or not
|
| 53 |
+
* @default false
|
| 54 |
+
*/
|
| 55 |
+
keepCurrentModifiedModel?: boolean;
|
| 56 |
+
/**
|
| 57 |
+
* The theme for the monaco
|
| 58 |
+
* Available options "vs-dark" | "light"
|
| 59 |
+
* Define new themes by `monaco.editor.defineTheme`
|
| 60 |
+
* @default "light"
|
| 61 |
+
*/
|
| 62 |
+
theme?: Theme | string;
|
| 63 |
+
/**
|
| 64 |
+
* The loading screen before the editor will be mounted
|
| 65 |
+
* @default "loading..."
|
| 66 |
+
*/
|
| 67 |
+
loading?: ReactNode;
|
| 68 |
+
/**
|
| 69 |
+
* IDiffEditorConstructionOptions
|
| 70 |
+
*/
|
| 71 |
+
options?: editor.IDiffEditorConstructionOptions;
|
| 72 |
+
/**
|
| 73 |
+
* Width of the editor wrapper
|
| 74 |
+
* @default "100%"
|
| 75 |
+
*/
|
| 76 |
+
width?: number | string;
|
| 77 |
+
/**
|
| 78 |
+
* Height of the editor wrapper
|
| 79 |
+
* @default "100%"
|
| 80 |
+
*/
|
| 81 |
+
height?: number | string;
|
| 82 |
+
/**
|
| 83 |
+
* Class name for the editor container
|
| 84 |
+
*/
|
| 85 |
+
className?: string;
|
| 86 |
+
/**
|
| 87 |
+
* Props applied to the wrapper element
|
| 88 |
+
*/
|
| 89 |
+
wrapperProps?: object;
|
| 90 |
+
/**
|
| 91 |
+
* Signature: function(monaco: Monaco) => void
|
| 92 |
+
* An event is emitted before the editor is mounted
|
| 93 |
+
* It gets the monaco instance as a first argument
|
| 94 |
+
* Defaults to "noop"
|
| 95 |
+
*/
|
| 96 |
+
beforeMount?: DiffBeforeMount;
|
| 97 |
+
/**
|
| 98 |
+
* Signature: function(editor: monaco.editor.IStandaloneCodeEditor, monaco: Monaco) => void
|
| 99 |
+
* An event is emitted when the editor is mounted
|
| 100 |
+
* It gets the editor instance as a first argument and the monaco instance as a second
|
| 101 |
+
* Defaults to "noop"
|
| 102 |
+
*/
|
| 103 |
+
onMount?: DiffOnMount;
|
| 104 |
+
};
|
| 105 |
+
|
| 106 |
+
declare function DiffEditor({ original, modified, language, originalLanguage, modifiedLanguage, originalModelPath, modifiedModelPath, keepCurrentOriginalModel, keepCurrentModifiedModel, theme, loading, options, height, width, className, wrapperProps, beforeMount, onMount, }: DiffEditorProps): JSX.Element;
|
| 107 |
+
|
| 108 |
+
declare const _default$1: react.MemoExoticComponent<typeof DiffEditor>;
|
| 109 |
+
|
| 110 |
+
declare function useMonaco(): typeof monaco_editor | null;
|
| 111 |
+
|
| 112 |
+
type OnMount = (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;
|
| 113 |
+
type BeforeMount = (monaco: Monaco) => void;
|
| 114 |
+
type OnChange = (value: string | undefined, ev: editor.IModelContentChangedEvent) => void;
|
| 115 |
+
type OnValidate = (markers: editor.IMarker[]) => void;
|
| 116 |
+
type EditorProps = {
|
| 117 |
+
/**
|
| 118 |
+
* Default value of the current model
|
| 119 |
+
*/
|
| 120 |
+
defaultValue?: string;
|
| 121 |
+
/**
|
| 122 |
+
* Default language of the current model
|
| 123 |
+
*/
|
| 124 |
+
defaultLanguage?: string;
|
| 125 |
+
/**
|
| 126 |
+
* Default path of the current model
|
| 127 |
+
* Will be passed as the third argument to `.createModel` method
|
| 128 |
+
* `monaco.editor.createModel(..., ..., monaco.Uri.parse(defaultPath))`
|
| 129 |
+
*/
|
| 130 |
+
defaultPath?: string;
|
| 131 |
+
/**
|
| 132 |
+
* Value of the current model
|
| 133 |
+
*/
|
| 134 |
+
value?: string;
|
| 135 |
+
/**
|
| 136 |
+
* Language of the current model
|
| 137 |
+
*/
|
| 138 |
+
language?: string;
|
| 139 |
+
/**
|
| 140 |
+
* Path of the current model
|
| 141 |
+
* Will be passed as the third argument to `.createModel` method
|
| 142 |
+
* `monaco.editor.createModel(..., ..., monaco.Uri.parse(defaultPath))`
|
| 143 |
+
*/
|
| 144 |
+
path?: string;
|
| 145 |
+
/**
|
| 146 |
+
* The theme for the monaco
|
| 147 |
+
* Available options "vs-dark" | "light"
|
| 148 |
+
* Define new themes by `monaco.editor.defineTheme`
|
| 149 |
+
* @default "light"
|
| 150 |
+
*/
|
| 151 |
+
theme?: Theme | string;
|
| 152 |
+
/**
|
| 153 |
+
* The line to jump on it
|
| 154 |
+
*/
|
| 155 |
+
line?: number;
|
| 156 |
+
/**
|
| 157 |
+
* The loading screen before the editor will be mounted
|
| 158 |
+
* @default "Loading..."
|
| 159 |
+
*/
|
| 160 |
+
loading?: ReactNode;
|
| 161 |
+
/**
|
| 162 |
+
* IStandaloneEditorConstructionOptions
|
| 163 |
+
*/
|
| 164 |
+
options?: editor.IStandaloneEditorConstructionOptions;
|
| 165 |
+
/**
|
| 166 |
+
* IEditorOverrideServices
|
| 167 |
+
*/
|
| 168 |
+
overrideServices?: editor.IEditorOverrideServices;
|
| 169 |
+
/**
|
| 170 |
+
* Indicator whether to save the models' view states between model changes or not
|
| 171 |
+
* Defaults to true
|
| 172 |
+
*/
|
| 173 |
+
saveViewState?: boolean;
|
| 174 |
+
/**
|
| 175 |
+
* Indicator whether to dispose the current model when the Editor is unmounted or not
|
| 176 |
+
* @default false
|
| 177 |
+
*/
|
| 178 |
+
keepCurrentModel?: boolean;
|
| 179 |
+
/**
|
| 180 |
+
* Width of the editor wrapper
|
| 181 |
+
* @default "100%"
|
| 182 |
+
*/
|
| 183 |
+
width?: number | string;
|
| 184 |
+
/**
|
| 185 |
+
* Height of the editor wrapper
|
| 186 |
+
* @default "100%"
|
| 187 |
+
*/
|
| 188 |
+
height?: number | string;
|
| 189 |
+
/**
|
| 190 |
+
* Class name for the editor container
|
| 191 |
+
*/
|
| 192 |
+
className?: string;
|
| 193 |
+
/**
|
| 194 |
+
* Props applied to the wrapper element
|
| 195 |
+
*/
|
| 196 |
+
wrapperProps?: object;
|
| 197 |
+
/**
|
| 198 |
+
* Signature: function(monaco: Monaco) => void
|
| 199 |
+
* An event is emitted before the editor is mounted
|
| 200 |
+
* It gets the monaco instance as a first argument
|
| 201 |
+
* Defaults to "noop"
|
| 202 |
+
*/
|
| 203 |
+
beforeMount?: BeforeMount;
|
| 204 |
+
/**
|
| 205 |
+
* Signature: function(editor: monaco.editor.IStandaloneCodeEditor, monaco: Monaco) => void
|
| 206 |
+
* An event is emitted when the editor is mounted
|
| 207 |
+
* It gets the editor instance as a first argument and the monaco instance as a second
|
| 208 |
+
* Defaults to "noop"
|
| 209 |
+
*/
|
| 210 |
+
onMount?: OnMount;
|
| 211 |
+
/**
|
| 212 |
+
* Signature: function(value: string | undefined, ev: monaco.editor.IModelContentChangedEvent) => void
|
| 213 |
+
* An event is emitted when the content of the current model is changed
|
| 214 |
+
*/
|
| 215 |
+
onChange?: OnChange;
|
| 216 |
+
/**
|
| 217 |
+
* Signature: function(markers: monaco.editor.IMarker[]) => void
|
| 218 |
+
* An event is emitted when the content of the current model is changed
|
| 219 |
+
* and the current model markers are ready
|
| 220 |
+
* Defaults to "noop"
|
| 221 |
+
*/
|
| 222 |
+
onValidate?: OnValidate;
|
| 223 |
+
};
|
| 224 |
+
|
| 225 |
+
declare function Editor({ defaultValue, defaultLanguage, defaultPath, value, language, path, theme, line, loading, options, overrideServices, saveViewState, keepCurrentModel, width, height, className, wrapperProps, beforeMount, onMount, onChange, onValidate, }: EditorProps): JSX.Element;
|
| 226 |
+
|
| 227 |
+
declare const _default: react.MemoExoticComponent<typeof Editor>;
|
| 228 |
+
|
| 229 |
+
type Monaco = typeof monaco;
|
| 230 |
+
type Theme = 'vs-dark' | 'light';
|
| 231 |
+
|
| 232 |
+
export { BeforeMount, DiffBeforeMount, _default$1 as DiffEditor, DiffEditorProps, DiffOnMount, _default as Editor, EditorProps, Monaco, MonacoDiffEditor, OnChange, OnMount, OnValidate, Theme, _default as default, useMonaco };
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";var De=Object.create;var H=Object.defineProperty;var be=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty;var Te=(e,t)=>{for(var r in t)H(e,r,{get:t[r],enumerable:!0})},re=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ke(t))!Oe.call(e,s)&&s!==r&&H(e,s,{get:()=>t[s],enumerable:!(o=be(t,s))||o.enumerable});return e};var D=(e,t,r)=>(r=e!=null?De(Se(e)):{},re(t||!e||!e.__esModule?H(r,"default",{value:e,enumerable:!0}):r,e)),we=e=>re(H({},"__esModule",{value:!0}),e);var Ae={};Te(Ae,{DiffEditor:()=>me,Editor:()=>$,default:()=>je,loader:()=>Re.default,useMonaco:()=>Ee});module.exports=we(Ae);var Re=D(require("@monaco-editor/loader"));var ae=require("react");var f=D(require("react")),pe=D(require("@monaco-editor/loader"));var ue=require("react");var _=D(require("react"));var Ie={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},W=Ie;var ne=D(require("react"));var Pe={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},oe=Pe;function Le({children:e}){return ne.default.createElement("div",{style:oe.container},e)}var ie=Le;var ce=ie;function Ue({width:e,height:t,isEditorReady:r,loading:o,_ref:s,className:E,wrapperProps:x}){return _.default.createElement("section",{style:{...W.wrapper,width:e,height:t},...x},!r&&_.default.createElement(ce,null,o),_.default.createElement("div",{ref:s,style:{...W.fullWidth,...!r&&W.hide},className:E}))}var se=Ue;var N=(0,ue.memo)(se);var fe=require("react");function ve(e){(0,fe.useEffect)(e,[])}var O=ve;var V=require("react");function He(e,t,r=!0){let o=(0,V.useRef)(!0);(0,V.useEffect)(o.current||!r?()=>{o.current=!1}:e,t)}var M=He;function k(){}function b(e,t,r,o){return We(e,o)||_e(e,t,r,o)}function We(e,t){return e.editor.getModel(de(e,t))}function _e(e,t,r,o){return e.editor.createModel(t,r,o?de(e,o):void 0)}function de(e,t){return e.Uri.parse(t)}function Ne({original:e,modified:t,language:r,originalLanguage:o,modifiedLanguage:s,originalModelPath:E,modifiedModelPath:x,keepCurrentOriginalModel:R=!1,keepCurrentModifiedModel:j=!1,theme:g="light",loading:L="Loading...",options:C={},height:A="100%",width:q="100%",className:B,wrapperProps:G={},beforeMount:J=k,onMount:K=k}){let[y,T]=(0,f.useState)(!1),[w,d]=(0,f.useState)(!0),p=(0,f.useRef)(null),u=(0,f.useRef)(null),I=(0,f.useRef)(null),a=(0,f.useRef)(K),n=(0,f.useRef)(J),S=(0,f.useRef)(!1);O(()=>{let i=pe.default.init();return i.then(l=>(u.current=l)&&d(!1)).catch(l=>l?.type!=="cancelation"&&console.error("Monaco initialization: error:",l)),()=>p.current?P():i.cancel()}),M(()=>{if(p.current&&u.current){let i=p.current.getOriginalEditor(),l=b(u.current,e||"",o||r||"text",E||"");l!==i.getModel()&&i.setModel(l)}},[E],y),M(()=>{if(p.current&&u.current){let i=p.current.getModifiedEditor(),l=b(u.current,t||"",s||r||"text",x||"");l!==i.getModel()&&i.setModel(l)}},[x],y),M(()=>{let i=p.current.getModifiedEditor();i.getOption(u.current.editor.EditorOption.readOnly)?i.setValue(t||""):t!==i.getValue()&&(i.executeEdits("",[{range:i.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),i.pushUndoStop())},[t],y),M(()=>{p.current?.getModel()?.original.setValue(e||"")},[e],y),M(()=>{let{original:i,modified:l}=p.current.getModel();u.current.editor.setModelLanguage(i,o||r||"text"),u.current.editor.setModelLanguage(l,s||r||"text")},[r,o,s],y),M(()=>{u.current?.editor.setTheme(g)},[g],y),M(()=>{p.current?.updateOptions(C)},[C],y);let U=(0,f.useCallback)(()=>{if(!u.current)return;n.current(u.current);let i=b(u.current,e||"",o||r||"text",E||""),l=b(u.current,t||"",s||r||"text",x||"");p.current?.setModel({original:i,modified:l})},[r,t,s,e,o,E,x]),v=(0,f.useCallback)(()=>{!S.current&&I.current&&(p.current=u.current.editor.createDiffEditor(I.current,{automaticLayout:!0,...C}),U(),u.current?.editor.setTheme(g),T(!0),S.current=!0)},[C,g,U]);(0,f.useEffect)(()=>{y&&a.current(p.current,u.current)},[y]),(0,f.useEffect)(()=>{!w&&!y&&v()},[w,y,v]);function P(){let i=p.current?.getModel();R||i?.original?.dispose(),j||i?.modified?.dispose(),p.current?.dispose()}return f.default.createElement(N,{width:q,height:A,isEditorReady:y,loading:L,_ref:I,className:B,wrapperProps:G})}var le=Ne;var me=(0,ae.memo)(le);var Me=require("react"),Z=D(require("@monaco-editor/loader"));function Ve(){let[e,t]=(0,Me.useState)(Z.default.__getMonacoInstance());return O(()=>{let r;return e||(r=Z.default.init(),r.then(o=>{t(o)})),()=>r?.cancel()}),e}var Ee=Ve;var ge=require("react");var c=D(require("react")),xe=D(require("@monaco-editor/loader"));var z=require("react");function ze(e){let t=(0,z.useRef)();return(0,z.useEffect)(()=>{t.current=e},[e]),t.current}var ye=ze;var F=new Map;function Fe({defaultValue:e,defaultLanguage:t,defaultPath:r,value:o,language:s,path:E,theme:x="light",line:R,loading:j="Loading...",options:g={},overrideServices:L={},saveViewState:C=!0,keepCurrentModel:A=!1,width:q="100%",height:B="100%",className:G,wrapperProps:J={},beforeMount:K=k,onMount:y=k,onChange:T,onValidate:w=k}){let[d,p]=(0,c.useState)(!1),[u,I]=(0,c.useState)(!0),a=(0,c.useRef)(null),n=(0,c.useRef)(null),S=(0,c.useRef)(null),U=(0,c.useRef)(y),v=(0,c.useRef)(K),P=(0,c.useRef)(),i=(0,c.useRef)(o),l=ye(E),ee=(0,c.useRef)(!1),Q=(0,c.useRef)(!1);O(()=>{let m=xe.default.init();return m.then(h=>(a.current=h)&&I(!1)).catch(h=>h?.type!=="cancelation"&&console.error("Monaco initialization: error:",h)),()=>n.current?he():m.cancel()}),M(()=>{let m=b(a.current,e||o||"",t||s||"",E||r||"");m!==n.current?.getModel()&&(C&&F.set(l,n.current?.saveViewState()),n.current?.setModel(m),C&&n.current?.restoreViewState(F.get(E)))},[E],d),M(()=>{n.current?.updateOptions(g)},[g],d),M(()=>{!n.current||o===void 0||(n.current.getOption(a.current.editor.EditorOption.readOnly)?n.current.setValue(o):o!==n.current.getValue()&&(Q.current=!0,n.current.executeEdits("",[{range:n.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),n.current.pushUndoStop(),Q.current=!1))},[o],d),M(()=>{let m=n.current?.getModel();m&&s&&a.current?.editor.setModelLanguage(m,s)},[s],d),M(()=>{R!==void 0&&n.current?.revealLine(R)},[R],d),M(()=>{a.current?.editor.setTheme(x)},[x],d);let te=(0,c.useCallback)(()=>{if(!(!S.current||!a.current)&&!ee.current){v.current(a.current);let m=E||r,h=b(a.current,o||e||"",t||s||"",m||"");n.current=a.current?.editor.create(S.current,{model:h,automaticLayout:!0,...g},L),C&&n.current.restoreViewState(F.get(m)),a.current.editor.setTheme(x),R!==void 0&&n.current.revealLine(R),p(!0),ee.current=!0}},[e,t,r,o,s,E,g,L,C,x,R]);(0,c.useEffect)(()=>{d&&U.current(n.current,a.current)},[d]),(0,c.useEffect)(()=>{!u&&!d&&te()},[u,d,te]),i.current=o,(0,c.useEffect)(()=>{d&&T&&(P.current?.dispose(),P.current=n.current?.onDidChangeModelContent(m=>{Q.current||T(n.current.getValue(),m)}))},[d,T]),(0,c.useEffect)(()=>{if(d){let m=a.current.editor.onDidChangeMarkers(h=>{let X=n.current.getModel()?.uri;if(X&&h.find(Y=>Y.path===X.path)){let Y=a.current.editor.getModelMarkers({resource:X});w?.(Y)}});return()=>{m?.dispose()}}return()=>{}},[d,w]);function he(){P.current?.dispose(),A?C&&F.set(E,n.current.saveViewState()):n.current.getModel()?.dispose(),n.current.dispose()}return c.default.createElement(N,{width:q,height:B,isEditorReady:d,loading:j,_ref:S,className:G,wrapperProps:J})}var Ce=Fe;var $=(0,ge.memo)(Ce);var je=$;0&&(module.exports={DiffEditor,Editor,loader,useMonaco});
|
| 2 |
+
//# sourceMappingURL=index.js.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"sources":["../src/index.ts","../src/DiffEditor/index.ts","../src/DiffEditor/DiffEditor.tsx","../src/MonacoContainer/index.ts","../src/MonacoContainer/MonacoContainer.tsx","../src/MonacoContainer/styles.ts","../src/Loading/Loading.tsx","../src/Loading/styles.ts","../src/Loading/index.ts","../src/hooks/useMount/index.ts","../src/hooks/useUpdate/index.ts","../src/utils/index.ts","../src/hooks/useMonaco/index.ts","../src/Editor/index.ts","../src/Editor/Editor.tsx","../src/hooks/usePrevious/index.ts"],"sourcesContent":["import loader from '@monaco-editor/loader';\nexport { loader };\n\nimport DiffEditor from './DiffEditor';\nexport * from './DiffEditor/types';\nexport { DiffEditor };\n\nimport useMonaco from './hooks/useMonaco';\nexport { useMonaco };\n\nimport Editor from './Editor';\nexport * from './Editor/types';\nexport { Editor };\nexport default Editor;\n\n// Monaco\nimport type * as monaco from 'monaco-editor/esm/vs/editor/editor.api';\nexport type Monaco = typeof monaco;\n\n// Default themes\nexport type Theme = 'vs-dark' | 'light';\n","import { memo } from 'react';\n\nimport DiffEditor from './DiffEditor';\n\nexport * from './types';\n\nexport default memo(DiffEditor);\n","'use client';\n\nimport React, { useState, useRef, useCallback, useEffect } from 'react';\nimport loader from '@monaco-editor/loader';\n\nimport MonacoContainer from '../MonacoContainer';\nimport useMount from '../hooks/useMount';\nimport useUpdate from '../hooks/useUpdate';\nimport { noop, getOrCreateModel } from '../utils';\nimport { type DiffEditorProps, type MonacoDiffEditor } from './types';\nimport { type Monaco } from '..';\n\nfunction DiffEditor({\n original,\n modified,\n language,\n originalLanguage,\n modifiedLanguage,\n originalModelPath,\n modifiedModelPath,\n keepCurrentOriginalModel = false,\n keepCurrentModifiedModel = false,\n theme = 'light',\n loading = 'Loading...',\n options = {},\n height = '100%',\n width = '100%',\n className,\n wrapperProps = {},\n beforeMount = noop,\n onMount = noop,\n}: DiffEditorProps) {\n const [isEditorReady, setIsEditorReady] = useState(false);\n const [isMonacoMounting, setIsMonacoMounting] = useState(true);\n const editorRef = useRef<MonacoDiffEditor | null>(null);\n const monacoRef = useRef<Monaco | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const onMountRef = useRef(onMount);\n const beforeMountRef = useRef(beforeMount);\n const preventCreation = useRef(false);\n\n useMount(() => {\n const cancelable = loader.init();\n\n cancelable\n .then((monaco) => (monacoRef.current = monaco) && setIsMonacoMounting(false))\n .catch(\n (error) =>\n error?.type !== 'cancelation' && console.error('Monaco initialization: error:', error),\n );\n\n return () => (editorRef.current ? disposeEditor() : cancelable.cancel());\n });\n\n useUpdate(\n () => {\n if (editorRef.current && monacoRef.current) {\n const originalEditor = editorRef.current.getOriginalEditor();\n const model = getOrCreateModel(\n monacoRef.current,\n original || '',\n originalLanguage || language || 'text',\n originalModelPath || '',\n );\n\n if (model !== originalEditor.getModel()) {\n originalEditor.setModel(model);\n }\n }\n },\n [originalModelPath],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n if (editorRef.current && monacoRef.current) {\n const modifiedEditor = editorRef.current.getModifiedEditor();\n const model = getOrCreateModel(\n monacoRef.current,\n modified || '',\n modifiedLanguage || language || 'text',\n modifiedModelPath || '',\n );\n\n if (model !== modifiedEditor.getModel()) {\n modifiedEditor.setModel(model);\n }\n }\n },\n [modifiedModelPath],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n const modifiedEditor = editorRef.current!.getModifiedEditor();\n if (modifiedEditor.getOption(monacoRef.current!.editor.EditorOption.readOnly)) {\n modifiedEditor.setValue(modified || '');\n } else {\n if (modified !== modifiedEditor.getValue()) {\n modifiedEditor.executeEdits('', [\n {\n range: modifiedEditor.getModel()!.getFullModelRange(),\n text: modified || '',\n forceMoveMarkers: true,\n },\n ]);\n\n modifiedEditor.pushUndoStop();\n }\n }\n },\n [modified],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n editorRef.current?.getModel()?.original.setValue(original || '');\n },\n [original],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n const { original, modified } = editorRef.current!.getModel()!;\n\n monacoRef.current!.editor.setModelLanguage(original, originalLanguage || language || 'text');\n monacoRef.current!.editor.setModelLanguage(modified, modifiedLanguage || language || 'text');\n },\n [language, originalLanguage, modifiedLanguage],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n monacoRef.current?.editor.setTheme(theme);\n },\n [theme],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n editorRef.current?.updateOptions(options);\n },\n [options],\n isEditorReady,\n );\n\n const setModels = useCallback(() => {\n if (!monacoRef.current) return;\n beforeMountRef.current(monacoRef.current);\n const originalModel = getOrCreateModel(\n monacoRef.current,\n original || '',\n originalLanguage || language || 'text',\n originalModelPath || '',\n );\n\n const modifiedModel = getOrCreateModel(\n monacoRef.current,\n modified || '',\n modifiedLanguage || language || 'text',\n modifiedModelPath || '',\n );\n\n editorRef.current?.setModel({\n original: originalModel,\n modified: modifiedModel,\n });\n }, [\n language,\n modified,\n modifiedLanguage,\n original,\n originalLanguage,\n originalModelPath,\n modifiedModelPath,\n ]);\n\n const createEditor = useCallback(() => {\n if (!preventCreation.current && containerRef.current) {\n editorRef.current = monacoRef.current!.editor.createDiffEditor(containerRef.current, {\n automaticLayout: true,\n ...options,\n });\n\n setModels();\n\n monacoRef.current?.editor.setTheme(theme);\n\n setIsEditorReady(true);\n preventCreation.current = true;\n }\n }, [options, theme, setModels]);\n\n useEffect(() => {\n if (isEditorReady) {\n onMountRef.current(editorRef.current!, monacoRef.current!);\n }\n }, [isEditorReady]);\n\n useEffect(() => {\n !isMonacoMounting && !isEditorReady && createEditor();\n }, [isMonacoMounting, isEditorReady, createEditor]);\n\n function disposeEditor() {\n const models = editorRef.current?.getModel();\n\n if (!keepCurrentOriginalModel) {\n models?.original?.dispose();\n }\n\n if (!keepCurrentModifiedModel) {\n models?.modified?.dispose();\n }\n\n editorRef.current?.dispose();\n }\n\n return (\n <MonacoContainer\n width={width}\n height={height}\n isEditorReady={isEditorReady}\n loading={loading}\n _ref={containerRef}\n className={className}\n wrapperProps={wrapperProps}\n />\n );\n}\n\nexport default DiffEditor;\n","import { memo } from 'react';\n\nimport MonacoContainer from './MonacoContainer';\n\nexport default memo(MonacoContainer);\n","import React from 'react';\n\nimport styles from './styles';\nimport Loading from '../Loading';\nimport { type ContainerProps } from './types';\n\n// ** forwardref render functions do not support proptypes or defaultprops **\n// one of the reasons why we use a separate prop for passing ref instead of using forwardref\n\nfunction MonacoContainer({\n width,\n height,\n isEditorReady,\n loading,\n _ref,\n className,\n wrapperProps,\n}: ContainerProps) {\n return (\n <section style={{ ...styles.wrapper, width, height }} {...wrapperProps}>\n {!isEditorReady && <Loading>{loading}</Loading>}\n <div\n ref={_ref}\n style={{ ...styles.fullWidth, ...(!isEditorReady && styles.hide) }}\n className={className}\n />\n </section>\n );\n}\n\nexport default MonacoContainer;\n","import { type CSSProperties } from 'react';\n\nconst styles: Record<string, CSSProperties> = {\n wrapper: {\n display: 'flex',\n position: 'relative',\n textAlign: 'initial',\n },\n fullWidth: {\n width: '100%',\n },\n hide: {\n display: 'none',\n },\n};\n\nexport default styles;\n","import React, { type PropsWithChildren } from 'react';\n\nimport styles from './styles';\n\nfunction Loading({ children }: PropsWithChildren) {\n return <div style={styles.container}>{children}</div>;\n}\n\nexport default Loading;\n","import { type CSSProperties } from 'react';\n\nconst styles: Record<string, CSSProperties> = {\n container: {\n display: 'flex',\n height: '100%',\n width: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n },\n};\n\nexport default styles;\n","import Loading from './Loading';\n\nexport default Loading;\n","import { useEffect, type EffectCallback } from 'react';\n\nfunction useMount(effect: EffectCallback) {\n useEffect(effect, []);\n}\n\nexport default useMount;\n","import { useEffect, useRef, type DependencyList, type EffectCallback } from 'react';\n\nfunction useUpdate(effect: EffectCallback, deps: DependencyList, applyChanges = true) {\n const isInitialMount = useRef(true);\n\n useEffect(\n isInitialMount.current || !applyChanges\n ? () => {\n isInitialMount.current = false;\n }\n : effect,\n deps,\n );\n}\n\nexport default useUpdate;\n","import { type Monaco } from '..';\n\n/**\n * noop is a helper function that does nothing\n * @returns undefined\n */\nfunction noop() {\n /** no-op */\n}\n\n/**\n * getOrCreateModel is a helper function that will return a model if it exists\n * or create a new model if it does not exist.\n * This is useful for when you want to create a model for a file that may or may not exist yet.\n * @param monaco The monaco instance\n * @param value The value of the model\n * @param language The language of the model\n * @param path The path of the model\n * @returns The model that was found or created\n */\nfunction getOrCreateModel(monaco: Monaco, value: string, language: string, path: string) {\n return getModel(monaco, path) || createModel(monaco, value, language, path);\n}\n\n/**\n * getModel is a helper function that will return a model if it exists\n * or return undefined if it does not exist.\n * @param monaco The monaco instance\n * @param path The path of the model\n * @returns The model that was found or undefined\n */\nfunction getModel(monaco: Monaco, path: string) {\n return monaco.editor.getModel(createModelUri(monaco, path));\n}\n\n/**\n * createModel is a helper function that will create a new model\n * @param monaco The monaco instance\n * @param value The value of the model\n * @param language The language of the model\n * @param path The path of the model\n * @returns The model that was created\n */\nfunction createModel(monaco: Monaco, value: string, language?: string, path?: string) {\n return monaco.editor.createModel(\n value,\n language,\n path ? createModelUri(monaco, path) : undefined,\n );\n}\n\n/**\n * createModelUri is a helper function that will create a new model uri\n * @param monaco The monaco instance\n * @param path The path of the model\n * @returns The model uri that was created\n */\nfunction createModelUri(monaco: Monaco, path: string) {\n return monaco.Uri.parse(path);\n}\n\nexport { noop, getOrCreateModel };\n","import { useState } from 'react';\nimport loader from '@monaco-editor/loader';\n\nimport useMount from '../useMount';\n\nfunction useMonaco() {\n const [monaco, setMonaco] = useState(loader.__getMonacoInstance());\n\n useMount(() => {\n let cancelable: ReturnType<typeof loader.init>;\n\n if (!monaco) {\n cancelable = loader.init();\n\n cancelable.then((monaco) => {\n setMonaco(monaco);\n });\n }\n\n return () => cancelable?.cancel();\n });\n\n return monaco;\n}\n\nexport default useMonaco;\n","import { memo } from 'react';\n\nimport Editor from './Editor';\n\nexport * from './types';\n\nexport default memo(Editor);\n","'use client';\n\nimport React, { useState, useEffect, useRef, useCallback } from 'react';\nimport loader from '@monaco-editor/loader';\nimport useMount from '../hooks/useMount';\nimport useUpdate from '../hooks/useUpdate';\nimport usePrevious from '../hooks/usePrevious';\nimport { type IDisposable, type editor } from 'monaco-editor';\nimport { noop, getOrCreateModel } from '../utils';\nimport { type EditorProps } from './types';\nimport { type Monaco } from '..';\nimport MonacoContainer from '../MonacoContainer';\n\nconst viewStates = new Map();\n\nfunction Editor({\n defaultValue,\n defaultLanguage,\n defaultPath,\n value,\n language,\n path,\n /* === */\n theme = 'light',\n line,\n loading = 'Loading...',\n options = {},\n overrideServices = {},\n saveViewState = true,\n keepCurrentModel = false,\n /* === */\n width = '100%',\n height = '100%',\n className,\n wrapperProps = {},\n /* === */\n beforeMount = noop,\n onMount = noop,\n onChange,\n onValidate = noop,\n}: EditorProps) {\n const [isEditorReady, setIsEditorReady] = useState(false);\n const [isMonacoMounting, setIsMonacoMounting] = useState(true);\n const monacoRef = useRef<Monaco | null>(null);\n const editorRef = useRef<editor.IStandaloneCodeEditor | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const onMountRef = useRef(onMount);\n const beforeMountRef = useRef(beforeMount);\n const subscriptionRef = useRef<IDisposable>();\n const valueRef = useRef(value);\n const previousPath = usePrevious(path);\n const preventCreation = useRef(false);\n const preventTriggerChangeEvent = useRef<boolean>(false);\n\n useMount(() => {\n const cancelable = loader.init();\n\n cancelable\n .then((monaco) => (monacoRef.current = monaco) && setIsMonacoMounting(false))\n .catch(\n (error) =>\n error?.type !== 'cancelation' && console.error('Monaco initialization: error:', error),\n );\n\n return () => (editorRef.current ? disposeEditor() : cancelable.cancel());\n });\n\n useUpdate(\n () => {\n const model = getOrCreateModel(\n monacoRef.current!,\n defaultValue || value || '',\n defaultLanguage || language || '',\n path || defaultPath || '',\n );\n\n if (model !== editorRef.current?.getModel()) {\n if (saveViewState) viewStates.set(previousPath, editorRef.current?.saveViewState());\n editorRef.current?.setModel(model);\n if (saveViewState) editorRef.current?.restoreViewState(viewStates.get(path));\n }\n },\n [path],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n editorRef.current?.updateOptions(options);\n },\n [options],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n if (!editorRef.current || value === undefined) return;\n if (editorRef.current.getOption(monacoRef.current!.editor.EditorOption.readOnly)) {\n editorRef.current.setValue(value);\n } else if (value !== editorRef.current.getValue()) {\n preventTriggerChangeEvent.current = true;\n editorRef.current.executeEdits('', [\n {\n range: editorRef.current.getModel()!.getFullModelRange(),\n text: value,\n forceMoveMarkers: true,\n },\n ]);\n\n editorRef.current.pushUndoStop();\n preventTriggerChangeEvent.current = false;\n }\n },\n [value],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n const model = editorRef.current?.getModel();\n if (model && language) monacoRef.current?.editor.setModelLanguage(model, language);\n },\n [language],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n // reason for undefined check: https://github.com/suren-atoyan/monaco-react/pull/188\n if (line !== undefined) {\n editorRef.current?.revealLine(line);\n }\n },\n [line],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n monacoRef.current?.editor.setTheme(theme);\n },\n [theme],\n isEditorReady,\n );\n\n const createEditor = useCallback(() => {\n if (!containerRef.current || !monacoRef.current) return;\n if (!preventCreation.current) {\n beforeMountRef.current(monacoRef.current);\n const autoCreatedModelPath = path || defaultPath;\n\n const defaultModel = getOrCreateModel(\n monacoRef.current,\n value || defaultValue || '',\n defaultLanguage || language || '',\n autoCreatedModelPath || '',\n );\n\n editorRef.current = monacoRef.current?.editor.create(\n containerRef.current,\n {\n model: defaultModel,\n automaticLayout: true,\n ...options,\n },\n overrideServices,\n );\n\n saveViewState && editorRef.current.restoreViewState(viewStates.get(autoCreatedModelPath));\n\n monacoRef.current.editor.setTheme(theme);\n\n if (line !== undefined) {\n editorRef.current.revealLine(line);\n }\n\n setIsEditorReady(true);\n preventCreation.current = true;\n }\n }, [\n defaultValue,\n defaultLanguage,\n defaultPath,\n value,\n language,\n path,\n options,\n overrideServices,\n saveViewState,\n theme,\n line,\n ]);\n\n useEffect(() => {\n if (isEditorReady) {\n onMountRef.current(editorRef.current!, monacoRef.current!);\n }\n }, [isEditorReady]);\n\n useEffect(() => {\n !isMonacoMounting && !isEditorReady && createEditor();\n }, [isMonacoMounting, isEditorReady, createEditor]);\n\n // subscription\n // to avoid unnecessary updates (attach - dispose listener) in subscription\n valueRef.current = value;\n\n // onChange\n useEffect(() => {\n if (isEditorReady && onChange) {\n subscriptionRef.current?.dispose();\n subscriptionRef.current = editorRef.current?.onDidChangeModelContent((event) => {\n if (!preventTriggerChangeEvent.current) {\n onChange(editorRef.current!.getValue(), event);\n }\n });\n }\n }, [isEditorReady, onChange]);\n\n // onValidate\n useEffect(() => {\n if (isEditorReady) {\n const changeMarkersListener = monacoRef.current!.editor.onDidChangeMarkers((uris) => {\n const editorUri = editorRef.current!.getModel()?.uri;\n\n if (editorUri) {\n const currentEditorHasMarkerChanges = uris.find((uri) => uri.path === editorUri.path);\n if (currentEditorHasMarkerChanges) {\n const markers = monacoRef.current!.editor.getModelMarkers({\n resource: editorUri,\n });\n onValidate?.(markers);\n }\n }\n });\n\n return () => {\n changeMarkersListener?.dispose();\n };\n }\n return () => {\n // eslint happy\n };\n }, [isEditorReady, onValidate]);\n\n function disposeEditor() {\n subscriptionRef.current?.dispose();\n\n if (keepCurrentModel) {\n saveViewState && viewStates.set(path, editorRef.current!.saveViewState());\n } else {\n editorRef.current!.getModel()?.dispose();\n }\n\n editorRef.current!.dispose();\n }\n\n return (\n <MonacoContainer\n width={width}\n height={height}\n isEditorReady={isEditorReady}\n loading={loading}\n _ref={containerRef}\n className={className}\n wrapperProps={wrapperProps}\n />\n );\n}\n\nexport default Editor;\n","import { useEffect, useRef } from 'react';\n\nfunction usePrevious<T>(value: T) {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n}\n\nexport default usePrevious;\n"],"mappings":"ykBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,gBAAAE,GAAA,WAAAC,EAAA,YAAAC,GAAA,cAAAC,QAAA,cAAAC,KAAA,eAAAC,GAAAP,IAAA,IAAAQ,GAAmB,oCCAnB,IAAAC,GAAqB,iBCErB,IAAAC,EAAgE,oBAChEC,GAAmB,oCCHnB,IAAAC,GAAqB,iBCArB,IAAAC,EAAkB,oBCElB,IAAMC,GAAwC,CAC5C,QAAS,CACP,QAAS,OACT,SAAU,WACV,UAAW,SACb,EACA,UAAW,CACT,MAAO,MACT,EACA,KAAM,CACJ,QAAS,MACX,CACF,EAEOC,EAAQD,GChBf,IAAAE,GAA8C,oBCE9C,IAAMC,GAAwC,CAC5C,UAAW,CACT,QAAS,OACT,OAAQ,OACR,MAAO,OACP,eAAgB,SAChB,WAAY,QACd,CACF,EAEOC,GAAQD,GDRf,SAASE,GAAQ,CAAE,SAAAC,CAAS,EAAsB,CAChD,OAAO,GAAAC,QAAA,cAAC,OAAI,MAAOC,GAAO,WAAYF,CAAS,CACjD,CAEA,IAAOG,GAAQJ,GENf,IAAOK,GAAQA,GJOf,SAASC,GAAgB,CACvB,MAAAC,EACA,OAAAC,EACA,cAAAC,EACA,QAAAC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F,IACnBW,EAAgB,SAAS,QAAQ,EACjCA,EAAgB,QAAUJ,EAAU,SAAS,wBAAyBsB,GAAU,CACzEb,EAA0B,SAC7BhB,EAASO,EAAU,QAAS,SAAS,EAAGsB,CAAK,CAEjD,CAAC,EAEL,EAAG,CAAC3B,EAAeF,CAAQ,CAAC,KAG5B,aAAU,IAAM,CACd,GAAIE,EAAe,CACjB,IAAM4B,EAAwBxB,EAAU,QAAS,OAAO,mBAAoByB,GAAS,CACnF,IAAMC,EAAYzB,EAAU,QAAS,SAAS,GAAG,IAEjD,GAAIyB,GACoCD,EAAK,KAAME,GAAQA,EAAI,OAASD,EAAU,IAAI,EACjD,CACjC,IAAME,EAAU5B,EAAU,QAAS,OAAO,gBAAgB,CACxD,SAAU0B,CACZ,CAAC,EACD/B,IAAaiC,CAAO,EAG1B,CAAC,EAED,MAAO,IAAM,CACXJ,GAAuB,QAAQ,CACjC,EAEF,MAAO,IAAM,CAEb,CACF,EAAG,CAAC5B,EAAeD,CAAU,CAAC,EAE9B,SAASqB,IAAgB,CACvBX,EAAgB,SAAS,QAAQ,EAE7BnB,EACFD,GAAiBb,EAAW,IAAIO,EAAMsB,EAAU,QAAS,cAAc,CAAC,EAExEA,EAAU,QAAS,SAAS,GAAG,QAAQ,EAGzCA,EAAU,QAAS,QAAQ,CAC7B,CAEA,OACE,EAAA4B,QAAA,cAACC,EAAA,CACC,MAAO3C,EACP,OAAQC,EACR,cAAeQ,EACf,QAASd,EACT,KAAMoB,EACN,UAAWb,EACX,aAAcC,EAChB,CAEJ,CAEA,IAAOyC,GAAQ1D,GDxQf,IAAO2D,KAAQ,SAAKA,EAAM,EbO1B,IAAOC,GAAQC","names":["src_exports","__export","DiffEditor_default","Editor_default","src_default","loader","useMonaco_default","__toCommonJS","import_loader","import_react","import_react","import_loader","import_react","import_react","styles","styles_default","import_react","styles","styles_default","Loading","children","React","styles_default","Loading_default","Loading_default","MonacoContainer","width","height","isEditorReady","loading","_ref","className","wrapperProps","React","styles_default","Loading_default","MonacoContainer_default","MonacoContainer_default","import_react","useMount","effect","useMount_default","import_react","useUpdate","effect","deps","applyChanges","isInitialMount","useUpdate_default","noop","getOrCreateModel","monaco","value","language","path","getModel","createModel","createModelUri","DiffEditor","original","modified","language","originalLanguage","modifiedLanguage","originalModelPath","modifiedModelPath","keepCurrentOriginalModel","keepCurrentModifiedModel","theme","loading","options","height","width","className","wrapperProps","beforeMount","noop","onMount","isEditorReady","setIsEditorReady","isMonacoMounting","setIsMonacoMounting","editorRef","monacoRef","containerRef","onMountRef","beforeMountRef","preventCreation","useMount_default","cancelable","loader","monaco","error","disposeEditor","useUpdate_default","originalEditor","model","getOrCreateModel","modifiedEditor","setModels","originalModel","modifiedModel","createEditor","models","React","MonacoContainer_default","DiffEditor_default","DiffEditor_default","import_react","import_loader","useMonaco","monaco","setMonaco","loader","useMount_default","cancelable","useMonaco_default","import_react","import_react","import_loader","import_react","usePrevious","value","ref","usePrevious_default","viewStates","Editor","defaultValue","defaultLanguage","defaultPath","value","language","path","theme","line","loading","options","overrideServices","saveViewState","keepCurrentModel","width","height","className","wrapperProps","beforeMount","noop","onMount","onChange","onValidate","isEditorReady","setIsEditorReady","isMonacoMounting","setIsMonacoMounting","monacoRef","editorRef","containerRef","onMountRef","beforeMountRef","subscriptionRef","valueRef","previousPath","usePrevious_default","preventCreation","preventTriggerChangeEvent","useMount_default","cancelable","loader","monaco","error","disposeEditor","useUpdate_default","model","getOrCreateModel","createEditor","autoCreatedModelPath","defaultModel","event","changeMarkersListener","uris","editorUri","uri","markers","React","MonacoContainer_default","Editor_default","Editor_default","src_default","Editor_default"]}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import _t from"@monaco-editor/loader";import{memo as Te}from"react";import ke,{useState as re,useRef as S,useCallback as oe,useEffect as ne}from"react";import Se from"@monaco-editor/loader";import{memo as ye}from"react";import K from"react";var le={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},v=le;import me from"react";var ae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Y=ae;function Me({children:e}){return me.createElement("div",{style:Y.container},e)}var Z=Me;var $=Z;function Ee({width:e,height:r,isEditorReady:n,loading:t,_ref:a,className:m,wrapperProps:E}){return K.createElement("section",{style:{...v.wrapper,width:e,height:r},...E},!n&&K.createElement($,null,t),K.createElement("div",{ref:a,style:{...v.fullWidth,...!n&&v.hide},className:m}))}var ee=Ee;var H=ye(ee);import{useEffect as xe}from"react";function Ce(e){xe(e,[])}var k=Ce;import{useEffect as ge,useRef as Re}from"react";function he(e,r,n=!0){let t=Re(!0);ge(t.current||!n?()=>{t.current=!1}:e,r)}var l=he;function D(){}function h(e,r,n,t){return De(e,t)||be(e,r,n,t)}function De(e,r){return e.editor.getModel(te(e,r))}function be(e,r,n,t){return e.editor.createModel(r,n,t?te(e,t):void 0)}function te(e,r){return e.Uri.parse(r)}function Oe({original:e,modified:r,language:n,originalLanguage:t,modifiedLanguage:a,originalModelPath:m,modifiedModelPath:E,keepCurrentOriginalModel:g=!1,keepCurrentModifiedModel:N=!1,theme:x="light",loading:P="Loading...",options:y={},height:V="100%",width:z="100%",className:F,wrapperProps:j={},beforeMount:A=D,onMount:q=D}){let[M,O]=re(!1),[T,s]=re(!0),u=S(null),c=S(null),w=S(null),d=S(q),o=S(A),b=S(!1);k(()=>{let i=Se.init();return i.then(f=>(c.current=f)&&s(!1)).catch(f=>f?.type!=="cancelation"&&console.error("Monaco initialization: error:",f)),()=>u.current?I():i.cancel()}),l(()=>{if(u.current&&c.current){let i=u.current.getOriginalEditor(),f=h(c.current,e||"",t||n||"text",m||"");f!==i.getModel()&&i.setModel(f)}},[m],M),l(()=>{if(u.current&&c.current){let i=u.current.getModifiedEditor(),f=h(c.current,r||"",a||n||"text",E||"");f!==i.getModel()&&i.setModel(f)}},[E],M),l(()=>{let i=u.current.getModifiedEditor();i.getOption(c.current.editor.EditorOption.readOnly)?i.setValue(r||""):r!==i.getValue()&&(i.executeEdits("",[{range:i.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),i.pushUndoStop())},[r],M),l(()=>{u.current?.getModel()?.original.setValue(e||"")},[e],M),l(()=>{let{original:i,modified:f}=u.current.getModel();c.current.editor.setModelLanguage(i,t||n||"text"),c.current.editor.setModelLanguage(f,a||n||"text")},[n,t,a],M),l(()=>{c.current?.editor.setTheme(x)},[x],M),l(()=>{u.current?.updateOptions(y)},[y],M);let L=oe(()=>{if(!c.current)return;o.current(c.current);let i=h(c.current,e||"",t||n||"text",m||""),f=h(c.current,r||"",a||n||"text",E||"");u.current?.setModel({original:i,modified:f})},[n,r,a,e,t,m,E]),U=oe(()=>{!b.current&&w.current&&(u.current=c.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...y}),L(),c.current?.editor.setTheme(x),O(!0),b.current=!0)},[y,x,L]);ne(()=>{M&&d.current(u.current,c.current)},[M]),ne(()=>{!T&&!M&&U()},[T,M,U]);function I(){let i=u.current?.getModel();g||i?.original?.dispose(),N||i?.modified?.dispose(),u.current?.dispose()}return ke.createElement(H,{width:z,height:V,isEditorReady:M,loading:P,_ref:w,className:F,wrapperProps:j})}var ie=Oe;var we=Te(ie);import{useState as Ie}from"react";import ce from"@monaco-editor/loader";function Pe(){let[e,r]=Ie(ce.__getMonacoInstance());return k(()=>{let n;return e||(n=ce.init(),n.then(t=>{r(t)})),()=>n?.cancel()}),e}var Le=Pe;import{memo as ze}from"react";import We,{useState as ue,useEffect as W,useRef as C,useCallback as _e}from"react";import Ne from"@monaco-editor/loader";import{useEffect as Ue,useRef as ve}from"react";function He(e){let r=ve();return Ue(()=>{r.current=e},[e]),r.current}var se=He;var _=new Map;function Ve({defaultValue:e,defaultLanguage:r,defaultPath:n,value:t,language:a,path:m,theme:E="light",line:g,loading:N="Loading...",options:x={},overrideServices:P={},saveViewState:y=!0,keepCurrentModel:V=!1,width:z="100%",height:F="100%",className:j,wrapperProps:A={},beforeMount:q=D,onMount:M=D,onChange:O,onValidate:T=D}){let[s,u]=ue(!1),[c,w]=ue(!0),d=C(null),o=C(null),b=C(null),L=C(M),U=C(q),I=C(),i=C(t),f=se(m),Q=C(!1),B=C(!1);k(()=>{let p=Ne.init();return p.then(R=>(d.current=R)&&w(!1)).catch(R=>R?.type!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>o.current?pe():p.cancel()}),l(()=>{let p=h(d.current,e||t||"",r||a||"",m||n||"");p!==o.current?.getModel()&&(y&&_.set(f,o.current?.saveViewState()),o.current?.setModel(p),y&&o.current?.restoreViewState(_.get(m)))},[m],s),l(()=>{o.current?.updateOptions(x)},[x],s),l(()=>{!o.current||t===void 0||(o.current.getOption(d.current.editor.EditorOption.readOnly)?o.current.setValue(t):t!==o.current.getValue()&&(B.current=!0,o.current.executeEdits("",[{range:o.current.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),o.current.pushUndoStop(),B.current=!1))},[t],s),l(()=>{let p=o.current?.getModel();p&&a&&d.current?.editor.setModelLanguage(p,a)},[a],s),l(()=>{g!==void 0&&o.current?.revealLine(g)},[g],s),l(()=>{d.current?.editor.setTheme(E)},[E],s);let X=_e(()=>{if(!(!b.current||!d.current)&&!Q.current){U.current(d.current);let p=m||n,R=h(d.current,t||e||"",r||a||"",p||"");o.current=d.current?.editor.create(b.current,{model:R,automaticLayout:!0,...x},P),y&&o.current.restoreViewState(_.get(p)),d.current.editor.setTheme(E),g!==void 0&&o.current.revealLine(g),u(!0),Q.current=!0}},[e,r,n,t,a,m,x,P,y,E,g]);W(()=>{s&&L.current(o.current,d.current)},[s]),W(()=>{!c&&!s&&X()},[c,s,X]),i.current=t,W(()=>{s&&O&&(I.current?.dispose(),I.current=o.current?.onDidChangeModelContent(p=>{B.current||O(o.current.getValue(),p)}))},[s,O]),W(()=>{if(s){let p=d.current.editor.onDidChangeMarkers(R=>{let G=o.current.getModel()?.uri;if(G&&R.find(J=>J.path===G.path)){let J=d.current.editor.getModelMarkers({resource:G});T?.(J)}});return()=>{p?.dispose()}}return()=>{}},[s,T]);function pe(){I.current?.dispose(),V?y&&_.set(m,o.current.saveViewState()):o.current.getModel()?.dispose(),o.current.dispose()}return We.createElement(H,{width:z,height:F,isEditorReady:s,loading:N,_ref:b,className:j,wrapperProps:A})}var fe=Ve;var de=ze(fe);var Ft=de;export{we as DiffEditor,de as Editor,Ft as default,_t as loader,Le as useMonaco};
|
| 2 |
+
//# sourceMappingURL=index.mjs.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@monaco-editor/react/dist/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"sources":["../src/index.ts","../src/DiffEditor/index.ts","../src/DiffEditor/DiffEditor.tsx","../src/MonacoContainer/index.ts","../src/MonacoContainer/MonacoContainer.tsx","../src/MonacoContainer/styles.ts","../src/Loading/Loading.tsx","../src/Loading/styles.ts","../src/Loading/index.ts","../src/hooks/useMount/index.ts","../src/hooks/useUpdate/index.ts","../src/utils/index.ts","../src/hooks/useMonaco/index.ts","../src/Editor/index.ts","../src/Editor/Editor.tsx","../src/hooks/usePrevious/index.ts"],"sourcesContent":["import loader from '@monaco-editor/loader';\nexport { loader };\n\nimport DiffEditor from './DiffEditor';\nexport * from './DiffEditor/types';\nexport { DiffEditor };\n\nimport useMonaco from './hooks/useMonaco';\nexport { useMonaco };\n\nimport Editor from './Editor';\nexport * from './Editor/types';\nexport { Editor };\nexport default Editor;\n\n// Monaco\nimport type * as monaco from 'monaco-editor/esm/vs/editor/editor.api';\nexport type Monaco = typeof monaco;\n\n// Default themes\nexport type Theme = 'vs-dark' | 'light';\n","import { memo } from 'react';\n\nimport DiffEditor from './DiffEditor';\n\nexport * from './types';\n\nexport default memo(DiffEditor);\n","'use client';\n\nimport React, { useState, useRef, useCallback, useEffect } from 'react';\nimport loader from '@monaco-editor/loader';\n\nimport MonacoContainer from '../MonacoContainer';\nimport useMount from '../hooks/useMount';\nimport useUpdate from '../hooks/useUpdate';\nimport { noop, getOrCreateModel } from '../utils';\nimport { type DiffEditorProps, type MonacoDiffEditor } from './types';\nimport { type Monaco } from '..';\n\nfunction DiffEditor({\n original,\n modified,\n language,\n originalLanguage,\n modifiedLanguage,\n originalModelPath,\n modifiedModelPath,\n keepCurrentOriginalModel = false,\n keepCurrentModifiedModel = false,\n theme = 'light',\n loading = 'Loading...',\n options = {},\n height = '100%',\n width = '100%',\n className,\n wrapperProps = {},\n beforeMount = noop,\n onMount = noop,\n}: DiffEditorProps) {\n const [isEditorReady, setIsEditorReady] = useState(false);\n const [isMonacoMounting, setIsMonacoMounting] = useState(true);\n const editorRef = useRef<MonacoDiffEditor | null>(null);\n const monacoRef = useRef<Monaco | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const onMountRef = useRef(onMount);\n const beforeMountRef = useRef(beforeMount);\n const preventCreation = useRef(false);\n\n useMount(() => {\n const cancelable = loader.init();\n\n cancelable\n .then((monaco) => (monacoRef.current = monaco) && setIsMonacoMounting(false))\n .catch(\n (error) =>\n error?.type !== 'cancelation' && console.error('Monaco initialization: error:', error),\n );\n\n return () => (editorRef.current ? disposeEditor() : cancelable.cancel());\n });\n\n useUpdate(\n () => {\n if (editorRef.current && monacoRef.current) {\n const originalEditor = editorRef.current.getOriginalEditor();\n const model = getOrCreateModel(\n monacoRef.current,\n original || '',\n originalLanguage || language || 'text',\n originalModelPath || '',\n );\n\n if (model !== originalEditor.getModel()) {\n originalEditor.setModel(model);\n }\n }\n },\n [originalModelPath],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n if (editorRef.current && monacoRef.current) {\n const modifiedEditor = editorRef.current.getModifiedEditor();\n const model = getOrCreateModel(\n monacoRef.current,\n modified || '',\n modifiedLanguage || language || 'text',\n modifiedModelPath || '',\n );\n\n if (model !== modifiedEditor.getModel()) {\n modifiedEditor.setModel(model);\n }\n }\n },\n [modifiedModelPath],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n const modifiedEditor = editorRef.current!.getModifiedEditor();\n if (modifiedEditor.getOption(monacoRef.current!.editor.EditorOption.readOnly)) {\n modifiedEditor.setValue(modified || '');\n } else {\n if (modified !== modifiedEditor.getValue()) {\n modifiedEditor.executeEdits('', [\n {\n range: modifiedEditor.getModel()!.getFullModelRange(),\n text: modified || '',\n forceMoveMarkers: true,\n },\n ]);\n\n modifiedEditor.pushUndoStop();\n }\n }\n },\n [modified],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n editorRef.current?.getModel()?.original.setValue(original || '');\n },\n [original],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n const { original, modified } = editorRef.current!.getModel()!;\n\n monacoRef.current!.editor.setModelLanguage(original, originalLanguage || language || 'text');\n monacoRef.current!.editor.setModelLanguage(modified, modifiedLanguage || language || 'text');\n },\n [language, originalLanguage, modifiedLanguage],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n monacoRef.current?.editor.setTheme(theme);\n },\n [theme],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n editorRef.current?.updateOptions(options);\n },\n [options],\n isEditorReady,\n );\n\n const setModels = useCallback(() => {\n if (!monacoRef.current) return;\n beforeMountRef.current(monacoRef.current);\n const originalModel = getOrCreateModel(\n monacoRef.current,\n original || '',\n originalLanguage || language || 'text',\n originalModelPath || '',\n );\n\n const modifiedModel = getOrCreateModel(\n monacoRef.current,\n modified || '',\n modifiedLanguage || language || 'text',\n modifiedModelPath || '',\n );\n\n editorRef.current?.setModel({\n original: originalModel,\n modified: modifiedModel,\n });\n }, [\n language,\n modified,\n modifiedLanguage,\n original,\n originalLanguage,\n originalModelPath,\n modifiedModelPath,\n ]);\n\n const createEditor = useCallback(() => {\n if (!preventCreation.current && containerRef.current) {\n editorRef.current = monacoRef.current!.editor.createDiffEditor(containerRef.current, {\n automaticLayout: true,\n ...options,\n });\n\n setModels();\n\n monacoRef.current?.editor.setTheme(theme);\n\n setIsEditorReady(true);\n preventCreation.current = true;\n }\n }, [options, theme, setModels]);\n\n useEffect(() => {\n if (isEditorReady) {\n onMountRef.current(editorRef.current!, monacoRef.current!);\n }\n }, [isEditorReady]);\n\n useEffect(() => {\n !isMonacoMounting && !isEditorReady && createEditor();\n }, [isMonacoMounting, isEditorReady, createEditor]);\n\n function disposeEditor() {\n const models = editorRef.current?.getModel();\n\n if (!keepCurrentOriginalModel) {\n models?.original?.dispose();\n }\n\n if (!keepCurrentModifiedModel) {\n models?.modified?.dispose();\n }\n\n editorRef.current?.dispose();\n }\n\n return (\n <MonacoContainer\n width={width}\n height={height}\n isEditorReady={isEditorReady}\n loading={loading}\n _ref={containerRef}\n className={className}\n wrapperProps={wrapperProps}\n />\n );\n}\n\nexport default DiffEditor;\n","import { memo } from 'react';\n\nimport MonacoContainer from './MonacoContainer';\n\nexport default memo(MonacoContainer);\n","import React from 'react';\n\nimport styles from './styles';\nimport Loading from '../Loading';\nimport { type ContainerProps } from './types';\n\n// ** forwardref render functions do not support proptypes or defaultprops **\n// one of the reasons why we use a separate prop for passing ref instead of using forwardref\n\nfunction MonacoContainer({\n width,\n height,\n isEditorReady,\n loading,\n _ref,\n className,\n wrapperProps,\n}: ContainerProps) {\n return (\n <section style={{ ...styles.wrapper, width, height }} {...wrapperProps}>\n {!isEditorReady && <Loading>{loading}</Loading>}\n <div\n ref={_ref}\n style={{ ...styles.fullWidth, ...(!isEditorReady && styles.hide) }}\n className={className}\n />\n </section>\n );\n}\n\nexport default MonacoContainer;\n","import { type CSSProperties } from 'react';\n\nconst styles: Record<string, CSSProperties> = {\n wrapper: {\n display: 'flex',\n position: 'relative',\n textAlign: 'initial',\n },\n fullWidth: {\n width: '100%',\n },\n hide: {\n display: 'none',\n },\n};\n\nexport default styles;\n","import React, { type PropsWithChildren } from 'react';\n\nimport styles from './styles';\n\nfunction Loading({ children }: PropsWithChildren) {\n return <div style={styles.container}>{children}</div>;\n}\n\nexport default Loading;\n","import { type CSSProperties } from 'react';\n\nconst styles: Record<string, CSSProperties> = {\n container: {\n display: 'flex',\n height: '100%',\n width: '100%',\n justifyContent: 'center',\n alignItems: 'center',\n },\n};\n\nexport default styles;\n","import Loading from './Loading';\n\nexport default Loading;\n","import { useEffect, type EffectCallback } from 'react';\n\nfunction useMount(effect: EffectCallback) {\n useEffect(effect, []);\n}\n\nexport default useMount;\n","import { useEffect, useRef, type DependencyList, type EffectCallback } from 'react';\n\nfunction useUpdate(effect: EffectCallback, deps: DependencyList, applyChanges = true) {\n const isInitialMount = useRef(true);\n\n useEffect(\n isInitialMount.current || !applyChanges\n ? () => {\n isInitialMount.current = false;\n }\n : effect,\n deps,\n );\n}\n\nexport default useUpdate;\n","import { type Monaco } from '..';\n\n/**\n * noop is a helper function that does nothing\n * @returns undefined\n */\nfunction noop() {\n /** no-op */\n}\n\n/**\n * getOrCreateModel is a helper function that will return a model if it exists\n * or create a new model if it does not exist.\n * This is useful for when you want to create a model for a file that may or may not exist yet.\n * @param monaco The monaco instance\n * @param value The value of the model\n * @param language The language of the model\n * @param path The path of the model\n * @returns The model that was found or created\n */\nfunction getOrCreateModel(monaco: Monaco, value: string, language: string, path: string) {\n return getModel(monaco, path) || createModel(monaco, value, language, path);\n}\n\n/**\n * getModel is a helper function that will return a model if it exists\n * or return undefined if it does not exist.\n * @param monaco The monaco instance\n * @param path The path of the model\n * @returns The model that was found or undefined\n */\nfunction getModel(monaco: Monaco, path: string) {\n return monaco.editor.getModel(createModelUri(monaco, path));\n}\n\n/**\n * createModel is a helper function that will create a new model\n * @param monaco The monaco instance\n * @param value The value of the model\n * @param language The language of the model\n * @param path The path of the model\n * @returns The model that was created\n */\nfunction createModel(monaco: Monaco, value: string, language?: string, path?: string) {\n return monaco.editor.createModel(\n value,\n language,\n path ? createModelUri(monaco, path) : undefined,\n );\n}\n\n/**\n * createModelUri is a helper function that will create a new model uri\n * @param monaco The monaco instance\n * @param path The path of the model\n * @returns The model uri that was created\n */\nfunction createModelUri(monaco: Monaco, path: string) {\n return monaco.Uri.parse(path);\n}\n\nexport { noop, getOrCreateModel };\n","import { useState } from 'react';\nimport loader from '@monaco-editor/loader';\n\nimport useMount from '../useMount';\n\nfunction useMonaco() {\n const [monaco, setMonaco] = useState(loader.__getMonacoInstance());\n\n useMount(() => {\n let cancelable: ReturnType<typeof loader.init>;\n\n if (!monaco) {\n cancelable = loader.init();\n\n cancelable.then((monaco) => {\n setMonaco(monaco);\n });\n }\n\n return () => cancelable?.cancel();\n });\n\n return monaco;\n}\n\nexport default useMonaco;\n","import { memo } from 'react';\n\nimport Editor from './Editor';\n\nexport * from './types';\n\nexport default memo(Editor);\n","'use client';\n\nimport React, { useState, useEffect, useRef, useCallback } from 'react';\nimport loader from '@monaco-editor/loader';\nimport useMount from '../hooks/useMount';\nimport useUpdate from '../hooks/useUpdate';\nimport usePrevious from '../hooks/usePrevious';\nimport { type IDisposable, type editor } from 'monaco-editor';\nimport { noop, getOrCreateModel } from '../utils';\nimport { type EditorProps } from './types';\nimport { type Monaco } from '..';\nimport MonacoContainer from '../MonacoContainer';\n\nconst viewStates = new Map();\n\nfunction Editor({\n defaultValue,\n defaultLanguage,\n defaultPath,\n value,\n language,\n path,\n /* === */\n theme = 'light',\n line,\n loading = 'Loading...',\n options = {},\n overrideServices = {},\n saveViewState = true,\n keepCurrentModel = false,\n /* === */\n width = '100%',\n height = '100%',\n className,\n wrapperProps = {},\n /* === */\n beforeMount = noop,\n onMount = noop,\n onChange,\n onValidate = noop,\n}: EditorProps) {\n const [isEditorReady, setIsEditorReady] = useState(false);\n const [isMonacoMounting, setIsMonacoMounting] = useState(true);\n const monacoRef = useRef<Monaco | null>(null);\n const editorRef = useRef<editor.IStandaloneCodeEditor | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const onMountRef = useRef(onMount);\n const beforeMountRef = useRef(beforeMount);\n const subscriptionRef = useRef<IDisposable>();\n const valueRef = useRef(value);\n const previousPath = usePrevious(path);\n const preventCreation = useRef(false);\n const preventTriggerChangeEvent = useRef<boolean>(false);\n\n useMount(() => {\n const cancelable = loader.init();\n\n cancelable\n .then((monaco) => (monacoRef.current = monaco) && setIsMonacoMounting(false))\n .catch(\n (error) =>\n error?.type !== 'cancelation' && console.error('Monaco initialization: error:', error),\n );\n\n return () => (editorRef.current ? disposeEditor() : cancelable.cancel());\n });\n\n useUpdate(\n () => {\n const model = getOrCreateModel(\n monacoRef.current!,\n defaultValue || value || '',\n defaultLanguage || language || '',\n path || defaultPath || '',\n );\n\n if (model !== editorRef.current?.getModel()) {\n if (saveViewState) viewStates.set(previousPath, editorRef.current?.saveViewState());\n editorRef.current?.setModel(model);\n if (saveViewState) editorRef.current?.restoreViewState(viewStates.get(path));\n }\n },\n [path],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n editorRef.current?.updateOptions(options);\n },\n [options],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n if (!editorRef.current || value === undefined) return;\n if (editorRef.current.getOption(monacoRef.current!.editor.EditorOption.readOnly)) {\n editorRef.current.setValue(value);\n } else if (value !== editorRef.current.getValue()) {\n preventTriggerChangeEvent.current = true;\n editorRef.current.executeEdits('', [\n {\n range: editorRef.current.getModel()!.getFullModelRange(),\n text: value,\n forceMoveMarkers: true,\n },\n ]);\n\n editorRef.current.pushUndoStop();\n preventTriggerChangeEvent.current = false;\n }\n },\n [value],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n const model = editorRef.current?.getModel();\n if (model && language) monacoRef.current?.editor.setModelLanguage(model, language);\n },\n [language],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n // reason for undefined check: https://github.com/suren-atoyan/monaco-react/pull/188\n if (line !== undefined) {\n editorRef.current?.revealLine(line);\n }\n },\n [line],\n isEditorReady,\n );\n\n useUpdate(\n () => {\n monacoRef.current?.editor.setTheme(theme);\n },\n [theme],\n isEditorReady,\n );\n\n const createEditor = useCallback(() => {\n if (!containerRef.current || !monacoRef.current) return;\n if (!preventCreation.current) {\n beforeMountRef.current(monacoRef.current);\n const autoCreatedModelPath = path || defaultPath;\n\n const defaultModel = getOrCreateModel(\n monacoRef.current,\n value || defaultValue || '',\n defaultLanguage || language || '',\n autoCreatedModelPath || '',\n );\n\n editorRef.current = monacoRef.current?.editor.create(\n containerRef.current,\n {\n model: defaultModel,\n automaticLayout: true,\n ...options,\n },\n overrideServices,\n );\n\n saveViewState && editorRef.current.restoreViewState(viewStates.get(autoCreatedModelPath));\n\n monacoRef.current.editor.setTheme(theme);\n\n if (line !== undefined) {\n editorRef.current.revealLine(line);\n }\n\n setIsEditorReady(true);\n preventCreation.current = true;\n }\n }, [\n defaultValue,\n defaultLanguage,\n defaultPath,\n value,\n language,\n path,\n options,\n overrideServices,\n saveViewState,\n theme,\n line,\n ]);\n\n useEffect(() => {\n if (isEditorReady) {\n onMountRef.current(editorRef.current!, monacoRef.current!);\n }\n }, [isEditorReady]);\n\n useEffect(() => {\n !isMonacoMounting && !isEditorReady && createEditor();\n }, [isMonacoMounting, isEditorReady, createEditor]);\n\n // subscription\n // to avoid unnecessary updates (attach - dispose listener) in subscription\n valueRef.current = value;\n\n // onChange\n useEffect(() => {\n if (isEditorReady && onChange) {\n subscriptionRef.current?.dispose();\n subscriptionRef.current = editorRef.current?.onDidChangeModelContent((event) => {\n if (!preventTriggerChangeEvent.current) {\n onChange(editorRef.current!.getValue(), event);\n }\n });\n }\n }, [isEditorReady, onChange]);\n\n // onValidate\n useEffect(() => {\n if (isEditorReady) {\n const changeMarkersListener = monacoRef.current!.editor.onDidChangeMarkers((uris) => {\n const editorUri = editorRef.current!.getModel()?.uri;\n\n if (editorUri) {\n const currentEditorHasMarkerChanges = uris.find((uri) => uri.path === editorUri.path);\n if (currentEditorHasMarkerChanges) {\n const markers = monacoRef.current!.editor.getModelMarkers({\n resource: editorUri,\n });\n onValidate?.(markers);\n }\n }\n });\n\n return () => {\n changeMarkersListener?.dispose();\n };\n }\n return () => {\n // eslint happy\n };\n }, [isEditorReady, onValidate]);\n\n function disposeEditor() {\n subscriptionRef.current?.dispose();\n\n if (keepCurrentModel) {\n saveViewState && viewStates.set(path, editorRef.current!.saveViewState());\n } else {\n editorRef.current!.getModel()?.dispose();\n }\n\n editorRef.current!.dispose();\n }\n\n return (\n <MonacoContainer\n width={width}\n height={height}\n isEditorReady={isEditorReady}\n loading={loading}\n _ref={containerRef}\n className={className}\n wrapperProps={wrapperProps}\n />\n );\n}\n\nexport default Editor;\n","import { useEffect, useRef } from 'react';\n\nfunction usePrevious<T>(value: T) {\n const ref = useRef<T>();\n\n useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n}\n\nexport default usePrevious;\n"],"mappings":"AAAA,OAAOA,OAAY,wBCAnB,OAAS,QAAAC,OAAY,QCErB,OAAOC,IAAS,YAAAC,GAAU,UAAAC,EAAQ,eAAAC,GAAa,aAAAC,OAAiB,QAChE,OAAOC,OAAY,wBCHnB,OAAS,QAAAC,OAAY,QCArB,OAAOC,MAAW,QCElB,IAAMC,GAAwC,CAC5C,QAAS,CACP,QAAS,OACT,SAAU,WACV,UAAW,SACb,EACA,UAAW,CACT,MAAO,MACT,EACA,KAAM,CACJ,QAAS,MACX,CACF,EAEOC,EAAQD,GChBf,OAAOE,OAAuC,QCE9C,IAAMC,GAAwC,CAC5C,UAAW,CACT,QAAS,OACT,OAAQ,OACR,MAAO,OACP,eAAgB,SAChB,WAAY,QACd,CACF,EAEOC,EAAQD,GDRf,SAASE,GAAQ,CAAE,SAAAC,CAAS,EAAsB,CAChD,OAAOC,GAAA,cAAC,OAAI,MAAOC,EAAO,WAAYF,CAAS,CACjD,CAEA,IAAOG,EAAQJ,GENf,IAAOK,EAAQA,EJOf,SAASC,GAAgB,CACvB,MAAAC,EACA,OAAAC,EACA,cAAAC,EACA,QAAAC,EACA,KAAAC,EACA,UAAAC,EACA,aAAAC,CACF,EAAmB,CACjB,OACEC,EAAA,cAAC,WAAQ,MAAO,CAAE,GAAGC,EAAO,QAAS,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B,GAAiBF,IACnBa,EAAgB,SAAS,QAAQ,EACjCA,EAAgB,QAAUJ,EAAU,SAAS,wBAAyBwB,GAAU,CACzEf,EAA0B,SAC7BlB,EAASS,EAAU,QAAS,SAAS,EAAGwB,CAAK,CAEjD,CAAC,EAEL,EAAG,CAAC/B,EAAeF,CAAQ,CAAC,EAG5BgC,EAAU,IAAM,CACd,GAAI9B,EAAe,CACjB,IAAMgC,EAAwB3B,EAAU,QAAS,OAAO,mBAAoB4B,GAAS,CACnF,IAAMC,EAAY3B,EAAU,QAAS,SAAS,GAAG,IAEjD,GAAI2B,GACoCD,EAAK,KAAME,GAAQA,EAAI,OAASD,EAAU,IAAI,EACjD,CACjC,IAAME,EAAU/B,EAAU,QAAS,OAAO,gBAAgB,CACxD,SAAU6B,CACZ,CAAC,EACDnC,IAAaqC,CAAO,EAG1B,CAAC,EAED,MAAO,IAAM,CACXJ,GAAuB,QAAQ,CACjC,EAEF,MAAO,IAAM,CAEb,CACF,EAAG,CAAChC,EAAeD,CAAU,CAAC,EAE9B,SAASuB,IAAgB,CACvBX,EAAgB,SAAS,QAAQ,EAE7BrB,EACFD,GAAiBb,EAAW,IAAIO,EAAMwB,EAAU,QAAS,cAAc,CAAC,EAExEA,EAAU,QAAS,SAAS,GAAG,QAAQ,EAGzCA,EAAU,QAAS,QAAQ,CAC7B,CAEA,OACE8B,GAAA,cAACC,EAAA,CACC,MAAO/C,EACP,OAAQC,EACR,cAAeQ,EACf,QAASd,EACT,KAAMsB,EACN,UAAWf,EACX,aAAcC,EAChB,CAEJ,CAEA,IAAO6C,GAAQ9D,GDxQf,IAAO+D,GAAQC,GAAKD,EAAM,EbO1B,IAAOE,GAAQC","names":["loader","memo","React","useState","useRef","useCallback","useEffect","loader","memo","React","styles","styles_default","React","styles","styles_default","Loading","children","React","styles_default","Loading_default","Loading_default","MonacoContainer","width","height","isEditorReady","loading","_ref","className","wrapperProps","React","styles_default","Loading_default","MonacoContainer_default","MonacoContainer_default","memo","useEffect","useMount","effect","useMount_default","useEffect","useRef","useUpdate","effect","deps","applyChanges","isInitialMount","useUpdate_default","noop","getOrCreateModel","monaco","value","language","path","getModel","createModel","createModelUri","DiffEditor","original","modified","language","originalLanguage","modifiedLanguage","originalModelPath","modifiedModelPath","keepCurrentOriginalModel","keepCurrentModifiedModel","theme","loading","options","height","width","className","wrapperProps","beforeMount","noop","onMount","isEditorReady","setIsEditorReady","useState","isMonacoMounting","setIsMonacoMounting","editorRef","useRef","monacoRef","containerRef","onMountRef","beforeMountRef","preventCreation","useMount_default","cancelable","loader","monaco","error","disposeEditor","useUpdate_default","originalEditor","model","getOrCreateModel","modifiedEditor","setModels","useCallback","originalModel","modifiedModel","createEditor","useEffect","models","React","MonacoContainer_default","DiffEditor_default","DiffEditor_default","memo","useState","loader","useMonaco","monaco","setMonaco","useState","loader","useMount_default","cancelable","useMonaco_default","memo","React","useState","useEffect","useRef","useCallback","loader","useEffect","useRef","usePrevious","value","ref","usePrevious_default","viewStates","Editor","defaultValue","defaultLanguage","defaultPath","value","language","path","theme","line","loading","options","overrideServices","saveViewState","keepCurrentModel","width","height","className","wrapperProps","beforeMount","noop","onMount","onChange","onValidate","isEditorReady","setIsEditorReady","useState","isMonacoMounting","setIsMonacoMounting","monacoRef","useRef","editorRef","containerRef","onMountRef","beforeMountRef","subscriptionRef","valueRef","previousPath","usePrevious_default","preventCreation","preventTriggerChangeEvent","useMount_default","cancelable","loader","monaco","error","disposeEditor","useUpdate_default","model","getOrCreateModel","createEditor","useCallback","autoCreatedModelPath","defaultModel","useEffect","event","changeMarkersListener","uris","editorUri","uri","markers","React","MonacoContainer_default","Editor_default","Editor_default","memo","src_default","Editor_default"]}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) Denis Malinochkin
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/README.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @nodelib/fs.scandir
|
| 2 |
+
|
| 3 |
+
> List files and directories inside the specified directory.
|
| 4 |
+
|
| 5 |
+
## :bulb: Highlights
|
| 6 |
+
|
| 7 |
+
The package is aimed at obtaining information about entries in the directory.
|
| 8 |
+
|
| 9 |
+
* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional).
|
| 10 |
+
* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode).
|
| 11 |
+
* :link: Can safely work with broken symbolic links.
|
| 12 |
+
|
| 13 |
+
## Install
|
| 14 |
+
|
| 15 |
+
```console
|
| 16 |
+
npm install @nodelib/fs.scandir
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
## Usage
|
| 20 |
+
|
| 21 |
+
```ts
|
| 22 |
+
import * as fsScandir from '@nodelib/fs.scandir';
|
| 23 |
+
|
| 24 |
+
fsScandir.scandir('path', (error, stats) => { /* … */ });
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## API
|
| 28 |
+
|
| 29 |
+
### .scandir(path, [optionsOrSettings], callback)
|
| 30 |
+
|
| 31 |
+
Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style.
|
| 32 |
+
|
| 33 |
+
```ts
|
| 34 |
+
fsScandir.scandir('path', (error, entries) => { /* … */ });
|
| 35 |
+
fsScandir.scandir('path', {}, (error, entries) => { /* … */ });
|
| 36 |
+
fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ });
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
### .scandirSync(path, [optionsOrSettings])
|
| 40 |
+
|
| 41 |
+
Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path.
|
| 42 |
+
|
| 43 |
+
```ts
|
| 44 |
+
const entries = fsScandir.scandirSync('path');
|
| 45 |
+
const entries = fsScandir.scandirSync('path', {});
|
| 46 |
+
const entries = fsScandir.scandirSync(('path', new fsScandir.Settings());
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
#### path
|
| 50 |
+
|
| 51 |
+
* Required: `true`
|
| 52 |
+
* Type: `string | Buffer | URL`
|
| 53 |
+
|
| 54 |
+
A path to a file. If a URL is provided, it must use the `file:` protocol.
|
| 55 |
+
|
| 56 |
+
#### optionsOrSettings
|
| 57 |
+
|
| 58 |
+
* Required: `false`
|
| 59 |
+
* Type: `Options | Settings`
|
| 60 |
+
* Default: An instance of `Settings` class
|
| 61 |
+
|
| 62 |
+
An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class.
|
| 63 |
+
|
| 64 |
+
> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
|
| 65 |
+
|
| 66 |
+
### Settings([options])
|
| 67 |
+
|
| 68 |
+
A class of full settings of the package.
|
| 69 |
+
|
| 70 |
+
```ts
|
| 71 |
+
const settings = new fsScandir.Settings({ followSymbolicLinks: false });
|
| 72 |
+
|
| 73 |
+
const entries = fsScandir.scandirSync('path', settings);
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## Entry
|
| 77 |
+
|
| 78 |
+
* `name` — The name of the entry (`unknown.txt`).
|
| 79 |
+
* `path` — The path of the entry relative to call directory (`root/unknown.txt`).
|
| 80 |
+
* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class.
|
| 81 |
+
* `stats` (optional) — An instance of `fs.Stats` class.
|
| 82 |
+
|
| 83 |
+
For example, the `scandir` call for `tools` directory with one directory inside:
|
| 84 |
+
|
| 85 |
+
```ts
|
| 86 |
+
{
|
| 87 |
+
dirent: Dirent { name: 'typedoc', /* … */ },
|
| 88 |
+
name: 'typedoc',
|
| 89 |
+
path: 'tools/typedoc'
|
| 90 |
+
}
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
## Options
|
| 94 |
+
|
| 95 |
+
### stats
|
| 96 |
+
|
| 97 |
+
* Type: `boolean`
|
| 98 |
+
* Default: `false`
|
| 99 |
+
|
| 100 |
+
Adds an instance of `fs.Stats` class to the [`Entry`](#entry).
|
| 101 |
+
|
| 102 |
+
> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO??
|
| 103 |
+
|
| 104 |
+
### followSymbolicLinks
|
| 105 |
+
|
| 106 |
+
* Type: `boolean`
|
| 107 |
+
* Default: `false`
|
| 108 |
+
|
| 109 |
+
Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`.
|
| 110 |
+
|
| 111 |
+
### `throwErrorOnBrokenSymbolicLink`
|
| 112 |
+
|
| 113 |
+
* Type: `boolean`
|
| 114 |
+
* Default: `true`
|
| 115 |
+
|
| 116 |
+
Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`.
|
| 117 |
+
|
| 118 |
+
### `pathSegmentSeparator`
|
| 119 |
+
|
| 120 |
+
* Type: `string`
|
| 121 |
+
* Default: `path.sep`
|
| 122 |
+
|
| 123 |
+
By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead.
|
| 124 |
+
|
| 125 |
+
### `fs`
|
| 126 |
+
|
| 127 |
+
* Type: [`FileSystemAdapter`](./src/adapters/fs.ts)
|
| 128 |
+
* Default: A default FS methods
|
| 129 |
+
|
| 130 |
+
By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
|
| 131 |
+
|
| 132 |
+
```ts
|
| 133 |
+
interface FileSystemAdapter {
|
| 134 |
+
lstat?: typeof fs.lstat;
|
| 135 |
+
stat?: typeof fs.stat;
|
| 136 |
+
lstatSync?: typeof fs.lstatSync;
|
| 137 |
+
statSync?: typeof fs.statSync;
|
| 138 |
+
readdir?: typeof fs.readdir;
|
| 139 |
+
readdirSync?: typeof fs.readdirSync;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
const settings = new fsScandir.Settings({
|
| 143 |
+
fs: { lstat: fakeLstat }
|
| 144 |
+
});
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
## `old` and `modern` mode
|
| 148 |
+
|
| 149 |
+
This package has two modes that are used depending on the environment and parameters of use.
|
| 150 |
+
|
| 151 |
+
### old
|
| 152 |
+
|
| 153 |
+
* Node.js below `10.10` or when the `stats` option is enabled
|
| 154 |
+
|
| 155 |
+
When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links).
|
| 156 |
+
|
| 157 |
+
### modern
|
| 158 |
+
|
| 159 |
+
* Node.js 10.10+ and the `stats` option is disabled
|
| 160 |
+
|
| 161 |
+
In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present.
|
| 162 |
+
|
| 163 |
+
This mode makes fewer calls to the file system. It's faster.
|
| 164 |
+
|
| 165 |
+
## Changelog
|
| 166 |
+
|
| 167 |
+
See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
|
| 168 |
+
|
| 169 |
+
## License
|
| 170 |
+
|
| 171 |
+
This software is released under the terms of the MIT license.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type * as fsStat from '@nodelib/fs.stat';
|
| 2 |
+
import type { Dirent, ErrnoException } from '../types';
|
| 3 |
+
export interface ReaddirAsynchronousMethod {
|
| 4 |
+
(filepath: string, options: {
|
| 5 |
+
withFileTypes: true;
|
| 6 |
+
}, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
|
| 7 |
+
(filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
|
| 8 |
+
}
|
| 9 |
+
export interface ReaddirSynchronousMethod {
|
| 10 |
+
(filepath: string, options: {
|
| 11 |
+
withFileTypes: true;
|
| 12 |
+
}): Dirent[];
|
| 13 |
+
(filepath: string): string[];
|
| 14 |
+
}
|
| 15 |
+
export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
|
| 16 |
+
readdir: ReaddirAsynchronousMethod;
|
| 17 |
+
readdirSync: ReaddirSynchronousMethod;
|
| 18 |
+
};
|
| 19 |
+
export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
| 20 |
+
export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
| 4 |
+
const fs = require("fs");
|
| 5 |
+
exports.FILE_SYSTEM_ADAPTER = {
|
| 6 |
+
lstat: fs.lstat,
|
| 7 |
+
stat: fs.stat,
|
| 8 |
+
lstatSync: fs.lstatSync,
|
| 9 |
+
statSync: fs.statSync,
|
| 10 |
+
readdir: fs.readdir,
|
| 11 |
+
readdirSync: fs.readdirSync
|
| 12 |
+
};
|
| 13 |
+
function createFileSystemAdapter(fsMethods) {
|
| 14 |
+
if (fsMethods === undefined) {
|
| 15 |
+
return exports.FILE_SYSTEM_ADAPTER;
|
| 16 |
+
}
|
| 17 |
+
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
| 18 |
+
}
|
| 19 |
+
exports.createFileSystemAdapter = createFileSystemAdapter;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/constants.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* IS `true` for Node.js 10.10 and greater.
|
| 3 |
+
*/
|
| 4 |
+
export declare const IS_SUPPORT_READDIR_WITH_FILE_TYPES: boolean;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/constants.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
| 4 |
+
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.');
|
| 5 |
+
if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) {
|
| 6 |
+
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
| 7 |
+
}
|
| 8 |
+
const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
| 9 |
+
const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
|
| 10 |
+
const SUPPORTED_MAJOR_VERSION = 10;
|
| 11 |
+
const SUPPORTED_MINOR_VERSION = 10;
|
| 12 |
+
const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
|
| 13 |
+
const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
|
| 14 |
+
/**
|
| 15 |
+
* IS `true` for Node.js 10.10 and greater.
|
| 16 |
+
*/
|
| 17 |
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
|
| 2 |
+
import * as async from './providers/async';
|
| 3 |
+
import Settings, { Options } from './settings';
|
| 4 |
+
import type { Dirent, Entry } from './types';
|
| 5 |
+
declare type AsyncCallback = async.AsyncCallback;
|
| 6 |
+
declare function scandir(path: string, callback: AsyncCallback): void;
|
| 7 |
+
declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
|
| 8 |
+
declare namespace scandir {
|
| 9 |
+
function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
|
| 10 |
+
}
|
| 11 |
+
declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
|
| 12 |
+
export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
| 4 |
+
const async = require("./providers/async");
|
| 5 |
+
const sync = require("./providers/sync");
|
| 6 |
+
const settings_1 = require("./settings");
|
| 7 |
+
exports.Settings = settings_1.default;
|
| 8 |
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
| 9 |
+
if (typeof optionsOrSettingsOrCallback === 'function') {
|
| 10 |
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
| 11 |
+
return;
|
| 12 |
+
}
|
| 13 |
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
| 14 |
+
}
|
| 15 |
+
exports.scandir = scandir;
|
| 16 |
+
function scandirSync(path, optionsOrSettings) {
|
| 17 |
+
const settings = getSettings(optionsOrSettings);
|
| 18 |
+
return sync.read(path, settings);
|
| 19 |
+
}
|
| 20 |
+
exports.scandirSync = scandirSync;
|
| 21 |
+
function getSettings(settingsOrOptions = {}) {
|
| 22 |
+
if (settingsOrOptions instanceof settings_1.default) {
|
| 23 |
+
return settingsOrOptions;
|
| 24 |
+
}
|
| 25 |
+
return new settings_1.default(settingsOrOptions);
|
| 26 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/// <reference types="node" />
|
| 2 |
+
import type Settings from '../settings';
|
| 3 |
+
import type { Entry } from '../types';
|
| 4 |
+
export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void;
|
| 5 |
+
export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void;
|
| 6 |
+
export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void;
|
| 7 |
+
export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/async.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
| 4 |
+
const fsStat = require("@nodelib/fs.stat");
|
| 5 |
+
const rpl = require("run-parallel");
|
| 6 |
+
const constants_1 = require("../constants");
|
| 7 |
+
const utils = require("../utils");
|
| 8 |
+
const common = require("./common");
|
| 9 |
+
function read(directory, settings, callback) {
|
| 10 |
+
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
| 11 |
+
readdirWithFileTypes(directory, settings, callback);
|
| 12 |
+
return;
|
| 13 |
+
}
|
| 14 |
+
readdir(directory, settings, callback);
|
| 15 |
+
}
|
| 16 |
+
exports.read = read;
|
| 17 |
+
function readdirWithFileTypes(directory, settings, callback) {
|
| 18 |
+
settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
|
| 19 |
+
if (readdirError !== null) {
|
| 20 |
+
callFailureCallback(callback, readdirError);
|
| 21 |
+
return;
|
| 22 |
+
}
|
| 23 |
+
const entries = dirents.map((dirent) => ({
|
| 24 |
+
dirent,
|
| 25 |
+
name: dirent.name,
|
| 26 |
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
| 27 |
+
}));
|
| 28 |
+
if (!settings.followSymbolicLinks) {
|
| 29 |
+
callSuccessCallback(callback, entries);
|
| 30 |
+
return;
|
| 31 |
+
}
|
| 32 |
+
const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
|
| 33 |
+
rpl(tasks, (rplError, rplEntries) => {
|
| 34 |
+
if (rplError !== null) {
|
| 35 |
+
callFailureCallback(callback, rplError);
|
| 36 |
+
return;
|
| 37 |
+
}
|
| 38 |
+
callSuccessCallback(callback, rplEntries);
|
| 39 |
+
});
|
| 40 |
+
});
|
| 41 |
+
}
|
| 42 |
+
exports.readdirWithFileTypes = readdirWithFileTypes;
|
| 43 |
+
function makeRplTaskEntry(entry, settings) {
|
| 44 |
+
return (done) => {
|
| 45 |
+
if (!entry.dirent.isSymbolicLink()) {
|
| 46 |
+
done(null, entry);
|
| 47 |
+
return;
|
| 48 |
+
}
|
| 49 |
+
settings.fs.stat(entry.path, (statError, stats) => {
|
| 50 |
+
if (statError !== null) {
|
| 51 |
+
if (settings.throwErrorOnBrokenSymbolicLink) {
|
| 52 |
+
done(statError);
|
| 53 |
+
return;
|
| 54 |
+
}
|
| 55 |
+
done(null, entry);
|
| 56 |
+
return;
|
| 57 |
+
}
|
| 58 |
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
| 59 |
+
done(null, entry);
|
| 60 |
+
});
|
| 61 |
+
};
|
| 62 |
+
}
|
| 63 |
+
function readdir(directory, settings, callback) {
|
| 64 |
+
settings.fs.readdir(directory, (readdirError, names) => {
|
| 65 |
+
if (readdirError !== null) {
|
| 66 |
+
callFailureCallback(callback, readdirError);
|
| 67 |
+
return;
|
| 68 |
+
}
|
| 69 |
+
const tasks = names.map((name) => {
|
| 70 |
+
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
| 71 |
+
return (done) => {
|
| 72 |
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
| 73 |
+
if (error !== null) {
|
| 74 |
+
done(error);
|
| 75 |
+
return;
|
| 76 |
+
}
|
| 77 |
+
const entry = {
|
| 78 |
+
name,
|
| 79 |
+
path,
|
| 80 |
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
| 81 |
+
};
|
| 82 |
+
if (settings.stats) {
|
| 83 |
+
entry.stats = stats;
|
| 84 |
+
}
|
| 85 |
+
done(null, entry);
|
| 86 |
+
});
|
| 87 |
+
};
|
| 88 |
+
});
|
| 89 |
+
rpl(tasks, (rplError, entries) => {
|
| 90 |
+
if (rplError !== null) {
|
| 91 |
+
callFailureCallback(callback, rplError);
|
| 92 |
+
return;
|
| 93 |
+
}
|
| 94 |
+
callSuccessCallback(callback, entries);
|
| 95 |
+
});
|
| 96 |
+
});
|
| 97 |
+
}
|
| 98 |
+
exports.readdir = readdir;
|
| 99 |
+
function callFailureCallback(callback, error) {
|
| 100 |
+
callback(error);
|
| 101 |
+
}
|
| 102 |
+
function callSuccessCallback(callback, result) {
|
| 103 |
+
callback(null, result);
|
| 104 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
export declare function joinPathSegments(a: string, b: string, separator: string): string;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/common.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.joinPathSegments = void 0;
|
| 4 |
+
function joinPathSegments(a, b, separator) {
|
| 5 |
+
/**
|
| 6 |
+
* The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
|
| 7 |
+
*/
|
| 8 |
+
if (a.endsWith(separator)) {
|
| 9 |
+
return a + b;
|
| 10 |
+
}
|
| 11 |
+
return a + separator + b;
|
| 12 |
+
}
|
| 13 |
+
exports.joinPathSegments = joinPathSegments;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type Settings from '../settings';
|
| 2 |
+
import type { Entry } from '../types';
|
| 3 |
+
export declare function read(directory: string, settings: Settings): Entry[];
|
| 4 |
+
export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[];
|
| 5 |
+
export declare function readdir(directory: string, settings: Settings): Entry[];
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/providers/sync.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
| 4 |
+
const fsStat = require("@nodelib/fs.stat");
|
| 5 |
+
const constants_1 = require("../constants");
|
| 6 |
+
const utils = require("../utils");
|
| 7 |
+
const common = require("./common");
|
| 8 |
+
function read(directory, settings) {
|
| 9 |
+
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
| 10 |
+
return readdirWithFileTypes(directory, settings);
|
| 11 |
+
}
|
| 12 |
+
return readdir(directory, settings);
|
| 13 |
+
}
|
| 14 |
+
exports.read = read;
|
| 15 |
+
function readdirWithFileTypes(directory, settings) {
|
| 16 |
+
const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
|
| 17 |
+
return dirents.map((dirent) => {
|
| 18 |
+
const entry = {
|
| 19 |
+
dirent,
|
| 20 |
+
name: dirent.name,
|
| 21 |
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
| 22 |
+
};
|
| 23 |
+
if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) {
|
| 24 |
+
try {
|
| 25 |
+
const stats = settings.fs.statSync(entry.path);
|
| 26 |
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
| 27 |
+
}
|
| 28 |
+
catch (error) {
|
| 29 |
+
if (settings.throwErrorOnBrokenSymbolicLink) {
|
| 30 |
+
throw error;
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
return entry;
|
| 35 |
+
});
|
| 36 |
+
}
|
| 37 |
+
exports.readdirWithFileTypes = readdirWithFileTypes;
|
| 38 |
+
function readdir(directory, settings) {
|
| 39 |
+
const names = settings.fs.readdirSync(directory);
|
| 40 |
+
return names.map((name) => {
|
| 41 |
+
const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
| 42 |
+
const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
|
| 43 |
+
const entry = {
|
| 44 |
+
name,
|
| 45 |
+
path: entryPath,
|
| 46 |
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
| 47 |
+
};
|
| 48 |
+
if (settings.stats) {
|
| 49 |
+
entry.stats = stats;
|
| 50 |
+
}
|
| 51 |
+
return entry;
|
| 52 |
+
});
|
| 53 |
+
}
|
| 54 |
+
exports.readdir = readdir;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/settings.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as fsStat from '@nodelib/fs.stat';
|
| 2 |
+
import * as fs from './adapters/fs';
|
| 3 |
+
export interface Options {
|
| 4 |
+
followSymbolicLinks?: boolean;
|
| 5 |
+
fs?: Partial<fs.FileSystemAdapter>;
|
| 6 |
+
pathSegmentSeparator?: string;
|
| 7 |
+
stats?: boolean;
|
| 8 |
+
throwErrorOnBrokenSymbolicLink?: boolean;
|
| 9 |
+
}
|
| 10 |
+
export default class Settings {
|
| 11 |
+
private readonly _options;
|
| 12 |
+
readonly followSymbolicLinks: boolean;
|
| 13 |
+
readonly fs: fs.FileSystemAdapter;
|
| 14 |
+
readonly pathSegmentSeparator: string;
|
| 15 |
+
readonly stats: boolean;
|
| 16 |
+
readonly throwErrorOnBrokenSymbolicLink: boolean;
|
| 17 |
+
readonly fsStatSettings: fsStat.Settings;
|
| 18 |
+
constructor(_options?: Options);
|
| 19 |
+
private _getValue;
|
| 20 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/settings.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
const path = require("path");
|
| 4 |
+
const fsStat = require("@nodelib/fs.stat");
|
| 5 |
+
const fs = require("./adapters/fs");
|
| 6 |
+
class Settings {
|
| 7 |
+
constructor(_options = {}) {
|
| 8 |
+
this._options = _options;
|
| 9 |
+
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
| 10 |
+
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
| 11 |
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
| 12 |
+
this.stats = this._getValue(this._options.stats, false);
|
| 13 |
+
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
| 14 |
+
this.fsStatSettings = new fsStat.Settings({
|
| 15 |
+
followSymbolicLink: this.followSymbolicLinks,
|
| 16 |
+
fs: this.fs,
|
| 17 |
+
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
| 18 |
+
});
|
| 19 |
+
}
|
| 20 |
+
_getValue(option, value) {
|
| 21 |
+
return option !== null && option !== void 0 ? option : value;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
exports.default = Settings;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/out/types/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/// <reference types="node" />
|
| 2 |
+
import type * as fs from 'fs';
|
| 3 |
+
export interface Entry {
|
| 4 |
+
dirent: Dirent;
|
| 5 |
+
name: string;
|
| 6 |
+
path: string;
|
| 7 |
+
stats?: Stats;
|
| 8 |
+
}
|
| 9 |
+
export declare type Stats = fs.Stats;
|
| 10 |
+
export declare type ErrnoException = NodeJS.ErrnoException;
|
| 11 |
+
export interface Dirent {
|
| 12 |
+
isBlockDevice: () => boolean;
|
| 13 |
+
isCharacterDevice: () => boolean;
|
| 14 |
+
isDirectory: () => boolean;
|
| 15 |
+
isFIFO: () => boolean;
|
| 16 |
+
isFile: () => boolean;
|
| 17 |
+
isSocket: () => boolean;
|
| 18 |
+
isSymbolicLink: () => boolean;
|
| 19 |
+
name: string;
|
| 20 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.scandir/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@nodelib/fs.scandir",
|
| 3 |
+
"version": "2.1.5",
|
| 4 |
+
"description": "List files and directories inside the specified directory",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir",
|
| 7 |
+
"keywords": [
|
| 8 |
+
"NodeLib",
|
| 9 |
+
"fs",
|
| 10 |
+
"FileSystem",
|
| 11 |
+
"file system",
|
| 12 |
+
"scandir",
|
| 13 |
+
"readdir",
|
| 14 |
+
"dirent"
|
| 15 |
+
],
|
| 16 |
+
"engines": {
|
| 17 |
+
"node": ">= 8"
|
| 18 |
+
},
|
| 19 |
+
"files": [
|
| 20 |
+
"out/**",
|
| 21 |
+
"!out/**/*.map",
|
| 22 |
+
"!out/**/*.spec.*"
|
| 23 |
+
],
|
| 24 |
+
"main": "out/index.js",
|
| 25 |
+
"typings": "out/index.d.ts",
|
| 26 |
+
"scripts": {
|
| 27 |
+
"clean": "rimraf {tsconfig.tsbuildinfo,out}",
|
| 28 |
+
"lint": "eslint \"src/**/*.ts\" --cache",
|
| 29 |
+
"compile": "tsc -b .",
|
| 30 |
+
"compile:watch": "tsc -p . --watch --sourceMap",
|
| 31 |
+
"test": "mocha \"out/**/*.spec.js\" -s 0",
|
| 32 |
+
"build": "npm run clean && npm run compile && npm run lint && npm test",
|
| 33 |
+
"watch": "npm run clean && npm run compile:watch"
|
| 34 |
+
},
|
| 35 |
+
"dependencies": {
|
| 36 |
+
"@nodelib/fs.stat": "2.0.5",
|
| 37 |
+
"run-parallel": "^1.1.9"
|
| 38 |
+
},
|
| 39 |
+
"devDependencies": {
|
| 40 |
+
"@nodelib/fs.macchiato": "1.0.4",
|
| 41 |
+
"@types/run-parallel": "^1.1.0"
|
| 42 |
+
},
|
| 43 |
+
"gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562"
|
| 44 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.stat/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) Denis Malinochkin
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.stat/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @nodelib/fs.stat
|
| 2 |
+
|
| 3 |
+
> Get the status of a file with some features.
|
| 4 |
+
|
| 5 |
+
## :bulb: Highlights
|
| 6 |
+
|
| 7 |
+
Wrapper around standard method `fs.lstat` and `fs.stat` with some features.
|
| 8 |
+
|
| 9 |
+
* :beginner: Normally follows symbolic link.
|
| 10 |
+
* :gear: Can safely work with broken symbolic link.
|
| 11 |
+
|
| 12 |
+
## Install
|
| 13 |
+
|
| 14 |
+
```console
|
| 15 |
+
npm install @nodelib/fs.stat
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
+
|
| 20 |
+
```ts
|
| 21 |
+
import * as fsStat from '@nodelib/fs.stat';
|
| 22 |
+
|
| 23 |
+
fsStat.stat('path', (error, stats) => { /* … */ });
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## API
|
| 27 |
+
|
| 28 |
+
### .stat(path, [optionsOrSettings], callback)
|
| 29 |
+
|
| 30 |
+
Returns an instance of `fs.Stats` class for provided path with standard callback-style.
|
| 31 |
+
|
| 32 |
+
```ts
|
| 33 |
+
fsStat.stat('path', (error, stats) => { /* … */ });
|
| 34 |
+
fsStat.stat('path', {}, (error, stats) => { /* … */ });
|
| 35 |
+
fsStat.stat('path', new fsStat.Settings(), (error, stats) => { /* … */ });
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
### .statSync(path, [optionsOrSettings])
|
| 39 |
+
|
| 40 |
+
Returns an instance of `fs.Stats` class for provided path.
|
| 41 |
+
|
| 42 |
+
```ts
|
| 43 |
+
const stats = fsStat.stat('path');
|
| 44 |
+
const stats = fsStat.stat('path', {});
|
| 45 |
+
const stats = fsStat.stat('path', new fsStat.Settings());
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
#### path
|
| 49 |
+
|
| 50 |
+
* Required: `true`
|
| 51 |
+
* Type: `string | Buffer | URL`
|
| 52 |
+
|
| 53 |
+
A path to a file. If a URL is provided, it must use the `file:` protocol.
|
| 54 |
+
|
| 55 |
+
#### optionsOrSettings
|
| 56 |
+
|
| 57 |
+
* Required: `false`
|
| 58 |
+
* Type: `Options | Settings`
|
| 59 |
+
* Default: An instance of `Settings` class
|
| 60 |
+
|
| 61 |
+
An [`Options`](#options) object or an instance of [`Settings`](#settings) class.
|
| 62 |
+
|
| 63 |
+
> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
|
| 64 |
+
|
| 65 |
+
### Settings([options])
|
| 66 |
+
|
| 67 |
+
A class of full settings of the package.
|
| 68 |
+
|
| 69 |
+
```ts
|
| 70 |
+
const settings = new fsStat.Settings({ followSymbolicLink: false });
|
| 71 |
+
|
| 72 |
+
const stats = fsStat.stat('path', settings);
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## Options
|
| 76 |
+
|
| 77 |
+
### `followSymbolicLink`
|
| 78 |
+
|
| 79 |
+
* Type: `boolean`
|
| 80 |
+
* Default: `true`
|
| 81 |
+
|
| 82 |
+
Follow symbolic link or not. Call `fs.stat` on symbolic link if `true`.
|
| 83 |
+
|
| 84 |
+
### `markSymbolicLink`
|
| 85 |
+
|
| 86 |
+
* Type: `boolean`
|
| 87 |
+
* Default: `false`
|
| 88 |
+
|
| 89 |
+
Mark symbolic link by setting the return value of `isSymbolicLink` function to always `true` (even after `fs.stat`).
|
| 90 |
+
|
| 91 |
+
> :book: Can be used if you want to know what is hidden behind a symbolic link, but still continue to know that it is a symbolic link.
|
| 92 |
+
|
| 93 |
+
### `throwErrorOnBrokenSymbolicLink`
|
| 94 |
+
|
| 95 |
+
* Type: `boolean`
|
| 96 |
+
* Default: `true`
|
| 97 |
+
|
| 98 |
+
Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`.
|
| 99 |
+
|
| 100 |
+
### `fs`
|
| 101 |
+
|
| 102 |
+
* Type: [`FileSystemAdapter`](./src/adapters/fs.ts)
|
| 103 |
+
* Default: A default FS methods
|
| 104 |
+
|
| 105 |
+
By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
|
| 106 |
+
|
| 107 |
+
```ts
|
| 108 |
+
interface FileSystemAdapter {
|
| 109 |
+
lstat?: typeof fs.lstat;
|
| 110 |
+
stat?: typeof fs.stat;
|
| 111 |
+
lstatSync?: typeof fs.lstatSync;
|
| 112 |
+
statSync?: typeof fs.statSync;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
const settings = new fsStat.Settings({
|
| 116 |
+
fs: { lstat: fakeLstat }
|
| 117 |
+
});
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
## Changelog
|
| 121 |
+
|
| 122 |
+
See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
|
| 123 |
+
|
| 124 |
+
## License
|
| 125 |
+
|
| 126 |
+
This software is released under the terms of the MIT license.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.stat/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@nodelib/fs.stat",
|
| 3 |
+
"version": "2.0.5",
|
| 4 |
+
"description": "Get the status of a file with some features",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat",
|
| 7 |
+
"keywords": [
|
| 8 |
+
"NodeLib",
|
| 9 |
+
"fs",
|
| 10 |
+
"FileSystem",
|
| 11 |
+
"file system",
|
| 12 |
+
"stat"
|
| 13 |
+
],
|
| 14 |
+
"engines": {
|
| 15 |
+
"node": ">= 8"
|
| 16 |
+
},
|
| 17 |
+
"files": [
|
| 18 |
+
"out/**",
|
| 19 |
+
"!out/**/*.map",
|
| 20 |
+
"!out/**/*.spec.*"
|
| 21 |
+
],
|
| 22 |
+
"main": "out/index.js",
|
| 23 |
+
"typings": "out/index.d.ts",
|
| 24 |
+
"scripts": {
|
| 25 |
+
"clean": "rimraf {tsconfig.tsbuildinfo,out}",
|
| 26 |
+
"lint": "eslint \"src/**/*.ts\" --cache",
|
| 27 |
+
"compile": "tsc -b .",
|
| 28 |
+
"compile:watch": "tsc -p . --watch --sourceMap",
|
| 29 |
+
"test": "mocha \"out/**/*.spec.js\" -s 0",
|
| 30 |
+
"build": "npm run clean && npm run compile && npm run lint && npm test",
|
| 31 |
+
"watch": "npm run clean && npm run compile:watch"
|
| 32 |
+
},
|
| 33 |
+
"devDependencies": {
|
| 34 |
+
"@nodelib/fs.macchiato": "1.0.4"
|
| 35 |
+
},
|
| 36 |
+
"gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562"
|
| 37 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.walk/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) Denis Malinochkin
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.walk/README.md
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @nodelib/fs.walk
|
| 2 |
+
|
| 3 |
+
> A library for efficiently walking a directory recursively.
|
| 4 |
+
|
| 5 |
+
## :bulb: Highlights
|
| 6 |
+
|
| 7 |
+
* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional).
|
| 8 |
+
* :rocket: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type for performance reasons. See [`old` and `modern` mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode).
|
| 9 |
+
* :gear: Built-in directories/files and error filtering system.
|
| 10 |
+
* :link: Can safely work with broken symbolic links.
|
| 11 |
+
|
| 12 |
+
## Install
|
| 13 |
+
|
| 14 |
+
```console
|
| 15 |
+
npm install @nodelib/fs.walk
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
+
|
| 20 |
+
```ts
|
| 21 |
+
import * as fsWalk from '@nodelib/fs.walk';
|
| 22 |
+
|
| 23 |
+
fsWalk.walk('path', (error, entries) => { /* … */ });
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## API
|
| 27 |
+
|
| 28 |
+
### .walk(path, [optionsOrSettings], callback)
|
| 29 |
+
|
| 30 |
+
Reads the directory recursively and asynchronously. Requires a callback function.
|
| 31 |
+
|
| 32 |
+
> :book: If you want to use the Promise API, use `util.promisify`.
|
| 33 |
+
|
| 34 |
+
```ts
|
| 35 |
+
fsWalk.walk('path', (error, entries) => { /* … */ });
|
| 36 |
+
fsWalk.walk('path', {}, (error, entries) => { /* … */ });
|
| 37 |
+
fsWalk.walk('path', new fsWalk.Settings(), (error, entries) => { /* … */ });
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
### .walkStream(path, [optionsOrSettings])
|
| 41 |
+
|
| 42 |
+
Reads the directory recursively and asynchronously. [Readable Stream](https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_streams) is used as a provider.
|
| 43 |
+
|
| 44 |
+
```ts
|
| 45 |
+
const stream = fsWalk.walkStream('path');
|
| 46 |
+
const stream = fsWalk.walkStream('path', {});
|
| 47 |
+
const stream = fsWalk.walkStream('path', new fsWalk.Settings());
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
### .walkSync(path, [optionsOrSettings])
|
| 51 |
+
|
| 52 |
+
Reads the directory recursively and synchronously. Returns an array of entries.
|
| 53 |
+
|
| 54 |
+
```ts
|
| 55 |
+
const entries = fsWalk.walkSync('path');
|
| 56 |
+
const entries = fsWalk.walkSync('path', {});
|
| 57 |
+
const entries = fsWalk.walkSync('path', new fsWalk.Settings());
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
#### path
|
| 61 |
+
|
| 62 |
+
* Required: `true`
|
| 63 |
+
* Type: `string | Buffer | URL`
|
| 64 |
+
|
| 65 |
+
A path to a file. If a URL is provided, it must use the `file:` protocol.
|
| 66 |
+
|
| 67 |
+
#### optionsOrSettings
|
| 68 |
+
|
| 69 |
+
* Required: `false`
|
| 70 |
+
* Type: `Options | Settings`
|
| 71 |
+
* Default: An instance of `Settings` class
|
| 72 |
+
|
| 73 |
+
An [`Options`](#options) object or an instance of [`Settings`](#settings) class.
|
| 74 |
+
|
| 75 |
+
> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
|
| 76 |
+
|
| 77 |
+
### Settings([options])
|
| 78 |
+
|
| 79 |
+
A class of full settings of the package.
|
| 80 |
+
|
| 81 |
+
```ts
|
| 82 |
+
const settings = new fsWalk.Settings({ followSymbolicLinks: true });
|
| 83 |
+
|
| 84 |
+
const entries = fsWalk.walkSync('path', settings);
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Entry
|
| 88 |
+
|
| 89 |
+
* `name` — The name of the entry (`unknown.txt`).
|
| 90 |
+
* `path` — The path of the entry relative to call directory (`root/unknown.txt`).
|
| 91 |
+
* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class.
|
| 92 |
+
* [`stats`] — An instance of `fs.Stats` class.
|
| 93 |
+
|
| 94 |
+
## Options
|
| 95 |
+
|
| 96 |
+
### basePath
|
| 97 |
+
|
| 98 |
+
* Type: `string`
|
| 99 |
+
* Default: `undefined`
|
| 100 |
+
|
| 101 |
+
By default, all paths are built relative to the root path. You can use this option to set custom root path.
|
| 102 |
+
|
| 103 |
+
In the example below we read the files from the `root` directory, but in the results the root path will be `custom`.
|
| 104 |
+
|
| 105 |
+
```ts
|
| 106 |
+
fsWalk.walkSync('root'); // → ['root/file.txt']
|
| 107 |
+
fsWalk.walkSync('root', { basePath: 'custom' }); // → ['custom/file.txt']
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### concurrency
|
| 111 |
+
|
| 112 |
+
* Type: `number`
|
| 113 |
+
* Default: `Infinity`
|
| 114 |
+
|
| 115 |
+
The maximum number of concurrent calls to `fs.readdir`.
|
| 116 |
+
|
| 117 |
+
> :book: The higher the number, the higher performance and the load on the File System. If you want to read in quiet mode, set the value to `4 * os.cpus().length` (4 is default size of [thread pool work scheduling](http://docs.libuv.org/en/v1.x/threadpool.html#thread-pool-work-scheduling)).
|
| 118 |
+
|
| 119 |
+
### deepFilter
|
| 120 |
+
|
| 121 |
+
* Type: [`DeepFilterFunction`](./src/settings.ts)
|
| 122 |
+
* Default: `undefined`
|
| 123 |
+
|
| 124 |
+
A function that indicates whether the directory will be read deep or not.
|
| 125 |
+
|
| 126 |
+
```ts
|
| 127 |
+
// Skip all directories that starts with `node_modules`
|
| 128 |
+
const filter: DeepFilterFunction = (entry) => !entry.path.startsWith('node_modules');
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
### entryFilter
|
| 132 |
+
|
| 133 |
+
* Type: [`EntryFilterFunction`](./src/settings.ts)
|
| 134 |
+
* Default: `undefined`
|
| 135 |
+
|
| 136 |
+
A function that indicates whether the entry will be included to results or not.
|
| 137 |
+
|
| 138 |
+
```ts
|
| 139 |
+
// Exclude all `.js` files from results
|
| 140 |
+
const filter: EntryFilterFunction = (entry) => !entry.name.endsWith('.js');
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
### errorFilter
|
| 144 |
+
|
| 145 |
+
* Type: [`ErrorFilterFunction`](./src/settings.ts)
|
| 146 |
+
* Default: `undefined`
|
| 147 |
+
|
| 148 |
+
A function that allows you to skip errors that occur when reading directories.
|
| 149 |
+
|
| 150 |
+
For example, you can skip `ENOENT` errors if required:
|
| 151 |
+
|
| 152 |
+
```ts
|
| 153 |
+
// Skip all ENOENT errors
|
| 154 |
+
const filter: ErrorFilterFunction = (error) => error.code == 'ENOENT';
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
### stats
|
| 158 |
+
|
| 159 |
+
* Type: `boolean`
|
| 160 |
+
* Default: `false`
|
| 161 |
+
|
| 162 |
+
Adds an instance of `fs.Stats` class to the [`Entry`](#entry).
|
| 163 |
+
|
| 164 |
+
> :book: Always use `fs.readdir` with additional `fs.lstat/fs.stat` calls to determine the entry type.
|
| 165 |
+
|
| 166 |
+
### followSymbolicLinks
|
| 167 |
+
|
| 168 |
+
* Type: `boolean`
|
| 169 |
+
* Default: `false`
|
| 170 |
+
|
| 171 |
+
Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`.
|
| 172 |
+
|
| 173 |
+
### `throwErrorOnBrokenSymbolicLink`
|
| 174 |
+
|
| 175 |
+
* Type: `boolean`
|
| 176 |
+
* Default: `true`
|
| 177 |
+
|
| 178 |
+
Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`.
|
| 179 |
+
|
| 180 |
+
### `pathSegmentSeparator`
|
| 181 |
+
|
| 182 |
+
* Type: `string`
|
| 183 |
+
* Default: `path.sep`
|
| 184 |
+
|
| 185 |
+
By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead.
|
| 186 |
+
|
| 187 |
+
### `fs`
|
| 188 |
+
|
| 189 |
+
* Type: `FileSystemAdapter`
|
| 190 |
+
* Default: A default FS methods
|
| 191 |
+
|
| 192 |
+
By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
|
| 193 |
+
|
| 194 |
+
```ts
|
| 195 |
+
interface FileSystemAdapter {
|
| 196 |
+
lstat: typeof fs.lstat;
|
| 197 |
+
stat: typeof fs.stat;
|
| 198 |
+
lstatSync: typeof fs.lstatSync;
|
| 199 |
+
statSync: typeof fs.statSync;
|
| 200 |
+
readdir: typeof fs.readdir;
|
| 201 |
+
readdirSync: typeof fs.readdirSync;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
const settings = new fsWalk.Settings({
|
| 205 |
+
fs: { lstat: fakeLstat }
|
| 206 |
+
});
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
## Changelog
|
| 210 |
+
|
| 211 |
+
See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
|
| 212 |
+
|
| 213 |
+
## License
|
| 214 |
+
|
| 215 |
+
This software is released under the terms of the MIT license.
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@nodelib/fs.walk/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@nodelib/fs.walk",
|
| 3 |
+
"version": "1.2.8",
|
| 4 |
+
"description": "A library for efficiently walking a directory recursively",
|
| 5 |
+
"license": "MIT",
|
| 6 |
+
"repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk",
|
| 7 |
+
"keywords": [
|
| 8 |
+
"NodeLib",
|
| 9 |
+
"fs",
|
| 10 |
+
"FileSystem",
|
| 11 |
+
"file system",
|
| 12 |
+
"walk",
|
| 13 |
+
"scanner",
|
| 14 |
+
"crawler"
|
| 15 |
+
],
|
| 16 |
+
"engines": {
|
| 17 |
+
"node": ">= 8"
|
| 18 |
+
},
|
| 19 |
+
"files": [
|
| 20 |
+
"out/**",
|
| 21 |
+
"!out/**/*.map",
|
| 22 |
+
"!out/**/*.spec.*",
|
| 23 |
+
"!out/**/tests/**"
|
| 24 |
+
],
|
| 25 |
+
"main": "out/index.js",
|
| 26 |
+
"typings": "out/index.d.ts",
|
| 27 |
+
"scripts": {
|
| 28 |
+
"clean": "rimraf {tsconfig.tsbuildinfo,out}",
|
| 29 |
+
"lint": "eslint \"src/**/*.ts\" --cache",
|
| 30 |
+
"compile": "tsc -b .",
|
| 31 |
+
"compile:watch": "tsc -p . --watch --sourceMap",
|
| 32 |
+
"test": "mocha \"out/**/*.spec.js\" -s 0",
|
| 33 |
+
"build": "npm run clean && npm run compile && npm run lint && npm test",
|
| 34 |
+
"watch": "npm run clean && npm run compile:watch"
|
| 35 |
+
},
|
| 36 |
+
"dependencies": {
|
| 37 |
+
"@nodelib/fs.scandir": "2.1.5",
|
| 38 |
+
"fastq": "^1.6.0"
|
| 39 |
+
},
|
| 40 |
+
"devDependencies": {
|
| 41 |
+
"@nodelib/fs.macchiato": "1.0.4"
|
| 42 |
+
},
|
| 43 |
+
"gitHead": "1e5bad48565da2b06b8600e744324ea240bf49d8"
|
| 44 |
+
}
|