@l1yp/file-viewer 0.1.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/LICENSE +21 -0
- package/README.md +134 -0
- package/dist/FileViewer.js +7 -0
- package/dist/FileViewer.vue.d.ts +37 -0
- package/dist/FileViewer.vue_vue_type_script_setup_true_lang.js +103 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/AppxViewer.js +7 -0
- package/dist/components/AppxViewer.vue.d.ts +18 -0
- package/dist/components/AppxViewer.vue_vue_type_script_setup_true_lang.js +174 -0
- package/dist/components/ArchiveBrowser.js +7 -0
- package/dist/components/ArchiveBrowser.vue.d.ts +18 -0
- package/dist/components/ArchiveBrowser.vue_vue_type_script_setup_true_lang.js +279 -0
- package/dist/components/AudioViewer.js +7 -0
- package/dist/components/AudioViewer.vue.d.ts +21 -0
- package/dist/components/AudioViewer.vue_vue_type_script_setup_true_lang.js +201 -0
- package/dist/components/BinObjBrowser.js +7 -0
- package/dist/components/BinObjBrowser.vue.d.ts +19 -0
- package/dist/components/BinObjBrowser.vue_vue_type_script_setup_true_lang.js +141 -0
- package/dist/components/CertViewer.js +7 -0
- package/dist/components/CertViewer.vue.d.ts +17 -0
- package/dist/components/CertViewer.vue_vue_type_script_setup_true_lang.js +251 -0
- package/dist/components/ClassViewer.js +7 -0
- package/dist/components/ClassViewer.vue.d.ts +15 -0
- package/dist/components/ClassViewer.vue_vue_type_script_setup_true_lang.js +164 -0
- package/dist/components/CodeBlock.js +7 -0
- package/dist/components/CodeBlock.vue.d.ts +17 -0
- package/dist/components/CodeBlock.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/CodeView.js +7 -0
- package/dist/components/CodeView.vue.d.ts +21 -0
- package/dist/components/CodeView.vue_vue_type_script_setup_true_lang.js +180 -0
- package/dist/components/CsvViewer.js +7 -0
- package/dist/components/CsvViewer.vue.d.ts +26 -0
- package/dist/components/CsvViewer.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/DicomViewer.js +7 -0
- package/dist/components/DicomViewer.vue.d.ts +30 -0
- package/dist/components/DicomViewer.vue_vue_type_script_setup_true_lang.js +362 -0
- package/dist/components/DocxViewer.js +7 -0
- package/dist/components/DocxViewer.vue.d.ts +19 -0
- package/dist/components/DocxViewer.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/DrawioViewer.js +7 -0
- package/dist/components/DrawioViewer.vue.d.ts +16 -0
- package/dist/components/DrawioViewer.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/components/DxfViewer.js +7 -0
- package/dist/components/DxfViewer.vue.d.ts +14 -0
- package/dist/components/DxfViewer.vue_vue_type_script_setup_true_lang.js +239 -0
- package/dist/components/EbookViewer.js +7 -0
- package/dist/components/EbookViewer.vue.d.ts +22 -0
- package/dist/components/EbookViewer.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/EmlViewer.js +7 -0
- package/dist/components/EmlViewer.vue.d.ts +21 -0
- package/dist/components/EmlViewer.vue_vue_type_script_setup_true_lang.js +193 -0
- package/dist/components/EplViewer.js +7 -0
- package/dist/components/EplViewer.vue.d.ts +19 -0
- package/dist/components/EplViewer.vue_vue_type_script_setup_true_lang.js +201 -0
- package/dist/components/FileViewerBody.js +7 -0
- package/dist/components/FileViewerBody.vue.d.ts +47 -0
- package/dist/components/FileViewerBody.vue_vue_type_script_setup_true_lang.js +599 -0
- package/dist/components/FileViewerPanel.js +7 -0
- package/dist/components/FileViewerPanel.vue.d.ts +3 -0
- package/dist/components/FileViewerPanel.vue_vue_type_script_setup_true_lang.js +207 -0
- package/dist/components/FontViewer.js +7 -0
- package/dist/components/FontViewer.vue.d.ts +17 -0
- package/dist/components/FontViewer.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/components/FrontmatterCard.js +7 -0
- package/dist/components/FrontmatterCard.vue.d.ts +11 -0
- package/dist/components/FrontmatterCard.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/GeoViewer.js +7 -0
- package/dist/components/GeoViewer.vue.d.ts +17 -0
- package/dist/components/GeoViewer.vue_vue_type_script_setup_true_lang.js +255 -0
- package/dist/components/HarViewer.js +7 -0
- package/dist/components/HarViewer.vue.d.ts +20 -0
- package/dist/components/HarViewer.vue_vue_type_script_setup_true_lang.js +322 -0
- package/dist/components/HexViewer.js +7 -0
- package/dist/components/HexViewer.vue.d.ts +22 -0
- package/dist/components/HexViewer.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/components/HprofViewer.js +7 -0
- package/dist/components/HprofViewer.vue.d.ts +27 -0
- package/dist/components/HprofViewer.vue_vue_type_script_setup_true_lang.js +561 -0
- package/dist/components/ImageLightbox.js +7 -0
- package/dist/components/ImageLightbox.vue.d.ts +3 -0
- package/dist/components/ImageLightbox.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/components/InlineText.d.ts +29 -0
- package/dist/components/InlineText.js +21 -0
- package/dist/components/JksViewer.js +7 -0
- package/dist/components/JksViewer.vue.d.ts +22 -0
- package/dist/components/JksViewer.vue_vue_type_script_setup_true_lang.js +353 -0
- package/dist/components/JsonlViewer.js +7 -0
- package/dist/components/JsonlViewer.vue.d.ts +15 -0
- package/dist/components/JsonlViewer.vue_vue_type_script_setup_true_lang.js +103 -0
- package/dist/components/LogViewer.js +7 -0
- package/dist/components/LogViewer.vue.d.ts +29 -0
- package/dist/components/LogViewer.vue_vue_type_script_setup_true_lang.js +670 -0
- package/dist/components/LrcViewer.js +7 -0
- package/dist/components/LrcViewer.vue.d.ts +17 -0
- package/dist/components/LrcViewer.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/components/MarkdownTable.js +7 -0
- package/dist/components/MarkdownTable.vue.d.ts +19 -0
- package/dist/components/MarkdownTable.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/components/MarkdownText.d.ts +30 -0
- package/dist/components/MarkdownText.js +21 -0
- package/dist/components/MhtViewer.js +7 -0
- package/dist/components/MhtViewer.vue.d.ts +22 -0
- package/dist/components/MhtViewer.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/MindMapView.js +7 -0
- package/dist/components/MindMapView.vue.d.ts +23 -0
- package/dist/components/MindMapView.vue_vue_type_script_setup_true_lang.js +337 -0
- package/dist/components/MissingDependency.js +7 -0
- package/dist/components/MissingDependency.vue.d.ts +17 -0
- package/dist/components/MissingDependency.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/ModelViewer.js +7 -0
- package/dist/components/ModelViewer.vue.d.ts +18 -0
- package/dist/components/ModelViewer.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/components/MsiViewer.js +7 -0
- package/dist/components/MsiViewer.vue.d.ts +19 -0
- package/dist/components/MsiViewer.vue_vue_type_script_setup_true_lang.js +136 -0
- package/dist/components/NotebookViewer.js +7 -0
- package/dist/components/NotebookViewer.vue.d.ts +20 -0
- package/dist/components/NotebookViewer.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/components/PdfViewer.js +7 -0
- package/dist/components/PdfViewer.vue.d.ts +19 -0
- package/dist/components/PdfViewer.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/PptxViewer.js +7 -0
- package/dist/components/PptxViewer.vue.d.ts +20 -0
- package/dist/components/PptxViewer.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/PsdViewer.js +7 -0
- package/dist/components/PsdViewer.vue.d.ts +15 -0
- package/dist/components/PsdViewer.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/components/QmcAudioViewer.js +7 -0
- package/dist/components/QmcAudioViewer.vue.d.ts +18 -0
- package/dist/components/QmcAudioViewer.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/components/RasterViewer.js +7 -0
- package/dist/components/RasterViewer.vue.d.ts +21 -0
- package/dist/components/RasterViewer.vue_vue_type_script_setup_true_lang.js +161 -0
- package/dist/components/RtfViewer.js +7 -0
- package/dist/components/RtfViewer.vue.d.ts +21 -0
- package/dist/components/RtfViewer.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/SevenZipBrowser.js +7 -0
- package/dist/components/SevenZipBrowser.vue.d.ts +13 -0
- package/dist/components/SevenZipBrowser.vue_vue_type_script_setup_true_lang.js +366 -0
- package/dist/components/SqliteViewer.js +7 -0
- package/dist/components/SqliteViewer.vue.d.ts +18 -0
- package/dist/components/SqliteViewer.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/components/SubtitleViewer.js +7 -0
- package/dist/components/SubtitleViewer.vue.d.ts +15 -0
- package/dist/components/SubtitleViewer.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/XlsxChart.js +7 -0
- package/dist/components/XlsxChart.vue.d.ts +14 -0
- package/dist/components/XlsxChart.vue_vue_type_script_setup_true_lang.js +240 -0
- package/dist/components/XlsxViewer.js +7 -0
- package/dist/components/XlsxViewer.vue.d.ts +22 -0
- package/dist/components/XlsxViewer.vue_vue_type_script_setup_true_lang.js +814 -0
- package/dist/components/XmindViewer.js +7 -0
- package/dist/components/XmindViewer.vue.d.ts +13 -0
- package/dist/components/XmindViewer.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/ZipBrowser.js +7 -0
- package/dist/components/ZipBrowser.vue.d.ts +14 -0
- package/dist/components/ZipBrowser.vue_vue_type_script_setup_true_lang.js +326 -0
- package/dist/components/ZoomImage.js +7 -0
- package/dist/components/ZoomImage.vue.d.ts +29 -0
- package/dist/components/ZoomImage.vue_vue_type_script_setup_true_lang.js +147 -0
- package/dist/components/epl/EplCodeBlock.js +7 -0
- package/dist/components/epl/EplCodeBlock.vue.d.ts +15 -0
- package/dist/components/epl/EplCodeBlock.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/components/epl/EplDoc.js +7 -0
- package/dist/components/epl/EplDoc.vue.d.ts +19 -0
- package/dist/components/epl/EplDoc.vue_vue_type_script_setup_true_lang.js +327 -0
- package/dist/components/epl/EplMethod.js +7 -0
- package/dist/components/epl/EplMethod.vue.d.ts +14 -0
- package/dist/components/epl/EplMethod.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/epl/EplResource.js +7 -0
- package/dist/components/epl/EplResource.vue.d.ts +15 -0
- package/dist/components/epl/EplResource.vue_vue_type_script_setup_true_lang.js +204 -0
- package/dist/components/epl/EplTree.js +7 -0
- package/dist/components/epl/EplTree.vue.d.ts +27 -0
- package/dist/components/epl/EplTree.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/components/epl/EplVarTable.js +7 -0
- package/dist/components/epl/EplVarTable.vue.d.ts +21 -0
- package/dist/components/epl/EplVarTable.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/epl/docTypes.d.ts +12 -0
- package/dist/components/epl/numbering.d.ts +21 -0
- package/dist/components/epl/numbering.js +14 -0
- package/dist/components/icons/Icon.js +7 -0
- package/dist/components/icons/Icon.vue.d.ts +14 -0
- package/dist/components/icons/Icon.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/icons/iconPaths.d.ts +60 -0
- package/dist/components/icons/iconPaths.js +54 -0
- package/dist/components/optionalViewer.d.ts +14 -0
- package/dist/components/optionalViewer.js +37 -0
- package/dist/components/ui/ClampBlock.d.ts +82 -0
- package/dist/components/ui/ClampBlock.js +63 -0
- package/dist/composables/useFileViewer.d.ts +428 -0
- package/dist/composables/useFileViewer.js +27 -0
- package/dist/composables/useLightbox.d.ts +33 -0
- package/dist/composables/useLightbox.js +17 -0
- package/dist/composables/useLogRules.d.ts +47 -0
- package/dist/composables/useLogRules.js +74 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +30 -0
- package/dist/lib/aes.d.ts +25 -0
- package/dist/lib/aes.js +99 -0
- package/dist/lib/appx.d.ts +66 -0
- package/dist/lib/appx.js +112 -0
- package/dist/lib/archive.d.ts +29 -0
- package/dist/lib/asn1.d.ts +47 -0
- package/dist/lib/asn1.js +122 -0
- package/dist/lib/binobj.d.ts +69 -0
- package/dist/lib/binobj.js +430 -0
- package/dist/lib/brotli.d.ts +14 -0
- package/dist/lib/brotli.js +16 -0
- package/dist/lib/bzip2.d.ts +14 -0
- package/dist/lib/bzip2.js +161 -0
- package/dist/lib/classfile.d.ts +72 -0
- package/dist/lib/classfile.js +210 -0
- package/dist/lib/codePreview.d.ts +22 -0
- package/dist/lib/codePreview.js +27 -0
- package/dist/lib/codefold.d.ts +14 -0
- package/dist/lib/codefold.js +30 -0
- package/dist/lib/codeformat.d.ts +21 -0
- package/dist/lib/codeformat.js +130 -0
- package/dist/lib/csv.d.ts +19 -0
- package/dist/lib/csv.js +74 -0
- package/dist/lib/des.d.ts +17 -0
- package/dist/lib/des.js +928 -0
- package/dist/lib/diagram.d.ts +5 -0
- package/dist/lib/diagram.js +479 -0
- package/dist/lib/dicom.d.ts +69 -0
- package/dist/lib/dicom.js +442 -0
- package/dist/lib/dicomCodecs.d.ts +28 -0
- package/dist/lib/dicomCodecs.js +156 -0
- package/dist/lib/dicomRender.d.ts +46 -0
- package/dist/lib/dicomRender.js +114 -0
- package/dist/lib/dxf.d.ts +86 -0
- package/dist/lib/dxf.js +399 -0
- package/dist/lib/eml.d.ts +40 -0
- package/dist/lib/eml.js +46 -0
- package/dist/lib/encoding.d.ts +28 -0
- package/dist/lib/encoding.js +44 -0
- package/dist/lib/epl/code/ast.d.ts +150 -0
- package/dist/lib/epl/code/codeDataParser.d.ts +3 -0
- package/dist/lib/epl/code/codeDataParser.js +330 -0
- package/dist/lib/epl/code/codeLines.d.ts +20 -0
- package/dist/lib/epl/code/codeLines.js +191 -0
- package/dist/lib/epl/code/structures.d.ts +86 -0
- package/dist/lib/epl/code/textCode.d.ts +29 -0
- package/dist/lib/epl/code/textCode.js +150 -0
- package/dist/lib/epl/code/variable.d.ts +25 -0
- package/dist/lib/epl/eplDocument.d.ts +21 -0
- package/dist/lib/epl/eplDocument.js +36 -0
- package/dist/lib/epl/imageList.d.ts +28 -0
- package/dist/lib/epl/imageList.js +66 -0
- package/dist/lib/epl/index.d.ts +53 -0
- package/dist/lib/epl/index.js +45 -0
- package/dist/lib/epl/io/binaryReader.d.ts +56 -0
- package/dist/lib/epl/io/binaryReader.js +119 -0
- package/dist/lib/epl/io/encoding.d.ts +16 -0
- package/dist/lib/epl/io/encoding.js +27 -0
- package/dist/lib/epl/model/eplSystemId.d.ts +64 -0
- package/dist/lib/epl/model/eplSystemId.js +16 -0
- package/dist/lib/epl/model/section.d.ts +46 -0
- package/dist/lib/epl/names/eplLibData.js +39 -0
- package/dist/lib/epl/names/idToNameMap.d.ts +33 -0
- package/dist/lib/epl/names/idToNameMap.js +130 -0
- package/dist/lib/epl/names/libNameProvider.d.ts +15 -0
- package/dist/lib/epl/names/libNameProvider.js +18 -0
- package/dist/lib/epl/program.d.ts +120 -0
- package/dist/lib/epl/program.js +134 -0
- package/dist/lib/epl/projectFileReader.d.ts +23 -0
- package/dist/lib/epl/projectFileReader.js +65 -0
- package/dist/lib/epl/sections/code.d.ts +20 -0
- package/dist/lib/epl/sections/esystemInfo.d.ts +14 -0
- package/dist/lib/epl/sections/losable.d.ts +11 -0
- package/dist/lib/epl/sections/projectConfig.d.ts +23 -0
- package/dist/lib/epl/sections/resource.d.ts +57 -0
- package/dist/lib/fb2.d.ts +14 -0
- package/dist/lib/fb2.js +62 -0
- package/dist/lib/fileType.d.ts +315 -0
- package/dist/lib/fileType.js +800 -0
- package/dist/lib/fonts.d.ts +8 -0
- package/dist/lib/fonts.js +4 -0
- package/dist/lib/format.d.ts +16 -0
- package/dist/lib/format.js +38 -0
- package/dist/lib/frontmatter.d.ts +13 -0
- package/dist/lib/frontmatter.js +23 -0
- package/dist/lib/geo.d.ts +30 -0
- package/dist/lib/geo.js +235 -0
- package/dist/lib/har.d.ts +171 -0
- package/dist/lib/har.js +397 -0
- package/dist/lib/highlight.d.ts +18 -0
- package/dist/lib/highlight.js +34 -0
- package/dist/lib/highlightLangs.d.ts +15 -0
- package/dist/lib/highlightLangs.js +93 -0
- package/dist/lib/hprof.d.ts +211 -0
- package/dist/lib/hprof.js +709 -0
- package/dist/lib/ipynb.d.ts +48 -0
- package/dist/lib/ipynb.js +130 -0
- package/dist/lib/jks.d.ts +86 -0
- package/dist/lib/jks.js +167 -0
- package/dist/lib/jsonl.d.ts +29 -0
- package/dist/lib/jsonl.js +24 -0
- package/dist/lib/lrc.d.ts +32 -0
- package/dist/lib/lrc.js +84 -0
- package/dist/lib/lzma.d.ts +70 -0
- package/dist/lib/lzma.js +204 -0
- package/dist/lib/markdown/blocks.d.ts +9 -0
- package/dist/lib/markdown/blocks.js +221 -0
- package/dist/lib/markdown/index.d.ts +3 -0
- package/dist/lib/markdown/inline.d.ts +33 -0
- package/dist/lib/markdown/inline.js +84 -0
- package/dist/lib/markdown/math.d.ts +5 -0
- package/dist/lib/markdown/math.js +25 -0
- package/dist/lib/markdown/segmentize.d.ts +11 -0
- package/dist/lib/markdown/segmentize.js +28 -0
- package/dist/lib/markdown/styles.d.ts +26 -0
- package/dist/lib/markdown/styles.js +135 -0
- package/dist/lib/mht.d.ts +51 -0
- package/dist/lib/mht.js +122 -0
- package/dist/lib/midi.d.ts +28 -0
- package/dist/lib/midi.js +84 -0
- package/dist/lib/mime.d.ts +82 -0
- package/dist/lib/mime.js +151 -0
- package/dist/lib/mindmap.d.ts +51 -0
- package/dist/lib/mindmap.js +113 -0
- package/dist/lib/mobi.d.ts +15 -0
- package/dist/lib/mobi.js +68 -0
- package/dist/lib/msi.d.ts +50 -0
- package/dist/lib/msi.js +332 -0
- package/dist/lib/optionalDep.d.ts +26 -0
- package/dist/lib/optionalDep.js +20 -0
- package/dist/lib/pkcs12.d.ts +56 -0
- package/dist/lib/pkcs12.js +356 -0
- package/dist/lib/qmc.d.ts +50 -0
- package/dist/lib/qmc.js +213 -0
- package/dist/lib/rar.d.ts +16 -0
- package/dist/lib/rar.js +40 -0
- package/dist/lib/rawPreview.d.ts +12 -0
- package/dist/lib/rawPreview.js +54 -0
- package/dist/lib/rc2.d.ts +12 -0
- package/dist/lib/rc2.js +298 -0
- package/dist/lib/resolveInput.d.ts +22 -0
- package/dist/lib/resolveInput.js +55 -0
- package/dist/lib/rtf.d.ts +53 -0
- package/dist/lib/rtf.js +413 -0
- package/dist/lib/sevenZip.d.ts +82 -0
- package/dist/lib/sevenZip.js +395 -0
- package/dist/lib/sha1.d.ts +24 -0
- package/dist/lib/sha1.js +53 -0
- package/dist/lib/sha256.d.ts +21 -0
- package/dist/lib/sha256.js +119 -0
- package/dist/lib/speechAudio.d.ts +36 -0
- package/dist/lib/speechAudio.js +85 -0
- package/dist/lib/sqlite.d.ts +38 -0
- package/dist/lib/sqlite.js +104 -0
- package/dist/lib/subtitle.d.ts +26 -0
- package/dist/lib/subtitle.js +99 -0
- package/dist/lib/tarball.d.ts +20 -0
- package/dist/lib/tarball.js +248 -0
- package/dist/lib/viewerFormats.d.ts +35 -0
- package/dist/lib/viewerFormats.js +83 -0
- package/dist/lib/viewerKind.d.ts +36 -0
- package/dist/lib/viewerKind.js +233 -0
- package/dist/lib/x509.d.ts +68 -0
- package/dist/lib/x509.js +267 -0
- package/dist/lib/xlsx.d.ts +55 -0
- package/dist/lib/xlsx.js +321 -0
- package/dist/lib/xlsxCharts.d.ts +34 -0
- package/dist/lib/xlsxCharts.js +152 -0
- package/dist/lib/xmind.d.ts +6 -0
- package/dist/lib/xmind.js +124 -0
- package/dist/lib/zip.d.ts +56 -0
- package/dist/lib/zip.js +169 -0
- package/dist/style.css +2 -0
- package/dist/types.d.ts +42 -0
- package/package.json +128 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderList as c, toDisplayString as l } from "vue";
|
|
2
|
+
//#region src/components/epl/EplCodeBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = { class: "cb" }, d = { class: "cb__no" }, f = { class: "cb__text" }, p = { key: 0 }, m = /*@__PURE__*/ a({
|
|
4
|
+
__name: "EplCodeBlock",
|
|
5
|
+
props: {
|
|
6
|
+
lines: {},
|
|
7
|
+
nos: {}
|
|
8
|
+
},
|
|
9
|
+
setup(a) {
|
|
10
|
+
let m = a;
|
|
11
|
+
function h(e) {
|
|
12
|
+
let t = [], n = 0, r = "", i = () => {
|
|
13
|
+
r &&= (t.push({
|
|
14
|
+
t: "text",
|
|
15
|
+
s: r
|
|
16
|
+
}), "");
|
|
17
|
+
};
|
|
18
|
+
for (; n < e.length;) {
|
|
19
|
+
let a = e[n];
|
|
20
|
+
if (a === "“") {
|
|
21
|
+
i();
|
|
22
|
+
let r = e.indexOf("”", n + 1);
|
|
23
|
+
r === -1 && (r = e.length - 1), t.push({
|
|
24
|
+
t: "string",
|
|
25
|
+
s: e.slice(n, r + 1)
|
|
26
|
+
}), n = r + 1;
|
|
27
|
+
} else a === "'" ? (i(), t.push({
|
|
28
|
+
t: "comment",
|
|
29
|
+
s: e.slice(n)
|
|
30
|
+
}), n = e.length) : (r += a, n++);
|
|
31
|
+
}
|
|
32
|
+
if (i(), t.length && t[0].t === "text") {
|
|
33
|
+
let e = /^(\s*)\.([^\s((]+)([\s\S]*)$/.exec(t[0].s);
|
|
34
|
+
if (e) {
|
|
35
|
+
let n = [];
|
|
36
|
+
e[1] && n.push({
|
|
37
|
+
t: "text",
|
|
38
|
+
s: e[1]
|
|
39
|
+
}), n.push({
|
|
40
|
+
t: "keyword",
|
|
41
|
+
s: e[2]
|
|
42
|
+
}), e[3] && n.push({
|
|
43
|
+
t: "text",
|
|
44
|
+
s: e[3]
|
|
45
|
+
}), t.splice(0, 1, ...n);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return t;
|
|
49
|
+
}
|
|
50
|
+
let g = t(() => m.lines.map((e, t) => ({
|
|
51
|
+
no: m.nos[t] ?? null,
|
|
52
|
+
segs: e.segs,
|
|
53
|
+
tokens: h(e.text)
|
|
54
|
+
})));
|
|
55
|
+
return (t, a) => (s(), r("div", u, [(s(!0), r(e, null, c(g.value, (t, a) => (s(), r("div", {
|
|
56
|
+
key: a,
|
|
57
|
+
class: "cb__row"
|
|
58
|
+
}, [
|
|
59
|
+
i("span", d, l(t.no ?? ""), 1),
|
|
60
|
+
(s(!0), r(e, null, c(t.segs, (e, t) => (s(), r("span", {
|
|
61
|
+
key: t,
|
|
62
|
+
class: o(["cb__g", "cb__g--" + e])
|
|
63
|
+
}, null, 2))), 128)),
|
|
64
|
+
i("code", f, [(s(!0), r(e, null, c(t.tokens, (e, t) => (s(), r("span", {
|
|
65
|
+
key: t,
|
|
66
|
+
class: o("tk-" + e.t)
|
|
67
|
+
}, l(e.s), 3))), 128)), t.tokens.length === 0 ? (s(), r("span", p, "\xA0")) : n("", !0)])
|
|
68
|
+
]))), 128))]));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
export { m as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EplDoc.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/epl/EplDoc.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-ddbdec4d"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EplProgram } from '@/lib/epl';
|
|
2
|
+
import type { EplDocRef } from './docTypes';
|
|
3
|
+
/**
|
|
4
|
+
* The right-pane content for the active document. Switches on {@link EplDocRef.kind}: a class renders its
|
|
5
|
+
* header table + member table + every method ({@link EplMethod}); the project-level tables (全局变量 /
|
|
6
|
+
* 自定义数据类型 / Dll命令 / 常量表 / 图片·声音资源 / 资源表 / 模块引用表) render as bordered tables matching
|
|
7
|
+
* the IDE (图片/声音 as media cards via {@link EplResource}).
|
|
8
|
+
*
|
|
9
|
+
* Every document carries a single continuous line-number gutter (see {@link LineCounter}): each *body* row and
|
|
10
|
+
* code line takes the next number, header rows none. The numbering is threaded here (only the active kind
|
|
11
|
+
* computes) and handed to the tables / methods so the gutter stays continuous across the whole document.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
program: EplProgram;
|
|
15
|
+
doc: EplDocRef;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import e from "./EplVarTable.js";
|
|
2
|
+
import t from "./EplMethod.js";
|
|
3
|
+
import n from "./EplResource.js";
|
|
4
|
+
import { LineCounter as r } from "./numbering.js";
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as ee, defineComponent as u, openBlock as d, renderList as f, toDisplayString as p } from "vue";
|
|
6
|
+
//#region src/components/epl/EplDoc.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var te = { class: "doc" }, ne = { class: "hd" }, re = { key: 0 }, ie = { key: 1 }, m = { key: 0 }, h = { class: "hd__gut" }, g = { class: "hd__ident" }, _ = { class: "hd__ident" }, v = { class: "hd__cmt hd__cmttext" }, y = { key: 1 }, b = { class: "hd__gut" }, x = { class: "hd__ident" }, S = { class: "hd__cmt hd__cmttext" }, C = { class: "doc__methods" }, w = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "doc__empty"
|
|
10
|
+
}, T = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "doc__empty"
|
|
13
|
+
}, E = { class: "hd" }, D = { class: "hd__gut" }, O = { class: "hd__ident" }, k = { class: "hd__bool hd__check" }, A = { class: "hd__cmt hd__cmttext" }, j = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "doc__empty"
|
|
16
|
+
}, M = { class: "hd dll" }, N = { class: "hd__gut" }, P = { class: "hd__ident" }, F = { class: "hd__ident" }, I = { class: "hd__bool hd__check" }, L = { class: "hd__cmt hd__cmttext" }, R = { class: "hd__gut" }, z = {
|
|
17
|
+
class: "dll__val",
|
|
18
|
+
colspan: "5"
|
|
19
|
+
}, B = { class: "hd__gut" }, V = {
|
|
20
|
+
class: "dll__val",
|
|
21
|
+
colspan: "5"
|
|
22
|
+
}, H = { class: "hd__gut" }, U = { class: "hd__ident" }, W = { class: "hd__ident" }, G = { class: "hd__bool hd__check" }, K = { class: "hd__bool hd__check" }, q = { class: "hd__cmt hd__cmttext" }, J = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "doc__empty"
|
|
25
|
+
}, Y = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "hd"
|
|
28
|
+
}, ae = { class: "hd__gut" }, oe = { class: "hd__ident" }, se = { class: "hd__val" }, ce = { class: "hd__cmt hd__cmttext" }, le = {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: "doc__empty"
|
|
31
|
+
}, ue = { class: "res__hd" }, de = { class: "res__name" }, fe = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "res__cmt"
|
|
34
|
+
}, pe = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "doc__empty"
|
|
37
|
+
}, me = { class: "hd" }, he = { class: "hd__gut" }, ge = { class: "hd__ident" }, _e = { class: "hd__ident" }, ve = { class: "hd__cmt hd__cmttext" }, ye = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "hd"
|
|
40
|
+
}, be = { class: "hd__gut" }, xe = { class: "hd__ident" }, Se = { class: "hd__ident" }, Ce = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "doc__empty"
|
|
43
|
+
}, we = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "hd"
|
|
46
|
+
}, Te = { class: "hd__gut" }, Ee = { class: "hd__ident" }, De = {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "doc__empty"
|
|
49
|
+
}, X = /*@__PURE__*/ u({
|
|
50
|
+
__name: "EplDoc",
|
|
51
|
+
props: {
|
|
52
|
+
program: {},
|
|
53
|
+
doc: {}
|
|
54
|
+
},
|
|
55
|
+
setup(u) {
|
|
56
|
+
let X = u, Z = a(() => X.doc.kind === "class" ? X.program.classes.find((e) => e.id === X.doc.classId) ?? null : null), Q = a(() => {
|
|
57
|
+
if (X.doc.kind !== "class" || !Z.value) return null;
|
|
58
|
+
let e = new r(), t = Z.value;
|
|
59
|
+
return {
|
|
60
|
+
cls: t,
|
|
61
|
+
header: e.next(),
|
|
62
|
+
members: e.take(t.members.length),
|
|
63
|
+
methods: t.methods.map((t) => ({
|
|
64
|
+
method: t,
|
|
65
|
+
nos: {
|
|
66
|
+
head: e.next(),
|
|
67
|
+
params: e.take(t.parameters.length),
|
|
68
|
+
locals: e.take(t.locals.length),
|
|
69
|
+
code: t.lines.map((t) => t.noNo ? null : e.next())
|
|
70
|
+
}
|
|
71
|
+
}))
|
|
72
|
+
};
|
|
73
|
+
}), $ = a(() => X.doc.kind === "globals" ? new r().take(X.program.globals.length) : []), Oe = a(() => {
|
|
74
|
+
if (X.doc.kind !== "structs") return [];
|
|
75
|
+
let e = new r();
|
|
76
|
+
return X.program.structs.map((t) => ({
|
|
77
|
+
st: t,
|
|
78
|
+
header: e.next(),
|
|
79
|
+
members: e.take(t.members.length)
|
|
80
|
+
}));
|
|
81
|
+
}), ke = a(() => {
|
|
82
|
+
if (X.doc.kind !== "dll") return [];
|
|
83
|
+
let e = new r();
|
|
84
|
+
return X.program.dllDeclares.map((t) => ({
|
|
85
|
+
d: t,
|
|
86
|
+
header: e.next(),
|
|
87
|
+
lib: e.next(),
|
|
88
|
+
entry: e.next(),
|
|
89
|
+
params: e.take(t.parameters.length)
|
|
90
|
+
}));
|
|
91
|
+
}), Ae = a(() => X.doc.kind === "constants" ? new r().take(X.program.constants.length) : []), je = a(() => {
|
|
92
|
+
if (X.doc.kind !== "forms") return [];
|
|
93
|
+
let e = new r();
|
|
94
|
+
return X.program.forms.map((t) => ({
|
|
95
|
+
f: t,
|
|
96
|
+
header: e.next(),
|
|
97
|
+
elements: e.take(t.elements.length)
|
|
98
|
+
}));
|
|
99
|
+
}), Me = a(() => X.doc.kind === "libraries" ? new r().take(X.program.libraries.length) : []), Ne = [
|
|
100
|
+
{
|
|
101
|
+
key: "name",
|
|
102
|
+
label: "变量名"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "type",
|
|
106
|
+
label: "类型"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
key: "arrayBound",
|
|
110
|
+
label: "数组"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "comment",
|
|
114
|
+
label: "备注"
|
|
115
|
+
}
|
|
116
|
+
], Pe = [
|
|
117
|
+
{
|
|
118
|
+
key: "name",
|
|
119
|
+
label: "变量名"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
key: "type",
|
|
123
|
+
label: "类型"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
key: "public",
|
|
127
|
+
label: "公开"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "arrayBound",
|
|
131
|
+
label: "数组"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: "comment",
|
|
135
|
+
label: "备注"
|
|
136
|
+
}
|
|
137
|
+
], Fe = [
|
|
138
|
+
{
|
|
139
|
+
key: "name",
|
|
140
|
+
label: "成员名"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: "type",
|
|
144
|
+
label: "类型"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
key: "byAddress",
|
|
148
|
+
label: "传址"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
key: "arrayBound",
|
|
152
|
+
label: "数组"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
key: "comment",
|
|
156
|
+
label: "备注"
|
|
157
|
+
}
|
|
158
|
+
];
|
|
159
|
+
return (r, a) => (d(), c("div", te, [u.doc.kind === "class" && Q.value ? (d(), c(i, { key: 0 }, [
|
|
160
|
+
l("table", ne, [l("thead", null, [Q.value.cls.kind === "class" ? (d(), c("tr", re, [...a[0] ||= [
|
|
161
|
+
l("th", { class: "hd__gut" }, null, -1),
|
|
162
|
+
l("th", null, "类名", -1),
|
|
163
|
+
l("th", null, "基类", -1),
|
|
164
|
+
l("th", { class: "hd__bool" }, "公开", -1),
|
|
165
|
+
l("th", { class: "hd__cmt" }, "备注", -1)
|
|
166
|
+
]])) : (d(), c("tr", ie, [...a[1] ||= [
|
|
167
|
+
l("th", { class: "hd__gut" }, null, -1),
|
|
168
|
+
l("th", null, "程序集名", -1),
|
|
169
|
+
l("th", null, "保留", -1),
|
|
170
|
+
l("th", null, "保留", -1),
|
|
171
|
+
l("th", { class: "hd__cmt" }, "备注", -1)
|
|
172
|
+
]]))]), l("tbody", null, [Q.value.cls.kind === "class" ? (d(), c("tr", m, [
|
|
173
|
+
l("td", h, p(Q.value.header), 1),
|
|
174
|
+
l("td", g, p(Q.value.cls.name), 1),
|
|
175
|
+
l("td", _, p(Q.value.cls.baseName), 1),
|
|
176
|
+
a[2] ||= l("td", { class: "hd__bool" }, null, -1),
|
|
177
|
+
l("td", v, p(Q.value.cls.comment), 1)
|
|
178
|
+
])) : (d(), c("tr", y, [
|
|
179
|
+
l("td", b, p(Q.value.header), 1),
|
|
180
|
+
l("td", x, p(Q.value.cls.name), 1),
|
|
181
|
+
a[3] ||= l("td", null, null, -1),
|
|
182
|
+
a[4] ||= l("td", null, null, -1),
|
|
183
|
+
l("td", S, p(Q.value.cls.comment), 1)
|
|
184
|
+
]))])]),
|
|
185
|
+
Q.value.cls.members.length ? (d(), o(e, {
|
|
186
|
+
key: 0,
|
|
187
|
+
columns: Ne,
|
|
188
|
+
rows: Q.value.cls.members,
|
|
189
|
+
nos: Q.value.members
|
|
190
|
+
}, null, 8, ["rows", "nos"])) : s("", !0),
|
|
191
|
+
l("div", C, [(d(!0), c(i, null, f(Q.value.methods, (e) => (d(), o(t, {
|
|
192
|
+
key: e.method.id,
|
|
193
|
+
method: e.method,
|
|
194
|
+
nos: e.nos
|
|
195
|
+
}, null, 8, ["method", "nos"]))), 128)), Q.value.cls.methods.length ? s("", !0) : (d(), c("p", w, "(无子程序)"))])
|
|
196
|
+
], 64)) : u.doc.kind === "globals" ? (d(), c(i, { key: 1 }, [a[5] ||= l("h3", { class: "doc__h" }, "全局变量表", -1), u.program.globals.length ? (d(), o(e, {
|
|
197
|
+
key: 0,
|
|
198
|
+
columns: Pe,
|
|
199
|
+
rows: u.program.globals,
|
|
200
|
+
nos: $.value
|
|
201
|
+
}, null, 8, ["rows", "nos"])) : (d(), c("p", T, "(无全局变量)"))], 64)) : u.doc.kind === "structs" ? (d(), c(i, { key: 2 }, [
|
|
202
|
+
a[7] ||= l("h3", { class: "doc__h" }, "自定义数据类型表", -1),
|
|
203
|
+
(d(!0), c(i, null, f(Oe.value, (t) => (d(), c("section", {
|
|
204
|
+
key: t.st.id,
|
|
205
|
+
class: "blk"
|
|
206
|
+
}, [l("table", E, [a[6] ||= l("thead", null, [l("tr", null, [
|
|
207
|
+
l("th", { class: "hd__gut" }),
|
|
208
|
+
l("th", null, "数据类型名"),
|
|
209
|
+
l("th", { class: "hd__bool" }, "公开"),
|
|
210
|
+
l("th", { class: "hd__cmt" }, "备注")
|
|
211
|
+
])], -1), l("tbody", null, [l("tr", null, [
|
|
212
|
+
l("td", D, p(t.header), 1),
|
|
213
|
+
l("td", O, p(t.st.name), 1),
|
|
214
|
+
l("td", k, p(t.st.isPublic ? "✓" : ""), 1),
|
|
215
|
+
l("td", A, p(t.st.comment), 1)
|
|
216
|
+
])])]), t.st.members.length ? (d(), o(e, {
|
|
217
|
+
key: 0,
|
|
218
|
+
columns: Fe,
|
|
219
|
+
rows: t.st.members,
|
|
220
|
+
nos: t.members
|
|
221
|
+
}, null, 8, ["rows", "nos"])) : s("", !0)]))), 128)),
|
|
222
|
+
u.program.structs.length ? s("", !0) : (d(), c("p", j, "(无自定义数据类型)"))
|
|
223
|
+
], 64)) : u.doc.kind === "dll" ? (d(), c(i, { key: 3 }, [
|
|
224
|
+
a[13] ||= l("h3", { class: "doc__h" }, "Dll命令定义表", -1),
|
|
225
|
+
(d(!0), c(i, null, f(ke.value, (e) => (d(), c("section", {
|
|
226
|
+
key: e.d.id,
|
|
227
|
+
class: "blk"
|
|
228
|
+
}, [l("table", M, [a[12] ||= l("thead", null, [l("tr", null, [
|
|
229
|
+
l("th", { class: "hd__gut" }),
|
|
230
|
+
l("th", null, "Dll命令名"),
|
|
231
|
+
l("th", null, "返回值类型"),
|
|
232
|
+
l("th", { class: "hd__bool" }, "公开"),
|
|
233
|
+
l("th", { class: "hd__bool" }, "易包"),
|
|
234
|
+
l("th", { class: "hd__cmt" }, "备注")
|
|
235
|
+
])], -1), l("tbody", null, [
|
|
236
|
+
l("tr", null, [
|
|
237
|
+
l("td", N, p(e.header), 1),
|
|
238
|
+
l("td", P, p(e.d.name), 1),
|
|
239
|
+
l("td", F, p(e.d.returnType), 1),
|
|
240
|
+
l("td", I, p(e.d.isPublic ? "✓" : ""), 1),
|
|
241
|
+
a[8] ||= l("td", { class: "hd__bool" }, null, -1),
|
|
242
|
+
l("td", L, p(e.d.comment), 1)
|
|
243
|
+
]),
|
|
244
|
+
a[10] ||= l("tr", null, [l("td", { class: "hd__gut" }), l("td", {
|
|
245
|
+
class: "dll__lbl",
|
|
246
|
+
colspan: "5"
|
|
247
|
+
}, "库文件名")], -1),
|
|
248
|
+
l("tr", null, [l("td", R, p(e.lib), 1), l("td", z, p(e.d.libraryName), 1)]),
|
|
249
|
+
a[11] ||= l("tr", null, [l("td", { class: "hd__gut" }), l("td", {
|
|
250
|
+
class: "dll__lbl",
|
|
251
|
+
colspan: "5"
|
|
252
|
+
}, "在库中对应命令名")], -1),
|
|
253
|
+
l("tr", null, [l("td", B, p(e.entry), 1), l("td", V, p(e.d.entryPoint || e.d.name), 1)]),
|
|
254
|
+
e.d.parameters.length ? (d(), c(i, { key: 0 }, [a[9] ||= l("tr", null, [
|
|
255
|
+
l("th", { class: "hd__gut" }),
|
|
256
|
+
l("th", null, "参数名"),
|
|
257
|
+
l("th", null, "类型"),
|
|
258
|
+
l("th", { class: "hd__bool" }, "传址"),
|
|
259
|
+
l("th", { class: "hd__bool" }, "数组"),
|
|
260
|
+
l("th", { class: "hd__cmt" }, "备注")
|
|
261
|
+
], -1), (d(!0), c(i, null, f(e.d.parameters, (t, n) => (d(), c("tr", { key: n }, [
|
|
262
|
+
l("td", H, p(e.params[n]), 1),
|
|
263
|
+
l("td", U, p(t.name), 1),
|
|
264
|
+
l("td", W, p(t.type), 1),
|
|
265
|
+
l("td", G, p(t.byAddress ? "✓" : ""), 1),
|
|
266
|
+
l("td", K, p(t.isArray ? "✓" : ""), 1),
|
|
267
|
+
l("td", q, p(t.comment), 1)
|
|
268
|
+
]))), 128))], 64)) : s("", !0)
|
|
269
|
+
])])]))), 128)),
|
|
270
|
+
u.program.dllDeclares.length ? s("", !0) : (d(), c("p", J, "(无 DLL 命令)"))
|
|
271
|
+
], 64)) : u.doc.kind === "constants" ? (d(), c(i, { key: 4 }, [a[15] ||= l("h3", { class: "doc__h" }, "常量表", -1), u.program.constants.length ? (d(), c("table", Y, [a[14] ||= l("thead", null, [l("tr", null, [
|
|
272
|
+
l("th", { class: "hd__gut" }),
|
|
273
|
+
l("th", null, "常量名"),
|
|
274
|
+
l("th", null, "常量值"),
|
|
275
|
+
l("th", { class: "hd__cmt" }, "备注")
|
|
276
|
+
])], -1), l("tbody", null, [(d(!0), c(i, null, f(u.program.constants, (e, t) => (d(), c("tr", { key: e.id }, [
|
|
277
|
+
l("td", ae, p(Ae.value[t]), 1),
|
|
278
|
+
l("td", oe, p(e.name), 1),
|
|
279
|
+
l("td", se, p(e.value), 1),
|
|
280
|
+
l("td", ce, p(e.comment), 1)
|
|
281
|
+
]))), 128))])])) : (d(), c("p", le, "(无常量)"))], 64)) : u.doc.kind === "resources" ? (d(), c(i, { key: 5 }, [
|
|
282
|
+
a[16] ||= l("h3", { class: "doc__h" }, "图片/声音资源", -1),
|
|
283
|
+
(d(!0), c(i, null, f(u.program.resources, (e) => (d(), c("section", {
|
|
284
|
+
key: e.id,
|
|
285
|
+
class: "res"
|
|
286
|
+
}, [l("div", ue, [l("span", de, p(e.name), 1), e.comment ? (d(), c("span", fe, p(e.comment), 1)) : s("", !0)]), ee(n, { resource: e }, null, 8, ["resource"])]))), 128)),
|
|
287
|
+
u.program.resources.length ? s("", !0) : (d(), c("p", pe, "(无图片/声音资源)"))
|
|
288
|
+
], 64)) : u.doc.kind === "forms" ? (d(), c(i, { key: 6 }, [
|
|
289
|
+
a[19] ||= l("h3", { class: "doc__h" }, "资源表", -1),
|
|
290
|
+
(d(!0), c(i, null, f(je.value, (e) => (d(), c("section", {
|
|
291
|
+
key: e.f.id,
|
|
292
|
+
class: "blk"
|
|
293
|
+
}, [l("table", me, [a[17] ||= l("thead", null, [l("tr", null, [
|
|
294
|
+
l("th", { class: "hd__gut" }),
|
|
295
|
+
l("th", null, "窗口名"),
|
|
296
|
+
l("th", null, "类"),
|
|
297
|
+
l("th", { class: "hd__cmt" }, "备注")
|
|
298
|
+
])], -1), l("tbody", null, [l("tr", null, [
|
|
299
|
+
l("td", he, p(e.header), 1),
|
|
300
|
+
l("td", ge, p(e.f.name), 1),
|
|
301
|
+
l("td", _e, p(e.f.className), 1),
|
|
302
|
+
l("td", ve, p(e.f.comment), 1)
|
|
303
|
+
])])]), e.f.elements.length ? (d(), c("table", ye, [a[18] ||= l("thead", null, [l("tr", null, [
|
|
304
|
+
l("th", { class: "hd__gut" }),
|
|
305
|
+
l("th", null, "组件名"),
|
|
306
|
+
l("th", null, "类型")
|
|
307
|
+
])], -1), l("tbody", null, [(d(!0), c(i, null, f(e.f.elements, (t, n) => (d(), c("tr", { key: t.id }, [
|
|
308
|
+
l("td", be, p(e.elements[n]), 1),
|
|
309
|
+
l("td", xe, p(t.name), 1),
|
|
310
|
+
l("td", Se, p(t.type), 1)
|
|
311
|
+
]))), 128))])])) : s("", !0)]))), 128)),
|
|
312
|
+
u.program.forms.length ? s("", !0) : (d(), c("p", Ce, "(无窗口资源)"))
|
|
313
|
+
], 64)) : u.doc.kind === "libraries" ? (d(), c(i, { key: 7 }, [a[21] ||= l("h3", { class: "doc__h" }, "模块引用表", -1), u.program.libraries.length ? (d(), c("table", we, [a[20] ||= l("thead", null, [l("tr", null, [
|
|
314
|
+
l("th", { class: "hd__gut" }),
|
|
315
|
+
l("th", null, "名称"),
|
|
316
|
+
l("th", null, "文件名"),
|
|
317
|
+
l("th", null, "版本")
|
|
318
|
+
])], -1), l("tbody", null, [(d(!0), c(i, null, f(u.program.libraries, (e, t) => (d(), c("tr", { key: t }, [
|
|
319
|
+
l("td", Te, p(Me.value[t]), 1),
|
|
320
|
+
l("td", Ee, p(e.name), 1),
|
|
321
|
+
l("td", null, p(e.fileName), 1),
|
|
322
|
+
l("td", null, p(e.version), 1)
|
|
323
|
+
]))), 128))])])) : (d(), c("p", De, "(无引用模块)"))], 64)) : s("", !0)]));
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
//#endregion
|
|
327
|
+
export { X as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EplMethod.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/epl/EplMethod.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-e540f854"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EplMethodView } from '@/lib/epl';
|
|
2
|
+
import type { MethodNos } from './numbering';
|
|
3
|
+
/**
|
|
4
|
+
* One 子程序 (method): the IDE shows a header table (子程序名 / 返回值类型 / 公开 / 易包 / 备注), then a
|
|
5
|
+
* parameter table and a local-variable table (each only when non-empty), then the decompiled body. Carries a
|
|
6
|
+
* DOM id so the tree's method nodes can scroll to it. `nos` are the document-wide line numbers for its rows.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
method: EplMethodView;
|
|
10
|
+
nos: MethodNos;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import e from "./EplVarTable.js";
|
|
2
|
+
import t from "./EplCodeBlock.js";
|
|
3
|
+
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, toDisplayString as c } from "vue";
|
|
4
|
+
//#region src/components/epl/EplMethod.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var l = { class: "m__head" }, u = { class: "m__gut" }, d = { class: "m__ident" }, f = { class: "m__ident" }, p = { class: "m__bool m__check" }, m = { class: "m__cmt m__cmttext" }, h = /*@__PURE__*/ o({
|
|
6
|
+
__name: "EplMethod",
|
|
7
|
+
props: {
|
|
8
|
+
method: {},
|
|
9
|
+
nos: {}
|
|
10
|
+
},
|
|
11
|
+
setup(o) {
|
|
12
|
+
let h = o, g = [
|
|
13
|
+
{
|
|
14
|
+
key: "name",
|
|
15
|
+
label: "参数名"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: "type",
|
|
19
|
+
label: "类型"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: "byReference",
|
|
23
|
+
label: "参考"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: "nullable",
|
|
27
|
+
label: "可空"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "arrayFlag",
|
|
31
|
+
label: "数组"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "comment",
|
|
35
|
+
label: "备注"
|
|
36
|
+
}
|
|
37
|
+
], _ = [
|
|
38
|
+
{
|
|
39
|
+
key: "name",
|
|
40
|
+
label: "变量名"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "type",
|
|
44
|
+
label: "类型"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: "static",
|
|
48
|
+
label: "静态"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "arrayBound",
|
|
52
|
+
label: "数组"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "comment",
|
|
56
|
+
label: "备注"
|
|
57
|
+
}
|
|
58
|
+
], v = `epl-m-${h.method.id >>> 0}`;
|
|
59
|
+
return (h, y) => (s(), i("section", {
|
|
60
|
+
id: v,
|
|
61
|
+
class: "m"
|
|
62
|
+
}, [
|
|
63
|
+
a("table", l, [y[1] ||= a("thead", null, [a("tr", null, [
|
|
64
|
+
a("th", { class: "m__gut" }),
|
|
65
|
+
a("th", null, "子程序名"),
|
|
66
|
+
a("th", null, "返回值类型"),
|
|
67
|
+
a("th", { class: "m__bool" }, "公开"),
|
|
68
|
+
a("th", { class: "m__bool" }, "易包"),
|
|
69
|
+
a("th", { class: "m__cmt" }, "备注")
|
|
70
|
+
])], -1), a("tbody", null, [a("tr", null, [
|
|
71
|
+
a("td", u, c(o.nos.head), 1),
|
|
72
|
+
a("td", d, c(o.method.name), 1),
|
|
73
|
+
a("td", f, c(o.method.returnType), 1),
|
|
74
|
+
a("td", p, c(o.method.isPublic ? "✓" : ""), 1),
|
|
75
|
+
y[0] ||= a("td", { class: "m__bool" }, null, -1),
|
|
76
|
+
a("td", m, c(o.method.comment), 1)
|
|
77
|
+
])])]),
|
|
78
|
+
o.method.parameters.length ? (s(), n(e, {
|
|
79
|
+
key: 0,
|
|
80
|
+
columns: g,
|
|
81
|
+
rows: o.method.parameters,
|
|
82
|
+
nos: o.nos.params
|
|
83
|
+
}, null, 8, ["rows", "nos"])) : r("", !0),
|
|
84
|
+
o.method.locals.length ? (s(), n(e, {
|
|
85
|
+
key: 1,
|
|
86
|
+
columns: _,
|
|
87
|
+
rows: o.method.locals,
|
|
88
|
+
nos: o.nos.locals
|
|
89
|
+
}, null, 8, ["rows", "nos"])) : r("", !0),
|
|
90
|
+
o.method.lines.length ? (s(), n(t, {
|
|
91
|
+
key: 2,
|
|
92
|
+
class: "m__code",
|
|
93
|
+
lines: o.method.lines,
|
|
94
|
+
nos: o.nos.code
|
|
95
|
+
}, null, 8, ["lines", "nos"])) : r("", !0)
|
|
96
|
+
]));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
//#endregion
|
|
100
|
+
export { h as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EplResource.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/epl/EplResource.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-c9bf3476"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type EplResourceRow } from '@/lib/epl';
|
|
2
|
+
/**
|
|
3
|
+
* Renders one 图片 / 声音 resource's media (the surrounding name/备注 card is drawn by {@link EplDoc}). An image
|
|
4
|
+
* is first tried as a 图片组 (Windows ImageList — {@link parseEplImageList}); if so its frames are decoded to
|
|
5
|
+
* RGBA and painted to per-frame canvases → data URLs. Otherwise the bytes are sniffed by magic: a browser-native
|
|
6
|
+
* image shows inline, a playable sound gets an <audio>, and anything else degrades to a labelled download card.
|
|
7
|
+
* All Blob URLs are built in onMounted (browser-only) and revoked on unmount. Upstream bytes are only ever
|
|
8
|
+
* decoded as a raster image / audio track — never executed.
|
|
9
|
+
*/
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
resource: EplResourceRow;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|