@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,204 @@
|
|
|
1
|
+
import { parseEplImageList as e } from "../../lib/epl/imageList.js";
|
|
2
|
+
import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, renderList as u, shallowRef as d, toDisplayString as f } from "vue";
|
|
3
|
+
//#region src/components/epl/EplResource.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "r-group"
|
|
7
|
+
}, m = { class: "r-group__hd" }, h = { class: "r-group__grid" }, g = ["href", "title"], _ = ["src", "alt"], v = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "r-single"
|
|
10
|
+
}, y = ["href"], b = ["src", "alt"], x = { class: "r-meta" }, S = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "r-sound"
|
|
13
|
+
}, C = ["src"], w = ["href", "download"], T = {
|
|
14
|
+
key: 3,
|
|
15
|
+
class: "r-file"
|
|
16
|
+
}, E = { class: "r-file__ico" }, D = { class: "r-meta" }, O = ["href", "download"], k = /*@__PURE__*/ a({
|
|
17
|
+
__name: "EplResource",
|
|
18
|
+
props: { resource: {} },
|
|
19
|
+
setup(a) {
|
|
20
|
+
let k = a;
|
|
21
|
+
function A(e, t, n = 0) {
|
|
22
|
+
for (let r = 0; r < t.length; r++) if (e[n + r] !== t[r]) return !1;
|
|
23
|
+
return !0;
|
|
24
|
+
}
|
|
25
|
+
function j(e) {
|
|
26
|
+
return A(e, [
|
|
27
|
+
137,
|
|
28
|
+
80,
|
|
29
|
+
78,
|
|
30
|
+
71
|
|
31
|
+
]) ? {
|
|
32
|
+
mime: "image/png",
|
|
33
|
+
ext: "png",
|
|
34
|
+
ok: !0
|
|
35
|
+
} : A(e, [
|
|
36
|
+
255,
|
|
37
|
+
216,
|
|
38
|
+
255
|
|
39
|
+
]) ? {
|
|
40
|
+
mime: "image/jpeg",
|
|
41
|
+
ext: "jpg",
|
|
42
|
+
ok: !0
|
|
43
|
+
} : A(e, [
|
|
44
|
+
71,
|
|
45
|
+
73,
|
|
46
|
+
70,
|
|
47
|
+
56
|
|
48
|
+
]) ? {
|
|
49
|
+
mime: "image/gif",
|
|
50
|
+
ext: "gif",
|
|
51
|
+
ok: !0
|
|
52
|
+
} : A(e, [66, 77]) ? {
|
|
53
|
+
mime: "image/bmp",
|
|
54
|
+
ext: "bmp",
|
|
55
|
+
ok: !0
|
|
56
|
+
} : A(e, [
|
|
57
|
+
82,
|
|
58
|
+
73,
|
|
59
|
+
70,
|
|
60
|
+
70
|
|
61
|
+
]) && A(e, [
|
|
62
|
+
87,
|
|
63
|
+
69,
|
|
64
|
+
66,
|
|
65
|
+
80
|
|
66
|
+
], 8) ? {
|
|
67
|
+
mime: "image/webp",
|
|
68
|
+
ext: "webp",
|
|
69
|
+
ok: !0
|
|
70
|
+
} : A(e, [
|
|
71
|
+
0,
|
|
72
|
+
0,
|
|
73
|
+
1,
|
|
74
|
+
0
|
|
75
|
+
]) ? {
|
|
76
|
+
mime: "image/x-icon",
|
|
77
|
+
ext: "ico",
|
|
78
|
+
ok: !0
|
|
79
|
+
} : {
|
|
80
|
+
mime: "application/octet-stream",
|
|
81
|
+
ext: "bin",
|
|
82
|
+
ok: !1
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function M(e) {
|
|
86
|
+
return A(e, [
|
|
87
|
+
82,
|
|
88
|
+
73,
|
|
89
|
+
70,
|
|
90
|
+
70
|
|
91
|
+
]) && A(e, [
|
|
92
|
+
87,
|
|
93
|
+
65,
|
|
94
|
+
86,
|
|
95
|
+
69
|
|
96
|
+
], 8) ? {
|
|
97
|
+
mime: "audio/wav",
|
|
98
|
+
ext: "wav",
|
|
99
|
+
ok: !0
|
|
100
|
+
} : A(e, [
|
|
101
|
+
73,
|
|
102
|
+
68,
|
|
103
|
+
51
|
|
104
|
+
]) || A(e, [255, 251]) || A(e, [255, 243]) || A(e, [255, 242]) ? {
|
|
105
|
+
mime: "audio/mpeg",
|
|
106
|
+
ext: "mp3",
|
|
107
|
+
ok: !0
|
|
108
|
+
} : A(e, [
|
|
109
|
+
79,
|
|
110
|
+
103,
|
|
111
|
+
103,
|
|
112
|
+
83
|
|
113
|
+
]) ? {
|
|
114
|
+
mime: "audio/ogg",
|
|
115
|
+
ext: "ogg",
|
|
116
|
+
ok: !0
|
|
117
|
+
} : A(e, [
|
|
118
|
+
77,
|
|
119
|
+
84,
|
|
120
|
+
104,
|
|
121
|
+
100
|
|
122
|
+
]) ? {
|
|
123
|
+
mime: "audio/midi",
|
|
124
|
+
ext: "mid",
|
|
125
|
+
ok: !1
|
|
126
|
+
} : {
|
|
127
|
+
mime: "application/octet-stream",
|
|
128
|
+
ext: "bin",
|
|
129
|
+
ok: !1
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function N(e) {
|
|
133
|
+
return e < 1024 ? e + " B" : e < 1024 * 1024 ? (e / 1024).toFixed(1) + " KB" : (e / 1024 / 1024).toFixed(1) + " MB";
|
|
134
|
+
}
|
|
135
|
+
function P(e) {
|
|
136
|
+
let t = document.createElement("canvas");
|
|
137
|
+
t.width = e.width, t.height = e.height;
|
|
138
|
+
let n = t.getContext("2d");
|
|
139
|
+
return n ? (n.putImageData(new ImageData(e.rgba, e.width, e.height), 0, 0), t.toDataURL("image/png")) : "";
|
|
140
|
+
}
|
|
141
|
+
let F = l("file"), I = l(""), L = l(null), R = l(!1), z = l(""), B = l(0), V = d([]), H = l(null);
|
|
142
|
+
return s(() => {
|
|
143
|
+
let t = k.resource;
|
|
144
|
+
if (B.value = t.bytes.length, z.value = t.name, t.kind === "image") {
|
|
145
|
+
let n = e(t.bytes);
|
|
146
|
+
if (n) {
|
|
147
|
+
H.value = {
|
|
148
|
+
count: n.frames.length,
|
|
149
|
+
cx: n.cx,
|
|
150
|
+
cy: n.cy
|
|
151
|
+
}, V.value = n.frames.map(P), F.value = "group";
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
let r = j(t.bytes);
|
|
155
|
+
L.value = r, z.value = `${t.name}.${r.ext}`, I.value = URL.createObjectURL(new Blob([t.bytes], { type: r.mime })), F.value = r.ok ? "image" : "file";
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
let n = M(t.bytes);
|
|
159
|
+
L.value = n, z.value = `${t.name}.${n.ext}`, I.value = URL.createObjectURL(new Blob([t.bytes], { type: n.mime })), F.value = n.ok ? "sound" : "file";
|
|
160
|
+
}), o(() => {
|
|
161
|
+
I.value && URL.revokeObjectURL(I.value);
|
|
162
|
+
}), (e, o) => F.value === "group" && H.value ? (c(), r("div", p, [i("div", m, "图片组 · " + f(H.value.count) + " 张 · " + f(H.value.cx) + "×" + f(H.value.cy), 1), i("div", h, [(c(!0), r(t, null, u(V.value, (e, t) => (c(), r("a", {
|
|
163
|
+
key: t,
|
|
164
|
+
href: e,
|
|
165
|
+
target: "_blank",
|
|
166
|
+
rel: "noopener",
|
|
167
|
+
class: "r-frame",
|
|
168
|
+
title: `#${t}`
|
|
169
|
+
}, [i("img", {
|
|
170
|
+
src: e,
|
|
171
|
+
alt: `#${t}`,
|
|
172
|
+
class: "r-frame__img"
|
|
173
|
+
}, null, 8, _)], 8, g))), 128))])])) : F.value === "image" && !R.value ? (c(), r("div", v, [i("a", {
|
|
174
|
+
href: I.value,
|
|
175
|
+
target: "_blank",
|
|
176
|
+
rel: "noopener",
|
|
177
|
+
class: "r-single__link"
|
|
178
|
+
}, [i("img", {
|
|
179
|
+
src: I.value,
|
|
180
|
+
alt: a.resource.name,
|
|
181
|
+
class: "r-single__img",
|
|
182
|
+
onError: o[0] ||= (e) => R.value = !0
|
|
183
|
+
}, null, 40, b)], 8, y), i("span", x, f(N(B.value)), 1)])) : F.value === "sound" ? (c(), r("div", S, [i("audio", {
|
|
184
|
+
src: I.value,
|
|
185
|
+
controls: "",
|
|
186
|
+
class: "r-audio"
|
|
187
|
+
}, null, 8, C), i("a", {
|
|
188
|
+
href: I.value,
|
|
189
|
+
download: z.value,
|
|
190
|
+
class: "r-dl"
|
|
191
|
+
}, "下载", 8, w)])) : (c(), r("div", T, [
|
|
192
|
+
i("span", E, f(a.resource.kind === "image" ? "🖼" : "🔊"), 1),
|
|
193
|
+
i("span", D, f(a.resource.kind === "image" ? "图片" : "声音") + " · " + f(N(B.value)) + " · " + f(a.resource.kind === "image" ? "格式无法预览" : "格式无法播放"), 1),
|
|
194
|
+
I.value ? (c(), r("a", {
|
|
195
|
+
key: 0,
|
|
196
|
+
href: I.value,
|
|
197
|
+
download: z.value,
|
|
198
|
+
class: "r-dl"
|
|
199
|
+
}, "下载", 8, O)) : n("", !0)
|
|
200
|
+
]));
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
//#endregion
|
|
204
|
+
export { k as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EplTree.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/epl/EplTree.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-855ef1ee"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EplProgram } from '@/lib/epl';
|
|
2
|
+
import type { EplDocRef } from './docTypes';
|
|
3
|
+
/**
|
|
4
|
+
* The 易语言 IDE「程序」tree: every 程序集 / 窗口程序集 / 类 at the top level (expandable to its 子程序), then
|
|
5
|
+
* the project-level tables (全局变量 / 自定义数据类型 / Dll命令 / 常量表 / 资源表 / 模块引用表) — each shown
|
|
6
|
+
* only when it has content. Clicking a node opens its document; clicking a method jumps to it inside the class
|
|
7
|
+
* document.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
program: EplProgram;
|
|
11
|
+
activeId: string;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
select: (ref: EplDocRef) => any;
|
|
15
|
+
selectMethod: (payload: {
|
|
16
|
+
classId: number;
|
|
17
|
+
methodId: number;
|
|
18
|
+
}) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onSelect?: ((ref: EplDocRef) => any) | undefined;
|
|
21
|
+
onSelectMethod?: ((payload: {
|
|
22
|
+
classId: number;
|
|
23
|
+
methodId: number;
|
|
24
|
+
}) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,123 @@
|
|
|
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, ref as c, renderList as l, toDisplayString as u } from "vue";
|
|
2
|
+
//#region src/components/epl/EplTree.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var d = { class: "tree" }, f = ["onClick"], p = {
|
|
4
|
+
key: 1,
|
|
5
|
+
class: "tree__caret tree__caret--empty"
|
|
6
|
+
}, m = ["onClick"], h = { class: "tree__name" }, g = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "tree__children"
|
|
9
|
+
}, _ = ["onClick"], v = { class: "tree__name" }, y = ["onClick"], b = { class: "tree__name" }, x = /*@__PURE__*/ a({
|
|
10
|
+
__name: "EplTree",
|
|
11
|
+
props: {
|
|
12
|
+
program: {},
|
|
13
|
+
activeId: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["select", "selectMethod"],
|
|
16
|
+
setup(a, { emit: x }) {
|
|
17
|
+
let S = a, C = x, w = c(/* @__PURE__ */ new Set());
|
|
18
|
+
function T(e) {
|
|
19
|
+
let t = new Set(w.value);
|
|
20
|
+
t.has(e) ? t.delete(e) : t.add(e), w.value = t;
|
|
21
|
+
}
|
|
22
|
+
let E = {
|
|
23
|
+
static: {
|
|
24
|
+
ch: "集",
|
|
25
|
+
cls: "ico--static"
|
|
26
|
+
},
|
|
27
|
+
form: {
|
|
28
|
+
ch: "窗",
|
|
29
|
+
cls: "ico--form"
|
|
30
|
+
},
|
|
31
|
+
class: {
|
|
32
|
+
ch: "类",
|
|
33
|
+
cls: "ico--class"
|
|
34
|
+
}
|
|
35
|
+
}, D = t(() => {
|
|
36
|
+
let e = S.program;
|
|
37
|
+
return [
|
|
38
|
+
{
|
|
39
|
+
kind: "globals",
|
|
40
|
+
title: "全局变量",
|
|
41
|
+
count: e.globals.length
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
kind: "structs",
|
|
45
|
+
title: "自定义数据类型",
|
|
46
|
+
count: e.structs.length
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
kind: "dll",
|
|
50
|
+
title: "Dll命令",
|
|
51
|
+
count: e.dllDeclares.length
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
kind: "constants",
|
|
55
|
+
title: "常量表",
|
|
56
|
+
count: e.constants.length
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
kind: "resources",
|
|
60
|
+
title: "图片/声音",
|
|
61
|
+
count: e.resources.length
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
kind: "forms",
|
|
65
|
+
title: "资源表",
|
|
66
|
+
count: e.forms.length
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
kind: "libraries",
|
|
70
|
+
title: "模块引用表",
|
|
71
|
+
count: e.libraries.length
|
|
72
|
+
}
|
|
73
|
+
].filter((e) => e.count > 0);
|
|
74
|
+
});
|
|
75
|
+
function O(e, t) {
|
|
76
|
+
C("select", {
|
|
77
|
+
id: `class:${e >>> 0}`,
|
|
78
|
+
kind: "class",
|
|
79
|
+
classId: e,
|
|
80
|
+
title: t
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function k(e) {
|
|
84
|
+
C("select", {
|
|
85
|
+
id: e.kind,
|
|
86
|
+
kind: e.kind,
|
|
87
|
+
title: e.title
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return (t, c) => (s(), r("div", d, [
|
|
91
|
+
c[2] ||= i("div", { class: "tree__root" }, "程序数据", -1),
|
|
92
|
+
(s(!0), r(e, null, l(a.program.classes, (t) => (s(), r("div", {
|
|
93
|
+
key: t.id,
|
|
94
|
+
class: "tree__group"
|
|
95
|
+
}, [i("div", { class: o(["tree__node", { "is-active": a.activeId === `class:${t.id >>> 0}` }]) }, [t.methods.length ? (s(), r("button", {
|
|
96
|
+
key: 0,
|
|
97
|
+
type: "button",
|
|
98
|
+
class: o(["tree__caret", { "is-open": w.value.has(t.id) }]),
|
|
99
|
+
onClick: (e) => T(t.id)
|
|
100
|
+
}, " ▶ ", 10, f)) : (s(), r("span", p)), i("button", {
|
|
101
|
+
type: "button",
|
|
102
|
+
class: "tree__label",
|
|
103
|
+
onClick: (e) => O(t.id, t.name)
|
|
104
|
+
}, [i("span", { class: o(["ico", E[t.kind].cls]) }, u(E[t.kind].ch), 3), i("span", h, u(t.name), 1)], 8, m)], 2), w.value.has(t.id) ? (s(), r("div", g, [(s(!0), r(e, null, l(t.methods, (e) => (s(), r("button", {
|
|
105
|
+
key: e.id,
|
|
106
|
+
type: "button",
|
|
107
|
+
class: "tree__method",
|
|
108
|
+
onClick: (n) => C("selectMethod", {
|
|
109
|
+
classId: t.id,
|
|
110
|
+
methodId: e.id
|
|
111
|
+
})
|
|
112
|
+
}, [c[0] ||= i("span", { class: "ico ico--method" }, "子", -1), i("span", v, u(e.name), 1)], 8, _))), 128))])) : n("", !0)]))), 128)),
|
|
113
|
+
(s(!0), r(e, null, l(D.value, (e) => (s(), r("button", {
|
|
114
|
+
key: e.kind,
|
|
115
|
+
type: "button",
|
|
116
|
+
class: o(["tree__node tree__label tree__table", { "is-active": a.activeId === e.kind }]),
|
|
117
|
+
onClick: (t) => k(e)
|
|
118
|
+
}, [c[1] ||= i("span", { class: "ico ico--table" }, "表", -1), i("span", b, u(e.title), 1)], 10, y))), 128))
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
//#endregion
|
|
123
|
+
export { x as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./EplVarTable.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/epl/EplVarTable.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-eff7e67b"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { EplVarRow } from '@/lib/epl';
|
|
2
|
+
/**
|
|
3
|
+
* The 易语言 IDE renders every definition (参数 / 局部变量 / 成员 / 全局变量 / DLL 参数) as a bordered table
|
|
4
|
+
* with a pale header row. This is the shared table: the caller picks the columns (label + which {@link EplVarRow}
|
|
5
|
+
* field each maps to), so one component covers all the variation between parameter / variable / member tables.
|
|
6
|
+
* Boolean columns (公开 / 静态 / 传址 / 参考 / 可空 / 数组) render a centered ✓.
|
|
7
|
+
*/
|
|
8
|
+
export type EplColKey = 'name' | 'type' | 'public' | 'static' | 'byAddress' | 'byReference' | 'nullable' | 'arrayBound' | 'arrayFlag' | 'comment';
|
|
9
|
+
export interface EplCol {
|
|
10
|
+
key: EplColKey;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
/** `nos` are the document-wide line numbers for each row (one per `rows` entry); the header row gets none. */
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
columns: EplCol[];
|
|
16
|
+
rows: EplVarRow[];
|
|
17
|
+
nos?: number[];
|
|
18
|
+
};
|
|
19
|
+
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>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Fragment as e, createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderList as o, toDisplayString as s } from "vue";
|
|
2
|
+
//#region src/components/epl/EplVarTable.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var c = { class: "vt" }, l = { class: "vt__gut" }, u = /*@__PURE__*/ r({
|
|
4
|
+
__name: "EplVarTable",
|
|
5
|
+
props: {
|
|
6
|
+
columns: {},
|
|
7
|
+
rows: {},
|
|
8
|
+
nos: {}
|
|
9
|
+
},
|
|
10
|
+
setup(r) {
|
|
11
|
+
let u = r;
|
|
12
|
+
function d(e) {
|
|
13
|
+
return u.nos?.[e] ?? e + 1;
|
|
14
|
+
}
|
|
15
|
+
let f = new Set([
|
|
16
|
+
"public",
|
|
17
|
+
"static",
|
|
18
|
+
"byAddress",
|
|
19
|
+
"byReference",
|
|
20
|
+
"nullable",
|
|
21
|
+
"arrayFlag"
|
|
22
|
+
]);
|
|
23
|
+
function p(e) {
|
|
24
|
+
return f.has(e);
|
|
25
|
+
}
|
|
26
|
+
function m(e, t) {
|
|
27
|
+
switch (t) {
|
|
28
|
+
case "name": return e.name;
|
|
29
|
+
case "type": return e.type;
|
|
30
|
+
case "public": return e.isPublic ? "✓" : "";
|
|
31
|
+
case "static": return e.isStatic ? "✓" : "";
|
|
32
|
+
case "byAddress": return e.byAddress ? "✓" : "";
|
|
33
|
+
case "byReference": return e.byReference ? "✓" : "";
|
|
34
|
+
case "nullable": return e.nullable ? "✓" : "";
|
|
35
|
+
case "arrayBound": return e.arrayBound;
|
|
36
|
+
case "arrayFlag": return e.isArray ? "✓" : "";
|
|
37
|
+
case "comment": return e.comment;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function h(e) {
|
|
41
|
+
return e === "name" || e === "type";
|
|
42
|
+
}
|
|
43
|
+
return (u, f) => (a(), t("table", c, [n("thead", null, [n("tr", null, [f[0] ||= n("th", { class: "vt__gut" }, null, -1), (a(!0), t(e, null, o(r.columns, (e) => (a(), t("th", {
|
|
44
|
+
key: e.key,
|
|
45
|
+
class: i({
|
|
46
|
+
"vt__th--bool": p(e.key),
|
|
47
|
+
"vt__th--cmt": e.key === "comment"
|
|
48
|
+
})
|
|
49
|
+
}, s(e.label), 3))), 128))])]), n("tbody", null, [(a(!0), t(e, null, o(r.rows, (c, u) => (a(), t("tr", { key: u }, [n("td", l, s(d(u)), 1), (a(!0), t(e, null, o(r.columns, (e) => (a(), t("td", {
|
|
50
|
+
key: e.key,
|
|
51
|
+
class: i({
|
|
52
|
+
"vt__td--bool": p(e.key),
|
|
53
|
+
"vt__td--ident": h(e.key),
|
|
54
|
+
"vt__td--cmt": e.key === "comment"
|
|
55
|
+
})
|
|
56
|
+
}, s(m(c, e.key)), 3))), 128))]))), 128))])]));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { u as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Doc kinds the IDE-style viewer can open in a tab / show in the right pane. */
|
|
2
|
+
export type EplDocKind = 'class' | 'globals' | 'structs' | 'dll' | 'constants' | 'resources' | 'forms' | 'libraries';
|
|
3
|
+
/** A reference to one openable document (a class, or one of the project-level tables). */
|
|
4
|
+
export interface EplDocRef {
|
|
5
|
+
/** Stable key for tab de-dup / activation (`class:<id>` or the bare kind). */
|
|
6
|
+
id: string;
|
|
7
|
+
kind: EplDocKind;
|
|
8
|
+
/** Set when `kind === 'class'`. */
|
|
9
|
+
classId?: number;
|
|
10
|
+
/** Tab + heading label. */
|
|
11
|
+
title: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document-wide line numbering for the IDE-style viewer. The 易语言 source view puts a single continuous
|
|
3
|
+
* line-number gutter down the whole document: every *body* row (the 程序集/类 row, each 子程序 / 参数 / 局部 /
|
|
4
|
+
* 成员 / 全局 row, and every code line — blanks included) takes the next number, while column-header rows do
|
|
5
|
+
* not. So numbering can't live inside one table or one method; it threads through the active document here, and
|
|
6
|
+
* the components just render the numbers they're handed.
|
|
7
|
+
*/
|
|
8
|
+
/** Per-method numbers: the 子程序名 header row, then parameter / local-variable rows, then code lines.
|
|
9
|
+
* A code entry is `null` for a row that takes no number (a hidden control-flow terminator). */
|
|
10
|
+
export interface MethodNos {
|
|
11
|
+
head: number;
|
|
12
|
+
params: number[];
|
|
13
|
+
locals: number[];
|
|
14
|
+
code: (number | null)[];
|
|
15
|
+
}
|
|
16
|
+
/** A running 1-based counter that hands out single numbers or contiguous runs in document order. */
|
|
17
|
+
export declare class LineCounter {
|
|
18
|
+
private n;
|
|
19
|
+
next(): number;
|
|
20
|
+
take(count: number): number[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./Icon.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/icons/Icon.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-5d3b9e77"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type StrokeIconName } from './iconPaths';
|
|
2
|
+
/** Outline icon (viewBox 24, stroke currentColor). Pass a known `name` or raw `path`. */
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
name?: StrokeIconName;
|
|
5
|
+
path?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
strokeWidth?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
size: number;
|
|
11
|
+
strokeWidth: number;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { STROKE_ICONS as e } from "./iconPaths.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, defineComponent as r, openBlock as i } from "vue";
|
|
3
|
+
//#region src/components/icons/Icon.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var a = { class: "dc-icon" }, o = [
|
|
5
|
+
"width",
|
|
6
|
+
"height",
|
|
7
|
+
"stroke-width",
|
|
8
|
+
"innerHTML"
|
|
9
|
+
], s = /*@__PURE__*/ r({
|
|
10
|
+
__name: "Icon",
|
|
11
|
+
props: {
|
|
12
|
+
name: {},
|
|
13
|
+
path: {},
|
|
14
|
+
size: { default: 15 },
|
|
15
|
+
strokeWidth: { default: 1.8 }
|
|
16
|
+
},
|
|
17
|
+
setup(r) {
|
|
18
|
+
let s = r, c = t(() => s.path ?? (s.name ? e[s.name] : ""));
|
|
19
|
+
return (e, t) => (i(), n("span", a, [(i(), n("svg", {
|
|
20
|
+
width: r.size,
|
|
21
|
+
height: r.size,
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
fill: "none",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
"stroke-width": r.strokeWidth,
|
|
26
|
+
"stroke-linecap": "round",
|
|
27
|
+
"stroke-linejoin": "round",
|
|
28
|
+
innerHTML: c.value
|
|
29
|
+
}, null, 8, o))]));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
export { s as default };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized SVG path data, lifted from the inline SVGs scattered through the
|
|
3
|
+
* original viewer. Two families:
|
|
4
|
+
* - FILL_ICONS: filled glyphs, viewBox 0 0 20 20, fill currentColor (old icoF / ICONS)
|
|
5
|
+
* - STROKE_ICONS: outline glyphs, viewBox 0 0 24 24, stroke currentColor (old ico)
|
|
6
|
+
*/
|
|
7
|
+
export declare const FILL_ICONS: {
|
|
8
|
+
readonly thinking: "<path d=\"M10.386 2.51A7.5 7.5 0 1 1 2.5 10a.5.5 0 0 1 1 0 6.5 6.5 0 1 0 6.835-6.491L10 3.5l-.1-.01a.5.5 0 0 1 .1-.99zM10 5.5a.5.5 0 0 1 .5.5v3.69l2.724 1.363a.5.5 0 0 1-.353.93l-.095-.036-3-1.5A.5.5 0 0 1 9.5 10V6a.5.5 0 0 1 .5-.5M3.662 6.941a.661.661 0 1 1 0 1.323.661.661 0 0 1 0-1.323m1.294-2.647a.662.662 0 1 1-.001 1.323.662.662 0 0 1 .001-1.323M7.603 3a.662.662 0 1 1-.001 1.325.662.662 0 0 1 0-1.325\"/>";
|
|
9
|
+
readonly bash: "<path fill-rule=\"evenodd\" d=\"M3.5 4A1.5 1.5 0 0 0 2 5.5v9A1.5 1.5 0 0 0 3.5 16h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 16.5 4zm0 1.2h13a.3.3 0 0 1 .3.3v9a.3.3 0 0 1-.3.3h-13a.3.3 0 0 1-.3-.3v-9a.3.3 0 0 1 .3-.3z\" clip-rule=\"evenodd\"/><path d=\"M5.3 7.2a.6.6 0 0 1 .85 0l2.1 2.1a.6.6 0 0 1 0 .85l-2.1 2.1a.6.6 0 1 1-.85-.85L6.99 9.7 5.3 8.05a.6.6 0 0 1 0-.85M9.6 11.6a.6.6 0 0 0 0 1.2h3.6a.6.6 0 0 0 0-1.2z\"/>";
|
|
10
|
+
readonly skill: "<path d=\"M13.04 7.304a.5.5 0 0 1 .92.392C13.665 8.386 13.089 9 12.3 9c-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.234-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696a.5.5 0 0 1 .92 0c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696\"/><path fill-rule=\"evenodd\" d=\"M14 3a2 2 0 0 1 2 2v8h1.5a.5.5 0 0 1 .5.5V15a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4H4a1 1 0 0 0-.745 1.667.5.5 0 0 1-.745.666A2 2 0 0 1 4 3zM6 15a1 1 0 1 0 2 0v-1.5a.5.5 0 0 1 .5-.5H15V5a1 1 0 0 0-1-1H6zm3 0c0 .365-.1.706-.27 1H16a1 1 0 0 0 1-1v-1H9z\" clip-rule=\"evenodd\"/>";
|
|
11
|
+
readonly edit: "<path d=\"M14.3 2.7a2.05 2.05 0 0 1 2.9 2.9l-.79.79-2.9-2.9zM12.79 4.21l2.9 2.9-7.86 7.86a1 1 0 0 1-.43.25l-3.2.9a.5.5 0 0 1-.62-.62l.9-3.2a1 1 0 0 1 .25-.43z\"/>";
|
|
12
|
+
readonly file: "<path fill-rule=\"evenodd\" d=\"M5.5 2.5A1.5 1.5 0 0 0 4 4v12a1.5 1.5 0 0 0 1.5 1.5h9A1.5 1.5 0 0 0 16 16V7.62a1.5 1.5 0 0 0-.44-1.06l-3.12-3.12a1.5 1.5 0 0 0-1.06-.44zm6 1.96 2.54 2.54H12a.5.5 0 0 1-.5-.5z\" clip-rule=\"evenodd\"/>";
|
|
13
|
+
readonly check: "<path d=\"M16.74 5.8a1 1 0 0 1 .04 1.41l-7.02 7.32a1 1 0 0 1-1.45.01l-3-3.13a1 1 0 1 1 1.44-1.38l2.28 2.37 6.3-6.56a1 1 0 0 1 1.41-.04z\"/>";
|
|
14
|
+
readonly tool: "<circle cx=\"10\" cy=\"10\" r=\"3\"/>";
|
|
15
|
+
readonly conversation: "<path d=\"M13.29 8.804a.5.5 0 0 1 .92.392c-.36.84-1.046 1.554-1.96 1.554-.613 0-1.122-.321-1.5-.785-.378.464-.887.785-1.5.785s-1.122-.321-1.5-.785c-.378.464-.887.785-1.5.785a.5.5 0 0 1 0-1c.338 0 .755-.28 1.04-.946l.034-.067a.5.5 0 0 1 .886.067l.112.231c.276.5.632.715.928.715.338 0 .755-.28 1.04-.946l.034-.067a.5.5 0 0 1 .886.067l.112.231c.276.5.633.715.928.715.338 0 .755-.28 1.04-.946\"/><path d=\"M17.5 9.5A7.5 7.5 0 0 0 2.516 9c-.018.275.208.5.484.5a.53.53 0 0 0 .519-.5A6.5 6.5 0 1 1 10 16l-5.855.004.828-.834a.497.497 0 0 0-.706-.701l-1.576 1.584a.656.656 0 0 0 0 .926l1.542 1.55a.51.51 0 1 0 .722-.723l-.81-.802L10 17a7.5 7.5 0 0 0 7.5-7.5\"/>";
|
|
16
|
+
readonly external: "<path d=\"M9.5 3a.5.5 0 0 1 0 1h-5a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 1 1 0v5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 15.5v-11A1.5 1.5 0 0 1 4.5 3zm7 0a.5.5 0 0 1 .18.034l.021.01q.03.014.059.03l.023.014a.5.5 0 0 1 .07.058l.065.079q.015.025.026.052l.018.034a.5.5 0 0 1 .032.128Q17 3.47 17 3.5v4a.5.5 0 0 1-1 0V4.707l-4.146 4.147a.5.5 0 1 1-.707-.708L15.293 4H12.5a.5.5 0 0 1 0-1z\"/>";
|
|
17
|
+
};
|
|
18
|
+
export type IconKey = keyof typeof FILL_ICONS;
|
|
19
|
+
export declare const STROKE_ICONS: {
|
|
20
|
+
readonly copy: "<rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\"/><path d=\"M5 15V5a2 2 0 0 1 2-2h10\"/>";
|
|
21
|
+
readonly fileOutline: "<path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"/><path d=\"M14 2v6h6\"/>";
|
|
22
|
+
readonly arrowLeft: "<path d=\"M19 12H5\"/><path d=\"M12 19l-7-7 7-7\"/>";
|
|
23
|
+
readonly logout: "<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\"/><path d=\"M16 17l5-5-5-5\"/><path d=\"M21 12H9\"/>";
|
|
24
|
+
readonly download: "<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"/><path d=\"M7 10l5 5 5-5\"/><path d=\"M12 15V3\"/>";
|
|
25
|
+
readonly close: "<path d=\"M18 6 6 18\"/><path d=\"M6 6l12 12\"/>";
|
|
26
|
+
readonly eye: "<path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/><circle cx=\"12\" cy=\"12\" r=\"3.5\"/>";
|
|
27
|
+
readonly code: "<path d=\"M16 18l6-6-6-6\"/><path d=\"M8 6l-6 6 6 6\"/>";
|
|
28
|
+
readonly globe: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3c2.5 2.6 2.5 15.4 0 18M12 3c-2.5 2.6-2.5 15.4 0 18\"/>";
|
|
29
|
+
readonly link: "<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/>";
|
|
30
|
+
readonly chevronRight: "<path d=\"M9 6l6 6-6 6\"/>";
|
|
31
|
+
readonly chevronLeft: "<path d=\"M15 6l-6 6 6 6\"/>";
|
|
32
|
+
readonly chevronDown: "<path d=\"M6 9l6 6 6-6\"/>";
|
|
33
|
+
readonly chat: "<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/>";
|
|
34
|
+
readonly folder: "<path d=\"M3 7a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.7.9l.8 1.1H19a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/>";
|
|
35
|
+
readonly archive: "<rect x=\"3\" y=\"4\" width=\"18\" height=\"4\" rx=\"1\"/><path d=\"M5 8v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8\"/><path d=\"M10 12h4\"/>";
|
|
36
|
+
readonly image: "<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"/><path d=\"M21 15l-5-5L5 21\"/>";
|
|
37
|
+
readonly play: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M10 8.5l5 3.5-5 3.5z\"/>";
|
|
38
|
+
readonly music: "<path d=\"M9 18V5l12-2v13\"/><circle cx=\"6\" cy=\"18\" r=\"3\"/><circle cx=\"18\" cy=\"16\" r=\"3\"/>";
|
|
39
|
+
readonly arrowDown: "<path d=\"M12 5v14\"/><path d=\"M5 12l7 7 7-7\"/>";
|
|
40
|
+
readonly arrowUp: "<path d=\"M12 19V5\"/><path d=\"M5 12l7-7 7 7\"/>";
|
|
41
|
+
readonly chart: "<path d=\"M3 3v18h18\"/><rect x=\"7\" y=\"11\" width=\"3\" height=\"6\"/><rect x=\"13\" y=\"7\" width=\"3\" height=\"10\"/>";
|
|
42
|
+
readonly pot: "<path d=\"M2 12h20\"/><path d=\"M20 12v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7\"/><path d=\"m4 8 16-4\"/><path d=\"m8.9 6.8-.5-1.8a2 2 0 0 1 1.5-2.4l1.9-.5a2 2 0 0 1 2.4 1.5l.5 1.8\"/>";
|
|
43
|
+
readonly clock: "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 7v5l3 2\"/>";
|
|
44
|
+
readonly info: "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4\"/><path d=\"M12 8h.01\"/>";
|
|
45
|
+
readonly retry: "<path d=\"M21 12a9 9 0 1 1-2.64-6.36M21 4v5h-5\"/>";
|
|
46
|
+
readonly thumb: "<path d=\"M7 10v11M7 10l4-7a2 2 0 0 1 2.6 2.6L12 10h5.6a2 2 0 0 1 2 2.4l-1.3 6A2 2 0 0 1 16.3 21H7\"/>";
|
|
47
|
+
readonly help: "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3\"/><path d=\"M12 17h.01\"/>";
|
|
48
|
+
readonly key: "<circle cx=\"7.5\" cy=\"15.5\" r=\"5.5\"/><path d=\"m11.4 11.6 9.6-9.6\"/><path d=\"m15.5 7.5 3 3L22 7l-3-3\"/>";
|
|
49
|
+
readonly users: "<path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/>";
|
|
50
|
+
readonly plus: "<path d=\"M12 5v14\"/><path d=\"M5 12h14\"/>";
|
|
51
|
+
readonly check: "<path d=\"M20 6 9 17l-5-5\"/>";
|
|
52
|
+
readonly trash: "<path d=\"M3 6h18\"/><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"/><path d=\"M10 11v6\"/><path d=\"M14 11v6\"/>";
|
|
53
|
+
readonly maximize: "<path d=\"M8 3H5a2 2 0 0 0-2 2v3\"/><path d=\"M21 8V5a2 2 0 0 0-2-2h-3\"/><path d=\"M3 16v3a2 2 0 0 0 2 2h3\"/><path d=\"M16 21h3a2 2 0 0 0 2-2v-3\"/>";
|
|
54
|
+
readonly paperclip: "<path d=\"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48\"/>";
|
|
55
|
+
readonly files: "<path d=\"M20 7h-3a2 2 0 0 1-2-2V2\"/><path d=\"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z\"/><path d=\"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8\"/>";
|
|
56
|
+
readonly locate: "<circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 2v4M12 18v4M2 12h4M18 12h4\"/>";
|
|
57
|
+
readonly hex: "<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M7 9h.01M11 9h.01M15 9h.01M7 13h.01M11 13h.01M15 13h.01\"/>";
|
|
58
|
+
readonly apps: "<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"/>";
|
|
59
|
+
};
|
|
60
|
+
export type StrokeIconName = keyof typeof STROKE_ICONS;
|