@techdocs/cli 1.2.5-next.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/cjs/{PublisherConfig-0ea58467.cjs.js → PublisherConfig-9627c348.cjs.js} +27 -1
- package/dist/cjs/{PublisherConfig-0ea58467.cjs.js.map → PublisherConfig-9627c348.cjs.js.map} +1 -1
- package/dist/cjs/{migrate-62035c68.cjs.js → migrate-dd1c117b.cjs.js} +2 -2
- package/dist/cjs/{migrate-62035c68.cjs.js.map → migrate-dd1c117b.cjs.js.map} +1 -1
- package/dist/cjs/{publish-af5607e2.cjs.js → publish-261bcb7c.cjs.js} +2 -2
- package/dist/cjs/{publish-af5607e2.cjs.js.map → publish-261bcb7c.cjs.js.map} +1 -1
- package/dist/cjs/{serve-176119a3.cjs.js → serve-ca27a9de.cjs.js} +10 -5
- package/dist/cjs/serve-ca27a9de.cjs.js.map +1 -0
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{1032.1b3a9ba2.chunk.js → 1032.4eeed38c.chunk.js} +2 -2
- package/dist/embedded-app/static/{1032.1b3a9ba2.chunk.js.map → 1032.4eeed38c.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{1105.b781a27e.chunk.js → 1105.ea587869.chunk.js} +2 -2
- package/dist/embedded-app/static/{1105.b781a27e.chunk.js.map → 1105.ea587869.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{184.e3627fff.chunk.js → 184.c0ade3a9.chunk.js} +2 -2
- package/dist/embedded-app/static/{184.e3627fff.chunk.js.map → 184.c0ade3a9.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2440.22336cc5.chunk.js → 2440.82725a72.chunk.js} +2 -2
- package/dist/embedded-app/static/{2440.22336cc5.chunk.js.map → 2440.82725a72.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5458.4bf58a1b.chunk.js → 5458.ab22b201.chunk.js} +2 -2
- package/dist/embedded-app/static/{5458.4bf58a1b.chunk.js.map → 5458.ab22b201.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5837.76513d4f.chunk.js → 5837.9510a1b9.chunk.js} +2 -2
- package/dist/embedded-app/static/{5837.76513d4f.chunk.js.map → 5837.9510a1b9.chunk.js.map} +1 -1
- package/dist/embedded-app/static/5869.f7e1183c.chunk.js +3 -0
- package/dist/embedded-app/static/5869.f7e1183c.chunk.js.map +1 -0
- package/dist/embedded-app/static/6051.716303b7.chunk.js +4 -0
- package/dist/embedded-app/static/6051.716303b7.chunk.js.map +1 -0
- package/dist/embedded-app/static/{732.8d78661a.chunk.js → 732.d703f6a9.chunk.js} +2 -2
- package/dist/embedded-app/static/{732.8d78661a.chunk.js.map → 732.d703f6a9.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7560.2425fb06.chunk.js → 7560.1af568e5.chunk.js} +2 -2
- package/dist/embedded-app/static/{7560.2425fb06.chunk.js.map → 7560.1af568e5.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7750.b05dca8b.chunk.js → 7750.1bdc8262.chunk.js} +2 -2
- package/dist/embedded-app/static/{7750.b05dca8b.chunk.js.map → 7750.1bdc8262.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8951.ab95d8c1.chunk.js → 8951.3e2e38b8.chunk.js} +2 -2
- package/dist/embedded-app/static/{8951.ab95d8c1.chunk.js.map → 8951.3e2e38b8.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9545.c7c7af3a.chunk.js → 9545.efced59f.chunk.js} +2 -2
- package/dist/embedded-app/static/{9545.c7c7af3a.chunk.js.map → 9545.efced59f.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9770.b9b07a81.chunk.js → 9770.b9672083.chunk.js} +2 -2
- package/dist/embedded-app/static/{9770.b9b07a81.chunk.js.map → 9770.b9672083.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.6fc07bc1.js +497 -0
- package/dist/embedded-app/static/main.6fc07bc1.js.map +1 -0
- package/dist/embedded-app/static/module-ajv.07e5c2aa.js +10 -0
- package/dist/embedded-app/static/module-ajv.07e5c2aa.js.map +1 -0
- package/dist/embedded-app/static/module-luxon.9cc2c5ac.js +3 -0
- package/dist/embedded-app/static/module-luxon.9cc2c5ac.js.map +1 -0
- package/dist/embedded-app/static/{module-octokit.08c0a003.js → module-octokit.c67cdf8f.js} +2 -2
- package/dist/embedded-app/static/{module-octokit.08c0a003.js.map → module-octokit.c67cdf8f.js.map} +1 -1
- package/dist/embedded-app/static/module-remix-run.b9acb514.js +12 -0
- package/dist/embedded-app/static/module-remix-run.b9acb514.js.map +1 -0
- package/dist/embedded-app/static/{runtime.cba21e8e.js → runtime.6fc07bc1.js} +2 -2
- package/dist/embedded-app/static/{runtime.cba21e8e.js.map → runtime.6fc07bc1.js.map} +1 -1
- package/dist/embedded-app/static/vendor.6fc07bc1.js +231 -0
- package/dist/embedded-app/static/vendor.6fc07bc1.js.map +1 -0
- package/dist/index.cjs.js +18 -4
- package/dist/index.cjs.js.map +1 -1
- package/package.json +6 -6
- package/dist/cjs/serve-176119a3.cjs.js.map +0 -1
- package/dist/embedded-app/static/5869.11f08c37.chunk.js +0 -3
- package/dist/embedded-app/static/5869.11f08c37.chunk.js.map +0 -1
- package/dist/embedded-app/static/6051.0cb12f85.chunk.js +0 -4
- package/dist/embedded-app/static/6051.0cb12f85.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.cba21e8e.js +0 -494
- package/dist/embedded-app/static/main.cba21e8e.js.map +0 -1
- package/dist/embedded-app/static/module-ajv.2efe45a5.js +0 -10
- package/dist/embedded-app/static/module-ajv.2efe45a5.js.map +0 -1
- package/dist/embedded-app/static/module-luxon.4cf2fdd7.js +0 -3
- package/dist/embedded-app/static/module-luxon.4cf2fdd7.js.map +0 -1
- package/dist/embedded-app/static/module-remix-run.e15d5a2e.js +0 -12
- package/dist/embedded-app/static/module-remix-run.e15d5a2e.js.map +0 -1
- package/dist/embedded-app/static/vendor.cba21e8e.js +0 -236
- package/dist/embedded-app/static/vendor.cba21e8e.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4,6 +4,7 @@ var commander = require('commander');
|
|
|
4
4
|
var pluginTechdocsNode = require('@backstage/plugin-techdocs-node');
|
|
5
5
|
|
|
6
6
|
const defaultDockerImage = pluginTechdocsNode.TechdocsGenerator.defaultDockerImage;
|
|
7
|
+
const defaultPreviewAppPort = "3000";
|
|
7
8
|
function registerCommands(program) {
|
|
8
9
|
program.command("generate").description("Generate TechDocs documentation site using MkDocs.").option(
|
|
9
10
|
"--source-dir <PATH>",
|
|
@@ -81,7 +82,7 @@ function registerCommands(program) {
|
|
|
81
82
|
"--concurrency <MAX CONCURRENT REQS>",
|
|
82
83
|
"Optional Controls the number of API requests allowed to be performed simultaneously.",
|
|
83
84
|
"25"
|
|
84
|
-
).option("-v --verbose", "Enable verbose output.", false).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/migrate-
|
|
85
|
+
).option("-v --verbose", "Enable verbose output.", false).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/migrate-dd1c117b.cjs.js'); }).then((m) => m.default)));
|
|
85
86
|
program.command("publish").description(
|
|
86
87
|
"Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc."
|
|
87
88
|
).requiredOption(
|
|
@@ -131,7 +132,7 @@ function registerCommands(program) {
|
|
|
131
132
|
"--directory <PATH>",
|
|
132
133
|
"Path of the directory containing generated files to publish",
|
|
133
134
|
"./site/"
|
|
134
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/publish-
|
|
135
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/publish-261bcb7c.cjs.js'); }).then((m) => m.default)));
|
|
135
136
|
program.command("serve:mkdocs").description("Serve a documentation project locally using MkDocs serve.").option(
|
|
136
137
|
"-i, --docker-image <DOCKER_IMAGE>",
|
|
137
138
|
"The mkdocs docker container to use",
|
|
@@ -161,7 +162,20 @@ function registerCommands(program) {
|
|
|
161
162
|
).option(
|
|
162
163
|
"--no-docker",
|
|
163
164
|
"Do not use Docker, use MkDocs executable in current user environment."
|
|
164
|
-
).option("--mkdocs-port <PORT>", "Port for MkDocs server to use", "8000").option("-v --verbose", "Enable verbose output.", false).
|
|
165
|
+
).option("--mkdocs-port <PORT>", "Port for MkDocs server to use", "8000").option("-v --verbose", "Enable verbose output.", false).option(
|
|
166
|
+
"--preview-app-bundle-path <PATH_TO_BUNDLE>",
|
|
167
|
+
"Preview documentation using another web app"
|
|
168
|
+
).option(
|
|
169
|
+
"--preview-app-port <PORT>",
|
|
170
|
+
"Port for the preview app to be served on",
|
|
171
|
+
defaultPreviewAppPort
|
|
172
|
+
).hook("preAction", (command) => {
|
|
173
|
+
if (command.opts().previewAppPort !== defaultPreviewAppPort && !command.opts().previewAppBundlePath) {
|
|
174
|
+
command.error(
|
|
175
|
+
"--preview-app-port can only be used together with --preview-app-bundle-path"
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
}).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/serve-ca27a9de.cjs.js'); }).then((m) => m.default)));
|
|
165
179
|
}
|
|
166
180
|
function lazy(getActionFunc) {
|
|
167
181
|
return async (...args) => {
|
|
@@ -176,7 +190,7 @@ function lazy(getActionFunc) {
|
|
|
176
190
|
};
|
|
177
191
|
}
|
|
178
192
|
|
|
179
|
-
var version = "1.
|
|
193
|
+
var version = "1.3.0";
|
|
180
194
|
|
|
181
195
|
const main = (argv) => {
|
|
182
196
|
commander.program.name("techdocs-cli").version(version);
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/commands/index.ts","../src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Command } from 'commander';\nimport { TechdocsGenerator } from '@backstage/plugin-techdocs-node';\n\nconst defaultDockerImage = TechdocsGenerator.defaultDockerImage;\n\nexport function registerCommands(program: Command) {\n program\n .command('generate')\n .description('Generate TechDocs documentation site using MkDocs.')\n .option(\n '--source-dir <PATH>',\n 'Source directory containing mkdocs.yml and docs/ directory.',\n '.',\n )\n .option(\n '--output-dir <PATH>',\n 'Output directory containing generated TechDocs site.',\n './site/',\n )\n .option(\n '--docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option('--no-pull', 'Do not pull the latest docker image')\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable and plugins in current user environment.',\n )\n .option(\n '--techdocs-ref <HOST_TYPE:URL>',\n 'The repository hosting documentation source files e.g. url:https://ghe.mycompany.net.com/org/repo.' +\n '\\nThis value is same as the backstage.io/techdocs-ref annotation of the corresponding Backstage entity.' +\n '\\nIt is completely fine to skip this as it is only being used to set repo_url in mkdocs.yml if not found.\\n',\n )\n .option(\n '--etag <ETAG>',\n 'A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored in techdocs_metadata.json.',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--omitTechdocsCoreMkdocsPlugin',\n \"Don't patch MkDocs file automatically with techdocs-core plugin.\",\n false,\n )\n .option(\n '--legacyCopyReadmeMdToIndexMd',\n 'Attempt to ensure an index.md exists falling back to using <docs-dir>/README.md or README.md in case a default <docs-dir>/index.md is not provided.',\n false,\n )\n .alias('build')\n .action(lazy(() => import('./generate/generate').then(m => m.default)));\n\n program\n .command('migrate')\n .description(\n 'Migrate objects with case-sensitive entity triplets to lower-case versions.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--awsBucketRootPath',\n 'Optional sub-directory to store files in Amazon S3',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--removeOriginal',\n 'Optional Files are copied by default. If flag is set, files are renamed/moved instead.',\n false,\n )\n .option(\n '--concurrency <MAX CONCURRENT REQS>',\n 'Optional Controls the number of API requests allowed to be performed simultaneously.',\n '25',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./migrate/migrate').then(m => m.default)));\n\n program\n .command('publish')\n .description(\n 'Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .requiredOption(\n '--entity <NAMESPACE/KIND/NAME>',\n '(Required always) Entity uid separated by / in namespace/kind/name order (case-sensitive). Example: default/Component/myEntity ',\n )\n .option(\n '--legacyUseCaseSensitiveTripletPaths',\n 'Publishes objects with cased entity triplet prefix when set (e.g. namespace/Kind/name). Only use if your TechDocs backend is configured the same way.',\n false,\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--gcsBucketRootPath',\n 'Optional sub-directory to store files in Google cloud storage',\n )\n .option(\n '--directory <PATH>',\n 'Path of the directory containing generated files to publish',\n './site/',\n )\n .action(lazy(() => import('./publish/publish').then(m => m.default)));\n\n program\n .command('serve:mkdocs')\n .description('Serve a documentation project locally using MkDocs serve.')\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, run `mkdocs serve` in current user environment.',\n )\n .option('-p, --port <PORT>', 'Port to serve documentation locally', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/mkdocs').then(m => m.default)));\n\n program\n .command('serve')\n .description(\n 'Serve a documentation project locally in a Backstage app-like environment',\n )\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable in current user environment.',\n )\n .option('--mkdocs-port <PORT>', 'Port for MkDocs server to use', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/serve').then(m => m.default)));\n}\n\n// Wraps an action function so that it always exits and handles errors\n// Humbly taken from backstage-cli's registerCommands\nfunction lazy(\n getActionFunc: () => Promise<(...args: any[]) => Promise<void>>,\n): (...args: any[]) => Promise<never> {\n return async (...args: any[]) => {\n try {\n const actionFunc = await getActionFunc();\n await actionFunc(...args);\n process.exit(0);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error.message);\n process.exit(1);\n }\n };\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { program } from 'commander';\nimport { registerCommands } from './commands';\nimport { version } from '../package.json';\n\nconst main = (argv: string[]) => {\n program.name('techdocs-cli').version(version);\n\n registerCommands(program);\n\n program.parse(argv);\n};\n\nmain(process.argv);\n"],"names":["TechdocsGenerator","program"],"mappings":";;;;;AAmBA,MAAM,qBAAqBA,oCAAkB,CAAA,kBAAA,CAAA;AAEtC,SAAS,iBAAiB,OAAkB,EAAA;AACjD,EAAA,OAAA,CACG,OAAQ,CAAA,UAAU,CAClB,CAAA,WAAA,CAAY,oDAAoD,CAChE,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,6DAAA;AAAA,IACA,GAAA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,sDAAA;AAAA,IACA,SAAA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,+BAAA;AAAA,IACA,oCAAA;AAAA,IACA,kBAAA;AAAA,GAED,CAAA,MAAA,CAAO,WAAa,EAAA,qCAAqC,CACzD,CAAA,MAAA;AAAA,IACC,aAAA;AAAA,IACA,mFAAA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,gCAAA;AAAA,IACA,sTAAA;AAAA,GAID,CAAA,MAAA;AAAA,IACC,eAAA;AAAA,IACA,qHAAA;AAAA,GAED,CAAA,MAAA,CAAO,cAAgB,EA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BAAA,KAAA,CAAiB,KAAK,CAAK,CAAA,KAAA,CAAA,CAAE,OAAO,CAAC,CAAC,CAAA,CAAA;AACpE,CAAA;AAIA,SAAS,KACP,aACoC,EAAA;AACpC,EAAA,OAAO,UAAU,IAAgB,KAAA;AAC/B,IAAI,IAAA;AACF,MAAM,MAAA,UAAA,GAAa,MAAM,aAAc,EAAA,CAAA;AACvC,MAAM,MAAA,UAAA,CAAW,GAAG,IAAI,CAAA,CAAA;AACxB,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,aACP,KAAP,EAAA;AAEA,MAAQ,OAAA,CAAA,KAAA,CAAM,MAAM,OAAO,CAAA,CAAA;AAC3B,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,KAChB;AAAA,GACF,CAAA;AACF;;;;AC5PA,MAAM,IAAA,GAAO,CAAC,IAAmB,KAAA;AAC/B,EAAAC,iBAAA,CAAQ,IAAK,CAAA,cAAc,CAAE,CAAA,OAAA,CAAQ,OAAO,CAAA,CAAA;AAE5C,EAAA,gBAAA,CAAiBA,iBAAO,CAAA,CAAA;AAExB,EAAAA,iBAAA,CAAQ,MAAM,IAAI,CAAA,CAAA;AACpB,CAAA,CAAA;AAEA,IAAA,CAAK,QAAQ,IAAI,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/commands/index.ts","../src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Command } from 'commander';\nimport { TechdocsGenerator } from '@backstage/plugin-techdocs-node';\n\nconst defaultDockerImage = TechdocsGenerator.defaultDockerImage;\nconst defaultPreviewAppPort = '3000';\n\nexport function registerCommands(program: Command) {\n program\n .command('generate')\n .description('Generate TechDocs documentation site using MkDocs.')\n .option(\n '--source-dir <PATH>',\n 'Source directory containing mkdocs.yml and docs/ directory.',\n '.',\n )\n .option(\n '--output-dir <PATH>',\n 'Output directory containing generated TechDocs site.',\n './site/',\n )\n .option(\n '--docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option('--no-pull', 'Do not pull the latest docker image')\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable and plugins in current user environment.',\n )\n .option(\n '--techdocs-ref <HOST_TYPE:URL>',\n 'The repository hosting documentation source files e.g. url:https://ghe.mycompany.net.com/org/repo.' +\n '\\nThis value is same as the backstage.io/techdocs-ref annotation of the corresponding Backstage entity.' +\n '\\nIt is completely fine to skip this as it is only being used to set repo_url in mkdocs.yml if not found.\\n',\n )\n .option(\n '--etag <ETAG>',\n 'A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored in techdocs_metadata.json.',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--omitTechdocsCoreMkdocsPlugin',\n \"Don't patch MkDocs file automatically with techdocs-core plugin.\",\n false,\n )\n .option(\n '--legacyCopyReadmeMdToIndexMd',\n 'Attempt to ensure an index.md exists falling back to using <docs-dir>/README.md or README.md in case a default <docs-dir>/index.md is not provided.',\n false,\n )\n .alias('build')\n .action(lazy(() => import('./generate/generate').then(m => m.default)));\n\n program\n .command('migrate')\n .description(\n 'Migrate objects with case-sensitive entity triplets to lower-case versions.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--awsBucketRootPath',\n 'Optional sub-directory to store files in Amazon S3',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--removeOriginal',\n 'Optional Files are copied by default. If flag is set, files are renamed/moved instead.',\n false,\n )\n .option(\n '--concurrency <MAX CONCURRENT REQS>',\n 'Optional Controls the number of API requests allowed to be performed simultaneously.',\n '25',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./migrate/migrate').then(m => m.default)));\n\n program\n .command('publish')\n .description(\n 'Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .requiredOption(\n '--entity <NAMESPACE/KIND/NAME>',\n '(Required always) Entity uid separated by / in namespace/kind/name order (case-sensitive). Example: default/Component/myEntity ',\n )\n .option(\n '--legacyUseCaseSensitiveTripletPaths',\n 'Publishes objects with cased entity triplet prefix when set (e.g. namespace/Kind/name). Only use if your TechDocs backend is configured the same way.',\n false,\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--gcsBucketRootPath',\n 'Optional sub-directory to store files in Google cloud storage',\n )\n .option(\n '--directory <PATH>',\n 'Path of the directory containing generated files to publish',\n './site/',\n )\n .action(lazy(() => import('./publish/publish').then(m => m.default)));\n\n program\n .command('serve:mkdocs')\n .description('Serve a documentation project locally using MkDocs serve.')\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, run `mkdocs serve` in current user environment.',\n )\n .option('-p, --port <PORT>', 'Port to serve documentation locally', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/mkdocs').then(m => m.default)));\n\n program\n .command('serve')\n .description(\n 'Serve a documentation project locally in a Backstage app-like environment',\n )\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable in current user environment.',\n )\n .option('--mkdocs-port <PORT>', 'Port for MkDocs server to use', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--preview-app-bundle-path <PATH_TO_BUNDLE>',\n 'Preview documentation using another web app',\n )\n .option(\n '--preview-app-port <PORT>',\n 'Port for the preview app to be served on',\n defaultPreviewAppPort,\n )\n .hook('preAction', command => {\n if (\n command.opts().previewAppPort !== defaultPreviewAppPort &&\n !command.opts().previewAppBundlePath\n ) {\n command.error(\n '--preview-app-port can only be used together with --preview-app-bundle-path',\n );\n }\n })\n .action(lazy(() => import('./serve/serve').then(m => m.default)));\n}\n\n// Wraps an action function so that it always exits and handles errors\n// Humbly taken from backstage-cli's registerCommands\nfunction lazy(\n getActionFunc: () => Promise<(...args: any[]) => Promise<void>>,\n): (...args: any[]) => Promise<never> {\n return async (...args: any[]) => {\n try {\n const actionFunc = await getActionFunc();\n await actionFunc(...args);\n process.exit(0);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error.message);\n process.exit(1);\n }\n };\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { program } from 'commander';\nimport { registerCommands } from './commands';\nimport { version } from '../package.json';\n\nconst main = (argv: string[]) => {\n program.name('techdocs-cli').version(version);\n\n registerCommands(program);\n\n program.parse(argv);\n};\n\nmain(process.argv);\n"],"names":["TechdocsGenerator","program"],"mappings":";;;;;AAmBA,MAAM,qBAAqBA,oCAAkB,CAAA,kBAAA,CAAA;AAC7C,MAAM,qBAAwB,GAAA,MAAA,CAAA;AAEvB,SAAS,iBAAiB,OAAkB,EAAA;AACjD,EAAA,OAAA,CACG,OAAQ,CAAA,UAAU,CAClB,CAAA,WAAA,CAAY,oDAAoD,CAChE,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,6DAAA;AAAA,IACA,GAAA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,sDAAA;AAAA,IACA,SAAA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,+BAAA;AAAA,IACA,oCAAA;AAAA,IACA,kBAAA;AAAA,GAED,CAAA,MAAA,CAAO,WAAa,EAAA,qCAAqC,CACzD,CAAA,MAAA;AAAA,IACC,aAAA;AAAA,IACA,mFAAA;AAAA,GAED,CAAA,MA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;AAExB,EAAAA,iBAAA,CAAQ,MAAM,IAAI,CAAA,CAAA;AACpB,CAAA,CAAA;AAEA,IAAA,CAAK,QAAQ,IAAI,CAAA;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techdocs/cli",
|
|
3
3
|
"description": "Utility CLI for managing TechDocs sites in Backstage.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"techdocs-cli": "bin/techdocs-cli"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@backstage/cli": "^0.22.1
|
|
39
|
+
"@backstage/cli": "^0.22.1",
|
|
40
40
|
"@types/commander": "^2.12.2",
|
|
41
41
|
"@types/fs-extra": "^9.0.6",
|
|
42
42
|
"@types/http-proxy": "^1.17.4",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"ext": "ts"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@backstage/backend-common": "^0.18.0
|
|
64
|
-
"@backstage/catalog-model": "^1.1.5
|
|
63
|
+
"@backstage/backend-common": "^0.18.0",
|
|
64
|
+
"@backstage/catalog-model": "^1.1.5",
|
|
65
65
|
"@backstage/cli-common": "^0.1.11",
|
|
66
|
-
"@backstage/config": "^1.0.6
|
|
67
|
-
"@backstage/plugin-techdocs-node": "^1.4.4
|
|
66
|
+
"@backstage/config": "^1.0.6",
|
|
67
|
+
"@backstage/plugin-techdocs-node": "^1.4.4",
|
|
68
68
|
"@types/dockerode": "^3.3.0",
|
|
69
69
|
"commander": "^9.1.0",
|
|
70
70
|
"dockerode": "^3.3.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serve-176119a3.cjs.js","sources":["../../src/lib/httpServer.ts","../../src/commands/serve/serve.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport serveHandler from 'serve-handler';\nimport http from 'http';\nimport httpProxy from 'http-proxy';\nimport { createLogger } from './utility';\n\nexport default class HTTPServer {\n private readonly proxyEndpoint: string;\n private readonly backstageBundleDir: string;\n private readonly backstagePort: number;\n private readonly mkdocsPort: number;\n private readonly verbose: boolean;\n\n constructor(\n backstageBundleDir: string,\n backstagePort: number,\n mkdocsPort: number,\n verbose: boolean,\n ) {\n this.proxyEndpoint = '/api/techdocs/';\n this.backstageBundleDir = backstageBundleDir;\n this.backstagePort = backstagePort;\n this.mkdocsPort = mkdocsPort;\n this.verbose = verbose;\n }\n\n // Create a Proxy for mkdocs server\n private createProxy() {\n const proxy = httpProxy.createProxyServer({\n target: `http://localhost:${this.mkdocsPort}`,\n });\n\n return (request: http.IncomingMessage): [httpProxy, string] => {\n // If the request path is prefixed with this.proxyEndpoint, remove it.\n const proxyEndpointPath = new RegExp(`^${this.proxyEndpoint}`, 'i');\n const forwardPath = request.url?.replace(proxyEndpointPath, '') || '';\n\n return [proxy, forwardPath];\n };\n }\n\n public async serve(): Promise<http.Server> {\n return new Promise<http.Server>((resolve, reject) => {\n const proxyHandler = this.createProxy();\n const server = http.createServer(\n (request: http.IncomingMessage, response: http.ServerResponse) => {\n if (request.url?.startsWith(this.proxyEndpoint)) {\n const [proxy, forwardPath] = proxyHandler(request);\n\n proxy.on('error', (error: Error) => {\n reject(error);\n });\n\n response.setHeader('Access-Control-Allow-Origin', '*');\n response.setHeader('Access-Control-Allow-Methods', 'GET, OPTIONS');\n\n request.url = forwardPath;\n proxy.web(request, response);\n return;\n }\n\n // This endpoint is used by the frontend to detect where the backend is running.\n if (request.url === '/.detect') {\n response.setHeader('Content-Type', 'text/plain');\n response.end('techdocs-cli-server');\n return;\n }\n\n serveHandler(request, response, {\n public: this.backstageBundleDir,\n trailingSlash: true,\n rewrites: [{ source: '**', destination: 'index.html' }],\n });\n },\n );\n\n const logger = createLogger({ verbose: false });\n server.listen(this.backstagePort, () => {\n if (this.verbose) {\n logger.info(\n `[techdocs-preview-bundle] Running local version of Backstage at http://localhost:${this.backstagePort}`,\n );\n }\n resolve(server);\n });\n\n server.on('error', (error: Error) => {\n reject(error);\n });\n });\n }\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OptionValues } from 'commander';\nimport path from 'path';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { findPaths } from '@backstage/cli-common';\nimport HTTPServer from '../../lib/httpServer';\nimport { runMkdocsServer } from '../../lib/mkdocsServer';\nimport { LogFunc, waitForSignal } from '../../lib/run';\nimport { createLogger } from '../../lib/utility';\n\nfunction findPreviewBundlePath(): string {\n try {\n return path.join(\n path.dirname(require.resolve('techdocs-cli-embedded-app/package.json')),\n 'dist',\n );\n } catch {\n // If the techdocs-cli-embedded-app package is not available it means we're\n // running a published package. For published packages the preview bundle is\n // copied to dist/embedded-app be the prepack script.\n //\n // This can be tested by running `yarn pack` and extracting the resulting tarball into a directory.\n // Within the extracted directory, run `npm install --only=prod`.\n // Once that's done you can test the CLI in any directory using `node <tmp-dir>/package <command>`.\n // eslint-disable-next-line no-restricted-syntax\n return findPaths(__dirname).resolveOwn('dist/embedded-app');\n }\n}\n\nexport default async function serve(opts: OptionValues) {\n const logger = createLogger({ verbose: opts.verbose });\n\n // Determine if we want to run in local dev mode or not\n // This will run the backstage http server on a different port and only used\n // for proxying mkdocs to the backstage app running locally (e.g. with webpack-dev-server)\n const isDevMode = Object.keys(process.env).includes('TECHDOCS_CLI_DEV_MODE')\n ? true\n : false;\n\n // TODO: Backstage app port should also be configurable as a CLI option. However, since we bundle\n // a backstage app, we define app.baseUrl in the app-config.yaml.\n // Hence, it is complicated to make this configurable.\n const backstagePort = 3000;\n const backstageBackendPort = 7007;\n\n const mkdocsDockerAddr = `http://0.0.0.0:${opts.mkdocsPort}`;\n const mkdocsLocalAddr = `http://127.0.0.1:${opts.mkdocsPort}`;\n const mkdocsExpectedDevAddr = opts.docker\n ? mkdocsDockerAddr\n : mkdocsLocalAddr;\n\n let mkdocsServerHasStarted = false;\n const mkdocsLogFunc: LogFunc = data => {\n // Sometimes the lines contain an unnecessary extra new line\n const logLines = data.toString().split('\\n');\n const logPrefix = opts.docker ? '[docker/mkdocs]' : '[mkdocs]';\n logLines.forEach(line => {\n if (line === '') {\n return;\n }\n\n logger.verbose(`${logPrefix} ${line}`);\n\n // When the server has started, open a new browser tab for the user.\n if (\n !mkdocsServerHasStarted &&\n line.includes(`Serving on ${mkdocsExpectedDevAddr}`)\n ) {\n mkdocsServerHasStarted = true;\n }\n });\n };\n // mkdocs writes all of its logs to stderr by default, and not stdout.\n // https://github.com/mkdocs/mkdocs/issues/879#issuecomment-203536006\n // Had me questioning this whole implementation for half an hour.\n logger.info('Starting mkdocs server.');\n const mkdocsChildProcess = await runMkdocsServer({\n port: opts.mkdocsPort,\n dockerImage: opts.dockerImage,\n dockerEntrypoint: opts.dockerEntrypoint,\n dockerOptions: opts.dockerOption,\n useDocker: opts.docker,\n stdoutLogFunc: mkdocsLogFunc,\n stderrLogFunc: mkdocsLogFunc,\n });\n\n // Wait until mkdocs server has started so that Backstage starts with docs loaded\n // Takes 1-5 seconds\n for (let attempt = 0; attempt < 30; attempt++) {\n await new Promise(r => setTimeout(r, 3000));\n if (mkdocsServerHasStarted) {\n break;\n }\n logger.info('Waiting for mkdocs server to start...');\n }\n\n if (!mkdocsServerHasStarted) {\n logger.error(\n 'mkdocs server did not start. Exiting. Try re-running command with -v option for more details.',\n );\n }\n\n const port = isDevMode ? backstageBackendPort : backstagePort;\n const httpServer = new HTTPServer(\n findPreviewBundlePath(),\n port,\n opts.mkdocsPort,\n opts.verbose,\n );\n\n httpServer\n .serve()\n .catch(err => {\n logger.error(err);\n mkdocsChildProcess.kill();\n process.exit(1);\n })\n .then(() => {\n // The last three things default/component/local/ don't matter. They can be anything.\n openBrowser(`http://localhost:${port}/docs/default/component/local/`);\n logger.info(\n `Serving docs in Backstage at http://localhost:${port}/docs/default/component/local/\\nOpening browser.`,\n );\n });\n\n await waitForSignal([mkdocsChildProcess]);\n}\n"],"names":["httpProxy","http","serveHandler","createLogger","path","findPaths","runMkdocsServer","openBrowser","waitForSignal"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAqB,UAAW,CAAA;AAAA,EAO9B,WACE,CAAA,kBAAA,EACA,aACA,EAAA,UAAA,EACA,OACA,EAAA;AACA,IAAA,IAAA,CAAK,aAAgB,GAAA,gBAAA,CAAA;AACrB,IAAA,IAAA,CAAK,kBAAqB,GAAA,kBAAA,CAAA;AAC1B,IAAA,IAAA,CAAK,aAAgB,GAAA,aAAA,CAAA;AACrB,IAAA,IAAA,CAAK,UAAa,GAAA,UAAA,CAAA;AAClB,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA,CAAA;AAAA,GACjB;AAAA,EAGQ,WAAc,GAAA;AACpB,IAAM,MAAA,KAAA,GAAQA,8BAAU,iBAAkB,CAAA;AAAA,MACxC,MAAA,EAAQ,oBAAoB,IAAK,CAAA,UAAA,CAAA,CAAA;AAAA,KAClC,CAAA,CAAA;AAED,IAAA,OAAO,CAAC,OAAuD,KA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CAAA,CAAA;AAChB,IAAA,kBAAA,CAAmB,IAAK,EAAA,CAAA;AACxB,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,GACf,CACA,CAAA,IAAA,CAAK,MAAM;AAEV,IAAAC,+BAAA,CAAY,oBAAoB,IAAoC,CAAA,8BAAA,CAAA,CAAA,CAAA;AACpE,IAAO,MAAA,CAAA,IAAA;AAAA,MACL,CAAiD,8CAAA,EAAA,IAAA,CAAA;AAAA,gBAAA,CAAA;AAAA,KACnD,CAAA;AAAA,GACD,CAAA,CAAA;AAEH,EAAM,MAAAC,0BAAA,CAAc,CAAC,kBAAkB,CAAC,CAAA,CAAA;AAC1C;;;;"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5869],{96686:function(Le,_e,V){V.d(_e,{O:function(){return Te}});var Y=V(2784);function de(B){var b=(0,Y.useRef)(B);return b.current=B,(0,Y.useMemo)(function(){return Object.freeze({get current(){return b.current}})},[])}var Se=V(29862);function fe(B){var b=(0,Y.useState)(B),oe=b[0],ae=b[1],he=(0,Se.t)(!0);return[oe,(0,Y.useCallback)(function(Q){he()&&ae(Q)},[])]}function re(B,b){return typeof B=="function"?B(b):B}function Te(B,b){B===void 0&&(B=!1),b===void 0&&(b=!0);var oe=fe(B),ae=oe[0],he=oe[1],Q=de(b);return[ae,(0,Y.useCallback)(function(ee){he(function(Ie){return typeof ee=="undefined"||Q.current&&typeof ee=="object"&&(ee.constructor.name==="SyntheticBaseEvent"||typeof ee._reactName=="string")?!Ie:Boolean(re(ee,Ie))})},[])]}},7688:function(Le,_e,V){var Y=V(2784),de=function(L,g){if(!(L instanceof g))throw new TypeError("Cannot call a class as a function")},Se=function(){function L(g,y){for(var z=0;z<y.length;z++){var C=y[z];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(g,C.key,C)}}return function(g,y,z){return y&&L(g.prototype,y),z&&L(g,z),g}}(),fe=Object.assign||function(L){for(var g=1;g<arguments.length;g++){var y=arguments[g];for(var z in y)Object.prototype.hasOwnProperty.call(y,z)&&(L[z]=y[z])}return L},re=function(L,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);L.prototype=Object.create(g&&g.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(L,g):L.__proto__=g)},Te=function(L,g){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:L},B=function(){function L(g,y){var z=[],C=!0,te=!1,k=void 0;try{for(var G=g[Symbol.iterator](),j;!(C=(j=G.next()).done)&&(z.push(j.value),!(y&&z.length===y));C=!0);}catch(K){te=!0,k=K}finally{try{!C&&G.return&&G.return()}finally{if(te)throw k}}return z}return function(g,y){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return L(g,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=void 0;typeof window!="undefined"?b=window:typeof self!="undefined"?b=self:b=V.g;var oe=null,ae=null,he=20,Q=b.clearTimeout,ee=b.setTimeout,Ie=b.cancelAnimationFrame||b.mozCancelAnimationFrame||b.webkitCancelAnimationFrame,We=b.requestAnimationFrame||b.mozRequestAnimationFrame||b.webkitRequestAnimationFrame;Ie==null||We==null?(oe=Q,ae=function(g){return ee(g,he)}):(oe=function(g){var y=B(g,2),z=y[0],C=y[1];Ie(z),Q(C)},ae=function(g){var y=We(function(){Q(z),g()}),z=ee(function(){Ie(y),g()},he);return[y,z]});function Ne(L){var g=void 0,y=void 0,z=void 0,C=void 0,te=void 0,k=void 0,G=void 0,j=typeof document!="undefined"&&document.attachEvent;if(!j){k=function(m){var A=m.__resizeTriggers__,$=A.firstElementChild,Z=A.lastElementChild,pe=$.firstElementChild;Z.scrollLeft=Z.scrollWidth,Z.scrollTop=Z.scrollHeight,pe.style.width=$.offsetWidth+1+"px",pe.style.height=$.offsetHeight+1+"px",$.scrollLeft=$.scrollWidth,$.scrollTop=$.scrollHeight},te=function(m){return m.offsetWidth!==m.__resizeLast__.width||m.offsetHeight!==m.__resizeLast__.height},G=function(m){if(!(m.target.className&&typeof m.target.className.indexOf=="function"&&m.target.className.indexOf("contract-trigger")<0&&m.target.className.indexOf("expand-trigger")<0)){var A=this;k(this),this.__resizeRAF__&&oe(this.__resizeRAF__),this.__resizeRAF__=ae(function(){te(A)&&(A.__resizeLast__.width=A.offsetWidth,A.__resizeLast__.height=A.offsetHeight,A.__resizeListeners__.forEach(function(pe){pe.call(A,m)}))})}};var K=!1,se="";z="animationstart";var ve="Webkit Moz O ms".split(" "),ge="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),ne="";{var le=document.createElement("fakeelement");if(le.style.animationName!==void 0&&(K=!0),K===!1){for(var ue=0;ue<ve.length;ue++)if(le.style[ve[ue]+"AnimationName"]!==void 0){ne=ve[ue],se="-"+ne.toLowerCase()+"-",z=ge[ue],K=!0;break}}}y="resizeanim",g="@"+se+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",C=se+"animation: 1ms "+y+"; "}var we=function(m){if(!m.getElementById("detectElementResize")){var A=(g||"")+".resize-triggers { "+(C||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',$=m.head||m.getElementsByTagName("head")[0],Z=m.createElement("style");Z.id="detectElementResize",Z.type="text/css",L!=null&&Z.setAttribute("nonce",L),Z.styleSheet?Z.styleSheet.cssText=A:Z.appendChild(m.createTextNode(A)),$.appendChild(Z)}},Re=function(m,A){if(j)m.attachEvent("onresize",A);else{if(!m.__resizeTriggers__){var $=m.ownerDocument,Z=b.getComputedStyle(m);Z&&Z.position==="static"&&(m.style.position="relative"),we($),m.__resizeLast__={},m.__resizeListeners__=[],(m.__resizeTriggers__=$.createElement("div")).className="resize-triggers";var pe=$.createElement("div");pe.className="expand-trigger",pe.appendChild($.createElement("div"));var Ae=$.createElement("div");Ae.className="contract-trigger",m.__resizeTriggers__.appendChild(pe),m.__resizeTriggers__.appendChild(Ae),m.appendChild(m.__resizeTriggers__),k(m),m.addEventListener("scroll",G,!0),z&&(m.__resizeTriggers__.__animationListener__=function(Oe){Oe.animationName===y&&k(m)},m.__resizeTriggers__.addEventListener(z,m.__resizeTriggers__.__animationListener__))}m.__resizeListeners__.push(A)}},xe=function(m,A){if(j)m.detachEvent("onresize",A);else if(m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(A),1),!m.__resizeListeners__.length){m.removeEventListener("scroll",G,!0),m.__resizeTriggers__.__animationListener__&&(m.__resizeTriggers__.removeEventListener(z,m.__resizeTriggers__.__animationListener__),m.__resizeTriggers__.__animationListener__=null);try{m.__resizeTriggers__=!m.removeChild(m.__resizeTriggers__)}catch{}}};return{addResizeListener:Re,removeResizeListener:xe}}var Fe=function(L){re(g,L);function g(){var y,z,C,te;de(this,g);for(var k=arguments.length,G=Array(k),j=0;j<k;j++)G[j]=arguments[j];return te=(z=(C=Te(this,(y=g.__proto__||Object.getPrototypeOf(g)).call.apply(y,[this].concat(G))),C),C.state={height:C.props.defaultHeight||0,width:C.props.defaultWidth||0},C._onResize=function(){var K=C.props,se=K.disableHeight,ve=K.disableWidth,ge=K.onResize;if(C._parentNode){var ne=C._parentNode.offsetHeight||0,le=C._parentNode.offsetWidth||0,ue=window.getComputedStyle(C._parentNode)||{},we=parseInt(ue.paddingLeft,10)||0,Re=parseInt(ue.paddingRight,10)||0,xe=parseInt(ue.paddingTop,10)||0,J=parseInt(ue.paddingBottom,10)||0,m=ne-xe-J,A=le-we-Re;(!se&&C.state.height!==m||!ve&&C.state.width!==A)&&(C.setState({height:ne-xe-J,width:le-we-Re}),ge({height:ne,width:le}))}},C._setRef=function(K){C._autoSizer=K},z),Te(C,te)}return Se(g,[{key:"componentDidMount",value:function(){var z=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Ne(z),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var z=this.props,C=z.children,te=z.className,k=z.disableHeight,G=z.disableWidth,j=z.style,K=this.state,se=K.height,ve=K.width,ge={overflow:"visible"},ne={},le=!1;return k||(se===0&&(le=!0),ge.height=0,ne.height=se),G||(ve===0&&(le=!0),ge.width=0,ne.width=ve),(0,Y.createElement)("div",{className:te,ref:this._setRef,style:fe({},ge,j)},!le&&C(ne))}}]),g}(Y.PureComponent);Fe.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},_e.Z=Fe},50166:function(Le,_e,V){V.d(_e,{t7:function(){return De}});var Y=V(7896),de=V(80753),Se=V(81665),fe=V(36631),re=V(2784),Te=typeof performance=="object"&&typeof performance.now=="function",B=Te?function(){return performance.now()}:function(){return Date.now()};function b(a){cancelAnimationFrame(a.id)}function oe(a,e){var t=B();function r(){B()-t>=e?a.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var ae=-1;function he(a){if(a===void 0&&(a=!1),ae===-1||a){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),ae=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ae}var Q=null;function ee(a){if(a===void 0&&(a=!1),Q===null||a){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Q="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Q="negative":Q="positive-ascending"),document.body.removeChild(e),Q}return Q}var Ie=150,We=function(e){var t=e.columnIndex,r=e.data,i=e.rowIndex;return i+":"+t},Ne=null,Fe=null,L=null;function g(a){var e,t=a.getColumnOffset,r=a.getColumnStartIndexForOffset,i=a.getColumnStopIndexForStartIndex,l=a.getColumnWidth,s=a.getEstimatedTotalHeight,u=a.getEstimatedTotalWidth,c=a.getOffsetForColumnAndAlignment,S=a.getOffsetForRowAndAlignment,v=a.getRowHeight,w=a.getRowOffset,I=a.getRowStartIndexForOffset,E=a.getRowStopIndexForStartIndex,N=a.initInstanceProps,o=a.shouldResetStyleCacheOnItemSizeChange,h=a.validateProps;return e=function(p){(0,Se.Z)(R,p);function R(O){var n;return n=p.call(this,O)||this,n._instanceProps=N(n.props,(0,de.Z)(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:(0,de.Z)(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof n.props.initialScrollLeft=="number"?n.props.initialScrollLeft:0,scrollTop:typeof n.props.initialScrollTop=="number"?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=(0,fe.Z)(function(d,f,_,x,M,W,D,U){return n.props.onItemsRendered({overscanColumnStartIndex:d,overscanColumnStopIndex:f,overscanRowStartIndex:_,overscanRowStopIndex:x,visibleColumnStartIndex:M,visibleColumnStopIndex:W,visibleRowStartIndex:D,visibleRowStopIndex:U})}),n._callOnScroll=void 0,n._callOnScroll=(0,fe.Z)(function(d,f,_,x,M){return n.props.onScroll({horizontalScrollDirection:_,scrollLeft:d,scrollTop:f,verticalScrollDirection:x,scrollUpdateWasRequested:M})}),n._getItemStyle=void 0,n._getItemStyle=function(d,f){var _=n.props,x=_.columnWidth,M=_.direction,W=_.rowHeight,D=n._getItemStyleCache(o&&x,o&&M,o&&W),U=d+":"+f,H;if(D.hasOwnProperty(U))H=D[U];else{var P=t(n.props,f,n._instanceProps),F=M==="rtl";D[U]=H={position:"absolute",left:F?void 0:P,right:F?P:void 0,top:w(n.props,d,n._instanceProps),height:v(n.props,d,n._instanceProps),width:l(n.props,f,n._instanceProps)}}return H},n._getItemStyleCache=void 0,n._getItemStyleCache=(0,fe.Z)(function(d,f,_){return{}}),n._onScroll=function(d){var f=d.currentTarget,_=f.clientHeight,x=f.clientWidth,M=f.scrollLeft,W=f.scrollTop,D=f.scrollHeight,U=f.scrollWidth;n.setState(function(H){if(H.scrollLeft===M&&H.scrollTop===W)return null;var P=n.props.direction,F=M;if(P==="rtl")switch(ee()){case"negative":F=-M;break;case"positive-descending":F=U-x-M;break}F=Math.max(0,Math.min(F,U-x));var q=Math.max(0,Math.min(W,D-_));return{isScrolling:!0,horizontalScrollDirection:H.scrollLeft<M?"forward":"backward",scrollLeft:F,scrollTop:q,verticalScrollDirection:H.scrollTop<W?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(d){var f=n.props.outerRef;n._outerRef=d,typeof f=="function"?f(d):f!=null&&typeof f=="object"&&f.hasOwnProperty("current")&&(f.current=d)},n._resetIsScrollingDebounced=function(){n._resetIsScrollingTimeoutId!==null&&b(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=oe(n._resetIsScrolling,Ie)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}R.getDerivedStateFromProps=function(n,d){return y(n,d),h(n),null};var T=R.prototype;return T.scrollTo=function(n){var d=n.scrollLeft,f=n.scrollTop;d!==void 0&&(d=Math.max(0,d)),f!==void 0&&(f=Math.max(0,f)),this.setState(function(_){return d===void 0&&(d=_.scrollLeft),f===void 0&&(f=_.scrollTop),_.scrollLeft===d&&_.scrollTop===f?null:{horizontalScrollDirection:_.scrollLeft<d?"forward":"backward",scrollLeft:d,scrollTop:f,scrollUpdateWasRequested:!0,verticalScrollDirection:_.scrollTop<f?"forward":"backward"}},this._resetIsScrollingDebounced)},T.scrollToItem=function(n){var d=n.align,f=d===void 0?"auto":d,_=n.columnIndex,x=n.rowIndex,M=this.props,W=M.columnCount,D=M.height,U=M.rowCount,H=M.width,P=this.state,F=P.scrollLeft,q=P.scrollTop,X=he();_!==void 0&&(_=Math.max(0,Math.min(_,W-1))),x!==void 0&&(x=Math.max(0,Math.min(x,U-1)));var ce=s(this.props,this._instanceProps),ie=u(this.props,this._instanceProps),Ce=ie>H?X:0,Me=ce>D?X:0;this.scrollTo({scrollLeft:_!==void 0?c(this.props,_,f,F,this._instanceProps,Me):F,scrollTop:x!==void 0?S(this.props,x,f,q,this._instanceProps,Ce):q})},T.componentDidMount=function(){var n=this.props,d=n.initialScrollLeft,f=n.initialScrollTop;if(this._outerRef!=null){var _=this._outerRef;typeof d=="number"&&(_.scrollLeft=d),typeof f=="number"&&(_.scrollTop=f)}this._callPropsCallbacks()},T.componentDidUpdate=function(){var n=this.props.direction,d=this.state,f=d.scrollLeft,_=d.scrollTop,x=d.scrollUpdateWasRequested;if(x&&this._outerRef!=null){var M=this._outerRef;if(n==="rtl")switch(ee()){case"negative":M.scrollLeft=-f;break;case"positive-ascending":M.scrollLeft=f;break;default:var W=M.clientWidth,D=M.scrollWidth;M.scrollLeft=D-W-f;break}else M.scrollLeft=Math.max(0,f);M.scrollTop=Math.max(0,_)}this._callPropsCallbacks()},T.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&b(this._resetIsScrollingTimeoutId)},T.render=function(){var n=this.props,d=n.children,f=n.className,_=n.columnCount,x=n.direction,M=n.height,W=n.innerRef,D=n.innerElementType,U=n.innerTagName,H=n.itemData,P=n.itemKey,F=P===void 0?We:P,q=n.outerElementType,X=n.outerTagName,ce=n.rowCount,ie=n.style,Ce=n.useIsScrolling,Me=n.width,ze=this.state.isScrolling,me=this._getHorizontalRangeToRender(),ye=me[0],Ze=me[1],He=this._getVerticalRangeToRender(),Be=He[0],qe=He[1],Pe=[];if(_>0&&ce)for(var be=Be;be<=qe;be++)for(var Ee=ye;Ee<=Ze;Ee++)Pe.push((0,re.createElement)(d,{columnIndex:Ee,data:H,isScrolling:Ce?ze:void 0,key:F({columnIndex:Ee,data:H,rowIndex:be}),rowIndex:be,style:this._getItemStyle(be,Ee)}));var je=s(this.props,this._instanceProps),Ke=u(this.props,this._instanceProps);return(0,re.createElement)(q||X||"div",{className:f,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,Y.Z)({position:"relative",height:M,width:Me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},ie)},(0,re.createElement)(D||U||"div",{children:Pe,ref:W,style:{height:je,pointerEvents:ze?"none":void 0,width:Ke}}))},T._callPropsCallbacks=function(){var n=this.props,d=n.columnCount,f=n.onItemsRendered,_=n.onScroll,x=n.rowCount;if(typeof f=="function"&&d>0&&x>0){var M=this._getHorizontalRangeToRender(),W=M[0],D=M[1],U=M[2],H=M[3],P=this._getVerticalRangeToRender(),F=P[0],q=P[1],X=P[2],ce=P[3];this._callOnItemsRendered(W,D,F,q,U,H,X,ce)}if(typeof _=="function"){var ie=this.state,Ce=ie.horizontalScrollDirection,Me=ie.scrollLeft,ze=ie.scrollTop,me=ie.scrollUpdateWasRequested,ye=ie.verticalScrollDirection;this._callOnScroll(Me,ze,Ce,ye,me)}},T._getHorizontalRangeToRender=function(){var n=this.props,d=n.columnCount,f=n.overscanColumnCount,_=n.overscanColumnsCount,x=n.overscanCount,M=n.rowCount,W=this.state,D=W.horizontalScrollDirection,U=W.isScrolling,H=W.scrollLeft,P=f||_||x||1;if(d===0||M===0)return[0,0,0,0];var F=r(this.props,H,this._instanceProps),q=i(this.props,F,H,this._instanceProps),X=!U||D==="backward"?Math.max(1,P):1,ce=!U||D==="forward"?Math.max(1,P):1;return[Math.max(0,F-X),Math.max(0,Math.min(d-1,q+ce)),F,q]},T._getVerticalRangeToRender=function(){var n=this.props,d=n.columnCount,f=n.overscanCount,_=n.overscanRowCount,x=n.overscanRowsCount,M=n.rowCount,W=this.state,D=W.isScrolling,U=W.verticalScrollDirection,H=W.scrollTop,P=_||x||f||1;if(d===0||M===0)return[0,0,0,0];var F=I(this.props,H,this._instanceProps),q=E(this.props,F,H,this._instanceProps),X=!D||U==="backward"?Math.max(1,P):1,ce=!D||U==="forward"?Math.max(1,P):1;return[Math.max(0,F-X),Math.max(0,Math.min(M-1,q+ce)),F,q]},R}(re.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},e}var y=function(e,t){var r=e.children,i=e.direction,l=e.height,s=e.innerTagName,u=e.outerTagName,c=e.overscanColumnsCount,S=e.overscanCount,v=e.overscanRowsCount,w=e.width,I=t.instance},z=50,C=function(e,t){var r=e.rowCount,i=t.rowMetadataMap,l=t.estimatedRowHeight,s=t.lastMeasuredRowIndex,u=0;if(s>=r&&(s=r-1),s>=0){var c=i[s];u=c.offset+c.size}var S=r-s-1,v=S*l;return u+v},te=function(e,t){var r=e.columnCount,i=t.columnMetadataMap,l=t.estimatedColumnWidth,s=t.lastMeasuredColumnIndex,u=0;if(s>=r&&(s=r-1),s>=0){var c=i[s];u=c.offset+c.size}var S=r-s-1,v=S*l;return u+v},k=function(e,t,r,i){var l,s,u;if(e==="column"?(l=i.columnMetadataMap,s=t.columnWidth,u=i.lastMeasuredColumnIndex):(l=i.rowMetadataMap,s=t.rowHeight,u=i.lastMeasuredRowIndex),r>u){var c=0;if(u>=0){var S=l[u];c=S.offset+S.size}for(var v=u+1;v<=r;v++){var w=s(v);l[v]={offset:c,size:w},c+=w}e==="column"?i.lastMeasuredColumnIndex=r:i.lastMeasuredRowIndex=r}return l[r]},G=function(e,t,r,i){var l,s;e==="column"?(l=r.columnMetadataMap,s=r.lastMeasuredColumnIndex):(l=r.rowMetadataMap,s=r.lastMeasuredRowIndex);var u=s>0?l[s].offset:0;return u>=i?j(e,t,r,s,0,i):K(e,t,r,Math.max(0,s),i)},j=function(e,t,r,i,l,s){for(;l<=i;){var u=l+Math.floor((i-l)/2),c=k(e,t,u,r).offset;if(c===s)return u;c<s?l=u+1:c>s&&(i=u-1)}return l>0?l-1:0},K=function(e,t,r,i,l){for(var s=e==="column"?t.columnCount:t.rowCount,u=1;i<s&&k(e,t,i,r).offset<l;)i+=u,u*=2;return j(e,t,r,Math.min(i,s-1),Math.floor(i/2),l)},se=function(e,t,r,i,l,s,u){var c=e==="column"?t.width:t.height,S=k(e,t,r,s),v=e==="column"?te(t,s):C(t,s),w=Math.max(0,Math.min(v-c,S.offset)),I=Math.max(0,S.offset-c+u+S.size);switch(i==="smart"&&(l>=I-c&&l<=w+c?i="auto":i="center"),i){case"start":return w;case"end":return I;case"center":return Math.round(I+(w-I)/2);case"auto":default:return l>=I&&l<=w?l:I>w||l<I?I:w}},ve=g({getColumnOffset:function(e,t,r){return k("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return G("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,i){for(var l=e.columnCount,s=e.width,u=k("column",e,t,i),c=r+s,S=u.offset+u.size,v=t;v<l-1&&S<c;)v++,S+=k("column",e,v,i).size;return v},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:C,getEstimatedTotalWidth:te,getOffsetForColumnAndAlignment:function(e,t,r,i,l,s){return se("column",e,t,r,i,l,s)},getOffsetForRowAndAlignment:function(e,t,r,i,l,s){return se("row",e,t,r,i,l,s)},getRowOffset:function(e,t,r){return k("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return G("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,i){for(var l=e.rowCount,s=e.height,u=k("row",e,t,i),c=r+s,S=u.offset+u.size,v=t;v<l-1&&S<c;)v++,S+=k("row",e,v,i).size;return v},initInstanceProps:function(e,t){var r=e,i=r.estimatedColumnWidth,l=r.estimatedRowHeight,s={columnMetadataMap:{},estimatedColumnWidth:i||z,estimatedRowHeight:l||z,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(u,c){c===void 0&&(c=!0),t.resetAfterIndices({columnIndex:u,shouldForceUpdate:c})},t.resetAfterRowIndex=function(u,c){c===void 0&&(c=!0),t.resetAfterIndices({rowIndex:u,shouldForceUpdate:c})},t.resetAfterIndices=function(u){var c=u.columnIndex,S=u.rowIndex,v=u.shouldForceUpdate,w=v===void 0?!0:v;typeof c=="number"&&(s.lastMeasuredColumnIndex=Math.min(s.lastMeasuredColumnIndex,c-1)),typeof S=="number"&&(s.lastMeasuredRowIndex=Math.min(s.lastMeasuredRowIndex,S-1)),t._getItemStyleCache(-1),w&&t.forceUpdate()},s},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.columnWidth,r=e.rowHeight}}),ge=150,ne=function(e,t){return e},le=null,ue=null;function we(a){var e,t=a.getItemOffset,r=a.getEstimatedTotalSize,i=a.getItemSize,l=a.getOffsetForIndexAndAlignment,s=a.getStartIndexForOffset,u=a.getStopIndexForStartIndex,c=a.initInstanceProps,S=a.shouldResetStyleCacheOnItemSizeChange,v=a.validateProps;return e=function(w){(0,Se.Z)(I,w);function I(N){var o;return o=w.call(this,N)||this,o._instanceProps=c(o.props,(0,de.Z)(o)),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:(0,de.Z)(o),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof o.props.initialScrollOffset=="number"?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=(0,fe.Z)(function(h,p,R,T){return o.props.onItemsRendered({overscanStartIndex:h,overscanStopIndex:p,visibleStartIndex:R,visibleStopIndex:T})}),o._callOnScroll=void 0,o._callOnScroll=(0,fe.Z)(function(h,p,R){return o.props.onScroll({scrollDirection:h,scrollOffset:p,scrollUpdateWasRequested:R})}),o._getItemStyle=void 0,o._getItemStyle=function(h){var p=o.props,R=p.direction,T=p.itemSize,O=p.layout,n=o._getItemStyleCache(S&&T,S&&O,S&&R),d;if(n.hasOwnProperty(h))d=n[h];else{var f=t(o.props,h,o._instanceProps),_=i(o.props,h,o._instanceProps),x=R==="horizontal"||O==="horizontal",M=R==="rtl",W=x?f:0;n[h]=d={position:"absolute",left:M?void 0:W,right:M?W:void 0,top:x?0:f,height:x?"100%":_,width:x?_:"100%"}}return d},o._getItemStyleCache=void 0,o._getItemStyleCache=(0,fe.Z)(function(h,p,R){return{}}),o._onScrollHorizontal=function(h){var p=h.currentTarget,R=p.clientWidth,T=p.scrollLeft,O=p.scrollWidth;o.setState(function(n){if(n.scrollOffset===T)return null;var d=o.props.direction,f=T;if(d==="rtl")switch(ee()){case"negative":f=-T;break;case"positive-descending":f=O-R-T;break}return f=Math.max(0,Math.min(f,O-R)),{isScrolling:!0,scrollDirection:n.scrollOffset<T?"forward":"backward",scrollOffset:f,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._onScrollVertical=function(h){var p=h.currentTarget,R=p.clientHeight,T=p.scrollHeight,O=p.scrollTop;o.setState(function(n){if(n.scrollOffset===O)return null;var d=Math.max(0,Math.min(O,T-R));return{isScrolling:!0,scrollDirection:n.scrollOffset<d?"forward":"backward",scrollOffset:d,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._outerRefSetter=function(h){var p=o.props.outerRef;o._outerRef=h,typeof p=="function"?p(h):p!=null&&typeof p=="object"&&p.hasOwnProperty("current")&&(p.current=h)},o._resetIsScrollingDebounced=function(){o._resetIsScrollingTimeoutId!==null&&b(o._resetIsScrollingTimeoutId),o._resetIsScrollingTimeoutId=oe(o._resetIsScrolling,ge)},o._resetIsScrolling=function(){o._resetIsScrollingTimeoutId=null,o.setState({isScrolling:!1},function(){o._getItemStyleCache(-1,null)})},o}I.getDerivedStateFromProps=function(o,h){return Re(o,h),v(o),null};var E=I.prototype;return E.scrollTo=function(o){o=Math.max(0,o),this.setState(function(h){return h.scrollOffset===o?null:{scrollDirection:h.scrollOffset<o?"forward":"backward",scrollOffset:o,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(o,h){h===void 0&&(h="auto");var p=this.props,R=p.itemCount,T=p.layout,O=this.state.scrollOffset;o=Math.max(0,Math.min(o,R-1));var n=0;if(this._outerRef){var d=this._outerRef;T==="vertical"?n=d.scrollWidth>d.clientWidth?he():0:n=d.scrollHeight>d.clientHeight?he():0}this.scrollTo(l(this.props,o,h,O,this._instanceProps,n))},E.componentDidMount=function(){var o=this.props,h=o.direction,p=o.initialScrollOffset,R=o.layout;if(typeof p=="number"&&this._outerRef!=null){var T=this._outerRef;h==="horizontal"||R==="horizontal"?T.scrollLeft=p:T.scrollTop=p}this._callPropsCallbacks()},E.componentDidUpdate=function(){var o=this.props,h=o.direction,p=o.layout,R=this.state,T=R.scrollOffset,O=R.scrollUpdateWasRequested;if(O&&this._outerRef!=null){var n=this._outerRef;if(h==="horizontal"||p==="horizontal")if(h==="rtl")switch(ee()){case"negative":n.scrollLeft=-T;break;case"positive-ascending":n.scrollLeft=T;break;default:var d=n.clientWidth,f=n.scrollWidth;n.scrollLeft=f-d-T;break}else n.scrollLeft=T;else n.scrollTop=T}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&b(this._resetIsScrollingTimeoutId)},E.render=function(){var o=this.props,h=o.children,p=o.className,R=o.direction,T=o.height,O=o.innerRef,n=o.innerElementType,d=o.innerTagName,f=o.itemCount,_=o.itemData,x=o.itemKey,M=x===void 0?ne:x,W=o.layout,D=o.outerElementType,U=o.outerTagName,H=o.style,P=o.useIsScrolling,F=o.width,q=this.state.isScrolling,X=R==="horizontal"||W==="horizontal",ce=X?this._onScrollHorizontal:this._onScrollVertical,ie=this._getRangeToRender(),Ce=ie[0],Me=ie[1],ze=[];if(f>0)for(var me=Ce;me<=Me;me++)ze.push((0,re.createElement)(h,{data:_,key:M(me,_),index:me,isScrolling:P?q:void 0,style:this._getItemStyle(me)}));var ye=r(this.props,this._instanceProps);return(0,re.createElement)(D||U||"div",{className:p,onScroll:ce,ref:this._outerRefSetter,style:(0,Y.Z)({position:"relative",height:T,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:R},H)},(0,re.createElement)(n||d||"div",{children:ze,ref:O,style:{height:X?"100%":ye,pointerEvents:q?"none":void 0,width:X?ye:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var o=this.props.itemCount;if(o>0){var h=this._getRangeToRender(),p=h[0],R=h[1],T=h[2],O=h[3];this._callOnItemsRendered(p,R,T,O)}}if(typeof this.props.onScroll=="function"){var n=this.state,d=n.scrollDirection,f=n.scrollOffset,_=n.scrollUpdateWasRequested;this._callOnScroll(d,f,_)}},E._getRangeToRender=function(){var o=this.props,h=o.itemCount,p=o.overscanCount,R=this.state,T=R.isScrolling,O=R.scrollDirection,n=R.scrollOffset;if(h===0)return[0,0,0,0];var d=s(this.props,n,this._instanceProps),f=u(this.props,d,n,this._instanceProps),_=!T||O==="backward"?Math.max(1,p):1,x=!T||O==="forward"?Math.max(1,p):1;return[Math.max(0,d-_),Math.max(0,Math.min(h-1,f+x)),d,f]},I}(re.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Re=function(e,t){var r=e.children,i=e.direction,l=e.height,s=e.layout,u=e.innerTagName,c=e.outerTagName,S=e.width,v=t.instance;if(!1)var w},xe=50,J=function(e,t,r){var i=e,l=i.itemSize,s=r.itemMetadataMap,u=r.lastMeasuredIndex;if(t>u){var c=0;if(u>=0){var S=s[u];c=S.offset+S.size}for(var v=u+1;v<=t;v++){var w=l(v);s[v]={offset:c,size:w},c+=w}r.lastMeasuredIndex=t}return s[t]},m=function(e,t,r){var i=t.itemMetadataMap,l=t.lastMeasuredIndex,s=l>0?i[l].offset:0;return s>=r?A(e,t,l,0,r):$(e,t,Math.max(0,l),r)},A=function(e,t,r,i,l){for(;i<=r;){var s=i+Math.floor((r-i)/2),u=J(e,s,t).offset;if(u===l)return s;u<l?i=s+1:u>l&&(r=s-1)}return i>0?i-1:0},$=function(e,t,r,i){for(var l=e.itemCount,s=1;r<l&&J(e,r,t).offset<i;)r+=s,s*=2;return A(e,t,Math.min(r,l-1),Math.floor(r/2),i)},Z=function(e,t){var r=e.itemCount,i=t.itemMetadataMap,l=t.estimatedItemSize,s=t.lastMeasuredIndex,u=0;if(s>=r&&(s=r-1),s>=0){var c=i[s];u=c.offset+c.size}var S=r-s-1,v=S*l;return u+v},pe=we({getItemOffset:function(e,t,r){return J(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Z,getOffsetForIndexAndAlignment:function(e,t,r,i,l,s){var u=e.direction,c=e.height,S=e.layout,v=e.width,w=u==="horizontal"||S==="horizontal",I=w?v:c,E=J(e,t,l),N=Z(e,l),o=Math.max(0,Math.min(N-I,E.offset)),h=Math.max(0,E.offset-I+E.size+s);switch(r==="smart"&&(i>=h-I&&i<=o+I?r="auto":r="center"),r){case"start":return o;case"end":return h;case"center":return Math.round(h+(o-h)/2);case"auto":default:return i>=h&&i<=o?i:i<h?h:o}},getStartIndexForOffset:function(e,t,r){return m(e,r,t)},getStopIndexForStartIndex:function(e,t,r,i){for(var l=e.direction,s=e.height,u=e.itemCount,c=e.layout,S=e.width,v=l==="horizontal"||c==="horizontal",w=v?S:s,I=J(e,t,i),E=r+w,N=I.offset+I.size,o=t;o<u-1&&N<E;)o++,N+=J(e,o,i).size;return o},initInstanceProps:function(e,t){var r=e,i=r.estimatedItemSize,l={itemMetadataMap:{},estimatedItemSize:i||xe,lastMeasuredIndex:-1};return t.resetAfterIndex=function(s,u){u===void 0&&(u=!0),l.lastMeasuredIndex=Math.min(l.lastMeasuredIndex,s-1),t._getItemStyleCache(-1),u&&t.forceUpdate()},l},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.itemSize}}),Ae=g({getColumnOffset:function(e,t){var r=e.columnWidth;return t*r},getColumnWidth:function(e,t){var r=e.columnWidth;return r},getRowOffset:function(e,t){var r=e.rowHeight;return t*r},getRowHeight:function(e,t){var r=e.rowHeight;return r},getEstimatedTotalHeight:function(e){var t=e.rowCount,r=e.rowHeight;return r*t},getEstimatedTotalWidth:function(e){var t=e.columnCount,r=e.columnWidth;return r*t},getOffsetForColumnAndAlignment:function(e,t,r,i,l,s){var u=e.columnCount,c=e.columnWidth,S=e.width,v=Math.max(0,u*c-S),w=Math.min(v,t*c),I=Math.max(0,t*c-S+s+c);switch(r==="smart"&&(i>=I-S&&i<=w+S?r="auto":r="center"),r){case"start":return w;case"end":return I;case"center":var E=Math.round(I+(w-I)/2);return E<Math.ceil(S/2)?0:E>v+Math.floor(S/2)?v:E;case"auto":default:return i>=I&&i<=w?i:I>w||i<I?I:w}},getOffsetForRowAndAlignment:function(e,t,r,i,l,s){var u=e.rowHeight,c=e.height,S=e.rowCount,v=Math.max(0,S*u-c),w=Math.min(v,t*u),I=Math.max(0,t*u-c+s+u);switch(r==="smart"&&(i>=I-c&&i<=w+c?r="auto":r="center"),r){case"start":return w;case"end":return I;case"center":var E=Math.round(I+(w-I)/2);return E<Math.ceil(c/2)?0:E>v+Math.floor(c/2)?v:E;case"auto":default:return i>=I&&i<=w?i:I>w||i<I?I:w}},getColumnStartIndexForOffset:function(e,t){var r=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/r)))},getColumnStopIndexForStartIndex:function(e,t,r){var i=e.columnWidth,l=e.columnCount,s=e.width,u=t*i,c=Math.ceil((s+r-u)/i);return Math.max(0,Math.min(l-1,t+c-1))},getRowStartIndexForOffset:function(e,t){var r=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/r)))},getRowStopIndexForStartIndex:function(e,t,r){var i=e.rowHeight,l=e.rowCount,s=e.height,u=t*i,c=Math.ceil((s+r-u)/i);return Math.max(0,Math.min(l-1,t+c-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.columnWidth,r=e.rowHeight}}),De=we({getItemOffset:function(e,t){var r=e.itemSize;return t*r},getItemSize:function(e,t){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var t=e.itemCount,r=e.itemSize;return r*t},getOffsetForIndexAndAlignment:function(e,t,r,i,l,s){var u=e.direction,c=e.height,S=e.itemCount,v=e.itemSize,w=e.layout,I=e.width,E=u==="horizontal"||w==="horizontal",N=E?I:c,o=Math.max(0,S*v-N),h=Math.min(o,t*v),p=Math.max(0,t*v-N+v+s);switch(r==="smart"&&(i>=p-N&&i<=h+N?r="auto":r="center"),r){case"start":return h;case"end":return p;case"center":{var R=Math.round(p+(h-p)/2);return R<Math.ceil(N/2)?0:R>o+Math.floor(N/2)?o:R}case"auto":default:return i>=p&&i<=h?i:i<p?p:h}},getStartIndexForOffset:function(e,t){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,r){var i=e.direction,l=e.height,s=e.itemCount,u=e.itemSize,c=e.layout,S=e.width,v=i==="horizontal"||c==="horizontal",w=t*u,I=v?S:l,E=Math.ceil((I+r-w)/u);return Math.max(0,Math.min(s-1,t+E-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize}});function Oe(a,e){for(var t in a)if(!(t in e))return!0;for(var r in e)if(a[r]!==e[r])return!0;return!1}var ke=null,Ue=null;function $e(a,e){var t=a.style,r=_objectWithoutPropertiesLoose(a,ke),i=e.style,l=_objectWithoutPropertiesLoose(e,Ue);return!Oe(t,i)&&!Oe(r,l)}function Ve(a,e){return!$e(this.props,a)||Oe(this.state,e)}},46212:function(Le,_e,V){V.d(_e,{Z:function(){return Y}});function Y({onlyFirst:de=!1}={}){const Se=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Se,de?void 0:"g")}}}]);})();
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=5869.11f08c37.chunk.js.map
|