aboutsummaryrefslogtreecommitdiff
path: root/node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map')
-rw-r--r--node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map b/node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map
index e724e0c3d..f7013442c 100644
--- a/node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map
+++ b/node_modules/typedoc/dist/lib/output/plugins/JavascriptIndexPlugin.js.map
@@ -1 +1 @@
-{"version":3,"file":"JavascriptIndexPlugin.js","sourceRoot":"","sources":["../../../../src/lib/output/plugins/JavascriptIndexPlugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2BAA6B;AAE7B,wDAAwF;AACxF,mEAAgE;AAChE,4CAA2D;AAC3D,qCAAyC;AACzC,oCAAwC;AAQxC,IAAa,qBAAqB;IAAS,yCAAiB;IAA5D;;IA8DA,CAAC;IA1DG,0CAAU,GAAV;QACI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,sBAAa,CAAC,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACzE,CAAC;IAOO,+CAAe,GAAvB,UAAwB,KAAoB;QACxC,IAAM,IAAI,GAAU,EAAE,CAAC;QACvB,IAAM,KAAK,GAAG,EAAE,CAAC;QAEjB,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;YACxC,IAAM,UAAU,GAAkD,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACjG,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,YAAY,6BAAqB,CAAC,CAAC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C,MAAG,CAAC;QAE1E,cAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IACL,4BAAC;AAAD,CAAC,AA9DD,CAA2C,8BAAiB,GA8D3D;AA9DY,qBAAqB;IADjC,sBAAS,CAAC,EAAC,IAAI,EAAE,kBAAkB,EAAC,CAAC;GACzB,qBAAqB,CA8DjC;AA9DY,sDAAqB","sourcesContent":["import * as Path from 'path';\n\nimport {DeclarationReflection, ProjectReflection} from '../../models/reflections/index';\nimport {GroupPlugin} from '../../converter/plugins/GroupPlugin';\nimport {Component, RendererComponent} from '../components';\nimport {writeFile} from '../../utils/fs';\nimport {RendererEvent} from '../events';\n\n/**\n * A plugin that exports an index of the project to a javascript file.\n *\n * The resulting javascript file can be used to build a simple search function.\n */\n@Component({name: 'javascript-index'})\nexport class JavascriptIndexPlugin extends RendererComponent {\n /**\n * Create a new JavascriptIndexPlugin instance.\n */\n initialize() {\n this.listenTo(this.owner, RendererEvent.BEGIN, this.onRendererBegin);\n }\n\n /**\n * Triggered after a document has been rendered, just before it is written to disc.\n *\n * @param event An event object describing the current render operation.\n */\n private onRendererBegin(event: RendererEvent) {\n const rows: any[] = [];\n const kinds = {};\n\n for (let key in event.project.reflections) {\n const reflection: DeclarationReflection = <DeclarationReflection> event.project.reflections[key];\n if (!(reflection instanceof DeclarationReflection)) {\n continue;\n }\n\n if (!reflection.url ||\n !reflection.name ||\n reflection.flags.isExternal ||\n reflection.name === '') {\n continue;\n }\n\n let parent = reflection.parent;\n if (parent instanceof ProjectReflection) {\n parent = null;\n }\n\n const row: any = {\n id: rows.length,\n kind: reflection.kind,\n name: reflection.name,\n url: reflection.url,\n classes: reflection.cssClasses\n };\n\n if (parent) {\n row.parent = parent.getFullName();\n }\n\n if (!kinds[reflection.kind]) {\n kinds[reflection.kind] = GroupPlugin.getKindSingular(reflection.kind);\n }\n\n rows.push(row);\n }\n\n const fileName = Path.join(event.outputDirectory, 'assets', 'js', 'search.js');\n const data =\n `var typedoc = typedoc || {};\n typedoc.search = typedoc.search || {};\n typedoc.search.data = ${JSON.stringify({kinds: kinds, rows: rows})};`;\n\n writeFile(fileName, data, true);\n }\n}\n"]} \ No newline at end of file
+{"version":3,"file":"JavascriptIndexPlugin.js","sourceRoot":"","sources":["../../../../src/lib/output/plugins/JavascriptIndexPlugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2BAA6B;AAE7B,wDAA0F;AAC1F,mEAAkE;AAClE,4CAA6D;AAC7D,qCAA2C;AAC3C,oCAA0C;AAQ1C;IAA2C,yCAAiB;IAA5D;;IA8DA,CAAC;IA1DG,0CAAU,GAAV;QACI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,sBAAa,CAAC,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACzE,CAAC;IAOO,+CAAe,GAAvB,UAAwB,KAAoB;QACxC,IAAM,IAAI,GAAU,EAAE,CAAC;QACvB,IAAM,KAAK,GAAG,EAAE,CAAC;QAEjB,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;YACxC,IAAM,UAAU,GAAkD,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACjG,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,YAAY,6BAAqB,CAAC,CAAC,CAAC,CAAC;gBACjD,QAAQ,CAAC;YACb,CAAC;YAED,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG;gBACf,CAAC,UAAU,CAAC,IAAI;gBAChB,UAAU,CAAC,KAAK,CAAC,UAAU;gBAC3B,UAAU,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzB,QAAQ,CAAC;YACb,CAAC;YAED,IAAI,QAAM,GAAG,UAAU,CAAC,MAAM,CAAC;YAC/B,EAAE,CAAC,CAAC,QAAM,YAAY,yBAAiB,CAAC,CAAC,CAAC;gBACtC,QAAM,GAAG,IAAI,CAAC;YAClB,CAAC;YAED,IAAM,GAAG,GAAQ;gBACb,EAAE,EAAE,IAAI,CAAC,MAAM;gBACf,IAAI,EAAK,UAAU,CAAC,IAAI;gBACxB,IAAI,EAAK,UAAU,CAAC,IAAI;gBACxB,GAAG,EAAM,UAAU,CAAC,GAAG;gBACvB,OAAO,EAAE,UAAU,CAAC,UAAU;aACjC,CAAC;YAEF,EAAE,CAAC,CAAC,QAAM,CAAC,CAAC,CAAC;gBACT,GAAG,CAAC,MAAM,GAAG,QAAM,CAAC,WAAW,EAAE,CAAC;YACtC,CAAC;YAED,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAC1B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,yBAAW,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAC1E,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;QAED,IAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;QAC/E,IAAM,IAAI,GACN,yHAEwB,IAAI,CAAC,SAAS,CAAC,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAC,CAAC,MAAG,CAAC;QAE1E,cAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IA7DQ,qBAAqB;QADjC,sBAAS,CAAC,EAAC,IAAI,EAAE,kBAAkB,EAAC,CAAC;OACzB,qBAAqB,CA8DjC;IAAD,4BAAC;CAAA,AA9DD,CAA2C,8BAAiB,GA8D3D;AA9DY,sDAAqB","sourcesContent":["import * as Path from 'path';\n\nimport { DeclarationReflection, ProjectReflection } from '../../models/reflections/index';\nimport { GroupPlugin } from '../../converter/plugins/GroupPlugin';\nimport { Component, RendererComponent } from '../components';\nimport { writeFile } from '../../utils/fs';\nimport { RendererEvent } from '../events';\n\n/**\n * A plugin that exports an index of the project to a javascript file.\n *\n * The resulting javascript file can be used to build a simple search function.\n */\n@Component({name: 'javascript-index'})\nexport class JavascriptIndexPlugin extends RendererComponent {\n /**\n * Create a new JavascriptIndexPlugin instance.\n */\n initialize() {\n this.listenTo(this.owner, RendererEvent.BEGIN, this.onRendererBegin);\n }\n\n /**\n * Triggered after a document has been rendered, just before it is written to disc.\n *\n * @param event An event object describing the current render operation.\n */\n private onRendererBegin(event: RendererEvent) {\n const rows: any[] = [];\n const kinds = {};\n\n for (let key in event.project.reflections) {\n const reflection: DeclarationReflection = <DeclarationReflection> event.project.reflections[key];\n if (!(reflection instanceof DeclarationReflection)) {\n continue;\n }\n\n if (!reflection.url ||\n !reflection.name ||\n reflection.flags.isExternal ||\n reflection.name === '') {\n continue;\n }\n\n let parent = reflection.parent;\n if (parent instanceof ProjectReflection) {\n parent = null;\n }\n\n const row: any = {\n id: rows.length,\n kind: reflection.kind,\n name: reflection.name,\n url: reflection.url,\n classes: reflection.cssClasses\n };\n\n if (parent) {\n row.parent = parent.getFullName();\n }\n\n if (!kinds[reflection.kind]) {\n kinds[reflection.kind] = GroupPlugin.getKindSingular(reflection.kind);\n }\n\n rows.push(row);\n }\n\n const fileName = Path.join(event.outputDirectory, 'assets', 'js', 'search.js');\n const data =\n `var typedoc = typedoc || {};\n typedoc.search = typedoc.search || {};\n typedoc.search.data = ${JSON.stringify({kinds: kinds, rows: rows})};`;\n\n writeFile(fileName, data, true);\n }\n}\n"]} \ No newline at end of file