epx-frame 3.5.0-shpgy.1
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/.browserslistrc +4 -0
- package/.dockerignore +2 -0
- package/.editorconfig +5 -0
- package/.env.dev +6 -0
- package/.env.development +4 -0
- package/.env.localize +7 -0
- package/.env.ppe +6 -0
- package/.env.prd +6 -0
- package/.env.pre +6 -0
- package/.env.production +6 -0
- package/.env.simple +8 -0
- package/.eslintignore +2 -0
- package/.eslintrc.js +24 -0
- package/Dockerfile +12 -0
- package/README.md +108 -0
- package/babel.config.js +26 -0
- package/build/webpack.component.js +54 -0
- package/build/webpack.dev.js +114 -0
- package/build/webpack.prod.js +133 -0
- package/nginx.conf +38 -0
- package/package.json +93 -0
- package/public/403.html +77 -0
- package/public/cmaps/78-EUC-H.bcmap +0 -0
- package/public/cmaps/78-EUC-V.bcmap +0 -0
- package/public/cmaps/78-H.bcmap +0 -0
- package/public/cmaps/78-RKSJ-H.bcmap +0 -0
- package/public/cmaps/78-RKSJ-V.bcmap +0 -0
- package/public/cmaps/78-V.bcmap +0 -0
- package/public/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/public/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/public/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/public/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/public/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/public/cmaps/Add-H.bcmap +0 -0
- package/public/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/public/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/public/cmaps/Add-V.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/public/cmaps/B5-H.bcmap +0 -0
- package/public/cmaps/B5-V.bcmap +0 -0
- package/public/cmaps/B5pc-H.bcmap +0 -0
- package/public/cmaps/B5pc-V.bcmap +0 -0
- package/public/cmaps/CNS-EUC-H.bcmap +0 -0
- package/public/cmaps/CNS-EUC-V.bcmap +0 -0
- package/public/cmaps/CNS1-H.bcmap +0 -0
- package/public/cmaps/CNS1-V.bcmap +0 -0
- package/public/cmaps/CNS2-H.bcmap +0 -0
- package/public/cmaps/CNS2-V.bcmap +3 -0
- package/public/cmaps/ETHK-B5-H.bcmap +0 -0
- package/public/cmaps/ETHK-B5-V.bcmap +0 -0
- package/public/cmaps/ETen-B5-H.bcmap +0 -0
- package/public/cmaps/ETen-B5-V.bcmap +0 -0
- package/public/cmaps/ETenms-B5-H.bcmap +3 -0
- package/public/cmaps/ETenms-B5-V.bcmap +0 -0
- package/public/cmaps/EUC-H.bcmap +0 -0
- package/public/cmaps/EUC-V.bcmap +0 -0
- package/public/cmaps/Ext-H.bcmap +0 -0
- package/public/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/public/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/public/cmaps/Ext-V.bcmap +0 -0
- package/public/cmaps/GB-EUC-H.bcmap +0 -0
- package/public/cmaps/GB-EUC-V.bcmap +0 -0
- package/public/cmaps/GB-H.bcmap +4 -0
- package/public/cmaps/GB-V.bcmap +0 -0
- package/public/cmaps/GBK-EUC-H.bcmap +0 -0
- package/public/cmaps/GBK-EUC-V.bcmap +0 -0
- package/public/cmaps/GBK2K-H.bcmap +0 -0
- package/public/cmaps/GBK2K-V.bcmap +0 -0
- package/public/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/public/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/public/cmaps/GBT-EUC-H.bcmap +0 -0
- package/public/cmaps/GBT-EUC-V.bcmap +0 -0
- package/public/cmaps/GBT-H.bcmap +0 -0
- package/public/cmaps/GBT-V.bcmap +0 -0
- package/public/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/public/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/public/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/public/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/public/cmaps/H.bcmap +0 -0
- package/public/cmaps/HKdla-B5-H.bcmap +0 -0
- package/public/cmaps/HKdla-B5-V.bcmap +0 -0
- package/public/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/public/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/public/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/public/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/public/cmaps/HKm314-B5-H.bcmap +0 -0
- package/public/cmaps/HKm314-B5-V.bcmap +0 -0
- package/public/cmaps/HKm471-B5-H.bcmap +0 -0
- package/public/cmaps/HKm471-B5-V.bcmap +0 -0
- package/public/cmaps/HKscs-B5-H.bcmap +0 -0
- package/public/cmaps/HKscs-B5-V.bcmap +0 -0
- package/public/cmaps/Hankaku.bcmap +0 -0
- package/public/cmaps/Hiragana.bcmap +0 -0
- package/public/cmaps/KSC-EUC-H.bcmap +0 -0
- package/public/cmaps/KSC-EUC-V.bcmap +0 -0
- package/public/cmaps/KSC-H.bcmap +0 -0
- package/public/cmaps/KSC-Johab-H.bcmap +0 -0
- package/public/cmaps/KSC-Johab-V.bcmap +0 -0
- package/public/cmaps/KSC-V.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/public/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/public/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/public/cmaps/Katakana.bcmap +0 -0
- package/public/cmaps/LICENSE +36 -0
- package/public/cmaps/NWP-H.bcmap +0 -0
- package/public/cmaps/NWP-V.bcmap +0 -0
- package/public/cmaps/RKSJ-H.bcmap +0 -0
- package/public/cmaps/RKSJ-V.bcmap +0 -0
- package/public/cmaps/Roman.bcmap +0 -0
- package/public/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/public/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/public/cmaps/V.bcmap +0 -0
- package/public/cmaps/WP-Symbol.bcmap +0 -0
- package/public/favicon.ico +0 -0
- package/public/font/font_2530548_ikl5ryc86u.css +535 -0
- package/public/font/font_2530548_ikl5ryc86u.ttf +0 -0
- package/public/font/font_2530548_ikl5ryc86u.woff +0 -0
- package/public/font/font_2530548_ikl5ryc86u.woff2 +0 -0
- package/public/font/font_2612462_d2s6adyaymf.css +93 -0
- package/public/font/font_2612462_d2s6adyaymf.ttf +0 -0
- package/public/font/font_2612462_d2s6adyaymf.woff +0 -0
- package/public/font/font_2612462_d2s6adyaymf.woff2 +0 -0
- package/public/img/banner.png +0 -0
- package/public/img/icons/android-chrome-192x192.png +0 -0
- package/public/img/icons/android-chrome-512x512.png +0 -0
- package/public/img/icons/android-chrome-maskable-192x192.png +0 -0
- package/public/img/icons/android-chrome-maskable-512x512.png +0 -0
- package/public/img/icons/apple-touch-icon-120x120.png +0 -0
- package/public/img/icons/apple-touch-icon-152x152.png +0 -0
- package/public/img/icons/apple-touch-icon-180x180.png +0 -0
- package/public/img/icons/apple-touch-icon-60x60.png +0 -0
- package/public/img/icons/apple-touch-icon-76x76.png +0 -0
- package/public/img/icons/apple-touch-icon.png +0 -0
- package/public/img/icons/favicon-16x16.png +0 -0
- package/public/img/icons/favicon-32x32.png +0 -0
- package/public/img/icons/msapplication-icon-144x144.png +0 -0
- package/public/img/icons/mstile-150x150.png +0 -0
- package/public/img/icons/safari-pinned-tab.svg +149 -0
- package/public/img/success.png +0 -0
- package/public/img/tip.png +0 -0
- package/public/index.html +132 -0
- package/public/js/babel-standalone.min.js +25 -0
- package/public/js/config.js +0 -0
- package/public/js/jquery-3.6.0.min.js +2 -0
- package/public/js/pdf.worker.js +45929 -0
- package/public/js/signature_pad.min.js +6 -0
- package/public/js/tinymce/icons/default/icons.js +170 -0
- package/public/js/tinymce/icons/default/icons.min.js +1 -0
- package/public/js/tinymce/jquery.tinymce.min.js +92 -0
- package/public/js/tinymce/langs/readme.md +3 -0
- package/public/js/tinymce/langs/zh_CN.js +419 -0
- package/public/js/tinymce/license.txt +504 -0
- package/public/js/tinymce/plugins/advlist/plugin.js +281 -0
- package/public/js/tinymce/plugins/advlist/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/anchor/plugin.js +216 -0
- package/public/js/tinymce/plugins/anchor/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/autolink/plugin.js +185 -0
- package/public/js/tinymce/plugins/autolink/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/autoresize/plugin.js +171 -0
- package/public/js/tinymce/plugins/autoresize/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/autosave/plugin.js +214 -0
- package/public/js/tinymce/plugins/autosave/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/bbcode/plugin.js +99 -0
- package/public/js/tinymce/plugins/bbcode/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/charmap/plugin.js +1706 -0
- package/public/js/tinymce/plugins/charmap/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/code/plugin.js +92 -0
- package/public/js/tinymce/plugins/code/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/codesample/plugin.js +1717 -0
- package/public/js/tinymce/plugins/codesample/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/colorpicker/plugin.js +22 -0
- package/public/js/tinymce/plugins/colorpicker/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/contextmenu/plugin.js +22 -0
- package/public/js/tinymce/plugins/contextmenu/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/data/plugin.min.js +209 -0
- package/public/js/tinymce/plugins/directionality/plugin.js +314 -0
- package/public/js/tinymce/plugins/directionality/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
- package/public/js/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/public/js/tinymce/plugins/emoticons/js/emojis.js +9423 -0
- package/public/js/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
- package/public/js/tinymce/plugins/emoticons/plugin.js +564 -0
- package/public/js/tinymce/plugins/emoticons/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/fullpage/plugin.js +544 -0
- package/public/js/tinymce/plugins/fullpage/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/fullscreen/plugin.js +851 -0
- package/public/js/tinymce/plugins/fullscreen/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/help/plugin.js +846 -0
- package/public/js/tinymce/plugins/help/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/hr/plugin.js +46 -0
- package/public/js/tinymce/plugins/hr/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/image/plugin.js +1660 -0
- package/public/js/tinymce/plugins/image/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/imagetools/plugin.js +1304 -0
- package/public/js/tinymce/plugins/imagetools/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/importcss/plugin.js +337 -0
- package/public/js/tinymce/plugins/importcss/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/insertdatetime/plugin.js +177 -0
- package/public/js/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/legacyoutput/plugin.js +199 -0
- package/public/js/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/link/plugin.js +1219 -0
- package/public/js/tinymce/plugins/link/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/lists/plugin.js +2163 -0
- package/public/js/tinymce/plugins/lists/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/media/plugin.js +1315 -0
- package/public/js/tinymce/plugins/media/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/nonbreaking/plugin.js +101 -0
- package/public/js/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/noneditable/plugin.js +117 -0
- package/public/js/tinymce/plugins/noneditable/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/pagebreak/plugin.js +107 -0
- package/public/js/tinymce/plugins/pagebreak/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/pagelink/plugin.min.js +171 -0
- package/public/js/tinymce/plugins/paper/plugin.min.js +80 -0
- package/public/js/tinymce/plugins/paste/plugin.js +1707 -0
- package/public/js/tinymce/plugins/paste/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/preview/plugin.js +127 -0
- package/public/js/tinymce/plugins/preview/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/print/plugin.js +53 -0
- package/public/js/tinymce/plugins/print/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/quickbars/plugin.js +488 -0
- package/public/js/tinymce/plugins/quickbars/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/save/plugin.js +119 -0
- package/public/js/tinymce/plugins/save/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/searchreplace/plugin.js +1167 -0
- package/public/js/tinymce/plugins/searchreplace/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/spellchecker/plugin.js +737 -0
- package/public/js/tinymce/plugins/spellchecker/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/tabfocus/plugin.js +128 -0
- package/public/js/tinymce/plugins/tabfocus/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/table/plugin.min.js +9805 -0
- package/public/js/tinymce/plugins/table/plugin.min.js1 +9 -0
- package/public/js/tinymce/plugins/template/plugin.js +562 -0
- package/public/js/tinymce/plugins/template/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/textattribute/plugin.min.js +76 -0
- package/public/js/tinymce/plugins/textcolor/plugin.js +22 -0
- package/public/js/tinymce/plugins/textcolor/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/textpattern/plugin.js +1392 -0
- package/public/js/tinymce/plugins/textpattern/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/toc/plugin.js +235 -0
- package/public/js/tinymce/plugins/toc/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/visualblocks/plugin.js +104 -0
- package/public/js/tinymce/plugins/visualblocks/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/visualchars/plugin.js +541 -0
- package/public/js/tinymce/plugins/visualchars/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/wordcount/plugin.js +416 -0
- package/public/js/tinymce/plugins/wordcount/plugin.min.js +9 -0
- package/public/js/tinymce/readme.md +77 -0
- package/public/js/tinymce/skins/content/dark/content.css +59 -0
- package/public/js/tinymce/skins/content/dark/content.min.css +7 -0
- package/public/js/tinymce/skins/content/dark/content.min.css.map +1 -0
- package/public/js/tinymce/skins/content/default/content.css +49 -0
- package/public/js/tinymce/skins/content/default/content.min.css +7 -0
- package/public/js/tinymce/skins/content/default/content.min.css.map +1 -0
- package/public/js/tinymce/skins/content/document/content.css +54 -0
- package/public/js/tinymce/skins/content/document/content.min.css +7 -0
- package/public/js/tinymce/skins/content/document/content.min.css.map +1 -0
- package/public/js/tinymce/skins/content/writer/content.css +50 -0
- package/public/js/tinymce/skins/content/writer/content.min.css +7 -0
- package/public/js/tinymce/skins/content/writer/content.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/content.css +693 -0
- package/public/js/tinymce/skins/ui/oxide/content.inline.css +687 -0
- package/public/js/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/content.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/public/js/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/content.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/public/js/tinymce/skins/ui/oxide/skin.css +2937 -0
- package/public/js/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/skin.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/public/js/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/skin.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.css +675 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.inline.css +687 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.css +2937 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/public/js/tinymce/themes/mobile/theme.js +13612 -0
- package/public/js/tinymce/themes/mobile/theme.min.js +9 -0
- package/public/js/tinymce/themes/silver/theme.js +31769 -0
- package/public/js/tinymce/themes/silver/theme.min.js +9 -0
- package/public/js/tinymce/tinymce.d.ts +2916 -0
- package/public/js/tinymce/tinymce.min.js +9 -0
- package/public/luckysheet/iconfont.css +456 -0
- package/public/luckysheet/luckysheet.css +1 -0
- package/public/luckysheet/luckysheet.umd.js +27 -0
- package/public/luckysheet/plugin.js +1 -0
- package/public/luckysheet/plugins.css +10 -0
- package/public/luckysheet/pluginsCss.css +1 -0
- package/public/robots.txt +2 -0
- package/public/signature.html +445 -0
- package/sh.exe.stackdump +11 -0
- package/src/App.vue +31 -0
- package/src/api/README.md +1 -0
- package/src/api/config.js +187 -0
- package/src/api/createHttp.js +160 -0
- package/src/api/index.js +32 -0
- package/src/assets/bdrz/banlizhong.png +0 -0
- package/src/assets/bdrz/chenggong.png +0 -0
- package/src/assets/bdrz/danwei.png +0 -0
- package/src/assets/bdrz/hedui.png +0 -0
- package/src/assets/bdrz/laoziguanli.png +0 -0
- package/src/assets/bdrz/location.png +0 -0
- package/src/assets/bdrz/locationl.png +0 -0
- package/src/assets/bdrz/phone.png +0 -0
- package/src/assets/bdrz/phonel.png +0 -0
- package/src/assets/bdrz/shouzhi.png +0 -0
- package/src/assets/bdrz/time.png +0 -0
- package/src/assets/bdrz/timel.png +0 -0
- package/src/assets/bdrz/wancheng.png +0 -0
- package/src/assets/bdrz/zuobiao.png +0 -0
- package/src/assets/customTranslate/customTranslate.js +13 -0
- package/src/assets/customTranslate/translations.js +218 -0
- package/src/assets/data/card.png +0 -0
- package/src/assets/data/code.png +0 -0
- package/src/assets/home/apply.png +0 -0
- package/src/assets/home/banner1.png +0 -0
- package/src/assets/home/banner11.png +0 -0
- package/src/assets/home/banner12.png +0 -0
- package/src/assets/home/banner2.png +0 -0
- package/src/assets/home/banner3.png +0 -0
- package/src/assets/home/benke.png +0 -0
- package/src/assets/home/chengguo.png +0 -0
- package/src/assets/home/gaojirencaisousuo.png +0 -0
- package/src/assets/home/hangyebiaozhun.png +0 -0
- package/src/assets/home/huojiang.png +0 -0
- package/src/assets/home/icon-test.png +0 -0
- package/src/assets/home/kaoshi.png +0 -0
- package/src/assets/home/kejichengguo.png +0 -0
- package/src/assets/home/keyanxiangmu.png +0 -0
- package/src/assets/home/lunwendao.png +0 -0
- package/src/assets/home/message.png +0 -0
- package/src/assets/home/my-yanjiubaogao.png +0 -0
- package/src/assets/home/nodata.png +0 -0
- package/src/assets/home/people.png +0 -0
- package/src/assets/home/qita.png +0 -0
- package/src/assets/home/schoollogo.png +0 -0
- package/src/assets/home/search.png +0 -0
- package/src/assets/home/shenbaoguanli.png +0 -0
- package/src/assets/home/shouye.png +0 -0
- package/src/assets/home/title.png +0 -0
- package/src/assets/home/todo.png +0 -0
- package/src/assets/home/wave0.png +0 -0
- package/src/assets/home/wave1.png +0 -0
- package/src/assets/home/wave2.png +0 -0
- package/src/assets/home/wodeshuju(1).png +0 -0
- package/src/assets/home/xinxizhongxin.png +0 -0
- package/src/assets/home/yanjiusheng.png +0 -0
- package/src/assets/home/yeji.png +0 -0
- package/src/assets/home/zhengjiuniandukaohe.png +0 -0
- package/src/assets/home/zhengshu.png +0 -0
- package/src/assets/home/zhidao.png +0 -0
- package/src/assets/home/zhuanli.png +0 -0
- package/src/assets/home/zhuanye.png +0 -0
- package/src/assets/home/zhuzuoquan.png +0 -0
- package/src/assets/images/add.png +0 -0
- package/src/assets/images/app.png +0 -0
- package/src/assets/images/apply_bg.png +0 -0
- package/src/assets/images/auto.png +0 -0
- package/src/assets/images/book.png +0 -0
- package/src/assets/images/clear.png +0 -0
- package/src/assets/images/contact_bg.png +0 -0
- package/src/assets/images/data/benke.png +0 -0
- package/src/assets/images/data/chengguo.png +0 -0
- package/src/assets/images/data/chubanwu.png +0 -0
- package/src/assets/images/data/erjidanwei.png +0 -0
- package/src/assets/images/data/hangyebiaozhun.png +0 -0
- package/src/assets/images/data/huojiang(1).png +0 -0
- package/src/assets/images/data/huojiang(2).png +0 -0
- package/src/assets/images/data/icon-test.png +0 -0
- package/src/assets/images/data/jianzhi.png +0 -0
- package/src/assets/images/data/jiaozhigong.png +0 -0
- package/src/assets/images/data/keyanxiangmu.png +0 -0
- package/src/assets/images/data/keyanxiangmu/346/213/267/350/264/2352.png +0 -0
- package/src/assets/images/data/lunwen(1).png +0 -0
- package/src/assets/images/data/lunwendao.png +0 -0
- package/src/assets/images/data/lunwendao/346/213/267/350/264/2352.png +0 -0
- package/src/assets/images/data/pingtai.png +0 -0
- package/src/assets/images/data/pingtai/346/213/267/350/264/235.png +0 -0
- package/src/assets/images/data/shengbujijiaoxuechengguojiang.png +0 -0
- package/src/assets/images/data/wudachengguozhuanhuazhongxin.png +0 -0
- package/src/assets/images/data/xueke(1).png +0 -0
- package/src/assets/images/data/yanjiusheng.png +0 -0
- package/src/assets/images/data/zhidao.png +0 -0
- package/src/assets/images/data/zhuanli.png +0 -0
- package/src/assets/images/data/zhuzuoquan.png +0 -0
- package/src/assets/images/error.png +0 -0
- package/src/assets/images/file.png +0 -0
- package/src/assets/images/hall_banner.png +0 -0
- package/src/assets/images/hr.png +0 -0
- package/src/assets/images/index/benke.png +0 -0
- package/src/assets/images/index/chengguo.png +0 -0
- package/src/assets/images/index/gaojirencaisousuo.png +0 -0
- package/src/assets/images/index/hangyebiaozhun.png +0 -0
- package/src/assets/images/index/huojiang.png +0 -0
- package/src/assets/images/index/icon-test.png +0 -0
- package/src/assets/images/index/kaoshi.png +0 -0
- package/src/assets/images/index/kejichengguo.png +0 -0
- package/src/assets/images/index/keyanxiangmu.png +0 -0
- package/src/assets/images/index/lunwendao.png +0 -0
- package/src/assets/images/index/my-yanjiubaogao.png +0 -0
- package/src/assets/images/index/qita.png +0 -0
- package/src/assets/images/index/shenbaoguanli.png +0 -0
- package/src/assets/images/index/wodeshuju(1).png +0 -0
- package/src/assets/images/index/xinxizhongxin.png +0 -0
- package/src/assets/images/index/yanjiusheng.png +0 -0
- package/src/assets/images/index/yeji.png +0 -0
- package/src/assets/images/index/zhengjiuniandukaohe.png +0 -0
- package/src/assets/images/index/zhengshu.png +0 -0
- package/src/assets/images/index/zhidao.png +0 -0
- package/src/assets/images/index/zhuanli.png +0 -0
- package/src/assets/images/index/zhuanye.png +0 -0
- package/src/assets/images/index/zhuzuoquan.png +0 -0
- package/src/assets/images/index//344/270/232/345/212/241/347/224/263/346/212/245/344/270/200/347/253/231/345/274/217/345/212/236/347/220/206.png +0 -0
- package/src/assets/images/index//345/276/205/345/212/236.png +0 -0
- package/src/assets/images/index//346/244/255/345/234/2064/346/213/267/350/264/2355.png +0 -0
- package/src/assets/images/index//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
- package/src/assets/images/index//346/266/210/346/201/257.png +0 -0
- package/src/assets/images/index//347/224/263/350/257/267.png +0 -0
- package/src/assets/images/index//351/273/230/350/256/244/345/255/246/346/240/241logo.png +0 -0
- package/src/assets/images/jian.png +0 -0
- package/src/assets/images/login.jpg +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/m_hall_banner.png +0 -0
- package/src/assets/images/mlogin.png +0 -0
- package/src/assets/images/module.png +0 -0
- package/src/assets/images/offical/111.png +0 -0
- package/src/assets/images/offical/haiwaigaocengcirencai.png +0 -0
- package/src/assets/images/offical/jiaoxue(1).png +0 -0
- package/src/assets/images/offical/niandukaohe-weikaohe.png +0 -0
- package/src/assets/images/offical/pinqikaohe.png +0 -0
- package/src/assets/images/offical/renshiguanlixinxi_yingongchuguo.png +0 -0
- package/src/assets/images/offical/shengbujijiaoxuechengguojiang.png +0 -0
- package/src/assets/images/offical/shujucaiji.png +0 -0
- package/src/assets/images/offical/yeji(1).png +0 -0
- package/src/assets/images/offical/zhuanye.png +0 -0
- package/src/assets/images/offical//345/244/232/350/276/271/345/275/2421/346/213/267/350/264/23510.png +0 -0
- package/src/assets/images/qq.png +0 -0
- package/src/assets/images/role_select.png +0 -0
- package/src/assets/images/staff.png +0 -0
- package/src/assets/images/success.png +0 -0
- package/src/assets/images/theme/aurorablue.png +0 -0
- package/src/assets/images/theme/classicblue.png +0 -0
- package/src/assets/images/theme/deepblue.png +0 -0
- package/src/assets/images/theme/forestgreen.png +0 -0
- package/src/assets/images/theme/orange.png +0 -0
- package/src/assets/images/theme/palevioletred.png +0 -0
- package/src/assets/images/theme/purple.png +0 -0
- package/src/assets/images/theme/skyblue.png +0 -0
- package/src/assets/images/theme/tiffanyblue.png +0 -0
- package/src/assets/images/user_bg.png +0 -0
- package/src/assets/images/weixin.png +0 -0
- package/src/assets/login/bgimg.jpg +0 -0
- package/src/assets/moren.png +0 -0
- package/src/assets/wage/baseBanner.png +0 -0
- package/src/frame/base/AppModuleTreeFind.vue +51 -0
- package/src/frame/base/AttributeSubAdd.vue +29 -0
- package/src/frame/base/ChooseApplication.vue +176 -0
- package/src/frame/base/ChooseApplicationSet.vue +165 -0
- package/src/frame/base/ClientAppItem.vue +217 -0
- package/src/frame/base/ClientApplication.vue +446 -0
- package/src/frame/base/ClientApplicationList.vue +180 -0
- package/src/frame/base/ClientModule.vue +65 -0
- package/src/frame/base/ClientModuleIndex.vue +413 -0
- package/src/frame/base/ClientTreePage.vue +29 -0
- package/src/frame/base/ConfigModuleIndex.vue +82 -0
- package/src/frame/base/CurrentClientApplication.vue +33 -0
- package/src/frame/base/DeptTreeFind.vue +51 -0
- package/src/frame/base/EntityList.vue +71 -0
- package/src/frame/base/ModuleTreeFind.vue +51 -0
- package/src/frame/base/PageList.vue +47 -0
- package/src/frame/base/PermissManage.vue +95 -0
- package/src/frame/base/RoleAccredit.vue +961 -0
- package/src/frame/base/ServiceAccredit.vue +956 -0
- package/src/frame/base/ServiceMenu.vue +380 -0
- package/src/frame/base/ServiceOperate.vue +929 -0
- package/src/frame/base/ServiceTreePage.vue +31 -0
- package/src/frame/components/AddUsedInterface.vue +154 -0
- package/src/frame/components/Alert.vue +35 -0
- package/src/frame/components/AppList.vue +254 -0
- package/src/frame/components/Apply/ApplyIndex.vue +207 -0
- package/src/frame/components/AttributeList.vue +612 -0
- package/src/frame/components/Banner.vue +25 -0
- package/src/frame/components/CardO.vue +112 -0
- package/src/frame/components/CheckForm.vue +20 -0
- package/src/frame/components/ClientAdminFormItem.vue +49 -0
- package/src/frame/components/ClientFormItem.vue +45 -0
- package/src/frame/components/ClientList.vue +135 -0
- package/src/frame/components/CodeDetail.vue +374 -0
- package/src/frame/components/CodeManage.vue +755 -0
- package/src/frame/components/ComponentFind.vue +356 -0
- package/src/frame/components/ComponentList.vue +521 -0
- package/src/frame/components/ConfigParamFormItem.vue +193 -0
- package/src/frame/components/CreatePage.vue +329 -0
- package/src/frame/components/DataLog.vue +91 -0
- package/src/frame/components/DblogList.vue +158 -0
- package/src/frame/components/DeptFind.vue +126 -0
- package/src/frame/components/DropDown/DropDownMenu.vue +267 -0
- package/src/frame/components/DropDown/DropDownMenuItem.vue +489 -0
- package/src/frame/components/DynamicUserList.vue +69 -0
- package/src/frame/components/EditListTable.vue +774 -0
- package/src/frame/components/EntityCheckboxFind.vue +88 -0
- package/src/frame/components/EntityRelationAdd.vue +201 -0
- package/src/frame/components/EntityRelationAddFormItem.vue +100 -0
- package/src/frame/components/EntityRightFormItem.vue +616 -0
- package/src/frame/components/EntityRightSubList.vue +588 -0
- package/src/frame/components/EntityTreeManage.vue +852 -0
- package/src/frame/components/EntityViewFields.vue +401 -0
- package/src/frame/components/EntityViewSubList.vue +976 -0
- package/src/frame/components/ExportSystemConfig.vue +103 -0
- package/src/frame/components/FieldAddFormItem.vue +35 -0
- package/src/frame/components/Footer.vue +120 -0
- package/src/frame/components/FormulaEditor.vue +1216 -0
- package/src/frame/components/HallNav.vue +450 -0
- package/src/frame/components/HeaderNav.vue +417 -0
- package/src/frame/components/IconCard.vue +158 -0
- package/src/frame/components/IconFontLibrary.vue +59 -0
- package/src/frame/components/IconFontList.vue +75 -0
- package/src/frame/components/IdentifyList.vue +33 -0
- package/src/frame/components/ImportSystemConfig.vue +206 -0
- package/src/frame/components/InterfaceSubList.vue +295 -0
- package/src/frame/components/JsPanel.vue +103 -0
- package/src/frame/components/LanguageImportPage.vue +598 -0
- package/src/frame/components/LanguageSetting.vue +449 -0
- package/src/frame/components/List/LinkItem.vue +98 -0
- package/src/frame/components/List/List.vue +17 -0
- package/src/frame/components/List/ListItem.vue +52 -0
- package/src/frame/components/ListTable.vue +796 -0
- package/src/frame/components/MEntitySubList.vue +199 -0
- package/src/frame/components/MenuTreeFind.vue +107 -0
- package/src/frame/components/MessageList.vue +137 -0
- package/src/frame/components/MessageRuleFormItem.vue +61 -0
- package/src/frame/components/MessageRuleReceiverFormItem.vue +173 -0
- package/src/frame/components/MessageTemplate.vue +791 -0
- package/src/frame/components/MetaList.vue +65 -0
- package/src/frame/components/Mine.vue +114 -0
- package/src/frame/components/Nav.vue +599 -0
- package/src/frame/components/NavFormCatalogItem.vue +9 -0
- package/src/frame/components/NumList.vue +108 -0
- package/src/frame/components/OperateLog.vue +168 -0
- package/src/frame/components/PageCatalog.vue +454 -0
- package/src/frame/components/PageChart.vue +306 -0
- package/src/frame/components/PageSwipes.vue +179 -0
- package/src/frame/components/PersonFormItem.vue +92 -0
- package/src/frame/components/Popup.vue +181 -0
- package/src/frame/components/PrintFormList.vue +495 -0
- package/src/frame/components/PublishEntity.vue +87 -0
- package/src/frame/components/ReportFormList.vue +247 -0
- package/src/frame/components/ReportList.vue +493 -0
- package/src/frame/components/RightSubList.vue +253 -0
- package/src/frame/components/RoleAddUser.vue +50 -0
- package/src/frame/components/RoleApplicationCard.vue +299 -0
- package/src/frame/components/RoleApplicationList.vue +766 -0
- package/src/frame/components/RoleApplicationSet.vue +845 -0
- package/src/frame/components/RuleText.vue +98 -0
- package/src/frame/components/Search.vue +270 -0
- package/src/frame/components/ServiceFormItem.vue +29 -0
- package/src/frame/components/SubAdd.vue +0 -0
- package/src/frame/components/SystemNav.vue +18 -0
- package/src/frame/components/TaskNumCard.vue +26 -0
- package/src/frame/components/TimerRuleFormItem.vue +227 -0
- package/src/frame/components/TodoList.vue +429 -0
- package/src/frame/components/UpdateSystemConfig.vue +186 -0
- package/src/frame/components/UserCard.vue +110 -0
- package/src/frame/components/UserFind.vue +438 -0
- package/src/frame/components/UserFormItem.vue +666 -0
- package/src/frame/components/UserList.vue +17 -0
- package/src/frame/components/UserManage.vue +716 -0
- package/src/frame/components/ValidateRuleFormItem.vue +40 -0
- package/src/frame/components/ViewFieldDefine.vue +554 -0
- package/src/frame/components/attribute/Form.vue +439 -0
- package/src/frame/components/authorization/AddApiPermiss.vue +179 -0
- package/src/frame/components/authorization/AddAuthorization.vue +135 -0
- package/src/frame/components/authorization/AddEntityFind.vue +68 -0
- package/src/frame/components/authorization/AddNoApi.vue +143 -0
- package/src/frame/components/authorization/AddRoleScope.vue +291 -0
- package/src/frame/components/authorization/ApiShareOtherList.vue +353 -0
- package/src/frame/components/authorization/ApiSystemList.vue +315 -0
- package/src/frame/components/authorization/AuthorizationRoleSystem.vue +213 -0
- package/src/frame/components/authorization/EntityConstraintFormItem.vue +255 -0
- package/src/frame/components/authorization/OtherShareApiList.vue +248 -0
- package/src/frame/components/authorization/PermissRoleAuthorization.vue +583 -0
- package/src/frame/components/authorization/PermissRoleTabs.vue +117 -0
- package/src/frame/components/authorization/RoleLevel.vue +113 -0
- package/src/frame/components/authorization/RoleLevelScope.vue +247 -0
- package/src/frame/components/card/CardList.vue +78 -0
- package/src/frame/components/card/CardListItem.vue +147 -0
- package/src/frame/components/card/Title.vue +38 -0
- package/src/frame/components/chart/CircularPie.vue +11 -0
- package/src/frame/components/chart/Column.vue +11 -0
- package/src/frame/components/chart/HoriColumn.vue +11 -0
- package/src/frame/components/chart/Line.vue +11 -0
- package/src/frame/components/chart/Pie.vue +11 -0
- package/src/frame/components/custom-bpmn/CustomContextPad.js +58 -0
- package/src/frame/components/custom-bpmn/CustomPalette.js +257 -0
- package/src/frame/components/custom-bpmn/CustomRenderer.js +115 -0
- package/src/frame/components/custom-bpmn/CustomRendererBpmn.js +45 -0
- package/src/frame/components/custom-bpmn/PropertiesView.vue +4046 -0
- package/src/frame/components/custom-bpmn/img/chaxun.png +0 -0
- package/src/frame/components/custom-bpmn/img/fasong.png +0 -0
- package/src/frame/components/custom-bpmn/img/gengxin.png +0 -0
- package/src/frame/components/custom-bpmn/img/jiagong.png +0 -0
- package/src/frame/components/custom-bpmn/img/jiekou.png +0 -0
- package/src/frame/components/custom-bpmn/img/shanchu.png +0 -0
- package/src/frame/components/custom-bpmn/img/tongbu.png +0 -0
- package/src/frame/components/custom-bpmn/img/xinzeng.png +0 -0
- package/src/frame/components/custom-bpmn/img/xunhuanend.png +0 -0
- package/src/frame/components/custom-bpmn/img/xunhuanstart.png +0 -0
- package/src/frame/components/custom-bpmn/img/ywgz.png +0 -0
- package/src/frame/components/custom-bpmn/index.js +6 -0
- package/src/frame/components/custom-bpmn/palette.js +18 -0
- package/src/frame/components/custom-bpmn/util.js +5 -0
- package/src/frame/components/expand/AddForm.vue +91 -0
- package/src/frame/components/expand/AddFormItem.vue +144 -0
- package/src/frame/components/filter/Filter.vue +744 -0
- package/src/frame/components/filter/FilterItem.vue +516 -0
- package/src/frame/components/form/Cascader.vue +79 -0
- package/src/frame/components/form/CheckBox.vue +88 -0
- package/src/frame/components/form/Date.vue +154 -0
- package/src/frame/components/form/DateRange.vue +108 -0
- package/src/frame/components/form/Field.vue +91 -0
- package/src/frame/components/form/File.vue +415 -0
- package/src/frame/components/form/FormItem.vue +128 -0
- package/src/frame/components/form/Hidden.vue +77 -0
- package/src/frame/components/form/Input.vue +123 -0
- package/src/frame/components/form/List.vue +149 -0
- package/src/frame/components/form/Object.vue +225 -0
- package/src/frame/components/form/Photo.vue +235 -0
- package/src/frame/components/form/Textarea.vue +133 -0
- package/src/frame/components/grid/Module.vue +63 -0
- package/src/frame/components/grid/ModuleItem.vue +205 -0
- package/src/frame/components/hall/AppCollect.vue +189 -0
- package/src/frame/components/hall/AppList.vue +407 -0
- package/src/frame/components/hall/AppVisitRecord.vue +170 -0
- package/src/frame/components/hall/Banner.vue +21 -0
- package/src/frame/components/hall/ServiceCard.vue +202 -0
- package/src/frame/components/hall/UserCard.vue +112 -0
- package/src/frame/components/mscope/Scope.vue +90 -0
- package/src/frame/components/mscope/ScopeItem.vue +372 -0
- package/src/frame/components/mscope/drawer.vue +43 -0
- package/src/frame/components/permiss/AddApi.vue +119 -0
- package/src/frame/components/permiss/AddNoEntityApi.vue +131 -0
- package/src/frame/components/permiss/AddSystemPermiss.vue +107 -0
- package/src/frame/components/permiss/AllocateRole.vue +107 -0
- package/src/frame/components/permiss/ApiSubList.vue +193 -0
- package/src/frame/components/permiss/FieldScope.vue +138 -0
- package/src/frame/components/permiss/ListTable.vue +842 -0
- package/src/frame/components/permiss/PermissEdit.vue +61 -0
- package/src/frame/components/permiss/PermissManage.vue +96 -0
- package/src/frame/components/permiss/PermissManageAdd.vue +203 -0
- package/src/frame/components/permiss/RoleMenu.vue +405 -0
- package/src/frame/components/permiss/RoleSubList.vue +264 -0
- package/src/frame/components/permiss/jurisdiction.vue +425 -0
- package/src/frame/components/report/ChartLine.vue +253 -0
- package/src/frame/components/report/ChartPie.vue +345 -0
- package/src/frame/components/report/Config.vue +709 -0
- package/src/frame/components/report/Design.vue +2783 -0
- package/src/frame/components/report/Index.vue +115 -0
- package/src/frame/components/report/ReportTable.vue +1051 -0
- package/src/frame/components/report/StatList.vue +229 -0
- package/src/frame/components/right/RoleDataList.vue +291 -0
- package/src/frame/components/right/RoleFieldList.vue +348 -0
- package/src/frame/components/scope/Scope.vue +497 -0
- package/src/frame/components/scope/ScopeDrawer.vue +195 -0
- package/src/frame/components/scope/ScopeItem.vue +973 -0
- package/src/frame/components/task-list/TaskList.vue +617 -0
- package/src/frame/components/task-list/Visual.vue +45 -0
- package/src/frame/components/task-list/index.js +3 -0
- package/src/frame/components/task-list-page/TaskListPage.vue +26 -0
- package/src/frame/components/task-list-page/index.js +8 -0
- package/src/frame/components/upLoad.vue +69 -0
- package/src/frame/components/viewport/LookViewList.vue +28 -0
- package/src/frame/components/viewport/ViewAddForm.vue +151 -0
- package/src/frame/components/viewport/ViewDefineList.vue +53 -0
- package/src/frame/components/viewport/ViewFiedList.vue +646 -0
- package/src/frame/components/viewport/ViewScope.vue +109 -0
- package/src/frame/index.js +37 -0
- package/src/frame/packages/add-form/AddForm.vue +2128 -0
- package/src/frame/packages/add-form/Preview.vue +312 -0
- package/src/frame/packages/add-form/index.js +8 -0
- package/src/frame/packages/add-form-item/AddFormItem.vue +446 -0
- package/src/frame/packages/add-form-item/Preview.vue +92 -0
- package/src/frame/packages/add-form-item/index.js +8 -0
- package/src/frame/packages/alter/Alert.vue +42 -0
- package/src/frame/packages/alter/Visual.vue +58 -0
- package/src/frame/packages/alter/index.js +8 -0
- package/src/frame/packages/app-index/AppIndex.vue +188 -0
- package/src/frame/packages/app-index/index.js +8 -0
- package/src/frame/packages/app-nav/AppNav.vue +1553 -0
- package/src/frame/packages/app-nav/Preview.vue +13 -0
- package/src/frame/packages/app-nav/index.js +8 -0
- package/src/frame/packages/app-tabs/Tabs.vue +121 -0
- package/src/frame/packages/app-tabs/index.js +8 -0
- package/src/frame/packages/apply-form/ApplyForm.vue +68 -0
- package/src/frame/packages/apply-form/index.js +3 -0
- package/src/frame/packages/approval-index/ApprovalIndex.vue +465 -0
- package/src/frame/packages/approval-index/index.js +8 -0
- package/src/frame/packages/approval-index-page/ApprovalIndexPage.vue +21 -0
- package/src/frame/packages/approval-index-page/index.js +8 -0
- package/src/frame/packages/base-page/BasePage.vue +221 -0
- package/src/frame/packages/base-page/index.js +8 -0
- package/src/frame/packages/button/Button.vue +47 -0
- package/src/frame/packages/button/Preview.vue +33 -0
- package/src/frame/packages/button/index.js +8 -0
- package/src/frame/packages/card/Card.vue +291 -0
- package/src/frame/packages/card/index.js +8 -0
- package/src/frame/packages/card-form-item/CardFormItem.vue +301 -0
- package/src/frame/packages/card-form-item/Visual.vue +101 -0
- package/src/frame/packages/card-form-item/index.js +3 -0
- package/src/frame/packages/category-list/CategoryList.vue +854 -0
- package/src/frame/packages/category-list/index.js +8 -0
- package/src/frame/packages/chart/Chart.vue +124 -0
- package/src/frame/packages/chart/ChartColumn.vue +365 -0
- package/src/frame/packages/chart/ChartFormItem.vue +241 -0
- package/src/frame/packages/chart/ChartLine.vue +317 -0
- package/src/frame/packages/chart/ChartPie.vue +384 -0
- package/src/frame/packages/chart/Funnel.vue +379 -0
- package/src/frame/packages/chart/ReportTable.vue +1139 -0
- package/src/frame/packages/chart/index.js +23 -0
- package/src/frame/packages/check-history/CheckHistory.vue +510 -0
- package/src/frame/packages/check-history/Steps.vue +213 -0
- package/src/frame/packages/check-history/index.js +8 -0
- package/src/frame/packages/component/Component.vue +16 -0
- package/src/frame/packages/component/index.js +8 -0
- package/src/frame/packages/contacts/Card.vue +133 -0
- package/src/frame/packages/contacts/Contacts.vue +167 -0
- package/src/frame/packages/contacts/index.js +8 -0
- package/src/frame/packages/edit-entity-list/EditEntityList.vue +108 -0
- package/src/frame/packages/entity-add-page/EntityAddPage.vue +100 -0
- package/src/frame/packages/entity-add-page/index.js +8 -0
- package/src/frame/packages/entity-apply-page/EntityApplyPage.vue +60 -0
- package/src/frame/packages/entity-apply-page/index.js +3 -0
- package/src/frame/packages/entity-list/Config.vue +275 -0
- package/src/frame/packages/entity-list/EntityList.scss +88 -0
- package/src/frame/packages/entity-list/EntityList.vue +2105 -0
- package/src/frame/packages/entity-list/Preview.vue +232 -0
- package/src/frame/packages/entity-list/components/EditField.vue +76 -0
- package/src/frame/packages/entity-list/components/Field.vue +166 -0
- package/src/frame/packages/entity-list/config.js +0 -0
- package/src/frame/packages/entity-list/index.js +20 -0
- package/src/frame/packages/entity-list-find/EntityListFind.vue +161 -0
- package/src/frame/packages/entity-list-find/index.js +8 -0
- package/src/frame/packages/entity-list-find-page/EntityListFindPage.vue +72 -0
- package/src/frame/packages/entity-list-find-page/index.js +8 -0
- package/src/frame/packages/entity-list-page/EntityListPage.vue +91 -0
- package/src/frame/packages/entity-list-page/index.js +8 -0
- package/src/frame/packages/entity-no-submit-sub-list/EntityNoSubmitSubList.vue +302 -0
- package/src/frame/packages/entity-no-submit-sub-list/index.js +8 -0
- package/src/frame/packages/entity-sub-grid/EntitySubGrid.vue +46 -0
- package/src/frame/packages/entity-sub-grid/EntitySubGridItem.vue +68 -0
- package/src/frame/packages/entity-sub-grid/index.js +13 -0
- package/src/frame/packages/entity-sub-list/EntitySubList.vue +418 -0
- package/src/frame/packages/entity-sub-list/index.js +8 -0
- package/src/frame/packages/entity-tree-find/EntitytTreeFind.vue +460 -0
- package/src/frame/packages/entity-tree-find/index.js +8 -0
- package/src/frame/packages/entity-tree-find-page/EntityTreeFindPage.vue +29 -0
- package/src/frame/packages/entity-tree-find-page/index.js +8 -0
- package/src/frame/packages/export/Export.vue +530 -0
- package/src/frame/packages/export/index.js +8 -0
- package/src/frame/packages/footer/Footer.vue +142 -0
- package/src/frame/packages/footer/index.js +3 -0
- package/src/frame/packages/form/Form.vue +611 -0
- package/src/frame/packages/form/index.js +8 -0
- package/src/frame/packages/form-item/CheckBox.vue +160 -0
- package/src/frame/packages/form-item/Color.vue +135 -0
- package/src/frame/packages/form-item/Date.vue +330 -0
- package/src/frame/packages/form-item/File.vue +712 -0
- package/src/frame/packages/form-item/FormItem.vue +464 -0
- package/src/frame/packages/form-item/Hidden.vue +55 -0
- package/src/frame/packages/form-item/Html.vue +291 -0
- package/src/frame/packages/form-item/Input.vue +320 -0
- package/src/frame/packages/form-item/Location.vue +313 -0
- package/src/frame/packages/form-item/Number.vue +217 -0
- package/src/frame/packages/form-item/Object.vue +1195 -0
- package/src/frame/packages/form-item/Password.vue +128 -0
- package/src/frame/packages/form-item/Photo.vue +362 -0
- package/src/frame/packages/form-item/Radio.vue +157 -0
- package/src/frame/packages/form-item/Rule.vue +989 -0
- package/src/frame/packages/form-item/Scope.vue +224 -0
- package/src/frame/packages/form-item/Select.vue +226 -0
- package/src/frame/packages/form-item/Signature.vue +242 -0
- package/src/frame/packages/form-item/Switch.vue +124 -0
- package/src/frame/packages/form-item/Tag.vue +216 -0
- package/src/frame/packages/form-item/Textarea.vue +279 -0
- package/src/frame/packages/form-item/index.js +45 -0
- package/src/frame/packages/grid/Grid.vue +70 -0
- package/src/frame/packages/grid/GridItem.vue +190 -0
- package/src/frame/packages/grid/index.js +13 -0
- package/src/frame/packages/header/Breadcrumb.vue +55 -0
- package/src/frame/packages/header/Header.vue +602 -0
- package/src/frame/packages/header/Preview.vue +252 -0
- package/src/frame/packages/header/index.js +16 -0
- package/src/frame/packages/icon/Icon.vue +47 -0
- package/src/frame/packages/icon/index.js +7 -0
- package/src/frame/packages/iframe/Iframe.vue +17 -0
- package/src/frame/packages/iframe/index.js +8 -0
- package/src/frame/packages/image/image.vue +23 -0
- package/src/frame/packages/import/Import.vue +832 -0
- package/src/frame/packages/import/index.js +8 -0
- package/src/frame/packages/layout/Column.vue +47 -0
- package/src/frame/packages/layout/ColumnPreview.vue +119 -0
- package/src/frame/packages/layout/Config.vue +114 -0
- package/src/frame/packages/layout/Layout.vue +62 -0
- package/src/frame/packages/layout/Preview.vue +111 -0
- package/src/frame/packages/layout/index.js +10 -0
- package/src/frame/packages/list/List.vue +426 -0
- package/src/frame/packages/list/index.js +8 -0
- package/src/frame/packages/list/visual/List.vue +349 -0
- package/src/frame/packages/load-page/LoadPage.vue +29 -0
- package/src/frame/packages/load-page/index.js +8 -0
- package/src/frame/packages/m-entity-add-page/MEntityAddPage.vue +100 -0
- package/src/frame/packages/m-entity-add-page/index.js +8 -0
- package/src/frame/packages/m-entity-list/MEntityList.vue +1083 -0
- package/src/frame/packages/m-entity-list/index.js +3 -0
- package/src/frame/packages/m-entity-list-find/MEntityListFind.vue +329 -0
- package/src/frame/packages/m-entity-list-find/Visual.vue +105 -0
- package/src/frame/packages/m-entity-list-find/index.js +3 -0
- package/src/frame/packages/m-entity-tree-find/MEntityTreeFind.vue +339 -0
- package/src/frame/packages/m-entity-tree-find/index.js +8 -0
- package/src/frame/packages/menu/Menu.vue +174 -0
- package/src/frame/packages/menu/MenuItem.vue +94 -0
- package/src/frame/packages/menu/index.js +16 -0
- package/src/frame/packages/menu-index/MenuIndex.vue +444 -0
- package/src/frame/packages/menu-index/index.js +8 -0
- package/src/frame/packages/mine/Mine.vue +404 -0
- package/src/frame/packages/module-index-page/ModuleIndexPage.vue +250 -0
- package/src/frame/packages/module-index-page/index.js +7 -0
- package/src/frame/packages/module-list/ModuleList.vue +222 -0
- package/src/frame/packages/module-list/index.js +8 -0
- package/src/frame/packages/module-list-page/ModuleListPage.vue +24 -0
- package/src/frame/packages/module-list-page/index.js +8 -0
- package/src/frame/packages/nav-add-form/NavAddForm.vue +626 -0
- package/src/frame/packages/nav-add-form/index.js +8 -0
- package/src/frame/packages/num/CardNum.vue +267 -0
- package/src/frame/packages/num/NumItem.vue +192 -0
- package/src/frame/packages/num/NumSubItem.vue +137 -0
- package/src/frame/packages/num/Statistic.vue +42 -0
- package/src/frame/packages/num/index.js +17 -0
- package/src/frame/packages/org-chart/OrgChart.vue +301 -0
- package/src/frame/packages/org-chart/index.js +8 -0
- package/src/frame/packages/page/Page.vue +322 -0
- package/src/frame/packages/page/index.js +8 -0
- package/src/frame/packages/page-help/PageHelp.vue +28 -0
- package/src/frame/packages/page-help/Preview.vue +35 -0
- package/src/frame/packages/page-help/index.js +8 -0
- package/src/frame/packages/page-tabs/PageTabs.vue +188 -0
- package/src/frame/packages/page-tabs/index.js +8 -0
- package/src/frame/packages/progress/Progress.vue +287 -0
- package/src/frame/packages/progress/ProgressItem.vue +39 -0
- package/src/frame/packages/progress/index.js +13 -0
- package/src/frame/packages/progress-chart/ProcessChart.vue +210 -0
- package/src/frame/packages/progress-chart/index.js +8 -0
- package/src/frame/packages/report-form-list/ReportFormList.vue +0 -0
- package/src/frame/packages/router-view/RouterView.vue +229 -0
- package/src/frame/packages/router-view/index.js +8 -0
- package/src/frame/packages/scope/Scope.vue +594 -0
- package/src/frame/packages/scope/ScopeDrawer.vue +201 -0
- package/src/frame/packages/scope/ScopeItem.vue +987 -0
- package/src/frame/packages/scope/index.js +15 -0
- package/src/frame/packages/search/Fields.vue +326 -0
- package/src/frame/packages/search/Filter.vue +473 -0
- package/src/frame/packages/search/Keyword.vue +106 -0
- package/src/frame/packages/search/Mobile.vue +314 -0
- package/src/frame/packages/search/Select.vue +238 -0
- package/src/frame/packages/search/index.js +22 -0
- package/src/frame/packages/step/Step.vue +149 -0
- package/src/frame/packages/step/index.js +8 -0
- package/src/frame/packages/step-item/StepItem.vue +126 -0
- package/src/frame/packages/step-item/index.js +8 -0
- package/src/frame/packages/tab-bar/Config.vue +11 -0
- package/src/frame/packages/tab-bar/TabBar.vue +25 -0
- package/src/frame/packages/tab-bar/index.js +3 -0
- package/src/frame/packages/text/Text.vue +25 -0
- package/src/frame/packages/text-editor/TextEditor.vue +22 -0
- package/src/frame/packages/title/Title.vue +21 -0
- package/src/frame/packages/title/index.js +8 -0
- package/src/frame/packages/visual-config-page/ComponentLibrary.vue +198 -0
- package/src/frame/packages/visual-config-page/ComponentList.vue +565 -0
- package/src/frame/packages/visual-config-page/ComponentPreview.vue +153 -0
- package/src/frame/packages/visual-config-page/ConfigOption.vue +16 -0
- package/src/frame/packages/visual-config-page/ConfigPanel.vue +576 -0
- package/src/frame/packages/visual-config-page/PagePreview.vue +53 -0
- package/src/frame/packages/visual-config-page/VisualConfigPage.vue +632 -0
- package/src/frame/packages/visual-config-page/index.js +24 -0
- package/src/frame/popup.js +31 -0
- package/src/frame/views/Add.vue +823 -0
- package/src/frame/views/App.vue +49 -0
- package/src/frame/views/AppRoleSelect.vue +272 -0
- package/src/frame/views/AppSubModule.vue +50 -0
- package/src/frame/views/BatchEdit.vue +206 -0
- package/src/frame/views/Bpmn.vue +553 -0
- package/src/frame/views/Container.vue +294 -0
- package/src/frame/views/DblogList.vue +348 -0
- package/src/frame/views/EntityCheckList.vue +164 -0
- package/src/frame/views/EntityCheckPage.vue +44 -0
- package/src/frame/views/EntityDetailPage.vue +75 -0
- package/src/frame/views/EntityEditApply.vue +136 -0
- package/src/frame/views/EntityEditPage.vue +13 -0
- package/src/frame/views/EntityFind.vue +135 -0
- package/src/frame/views/EntitySingleAdd.vue +31 -0
- package/src/frame/views/EntitySubListPage.vue +44 -0
- package/src/frame/views/EntityTreeFind.vue +188 -0
- package/src/frame/views/EntityTreePage.vue +37 -0
- package/src/frame/views/EntityTreePageOld.vue +536 -0
- package/src/frame/views/Error.vue +29 -0
- package/src/frame/views/ExcelDesign.vue +1795 -0
- package/src/frame/views/ExcelPreview.vue +173 -0
- package/src/frame/views/ExportPage.vue +19 -0
- package/src/frame/views/FormDesign.vue +1049 -0
- package/src/frame/views/IconFontLibraryPage.vue +74 -0
- package/src/frame/views/ImportPage.vue +19 -0
- package/src/frame/views/List.vue +955 -0
- package/src/frame/views/LocalLogin.vue +27 -0
- package/src/frame/views/Login.vue +1059 -0
- package/src/frame/views/MEntityListPage.vue +83 -0
- package/src/frame/views/MEntitySubListPage.vue +44 -0
- package/src/frame/views/MainModule.vue +83 -0
- package/src/frame/views/MenuIndex.vue +444 -0
- package/src/frame/views/MinePage.vue +18 -0
- package/src/frame/views/Module.vue +203 -0
- package/src/frame/views/ModuleIndex.vue +377 -0
- package/src/frame/views/PageAttriTree.vue +419 -0
- package/src/frame/views/PageAttributeTreePage.vue +424 -0
- package/src/frame/views/PageConfig.vue +218 -0
- package/src/frame/views/Permission.vue +695 -0
- package/src/frame/views/PersonalInfo.vue +659 -0
- package/src/frame/views/QyWechat.vue +69 -0
- package/src/frame/views/ReportFormList.vue +146 -0
- package/src/frame/views/ReportFormListPage.vue +91 -0
- package/src/frame/views/RoleTreePage.vue +180 -0
- package/src/frame/views/ServiceHelp.vue +177 -0
- package/src/frame/views/SubModule.vue +67 -0
- package/src/frame/views/SystemIndex.vue +105 -0
- package/src/frame/views/SystemTabs.vue +87 -0
- package/src/frame/views/TaskPage.vue +46 -0
- package/src/frame/views/client/AddForm.vue +64 -0
- package/src/frame/views/client/AppMarket.vue +345 -0
- package/src/frame/views/client/ClientIndex.vue +261 -0
- package/src/frame/views/client/ClientModuleIndexPage.vue +25 -0
- package/src/frame/views/client/CopySystem.vue +179 -0
- package/src/frame/views/client/CreateMethod.vue +133 -0
- package/src/frame/views/client/Login.vue +234 -0
- package/src/frame/views/client/OpenClientManage.vue +53 -0
- package/src/frame/views/client/PageTabsCyclic.vue +121 -0
- package/src/frame/views/client/SelfBuiltSystem.vue +272 -0
- package/src/frame/views/client/StandardProduct.vue +325 -0
- package/src/frame/views/client/SystemList.vue +160 -0
- package/src/frame/views/client/SystemManager.vue +346 -0
- package/src/frame/views/layout/CardList.vue +123 -0
- package/src/frame/views/layout/Grid.vue +95 -0
- package/src/frame/views/match/AddTargetField.vue +118 -0
- package/src/frame/views/match/MatchAddFormItem.vue +34 -0
- package/src/frame/views/match/conversion.vue +209 -0
- package/src/frame/views/match/customize.vue +344 -0
- package/src/frame/views/match/fieldMatch.vue +518 -0
- package/src/frame/views/report/AddFormItem.vue +67 -0
- package/src/frame/views/report/DesignReport.vue +1213 -0
- package/src/frame/views/report/LookReport.vue +221 -0
- package/src/frame/views/report/ReportAdd.vue +237 -0
- package/src/frame/views/report/ReportFormList.vue +235 -0
- package/src/frame/views/report/ReportList.vue +163 -0
- package/src/frame/views/report/ReportTreeFind.vue +188 -0
- package/src/frame/views/visual/Add.vue +1818 -0
- package/src/frame/views/visual/AddForm.vue +228 -0
- package/src/frame/views/visual/AddFormItem.vue +242 -0
- package/src/frame/views/visual/AppIndex.vue +149 -0
- package/src/frame/views/visual/ApplyForm.vue +142 -0
- package/src/frame/views/visual/AttributeList.vue +329 -0
- package/src/frame/views/visual/BasePage.vue +73 -0
- package/src/frame/views/visual/Button.vue +119 -0
- package/src/frame/views/visual/Card.vue +68 -0
- package/src/frame/views/visual/CardNum.vue +74 -0
- package/src/frame/views/visual/CategoryList.vue +566 -0
- package/src/frame/views/visual/Chart.vue +53 -0
- package/src/frame/views/visual/CheckForm.vue +106 -0
- package/src/frame/views/visual/CheckHistory.vue +28 -0
- package/src/frame/views/visual/ClientList.vue +42 -0
- package/src/frame/views/visual/CodeManage.vue +128 -0
- package/src/frame/views/visual/Component.vue +1142 -0
- package/src/frame/views/visual/ComponentList.vue +288 -0
- package/src/frame/views/visual/Config.vue +888 -0
- package/src/frame/views/visual/ConfigItem.vue +218 -0
- package/src/frame/views/visual/ConfigSelectItems.vue +521 -0
- package/src/frame/views/visual/CreatePage.vue +397 -0
- package/src/frame/views/visual/DblogList.vue +137 -0
- package/src/frame/views/visual/EntityAddPage.vue +52 -0
- package/src/frame/views/visual/EntityApplyPage.vue +57 -0
- package/src/frame/views/visual/EntityCheckPage.vue +69 -0
- package/src/frame/views/visual/EntityFindPage.vue +55 -0
- package/src/frame/views/visual/EntityList.vue +442 -0
- package/src/frame/views/visual/EntityListPage.vue +97 -0
- package/src/frame/views/visual/EntityNoSubmitSubList.vue +252 -0
- package/src/frame/views/visual/EntityRightSubList.vue +32 -0
- package/src/frame/views/visual/EntitySubAdd.vue +11 -0
- package/src/frame/views/visual/EntitySubGrid.vue +39 -0
- package/src/frame/views/visual/EntitySubGridItem.vue +96 -0
- package/src/frame/views/visual/EntitySubList.vue +298 -0
- package/src/frame/views/visual/EntityTreeFindPage.vue +36 -0
- package/src/frame/views/visual/EntityTreeManage.vue +144 -0
- package/src/frame/views/visual/EntityTreePage.vue +46 -0
- package/src/frame/views/visual/Grid.vue +46 -0
- package/src/frame/views/visual/GridItem.vue +41 -0
- package/src/frame/views/visual/HeaderNew.vue +326 -0
- package/src/frame/views/visual/Iframe.vue +32 -0
- package/src/frame/views/visual/Image.vue +49 -0
- package/src/frame/views/visual/Import.vue +59 -0
- package/src/frame/views/visual/InterfaceSubList.vue +23 -0
- package/src/frame/views/visual/Layout.vue +0 -0
- package/src/frame/views/visual/ListFirst.vue +613 -0
- package/src/frame/views/visual/LoadPage.vue +42 -0
- package/src/frame/views/visual/MEntityAddPage.vue +71 -0
- package/src/frame/views/visual/MEntityList.vue +472 -0
- package/src/frame/views/visual/MEntityListPage.vue +46 -0
- package/src/frame/views/visual/MEntitySubList.vue +237 -0
- package/src/frame/views/visual/MetaList.vue +23 -0
- package/src/frame/views/visual/Mine.vue +37 -0
- package/src/frame/views/visual/ModuleIndexPage.vue +68 -0
- package/src/frame/views/visual/ModuleList.vue +44 -0
- package/src/frame/views/visual/NavAddForm.vue +144 -0
- package/src/frame/views/visual/NavFormCatalogItem.vue +21 -0
- package/src/frame/views/visual/NumItem.vue +69 -0
- package/src/frame/views/visual/NumStatistic.vue +85 -0
- package/src/frame/views/visual/NumSubItem.vue +63 -0
- package/src/frame/views/visual/OrgChart.vue +121 -0
- package/src/frame/views/visual/PageCatalog.vue +26 -0
- package/src/frame/views/visual/PageConfig.vue +278 -0
- package/src/frame/views/visual/PageTabs.vue +54 -0
- package/src/frame/views/visual/ProcessChart.vue +24 -0
- package/src/frame/views/visual/Progress.vue +39 -0
- package/src/frame/views/visual/ProgressItem.vue +43 -0
- package/src/frame/views/visual/Text.vue +36 -0
- package/src/frame/views/visual/TextEditor.vue +36 -0
- package/src/frame/views/visual/Title.vue +44 -0
- package/src/frame/views/visual/TodoList.vue +18 -0
- package/src/frame/views/visual/TreeFind.vue +39 -0
- package/src/frame/views/visual/UserFormItem.vue +50 -0
- package/src/frame/views/visual/UserManage.vue +36 -0
- package/src/frame/views/visual/chart/CircularPie.vue +7 -0
- package/src/frame/views/visual/chart/Column.vue +73 -0
- package/src/frame/views/visual/chart/HoriColumn.vue +7 -0
- package/src/frame/views/visual/chart/Line.vue +7 -0
- package/src/frame/views/visual/chart/Pie.vue +7 -0
- package/src/frame/views/visual/config/Chart.vue +136 -0
- package/src/frame/views/visual/config/Color.vue +39 -0
- package/src/frame/views/visual/config/DesignReport.vue +20 -0
- package/src/frame/views/visual/config/Event.vue +218 -0
- package/src/frame/views/visual/config/Field.vue +494 -0
- package/src/frame/views/visual/config/Html.vue +26 -0
- package/src/frame/views/visual/config/Image.vue +118 -0
- package/src/frame/views/visual/config/Input.vue +52 -0
- package/src/frame/views/visual/config/List.vue +63 -0
- package/src/frame/views/visual/config/ListField.vue +1229 -0
- package/src/frame/views/visual/config/MField.vue +594 -0
- package/src/frame/views/visual/config/Number.vue +36 -0
- package/src/frame/views/visual/config/Object.vue +106 -0
- package/src/frame/views/visual/config/Operate.vue +1657 -0
- package/src/frame/views/visual/config/OrderField.vue +507 -0
- package/src/frame/views/visual/config/Page.vue +44 -0
- package/src/frame/views/visual/config/Params.vue +104 -0
- package/src/frame/views/visual/config/Radio.vue +54 -0
- package/src/frame/views/visual/config/Row.vue +64 -0
- package/src/frame/views/visual/config/Scope.vue +314 -0
- package/src/frame/views/visual/config/Select.vue +54 -0
- package/src/frame/views/visual/config/Switch.vue +36 -0
- package/src/frame/views/visual/config/Textarea.vue +38 -0
- package/src/frame/views/visual/config/Tree.vue +111 -0
- package/src/frame/views/visual/search/Fields.vue +52 -0
- package/src/frame/views/visual/search/Filter.vue +50 -0
- package/src/frame/views/visual/search/Mobile.vue +54 -0
- package/src/frame/views/visual/step/Index.vue +11 -0
- package/src/frame/views/visual/step/Item.vue +157 -0
- package/src/index.js +369 -0
- package/src/main.js +54 -0
- package/src/plugins/element.js +167 -0
- package/src/plugins/frame.js +12 -0
- package/src/plugins/i18n.js +51 -0
- package/src/plugins/index.js +11 -0
- package/src/plugins/oa.js +3 -0
- package/src/plugins/vant.js +80 -0
- package/src/product/oa/components/AddForm.vue +87 -0
- package/src/product/oa/components/MeetingAddForm.vue +85 -0
- package/src/product/oa/components/MeetingExport.vue +422 -0
- package/src/product/oa/components/MeetingRoomUse.vue +371 -0
- package/src/product/oa/index.js +31 -0
- package/src/registerServiceWorker.js +32 -0
- package/src/router/config.js +416 -0
- package/src/router/index.js +26 -0
- package/src/store/actions.js +46 -0
- package/src/store/export.js +23 -0
- package/src/store/index.js +17 -0
- package/src/store/modules/config.js +201 -0
- package/src/store/modules/file.js +32 -0
- package/src/store/modules/index.js +9 -0
- package/src/store/modules/list.js +130 -0
- package/src/store/modules/meta.js +210 -0
- package/src/store/modules/page.js +75 -0
- package/src/store/modules/router.js +140 -0
- package/src/store/modules/tabs.js +62 -0
- package/src/store/modules/user.js +71 -0
- package/src/styles/index.scss +143 -0
- package/src/styles/theme/element.scss +240 -0
- package/src/styles/theme/utils/config.scss +4 -0
- package/src/styles/theme/utils/function.scss +44 -0
- package/src/styles/theme/utils/mixins.scss +317 -0
- package/src/styles/theme/utils/var.scss +112 -0
- package/src/utils/Config.js +25 -0
- package/src/utils/axios.js +121 -0
- package/src/utils/chartTheme.js +471 -0
- package/src/utils/directives/global.js +127 -0
- package/src/utils/fieldFactory.js +147 -0
- package/src/utils/index.js +21 -0
- package/src/utils/loadComponent.js +39 -0
- package/src/utils/meta.js +355 -0
- package/src/utils/mixins/component.js +368 -0
- package/src/utils/mixins/global.js +985 -0
- package/src/utils/mixins/index.js +11 -0
- package/src/utils/page.js +126 -0
- package/src/utils/util.js +381 -0
- package/src/vant-variables.less +1 -0
- package/src/vue.bus.js +18 -0
- package/start-code-dev.sh +24 -0
- package/start-code-pgy.sh +25 -0
- package/start-code-ppe.sh +23 -0
- package/start-code-prd.sh +25 -0
- package/start-code-pre.sh +25 -0
- package/vue.config.js +101 -0
- package/webpack.config.js +97 -0
|
@@ -0,0 +1,1717 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
3
|
+
* Licensed under the LGPL or a commercial license.
|
|
4
|
+
* For LGPL see License.txt in the project root for license information.
|
|
5
|
+
* For commercial licenses see https://www.tiny.cloud/
|
|
6
|
+
*
|
|
7
|
+
* Version: 5.4.2 (2020-08-17)
|
|
8
|
+
*/
|
|
9
|
+
(function (domGlobals) {
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
13
|
+
|
|
14
|
+
var noop = function () {
|
|
15
|
+
};
|
|
16
|
+
var constant = function (value) {
|
|
17
|
+
return function () {
|
|
18
|
+
return value;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
var never = constant(false);
|
|
22
|
+
var always = constant(true);
|
|
23
|
+
|
|
24
|
+
var none = function () {
|
|
25
|
+
return NONE;
|
|
26
|
+
};
|
|
27
|
+
var NONE = function () {
|
|
28
|
+
var eq = function (o) {
|
|
29
|
+
return o.isNone();
|
|
30
|
+
};
|
|
31
|
+
var call = function (thunk) {
|
|
32
|
+
return thunk();
|
|
33
|
+
};
|
|
34
|
+
var id = function (n) {
|
|
35
|
+
return n;
|
|
36
|
+
};
|
|
37
|
+
var me = {
|
|
38
|
+
fold: function (n, _s) {
|
|
39
|
+
return n();
|
|
40
|
+
},
|
|
41
|
+
is: never,
|
|
42
|
+
isSome: never,
|
|
43
|
+
isNone: always,
|
|
44
|
+
getOr: id,
|
|
45
|
+
getOrThunk: call,
|
|
46
|
+
getOrDie: function (msg) {
|
|
47
|
+
throw new Error(msg || 'error: getOrDie called on none.');
|
|
48
|
+
},
|
|
49
|
+
getOrNull: constant(null),
|
|
50
|
+
getOrUndefined: constant(undefined),
|
|
51
|
+
or: id,
|
|
52
|
+
orThunk: call,
|
|
53
|
+
map: none,
|
|
54
|
+
each: noop,
|
|
55
|
+
bind: none,
|
|
56
|
+
exists: never,
|
|
57
|
+
forall: always,
|
|
58
|
+
filter: none,
|
|
59
|
+
equals: eq,
|
|
60
|
+
equals_: eq,
|
|
61
|
+
toArray: function () {
|
|
62
|
+
return [];
|
|
63
|
+
},
|
|
64
|
+
toString: constant('none()')
|
|
65
|
+
};
|
|
66
|
+
return me;
|
|
67
|
+
}();
|
|
68
|
+
var some = function (a) {
|
|
69
|
+
var constant_a = constant(a);
|
|
70
|
+
var self = function () {
|
|
71
|
+
return me;
|
|
72
|
+
};
|
|
73
|
+
var bind = function (f) {
|
|
74
|
+
return f(a);
|
|
75
|
+
};
|
|
76
|
+
var me = {
|
|
77
|
+
fold: function (n, s) {
|
|
78
|
+
return s(a);
|
|
79
|
+
},
|
|
80
|
+
is: function (v) {
|
|
81
|
+
return a === v;
|
|
82
|
+
},
|
|
83
|
+
isSome: always,
|
|
84
|
+
isNone: never,
|
|
85
|
+
getOr: constant_a,
|
|
86
|
+
getOrThunk: constant_a,
|
|
87
|
+
getOrDie: constant_a,
|
|
88
|
+
getOrNull: constant_a,
|
|
89
|
+
getOrUndefined: constant_a,
|
|
90
|
+
or: self,
|
|
91
|
+
orThunk: self,
|
|
92
|
+
map: function (f) {
|
|
93
|
+
return some(f(a));
|
|
94
|
+
},
|
|
95
|
+
each: function (f) {
|
|
96
|
+
f(a);
|
|
97
|
+
},
|
|
98
|
+
bind: bind,
|
|
99
|
+
exists: bind,
|
|
100
|
+
forall: bind,
|
|
101
|
+
filter: function (f) {
|
|
102
|
+
return f(a) ? me : NONE;
|
|
103
|
+
},
|
|
104
|
+
toArray: function () {
|
|
105
|
+
return [a];
|
|
106
|
+
},
|
|
107
|
+
toString: function () {
|
|
108
|
+
return 'some(' + a + ')';
|
|
109
|
+
},
|
|
110
|
+
equals: function (o) {
|
|
111
|
+
return o.is(a);
|
|
112
|
+
},
|
|
113
|
+
equals_: function (o, elementEq) {
|
|
114
|
+
return o.fold(never, function (b) {
|
|
115
|
+
return elementEq(a, b);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
return me;
|
|
120
|
+
};
|
|
121
|
+
var from = function (value) {
|
|
122
|
+
return value === null || value === undefined ? NONE : some(value);
|
|
123
|
+
};
|
|
124
|
+
var Option = {
|
|
125
|
+
some: some,
|
|
126
|
+
none: none,
|
|
127
|
+
from: from
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
var head = function (xs) {
|
|
131
|
+
return xs.length === 0 ? Option.none() : Option.some(xs[0]);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
|
135
|
+
|
|
136
|
+
function isCodeSample(elm) {
|
|
137
|
+
return elm && elm.nodeName === 'PRE' && elm.className.indexOf('language-') !== -1;
|
|
138
|
+
}
|
|
139
|
+
function trimArg(predicateFn) {
|
|
140
|
+
return function (arg1, arg2) {
|
|
141
|
+
return predicateFn(arg2);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
|
|
146
|
+
|
|
147
|
+
var exports$1 = {}, module = { exports: exports$1 }, global$2 = {};
|
|
148
|
+
(function (define, exports, module, require) {
|
|
149
|
+
var oldprism = window.Prism;
|
|
150
|
+
window.Prism = { manual: true };
|
|
151
|
+
(function (f) {
|
|
152
|
+
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
|
153
|
+
module.exports = f();
|
|
154
|
+
} else if (typeof define === 'function' && define.amd) {
|
|
155
|
+
define([], f);
|
|
156
|
+
} else {
|
|
157
|
+
var g;
|
|
158
|
+
if (typeof window !== 'undefined') {
|
|
159
|
+
g = window;
|
|
160
|
+
} else if (typeof global$2 !== 'undefined') {
|
|
161
|
+
g = global$2;
|
|
162
|
+
} else if (typeof self !== 'undefined') {
|
|
163
|
+
g = self;
|
|
164
|
+
} else {
|
|
165
|
+
g = this;
|
|
166
|
+
}
|
|
167
|
+
g.EphoxContactWrapper = f();
|
|
168
|
+
}
|
|
169
|
+
}(function () {
|
|
170
|
+
return function () {
|
|
171
|
+
function r(e, n, t) {
|
|
172
|
+
function o(i, f) {
|
|
173
|
+
if (!n[i]) {
|
|
174
|
+
if (!e[i]) {
|
|
175
|
+
var c = 'function' == typeof require && require;
|
|
176
|
+
if (!f && c)
|
|
177
|
+
return c(i, !0);
|
|
178
|
+
if (u)
|
|
179
|
+
return u(i, !0);
|
|
180
|
+
var a = new Error('Cannot find module \'' + i + '\'');
|
|
181
|
+
throw a.code = 'MODULE_NOT_FOUND', a;
|
|
182
|
+
}
|
|
183
|
+
var p = n[i] = { exports: {} };
|
|
184
|
+
e[i][0].call(p.exports, function (r) {
|
|
185
|
+
var n = e[i][1][r];
|
|
186
|
+
return o(n || r);
|
|
187
|
+
}, p, p.exports, r, e, n, t);
|
|
188
|
+
}
|
|
189
|
+
return n[i].exports;
|
|
190
|
+
}
|
|
191
|
+
for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++)
|
|
192
|
+
o(t[i]);
|
|
193
|
+
return o;
|
|
194
|
+
}
|
|
195
|
+
return r;
|
|
196
|
+
}()({
|
|
197
|
+
1: [
|
|
198
|
+
function (require, module, exports) {
|
|
199
|
+
Prism.languages.c = Prism.languages.extend('clike', {
|
|
200
|
+
'class-name': {
|
|
201
|
+
pattern: /(\b(?:enum|struct)\s+)\w+/,
|
|
202
|
+
lookbehind: true
|
|
203
|
+
},
|
|
204
|
+
'keyword': /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
|
|
205
|
+
'operator': />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/,
|
|
206
|
+
'number': /(?:\b0x(?:[\da-f]+\.?[\da-f]*|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i
|
|
207
|
+
});
|
|
208
|
+
Prism.languages.insertBefore('c', 'string', {
|
|
209
|
+
'macro': {
|
|
210
|
+
pattern: /(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,
|
|
211
|
+
lookbehind: true,
|
|
212
|
+
alias: 'property',
|
|
213
|
+
inside: {
|
|
214
|
+
'string': {
|
|
215
|
+
pattern: /(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,
|
|
216
|
+
lookbehind: true
|
|
217
|
+
},
|
|
218
|
+
'directive': {
|
|
219
|
+
pattern: /(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,
|
|
220
|
+
lookbehind: true,
|
|
221
|
+
alias: 'keyword'
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
'constant': /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/
|
|
226
|
+
});
|
|
227
|
+
delete Prism.languages.c['boolean'];
|
|
228
|
+
},
|
|
229
|
+
{}
|
|
230
|
+
],
|
|
231
|
+
2: [
|
|
232
|
+
function (require, module, exports) {
|
|
233
|
+
Prism.languages.clike = {
|
|
234
|
+
'comment': [
|
|
235
|
+
{
|
|
236
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
237
|
+
lookbehind: true
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
241
|
+
lookbehind: true,
|
|
242
|
+
greedy: true
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
'string': {
|
|
246
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
247
|
+
greedy: true
|
|
248
|
+
},
|
|
249
|
+
'class-name': {
|
|
250
|
+
pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
251
|
+
lookbehind: true,
|
|
252
|
+
inside: { 'punctuation': /[.\\]/ }
|
|
253
|
+
},
|
|
254
|
+
'keyword': /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
|
|
255
|
+
'boolean': /\b(?:true|false)\b/,
|
|
256
|
+
'function': /\w+(?=\()/,
|
|
257
|
+
'number': /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
258
|
+
'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
259
|
+
'punctuation': /[{}[\];(),.:]/
|
|
260
|
+
};
|
|
261
|
+
},
|
|
262
|
+
{}
|
|
263
|
+
],
|
|
264
|
+
3: [
|
|
265
|
+
function (require, module, exports) {
|
|
266
|
+
(function (global) {
|
|
267
|
+
var _self = typeof window !== 'undefined' ? window : typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope ? self : {};
|
|
268
|
+
var Prism = function (_self) {
|
|
269
|
+
var lang = /\blang(?:uage)?-([\w-]+)\b/i;
|
|
270
|
+
var uniqueId = 0;
|
|
271
|
+
var _ = {
|
|
272
|
+
manual: _self.Prism && _self.Prism.manual,
|
|
273
|
+
disableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,
|
|
274
|
+
util: {
|
|
275
|
+
encode: function (tokens) {
|
|
276
|
+
if (tokens instanceof Token) {
|
|
277
|
+
return new Token(tokens.type, _.util.encode(tokens.content), tokens.alias);
|
|
278
|
+
} else if (Array.isArray(tokens)) {
|
|
279
|
+
return tokens.map(_.util.encode);
|
|
280
|
+
} else {
|
|
281
|
+
return tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\u00a0/g, ' ');
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
type: function (o) {
|
|
285
|
+
return Object.prototype.toString.call(o).slice(8, -1);
|
|
286
|
+
},
|
|
287
|
+
objId: function (obj) {
|
|
288
|
+
if (!obj['__id']) {
|
|
289
|
+
Object.defineProperty(obj, '__id', { value: ++uniqueId });
|
|
290
|
+
}
|
|
291
|
+
return obj['__id'];
|
|
292
|
+
},
|
|
293
|
+
clone: function deepClone(o, visited) {
|
|
294
|
+
var clone, id, type = _.util.type(o);
|
|
295
|
+
visited = visited || {};
|
|
296
|
+
switch (type) {
|
|
297
|
+
case 'Object':
|
|
298
|
+
id = _.util.objId(o);
|
|
299
|
+
if (visited[id]) {
|
|
300
|
+
return visited[id];
|
|
301
|
+
}
|
|
302
|
+
clone = {};
|
|
303
|
+
visited[id] = clone;
|
|
304
|
+
for (var key in o) {
|
|
305
|
+
if (o.hasOwnProperty(key)) {
|
|
306
|
+
clone[key] = deepClone(o[key], visited);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return clone;
|
|
310
|
+
case 'Array':
|
|
311
|
+
id = _.util.objId(o);
|
|
312
|
+
if (visited[id]) {
|
|
313
|
+
return visited[id];
|
|
314
|
+
}
|
|
315
|
+
clone = [];
|
|
316
|
+
visited[id] = clone;
|
|
317
|
+
o.forEach(function (v, i) {
|
|
318
|
+
clone[i] = deepClone(v, visited);
|
|
319
|
+
});
|
|
320
|
+
return clone;
|
|
321
|
+
default:
|
|
322
|
+
return o;
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
getLanguage: function (element) {
|
|
326
|
+
while (element && !lang.test(element.className)) {
|
|
327
|
+
element = element.parentElement;
|
|
328
|
+
}
|
|
329
|
+
if (element) {
|
|
330
|
+
return (element.className.match(lang) || [
|
|
331
|
+
,
|
|
332
|
+
'none'
|
|
333
|
+
])[1].toLowerCase();
|
|
334
|
+
}
|
|
335
|
+
return 'none';
|
|
336
|
+
},
|
|
337
|
+
currentScript: function () {
|
|
338
|
+
if (typeof document === 'undefined') {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
if ('currentScript' in document) {
|
|
342
|
+
return document.currentScript;
|
|
343
|
+
}
|
|
344
|
+
try {
|
|
345
|
+
throw new Error();
|
|
346
|
+
} catch (err) {
|
|
347
|
+
var src = (/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(err.stack) || [])[1];
|
|
348
|
+
if (src) {
|
|
349
|
+
var scripts = document.getElementsByTagName('script');
|
|
350
|
+
for (var i in scripts) {
|
|
351
|
+
if (scripts[i].src == src) {
|
|
352
|
+
return scripts[i];
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
languages: {
|
|
361
|
+
extend: function (id, redef) {
|
|
362
|
+
var lang = _.util.clone(_.languages[id]);
|
|
363
|
+
for (var key in redef) {
|
|
364
|
+
lang[key] = redef[key];
|
|
365
|
+
}
|
|
366
|
+
return lang;
|
|
367
|
+
},
|
|
368
|
+
insertBefore: function (inside, before, insert, root) {
|
|
369
|
+
root = root || _.languages;
|
|
370
|
+
var grammar = root[inside];
|
|
371
|
+
var ret = {};
|
|
372
|
+
for (var token in grammar) {
|
|
373
|
+
if (grammar.hasOwnProperty(token)) {
|
|
374
|
+
if (token == before) {
|
|
375
|
+
for (var newToken in insert) {
|
|
376
|
+
if (insert.hasOwnProperty(newToken)) {
|
|
377
|
+
ret[newToken] = insert[newToken];
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if (!insert.hasOwnProperty(token)) {
|
|
382
|
+
ret[token] = grammar[token];
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
var old = root[inside];
|
|
387
|
+
root[inside] = ret;
|
|
388
|
+
_.languages.DFS(_.languages, function (key, value) {
|
|
389
|
+
if (value === old && key != inside) {
|
|
390
|
+
this[key] = ret;
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
return ret;
|
|
394
|
+
},
|
|
395
|
+
DFS: function DFS(o, callback, type, visited) {
|
|
396
|
+
visited = visited || {};
|
|
397
|
+
var objId = _.util.objId;
|
|
398
|
+
for (var i in o) {
|
|
399
|
+
if (o.hasOwnProperty(i)) {
|
|
400
|
+
callback.call(o, i, o[i], type || i);
|
|
401
|
+
var property = o[i], propertyType = _.util.type(property);
|
|
402
|
+
if (propertyType === 'Object' && !visited[objId(property)]) {
|
|
403
|
+
visited[objId(property)] = true;
|
|
404
|
+
DFS(property, callback, null, visited);
|
|
405
|
+
} else if (propertyType === 'Array' && !visited[objId(property)]) {
|
|
406
|
+
visited[objId(property)] = true;
|
|
407
|
+
DFS(property, callback, i, visited);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
plugins: {},
|
|
414
|
+
highlightAll: function (async, callback) {
|
|
415
|
+
_.highlightAllUnder(document, async, callback);
|
|
416
|
+
},
|
|
417
|
+
highlightAllUnder: function (container, async, callback) {
|
|
418
|
+
var env = {
|
|
419
|
+
callback: callback,
|
|
420
|
+
container: container,
|
|
421
|
+
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
422
|
+
};
|
|
423
|
+
_.hooks.run('before-highlightall', env);
|
|
424
|
+
env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
|
|
425
|
+
_.hooks.run('before-all-elements-highlight', env);
|
|
426
|
+
for (var i = 0, element; element = env.elements[i++];) {
|
|
427
|
+
_.highlightElement(element, async === true, env.callback);
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
highlightElement: function (element, async, callback) {
|
|
431
|
+
var language = _.util.getLanguage(element);
|
|
432
|
+
var grammar = _.languages[language];
|
|
433
|
+
element.className = element.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
|
|
434
|
+
var parent = element.parentNode;
|
|
435
|
+
if (parent && parent.nodeName.toLowerCase() === 'pre') {
|
|
436
|
+
parent.className = parent.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
|
|
437
|
+
}
|
|
438
|
+
var code = element.textContent;
|
|
439
|
+
var env = {
|
|
440
|
+
element: element,
|
|
441
|
+
language: language,
|
|
442
|
+
grammar: grammar,
|
|
443
|
+
code: code
|
|
444
|
+
};
|
|
445
|
+
function insertHighlightedCode(highlightedCode) {
|
|
446
|
+
env.highlightedCode = highlightedCode;
|
|
447
|
+
_.hooks.run('before-insert', env);
|
|
448
|
+
env.element.innerHTML = env.highlightedCode;
|
|
449
|
+
_.hooks.run('after-highlight', env);
|
|
450
|
+
_.hooks.run('complete', env);
|
|
451
|
+
callback && callback.call(env.element);
|
|
452
|
+
}
|
|
453
|
+
_.hooks.run('before-sanity-check', env);
|
|
454
|
+
if (!env.code) {
|
|
455
|
+
_.hooks.run('complete', env);
|
|
456
|
+
callback && callback.call(env.element);
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
_.hooks.run('before-highlight', env);
|
|
460
|
+
if (!env.grammar) {
|
|
461
|
+
insertHighlightedCode(_.util.encode(env.code));
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
if (async && _self.Worker) {
|
|
465
|
+
var worker = new Worker(_.filename);
|
|
466
|
+
worker.onmessage = function (evt) {
|
|
467
|
+
insertHighlightedCode(evt.data);
|
|
468
|
+
};
|
|
469
|
+
worker.postMessage(JSON.stringify({
|
|
470
|
+
language: env.language,
|
|
471
|
+
code: env.code,
|
|
472
|
+
immediateClose: true
|
|
473
|
+
}));
|
|
474
|
+
} else {
|
|
475
|
+
insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
highlight: function (text, grammar, language) {
|
|
479
|
+
var env = {
|
|
480
|
+
code: text,
|
|
481
|
+
grammar: grammar,
|
|
482
|
+
language: language
|
|
483
|
+
};
|
|
484
|
+
_.hooks.run('before-tokenize', env);
|
|
485
|
+
env.tokens = _.tokenize(env.code, env.grammar);
|
|
486
|
+
_.hooks.run('after-tokenize', env);
|
|
487
|
+
return Token.stringify(_.util.encode(env.tokens), env.language);
|
|
488
|
+
},
|
|
489
|
+
matchGrammar: function (text, strarr, grammar, index, startPos, oneshot, target) {
|
|
490
|
+
for (var token in grammar) {
|
|
491
|
+
if (!grammar.hasOwnProperty(token) || !grammar[token]) {
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
var patterns = grammar[token];
|
|
495
|
+
patterns = Array.isArray(patterns) ? patterns : [patterns];
|
|
496
|
+
for (var j = 0; j < patterns.length; ++j) {
|
|
497
|
+
if (target && target == token + ',' + j) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
var pattern = patterns[j], inside = pattern.inside, lookbehind = !!pattern.lookbehind, greedy = !!pattern.greedy, lookbehindLength = 0, alias = pattern.alias;
|
|
501
|
+
if (greedy && !pattern.pattern.global) {
|
|
502
|
+
var flags = pattern.pattern.toString().match(/[imsuy]*$/)[0];
|
|
503
|
+
pattern.pattern = RegExp(pattern.pattern.source, flags + 'g');
|
|
504
|
+
}
|
|
505
|
+
pattern = pattern.pattern || pattern;
|
|
506
|
+
for (var i = index, pos = startPos; i < strarr.length; pos += strarr[i].length, ++i) {
|
|
507
|
+
var str = strarr[i];
|
|
508
|
+
if (strarr.length > text.length) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
if (str instanceof Token) {
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
if (greedy && i != strarr.length - 1) {
|
|
515
|
+
pattern.lastIndex = pos;
|
|
516
|
+
var match = pattern.exec(text);
|
|
517
|
+
if (!match) {
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
var from = match.index + (lookbehind && match[1] ? match[1].length : 0), to = match.index + match[0].length, k = i, p = pos;
|
|
521
|
+
for (var len = strarr.length; k < len && (p < to || !strarr[k].type && !strarr[k - 1].greedy); ++k) {
|
|
522
|
+
p += strarr[k].length;
|
|
523
|
+
if (from >= p) {
|
|
524
|
+
++i;
|
|
525
|
+
pos = p;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
if (strarr[i] instanceof Token) {
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
531
|
+
delNum = k - i;
|
|
532
|
+
str = text.slice(pos, p);
|
|
533
|
+
match.index -= pos;
|
|
534
|
+
} else {
|
|
535
|
+
pattern.lastIndex = 0;
|
|
536
|
+
var match = pattern.exec(str), delNum = 1;
|
|
537
|
+
}
|
|
538
|
+
if (!match) {
|
|
539
|
+
if (oneshot) {
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
continue;
|
|
543
|
+
}
|
|
544
|
+
if (lookbehind) {
|
|
545
|
+
lookbehindLength = match[1] ? match[1].length : 0;
|
|
546
|
+
}
|
|
547
|
+
var from = match.index + lookbehindLength, match = match[0].slice(lookbehindLength), to = from + match.length, before = str.slice(0, from), after = str.slice(to);
|
|
548
|
+
var args = [
|
|
549
|
+
i,
|
|
550
|
+
delNum
|
|
551
|
+
];
|
|
552
|
+
if (before) {
|
|
553
|
+
++i;
|
|
554
|
+
pos += before.length;
|
|
555
|
+
args.push(before);
|
|
556
|
+
}
|
|
557
|
+
var wrapped = new Token(token, inside ? _.tokenize(match, inside) : match, alias, match, greedy);
|
|
558
|
+
args.push(wrapped);
|
|
559
|
+
if (after) {
|
|
560
|
+
args.push(after);
|
|
561
|
+
}
|
|
562
|
+
Array.prototype.splice.apply(strarr, args);
|
|
563
|
+
if (delNum != 1)
|
|
564
|
+
_.matchGrammar(text, strarr, grammar, i, pos, true, token + ',' + j);
|
|
565
|
+
if (oneshot)
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
tokenize: function (text, grammar) {
|
|
572
|
+
var strarr = [text];
|
|
573
|
+
var rest = grammar.rest;
|
|
574
|
+
if (rest) {
|
|
575
|
+
for (var token in rest) {
|
|
576
|
+
grammar[token] = rest[token];
|
|
577
|
+
}
|
|
578
|
+
delete grammar.rest;
|
|
579
|
+
}
|
|
580
|
+
_.matchGrammar(text, strarr, grammar, 0, 0, false);
|
|
581
|
+
return strarr;
|
|
582
|
+
},
|
|
583
|
+
hooks: {
|
|
584
|
+
all: {},
|
|
585
|
+
add: function (name, callback) {
|
|
586
|
+
var hooks = _.hooks.all;
|
|
587
|
+
hooks[name] = hooks[name] || [];
|
|
588
|
+
hooks[name].push(callback);
|
|
589
|
+
},
|
|
590
|
+
run: function (name, env) {
|
|
591
|
+
var callbacks = _.hooks.all[name];
|
|
592
|
+
if (!callbacks || !callbacks.length) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
for (var i = 0, callback; callback = callbacks[i++];) {
|
|
596
|
+
callback(env);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
Token: Token
|
|
601
|
+
};
|
|
602
|
+
_self.Prism = _;
|
|
603
|
+
function Token(type, content, alias, matchedStr, greedy) {
|
|
604
|
+
this.type = type;
|
|
605
|
+
this.content = content;
|
|
606
|
+
this.alias = alias;
|
|
607
|
+
this.length = (matchedStr || '').length | 0;
|
|
608
|
+
this.greedy = !!greedy;
|
|
609
|
+
}
|
|
610
|
+
Token.stringify = function (o, language) {
|
|
611
|
+
if (typeof o == 'string') {
|
|
612
|
+
return o;
|
|
613
|
+
}
|
|
614
|
+
if (Array.isArray(o)) {
|
|
615
|
+
return o.map(function (element) {
|
|
616
|
+
return Token.stringify(element, language);
|
|
617
|
+
}).join('');
|
|
618
|
+
}
|
|
619
|
+
var env = {
|
|
620
|
+
type: o.type,
|
|
621
|
+
content: Token.stringify(o.content, language),
|
|
622
|
+
tag: 'span',
|
|
623
|
+
classes: [
|
|
624
|
+
'token',
|
|
625
|
+
o.type
|
|
626
|
+
],
|
|
627
|
+
attributes: {},
|
|
628
|
+
language: language
|
|
629
|
+
};
|
|
630
|
+
if (o.alias) {
|
|
631
|
+
var aliases = Array.isArray(o.alias) ? o.alias : [o.alias];
|
|
632
|
+
Array.prototype.push.apply(env.classes, aliases);
|
|
633
|
+
}
|
|
634
|
+
_.hooks.run('wrap', env);
|
|
635
|
+
var attributes = Object.keys(env.attributes).map(function (name) {
|
|
636
|
+
return name + '="' + (env.attributes[name] || '').replace(/"/g, '"') + '"';
|
|
637
|
+
}).join(' ');
|
|
638
|
+
return '<' + env.tag + ' class="' + env.classes.join(' ') + '"' + (attributes ? ' ' + attributes : '') + '>' + env.content + '</' + env.tag + '>';
|
|
639
|
+
};
|
|
640
|
+
if (!_self.document) {
|
|
641
|
+
if (!_self.addEventListener) {
|
|
642
|
+
return _;
|
|
643
|
+
}
|
|
644
|
+
if (!_.disableWorkerMessageHandler) {
|
|
645
|
+
_self.addEventListener('message', function (evt) {
|
|
646
|
+
var message = JSON.parse(evt.data), lang = message.language, code = message.code, immediateClose = message.immediateClose;
|
|
647
|
+
_self.postMessage(_.highlight(code, _.languages[lang], lang));
|
|
648
|
+
if (immediateClose) {
|
|
649
|
+
_self.close();
|
|
650
|
+
}
|
|
651
|
+
}, false);
|
|
652
|
+
}
|
|
653
|
+
return _;
|
|
654
|
+
}
|
|
655
|
+
var script = _.util.currentScript();
|
|
656
|
+
if (script) {
|
|
657
|
+
_.filename = script.src;
|
|
658
|
+
if (script.hasAttribute('data-manual')) {
|
|
659
|
+
_.manual = true;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
if (!_.manual) {
|
|
663
|
+
var highlightAutomaticallyCallback = function () {
|
|
664
|
+
if (!_.manual) {
|
|
665
|
+
_.highlightAll();
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
var readyState = document.readyState;
|
|
669
|
+
if (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {
|
|
670
|
+
document.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);
|
|
671
|
+
} else {
|
|
672
|
+
if (window.requestAnimationFrame) {
|
|
673
|
+
window.requestAnimationFrame(highlightAutomaticallyCallback);
|
|
674
|
+
} else {
|
|
675
|
+
window.setTimeout(highlightAutomaticallyCallback, 16);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return _;
|
|
680
|
+
}(_self);
|
|
681
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
682
|
+
module.exports = Prism;
|
|
683
|
+
}
|
|
684
|
+
if (typeof global !== 'undefined') {
|
|
685
|
+
global.Prism = Prism;
|
|
686
|
+
}
|
|
687
|
+
}.call(this, typeof global$2 !== 'undefined' ? global$2 : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}));
|
|
688
|
+
},
|
|
689
|
+
{}
|
|
690
|
+
],
|
|
691
|
+
4: [
|
|
692
|
+
function (require, module, exports) {
|
|
693
|
+
Prism.languages.cpp = Prism.languages.extend('c', {
|
|
694
|
+
'class-name': {
|
|
695
|
+
pattern: /(\b(?:class|enum|struct)\s+)\w+/,
|
|
696
|
+
lookbehind: true
|
|
697
|
+
},
|
|
698
|
+
'keyword': /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,
|
|
699
|
+
'number': {
|
|
700
|
+
pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+\.?[\da-f']*|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+\.?[\d']*|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]*/i,
|
|
701
|
+
greedy: true
|
|
702
|
+
},
|
|
703
|
+
'operator': />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
|
|
704
|
+
'boolean': /\b(?:true|false)\b/
|
|
705
|
+
});
|
|
706
|
+
Prism.languages.insertBefore('cpp', 'string', {
|
|
707
|
+
'raw-string': {
|
|
708
|
+
pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
|
|
709
|
+
alias: 'string',
|
|
710
|
+
greedy: true
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
},
|
|
714
|
+
{}
|
|
715
|
+
],
|
|
716
|
+
5: [
|
|
717
|
+
function (require, module, exports) {
|
|
718
|
+
Prism.languages.csharp = Prism.languages.extend('clike', {
|
|
719
|
+
'keyword': /\b(?:abstract|add|alias|as|ascending|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|do|double|dynamic|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|from|get|global|goto|group|if|implicit|in|int|interface|internal|into|is|join|let|lock|long|namespace|new|null|object|operator|orderby|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|select|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|value|var|virtual|void|volatile|where|while|yield)\b/,
|
|
720
|
+
'string': [
|
|
721
|
+
{
|
|
722
|
+
pattern: /@("|')(?:\1\1|\\[\s\S]|(?!\1)[^\\])*\1/,
|
|
723
|
+
greedy: true
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
pattern: /("|')(?:\\.|(?!\1)[^\\\r\n])*?\1/,
|
|
727
|
+
greedy: true
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
'class-name': [
|
|
731
|
+
{
|
|
732
|
+
pattern: /\b[A-Z]\w*(?:\.\w+)*\b(?=\s+\w+)/,
|
|
733
|
+
inside: { punctuation: /\./ }
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
pattern: /(\[)[A-Z]\w*(?:\.\w+)*\b/,
|
|
737
|
+
lookbehind: true,
|
|
738
|
+
inside: { punctuation: /\./ }
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
pattern: /(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,
|
|
742
|
+
lookbehind: true,
|
|
743
|
+
inside: { punctuation: /\./ }
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
pattern: /((?:\b(?:class|interface|new)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,
|
|
747
|
+
lookbehind: true,
|
|
748
|
+
inside: { punctuation: /\./ }
|
|
749
|
+
}
|
|
750
|
+
],
|
|
751
|
+
'number': /\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)f?/i,
|
|
752
|
+
'operator': />>=?|<<=?|[-=]>|([-+&|?])\1|~|[-+*/%&|^!=<>]=?/,
|
|
753
|
+
'punctuation': /\?\.?|::|[{}[\];(),.:]/
|
|
754
|
+
});
|
|
755
|
+
Prism.languages.insertBefore('csharp', 'class-name', {
|
|
756
|
+
'generic-method': {
|
|
757
|
+
pattern: /\w+\s*<[^>\r\n]+?>\s*(?=\()/,
|
|
758
|
+
inside: {
|
|
759
|
+
function: /^\w+/,
|
|
760
|
+
'class-name': {
|
|
761
|
+
pattern: /\b[A-Z]\w*(?:\.\w+)*\b/,
|
|
762
|
+
inside: { punctuation: /\./ }
|
|
763
|
+
},
|
|
764
|
+
keyword: Prism.languages.csharp.keyword,
|
|
765
|
+
punctuation: /[<>(),.:]/
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
'preprocessor': {
|
|
769
|
+
pattern: /(^\s*)#.*/m,
|
|
770
|
+
lookbehind: true,
|
|
771
|
+
alias: 'property',
|
|
772
|
+
inside: {
|
|
773
|
+
'directive': {
|
|
774
|
+
pattern: /(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,
|
|
775
|
+
lookbehind: true,
|
|
776
|
+
alias: 'keyword'
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
|
|
782
|
+
},
|
|
783
|
+
{}
|
|
784
|
+
],
|
|
785
|
+
6: [
|
|
786
|
+
function (require, module, exports) {
|
|
787
|
+
(function (Prism) {
|
|
788
|
+
var string = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;
|
|
789
|
+
Prism.languages.css = {
|
|
790
|
+
'comment': /\/\*[\s\S]*?\*\//,
|
|
791
|
+
'atrule': {
|
|
792
|
+
pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,
|
|
793
|
+
inside: { 'rule': /@[\w-]+/ }
|
|
794
|
+
},
|
|
795
|
+
'url': {
|
|
796
|
+
pattern: RegExp('url\\((?:' + string.source + '|[^\n\r()]*)\\)', 'i'),
|
|
797
|
+
inside: {
|
|
798
|
+
'function': /^url/i,
|
|
799
|
+
'punctuation': /^\(|\)$/
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
'selector': RegExp('[^{}\\s](?:[^{};"\']|' + string.source + ')*?(?=\\s*\\{)'),
|
|
803
|
+
'string': {
|
|
804
|
+
pattern: string,
|
|
805
|
+
greedy: true
|
|
806
|
+
},
|
|
807
|
+
'property': /[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,
|
|
808
|
+
'important': /!important\b/i,
|
|
809
|
+
'function': /[-a-z0-9]+(?=\()/i,
|
|
810
|
+
'punctuation': /[(){};:,]/
|
|
811
|
+
};
|
|
812
|
+
Prism.languages.css['atrule'].inside.rest = Prism.languages.css;
|
|
813
|
+
var markup = Prism.languages.markup;
|
|
814
|
+
if (markup) {
|
|
815
|
+
markup.tag.addInlined('style', 'css');
|
|
816
|
+
Prism.languages.insertBefore('inside', 'attr-value', {
|
|
817
|
+
'style-attr': {
|
|
818
|
+
pattern: /\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,
|
|
819
|
+
inside: {
|
|
820
|
+
'attr-name': {
|
|
821
|
+
pattern: /^\s*style/i,
|
|
822
|
+
inside: markup.tag.inside
|
|
823
|
+
},
|
|
824
|
+
'punctuation': /^\s*=\s*['"]|['"]\s*$/,
|
|
825
|
+
'attr-value': {
|
|
826
|
+
pattern: /.+/i,
|
|
827
|
+
inside: Prism.languages.css
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
alias: 'language-css'
|
|
831
|
+
}
|
|
832
|
+
}, markup.tag);
|
|
833
|
+
}
|
|
834
|
+
}(Prism));
|
|
835
|
+
},
|
|
836
|
+
{}
|
|
837
|
+
],
|
|
838
|
+
7: [
|
|
839
|
+
function (require, module, exports) {
|
|
840
|
+
(function (Prism) {
|
|
841
|
+
var keywords = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|null|open|opens|package|private|protected|provides|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/;
|
|
842
|
+
var className = /\b[A-Z](?:\w*[a-z]\w*)?\b/;
|
|
843
|
+
Prism.languages.java = Prism.languages.extend('clike', {
|
|
844
|
+
'class-name': [
|
|
845
|
+
className,
|
|
846
|
+
/\b[A-Z]\w*(?=\s+\w+\s*[;,=())])/
|
|
847
|
+
],
|
|
848
|
+
'keyword': keywords,
|
|
849
|
+
'function': [
|
|
850
|
+
Prism.languages.clike.function,
|
|
851
|
+
{
|
|
852
|
+
pattern: /(\:\:)[a-z_]\w*/,
|
|
853
|
+
lookbehind: true
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
'number': /\b0b[01][01_]*L?\b|\b0x[\da-f_]*\.?[\da-f_p+-]+\b|(?:\b\d[\d_]*\.?[\d_]*|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
|
|
857
|
+
'operator': {
|
|
858
|
+
pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
|
|
859
|
+
lookbehind: true
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
Prism.languages.insertBefore('java', 'string', {
|
|
863
|
+
'triple-quoted-string': {
|
|
864
|
+
pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
|
|
865
|
+
greedy: true,
|
|
866
|
+
alias: 'string'
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
Prism.languages.insertBefore('java', 'class-name', {
|
|
870
|
+
'annotation': {
|
|
871
|
+
alias: 'punctuation',
|
|
872
|
+
pattern: /(^|[^.])@\w+/,
|
|
873
|
+
lookbehind: true
|
|
874
|
+
},
|
|
875
|
+
'namespace': {
|
|
876
|
+
pattern: /(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)[a-z]\w*(?:\.[a-z]\w*)+/,
|
|
877
|
+
lookbehind: true,
|
|
878
|
+
inside: { 'punctuation': /\./ }
|
|
879
|
+
},
|
|
880
|
+
'generics': {
|
|
881
|
+
pattern: /<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,
|
|
882
|
+
inside: {
|
|
883
|
+
'class-name': className,
|
|
884
|
+
'keyword': keywords,
|
|
885
|
+
'punctuation': /[<>(),.:]/,
|
|
886
|
+
'operator': /[?&|]/
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
}(Prism));
|
|
891
|
+
},
|
|
892
|
+
{}
|
|
893
|
+
],
|
|
894
|
+
8: [
|
|
895
|
+
function (require, module, exports) {
|
|
896
|
+
Prism.languages.javascript = Prism.languages.extend('clike', {
|
|
897
|
+
'class-name': [
|
|
898
|
+
Prism.languages.clike['class-name'],
|
|
899
|
+
{
|
|
900
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,
|
|
901
|
+
lookbehind: true
|
|
902
|
+
}
|
|
903
|
+
],
|
|
904
|
+
'keyword': [
|
|
905
|
+
{
|
|
906
|
+
pattern: /((?:^|})\s*)(?:catch|finally)\b/,
|
|
907
|
+
lookbehind: true
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
911
|
+
lookbehind: true
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
'number': /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,
|
|
915
|
+
'function': /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
916
|
+
'operator': /--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/
|
|
917
|
+
});
|
|
918
|
+
Prism.languages.javascript['class-name'][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/;
|
|
919
|
+
Prism.languages.insertBefore('javascript', 'keyword', {
|
|
920
|
+
'regex': {
|
|
921
|
+
pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
|
|
922
|
+
lookbehind: true,
|
|
923
|
+
greedy: true
|
|
924
|
+
},
|
|
925
|
+
'function-variable': {
|
|
926
|
+
pattern: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,
|
|
927
|
+
alias: 'function'
|
|
928
|
+
},
|
|
929
|
+
'parameter': [
|
|
930
|
+
{
|
|
931
|
+
pattern: /(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,
|
|
932
|
+
lookbehind: true,
|
|
933
|
+
inside: Prism.languages.javascript
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
pattern: /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,
|
|
937
|
+
inside: Prism.languages.javascript
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
pattern: /(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,
|
|
941
|
+
lookbehind: true,
|
|
942
|
+
inside: Prism.languages.javascript
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,
|
|
946
|
+
lookbehind: true,
|
|
947
|
+
inside: Prism.languages.javascript
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
'constant': /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
951
|
+
});
|
|
952
|
+
Prism.languages.insertBefore('javascript', 'string', {
|
|
953
|
+
'template-string': {
|
|
954
|
+
pattern: /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,
|
|
955
|
+
greedy: true,
|
|
956
|
+
inside: {
|
|
957
|
+
'template-punctuation': {
|
|
958
|
+
pattern: /^`|`$/,
|
|
959
|
+
alias: 'string'
|
|
960
|
+
},
|
|
961
|
+
'interpolation': {
|
|
962
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,
|
|
963
|
+
lookbehind: true,
|
|
964
|
+
inside: {
|
|
965
|
+
'interpolation-punctuation': {
|
|
966
|
+
pattern: /^\${|}$/,
|
|
967
|
+
alias: 'punctuation'
|
|
968
|
+
},
|
|
969
|
+
rest: Prism.languages.javascript
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
'string': /[\s\S]+/
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
});
|
|
976
|
+
if (Prism.languages.markup) {
|
|
977
|
+
Prism.languages.markup.tag.addInlined('script', 'javascript');
|
|
978
|
+
}
|
|
979
|
+
Prism.languages.js = Prism.languages.javascript;
|
|
980
|
+
},
|
|
981
|
+
{}
|
|
982
|
+
],
|
|
983
|
+
9: [
|
|
984
|
+
function (require, module, exports) {
|
|
985
|
+
(function (Prism) {
|
|
986
|
+
function getPlaceholder(language, index) {
|
|
987
|
+
return '___' + language.toUpperCase() + index + '___';
|
|
988
|
+
}
|
|
989
|
+
Object.defineProperties(Prism.languages['markup-templating'] = {}, {
|
|
990
|
+
buildPlaceholders: {
|
|
991
|
+
value: function (env, language, placeholderPattern, replaceFilter) {
|
|
992
|
+
if (env.language !== language) {
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
var tokenStack = env.tokenStack = [];
|
|
996
|
+
env.code = env.code.replace(placeholderPattern, function (match) {
|
|
997
|
+
if (typeof replaceFilter === 'function' && !replaceFilter(match)) {
|
|
998
|
+
return match;
|
|
999
|
+
}
|
|
1000
|
+
var i = tokenStack.length;
|
|
1001
|
+
var placeholder;
|
|
1002
|
+
while (env.code.indexOf(placeholder = getPlaceholder(language, i)) !== -1)
|
|
1003
|
+
++i;
|
|
1004
|
+
tokenStack[i] = match;
|
|
1005
|
+
return placeholder;
|
|
1006
|
+
});
|
|
1007
|
+
env.grammar = Prism.languages.markup;
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
tokenizePlaceholders: {
|
|
1011
|
+
value: function (env, language) {
|
|
1012
|
+
if (env.language !== language || !env.tokenStack) {
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
env.grammar = Prism.languages[language];
|
|
1016
|
+
var j = 0;
|
|
1017
|
+
var keys = Object.keys(env.tokenStack);
|
|
1018
|
+
function walkTokens(tokens) {
|
|
1019
|
+
for (var i = 0; i < tokens.length; i++) {
|
|
1020
|
+
if (j >= keys.length) {
|
|
1021
|
+
break;
|
|
1022
|
+
}
|
|
1023
|
+
var token = tokens[i];
|
|
1024
|
+
if (typeof token === 'string' || token.content && typeof token.content === 'string') {
|
|
1025
|
+
var k = keys[j];
|
|
1026
|
+
var t = env.tokenStack[k];
|
|
1027
|
+
var s = typeof token === 'string' ? token : token.content;
|
|
1028
|
+
var placeholder = getPlaceholder(language, k);
|
|
1029
|
+
var index = s.indexOf(placeholder);
|
|
1030
|
+
if (index > -1) {
|
|
1031
|
+
++j;
|
|
1032
|
+
var before = s.substring(0, index);
|
|
1033
|
+
var middle = new Prism.Token(language, Prism.tokenize(t, env.grammar), 'language-' + language, t);
|
|
1034
|
+
var after = s.substring(index + placeholder.length);
|
|
1035
|
+
var replacement = [];
|
|
1036
|
+
if (before) {
|
|
1037
|
+
replacement.push.apply(replacement, walkTokens([before]));
|
|
1038
|
+
}
|
|
1039
|
+
replacement.push(middle);
|
|
1040
|
+
if (after) {
|
|
1041
|
+
replacement.push.apply(replacement, walkTokens([after]));
|
|
1042
|
+
}
|
|
1043
|
+
if (typeof token === 'string') {
|
|
1044
|
+
tokens.splice.apply(tokens, [
|
|
1045
|
+
i,
|
|
1046
|
+
1
|
|
1047
|
+
].concat(replacement));
|
|
1048
|
+
} else {
|
|
1049
|
+
token.content = replacement;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
} else if (token.content) {
|
|
1053
|
+
walkTokens(token.content);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
return tokens;
|
|
1057
|
+
}
|
|
1058
|
+
walkTokens(env.tokens);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
}(Prism));
|
|
1063
|
+
},
|
|
1064
|
+
{}
|
|
1065
|
+
],
|
|
1066
|
+
10: [
|
|
1067
|
+
function (require, module, exports) {
|
|
1068
|
+
Prism.languages.markup = {
|
|
1069
|
+
'comment': /<!--[\s\S]*?-->/,
|
|
1070
|
+
'prolog': /<\?[\s\S]+?\?>/,
|
|
1071
|
+
'doctype': {
|
|
1072
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,
|
|
1073
|
+
greedy: true
|
|
1074
|
+
},
|
|
1075
|
+
'cdata': /<!\[CDATA\[[\s\S]*?]]>/i,
|
|
1076
|
+
'tag': {
|
|
1077
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,
|
|
1078
|
+
greedy: true,
|
|
1079
|
+
inside: {
|
|
1080
|
+
'tag': {
|
|
1081
|
+
pattern: /^<\/?[^\s>\/]+/i,
|
|
1082
|
+
inside: {
|
|
1083
|
+
'punctuation': /^<\/?/,
|
|
1084
|
+
'namespace': /^[^\s>\/:]+:/
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
'attr-value': {
|
|
1088
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,
|
|
1089
|
+
inside: {
|
|
1090
|
+
'punctuation': [
|
|
1091
|
+
/^=/,
|
|
1092
|
+
{
|
|
1093
|
+
pattern: /^(\s*)["']|["']$/,
|
|
1094
|
+
lookbehind: true
|
|
1095
|
+
}
|
|
1096
|
+
]
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
'punctuation': /\/?>/,
|
|
1100
|
+
'attr-name': {
|
|
1101
|
+
pattern: /[^\s>\/]+/,
|
|
1102
|
+
inside: { 'namespace': /^[^\s>\/:]+:/ }
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
'entity': /&#?[\da-z]{1,8};/i
|
|
1107
|
+
};
|
|
1108
|
+
Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] = Prism.languages.markup['entity'];
|
|
1109
|
+
Prism.hooks.add('wrap', function (env) {
|
|
1110
|
+
if (env.type === 'entity') {
|
|
1111
|
+
env.attributes['title'] = env.content.replace(/&/, '&');
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
|
|
1115
|
+
value: function addInlined(tagName, lang) {
|
|
1116
|
+
var includedCdataInside = {};
|
|
1117
|
+
includedCdataInside['language-' + lang] = {
|
|
1118
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
1119
|
+
lookbehind: true,
|
|
1120
|
+
inside: Prism.languages[lang]
|
|
1121
|
+
};
|
|
1122
|
+
includedCdataInside['cdata'] = /^<!\[CDATA\[|\]\]>$/i;
|
|
1123
|
+
var inside = {
|
|
1124
|
+
'included-cdata': {
|
|
1125
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
1126
|
+
inside: includedCdataInside
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
inside['language-' + lang] = {
|
|
1130
|
+
pattern: /[\s\S]+/,
|
|
1131
|
+
inside: Prism.languages[lang]
|
|
1132
|
+
};
|
|
1133
|
+
var def = {};
|
|
1134
|
+
def[tagName] = {
|
|
1135
|
+
pattern: RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g, tagName), 'i'),
|
|
1136
|
+
lookbehind: true,
|
|
1137
|
+
greedy: true,
|
|
1138
|
+
inside: inside
|
|
1139
|
+
};
|
|
1140
|
+
Prism.languages.insertBefore('markup', 'cdata', def);
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1143
|
+
Prism.languages.xml = Prism.languages.extend('markup', {});
|
|
1144
|
+
Prism.languages.html = Prism.languages.markup;
|
|
1145
|
+
Prism.languages.mathml = Prism.languages.markup;
|
|
1146
|
+
Prism.languages.svg = Prism.languages.markup;
|
|
1147
|
+
},
|
|
1148
|
+
{}
|
|
1149
|
+
],
|
|
1150
|
+
11: [
|
|
1151
|
+
function (require, module, exports) {
|
|
1152
|
+
(function (Prism) {
|
|
1153
|
+
Prism.languages.php = Prism.languages.extend('clike', {
|
|
1154
|
+
'keyword': /\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|new|or|parent|print|private|protected|public|require|require_once|return|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,
|
|
1155
|
+
'boolean': {
|
|
1156
|
+
pattern: /\b(?:false|true)\b/i,
|
|
1157
|
+
alias: 'constant'
|
|
1158
|
+
},
|
|
1159
|
+
'constant': [
|
|
1160
|
+
/\b[A-Z_][A-Z0-9_]*\b/,
|
|
1161
|
+
/\b(?:null)\b/i
|
|
1162
|
+
],
|
|
1163
|
+
'comment': {
|
|
1164
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
|
|
1165
|
+
lookbehind: true
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
Prism.languages.insertBefore('php', 'string', {
|
|
1169
|
+
'shell-comment': {
|
|
1170
|
+
pattern: /(^|[^\\])#.*/,
|
|
1171
|
+
lookbehind: true,
|
|
1172
|
+
alias: 'comment'
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
Prism.languages.insertBefore('php', 'comment', {
|
|
1176
|
+
'delimiter': {
|
|
1177
|
+
pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
|
|
1178
|
+
alias: 'important'
|
|
1179
|
+
}
|
|
1180
|
+
});
|
|
1181
|
+
Prism.languages.insertBefore('php', 'keyword', {
|
|
1182
|
+
'variable': /\$+(?:\w+\b|(?={))/i,
|
|
1183
|
+
'package': {
|
|
1184
|
+
pattern: /(\\|namespace\s+|use\s+)[\w\\]+/,
|
|
1185
|
+
lookbehind: true,
|
|
1186
|
+
inside: { punctuation: /\\/ }
|
|
1187
|
+
}
|
|
1188
|
+
});
|
|
1189
|
+
Prism.languages.insertBefore('php', 'operator', {
|
|
1190
|
+
'property': {
|
|
1191
|
+
pattern: /(->)[\w]+/,
|
|
1192
|
+
lookbehind: true
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
var string_interpolation = {
|
|
1196
|
+
pattern: /{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[.+?]|->\w+)*)/,
|
|
1197
|
+
lookbehind: true,
|
|
1198
|
+
inside: Prism.languages.php
|
|
1199
|
+
};
|
|
1200
|
+
Prism.languages.insertBefore('php', 'string', {
|
|
1201
|
+
'nowdoc-string': {
|
|
1202
|
+
pattern: /<<<'([^']+)'(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;/,
|
|
1203
|
+
greedy: true,
|
|
1204
|
+
alias: 'string',
|
|
1205
|
+
inside: {
|
|
1206
|
+
'delimiter': {
|
|
1207
|
+
pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
|
|
1208
|
+
alias: 'symbol',
|
|
1209
|
+
inside: { 'punctuation': /^<<<'?|[';]$/ }
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
'heredoc-string': {
|
|
1214
|
+
pattern: /<<<(?:"([^"]+)"(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\1;|([a-z_]\w*)(?:\r\n?|\n)(?:.*(?:\r\n?|\n))*?\2;)/i,
|
|
1215
|
+
greedy: true,
|
|
1216
|
+
alias: 'string',
|
|
1217
|
+
inside: {
|
|
1218
|
+
'delimiter': {
|
|
1219
|
+
pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
|
|
1220
|
+
alias: 'symbol',
|
|
1221
|
+
inside: { 'punctuation': /^<<<"?|[";]$/ }
|
|
1222
|
+
},
|
|
1223
|
+
'interpolation': string_interpolation
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
'single-quoted-string': {
|
|
1227
|
+
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
|
1228
|
+
greedy: true,
|
|
1229
|
+
alias: 'string'
|
|
1230
|
+
},
|
|
1231
|
+
'double-quoted-string': {
|
|
1232
|
+
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
|
1233
|
+
greedy: true,
|
|
1234
|
+
alias: 'string',
|
|
1235
|
+
inside: { 'interpolation': string_interpolation }
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
delete Prism.languages.php['string'];
|
|
1239
|
+
Prism.hooks.add('before-tokenize', function (env) {
|
|
1240
|
+
if (!/<\?/.test(env.code)) {
|
|
1241
|
+
return;
|
|
1242
|
+
}
|
|
1243
|
+
var phpPattern = /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#)(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|\/\*[\s\S]*?(?:\*\/|$))*?(?:\?>|$)/ig;
|
|
1244
|
+
Prism.languages['markup-templating'].buildPlaceholders(env, 'php', phpPattern);
|
|
1245
|
+
});
|
|
1246
|
+
Prism.hooks.add('after-tokenize', function (env) {
|
|
1247
|
+
Prism.languages['markup-templating'].tokenizePlaceholders(env, 'php');
|
|
1248
|
+
});
|
|
1249
|
+
}(Prism));
|
|
1250
|
+
},
|
|
1251
|
+
{}
|
|
1252
|
+
],
|
|
1253
|
+
12: [
|
|
1254
|
+
function (require, module, exports) {
|
|
1255
|
+
Prism.languages.python = {
|
|
1256
|
+
'comment': {
|
|
1257
|
+
pattern: /(^|[^\\])#.*/,
|
|
1258
|
+
lookbehind: true
|
|
1259
|
+
},
|
|
1260
|
+
'string-interpolation': {
|
|
1261
|
+
pattern: /(?:f|rf|fr)(?:("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
1262
|
+
greedy: true,
|
|
1263
|
+
inside: {
|
|
1264
|
+
'interpolation': {
|
|
1265
|
+
pattern: /((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,
|
|
1266
|
+
lookbehind: true,
|
|
1267
|
+
inside: {
|
|
1268
|
+
'format-spec': {
|
|
1269
|
+
pattern: /(:)[^:(){}]+(?=}$)/,
|
|
1270
|
+
lookbehind: true
|
|
1271
|
+
},
|
|
1272
|
+
'conversion-option': {
|
|
1273
|
+
pattern: //,
|
|
1274
|
+
alias: 'punctuation'
|
|
1275
|
+
},
|
|
1276
|
+
rest: null
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
'string': /[\s\S]+/
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
'triple-quoted-string': {
|
|
1283
|
+
pattern: /(?:[rub]|rb|br)?("""|''')[\s\S]+?\1/i,
|
|
1284
|
+
greedy: true,
|
|
1285
|
+
alias: 'string'
|
|
1286
|
+
},
|
|
1287
|
+
'string': {
|
|
1288
|
+
pattern: /(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
1289
|
+
greedy: true
|
|
1290
|
+
},
|
|
1291
|
+
'function': {
|
|
1292
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
1293
|
+
lookbehind: true
|
|
1294
|
+
},
|
|
1295
|
+
'class-name': {
|
|
1296
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
1297
|
+
lookbehind: true
|
|
1298
|
+
},
|
|
1299
|
+
'decorator': {
|
|
1300
|
+
pattern: /(^\s*)@\w+(?:\.\w+)*/im,
|
|
1301
|
+
lookbehind: true,
|
|
1302
|
+
alias: [
|
|
1303
|
+
'annotation',
|
|
1304
|
+
'punctuation'
|
|
1305
|
+
],
|
|
1306
|
+
inside: { 'punctuation': /\./ }
|
|
1307
|
+
},
|
|
1308
|
+
'keyword': /\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
1309
|
+
'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
1310
|
+
'boolean': /\b(?:True|False|None)\b/,
|
|
1311
|
+
'number': /(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
|
|
1312
|
+
'operator': /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
1313
|
+
'punctuation': /[{}[\];(),.:]/
|
|
1314
|
+
};
|
|
1315
|
+
Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
|
|
1316
|
+
Prism.languages.py = Prism.languages.python;
|
|
1317
|
+
},
|
|
1318
|
+
{}
|
|
1319
|
+
],
|
|
1320
|
+
13: [
|
|
1321
|
+
function (require, module, exports) {
|
|
1322
|
+
(function (Prism) {
|
|
1323
|
+
Prism.languages.ruby = Prism.languages.extend('clike', {
|
|
1324
|
+
'comment': [
|
|
1325
|
+
/#.*/,
|
|
1326
|
+
{
|
|
1327
|
+
pattern: /^=begin\s[\s\S]*?^=end/m,
|
|
1328
|
+
greedy: true
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
'class-name': {
|
|
1332
|
+
pattern: /(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
1333
|
+
lookbehind: true,
|
|
1334
|
+
inside: { 'punctuation': /[.\\]/ }
|
|
1335
|
+
},
|
|
1336
|
+
'keyword': /\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/
|
|
1337
|
+
});
|
|
1338
|
+
var interpolation = {
|
|
1339
|
+
pattern: /#\{[^}]+\}/,
|
|
1340
|
+
inside: {
|
|
1341
|
+
'delimiter': {
|
|
1342
|
+
pattern: /^#\{|\}$/,
|
|
1343
|
+
alias: 'tag'
|
|
1344
|
+
},
|
|
1345
|
+
rest: Prism.languages.ruby
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
delete Prism.languages.ruby.function;
|
|
1349
|
+
Prism.languages.insertBefore('ruby', 'keyword', {
|
|
1350
|
+
'regex': [
|
|
1351
|
+
{
|
|
1352
|
+
pattern: /%r([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1[gim]{0,3}/,
|
|
1353
|
+
greedy: true,
|
|
1354
|
+
inside: { 'interpolation': interpolation }
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
pattern: /%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,
|
|
1358
|
+
greedy: true,
|
|
1359
|
+
inside: { 'interpolation': interpolation }
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
pattern: /%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,
|
|
1363
|
+
greedy: true,
|
|
1364
|
+
inside: { 'interpolation': interpolation }
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
pattern: /%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,
|
|
1368
|
+
greedy: true,
|
|
1369
|
+
inside: { 'interpolation': interpolation }
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
pattern: /%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,
|
|
1373
|
+
greedy: true,
|
|
1374
|
+
inside: { 'interpolation': interpolation }
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
pattern: /(^|[^/])\/(?!\/)(?:\[.+?]|\\.|[^/\\\r\n])+\/[gim]{0,3}(?=\s*(?:$|[\r\n,.;})]))/,
|
|
1378
|
+
lookbehind: true,
|
|
1379
|
+
greedy: true
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1382
|
+
'variable': /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
|
|
1383
|
+
'symbol': {
|
|
1384
|
+
pattern: /(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,
|
|
1385
|
+
lookbehind: true
|
|
1386
|
+
},
|
|
1387
|
+
'method-definition': {
|
|
1388
|
+
pattern: /(\bdef\s+)[\w.]+/,
|
|
1389
|
+
lookbehind: true,
|
|
1390
|
+
inside: {
|
|
1391
|
+
'function': /\w+$/,
|
|
1392
|
+
rest: Prism.languages.ruby
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
Prism.languages.insertBefore('ruby', 'number', {
|
|
1397
|
+
'builtin': /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,
|
|
1398
|
+
'constant': /\b[A-Z]\w*(?:[?!]|\b)/
|
|
1399
|
+
});
|
|
1400
|
+
Prism.languages.ruby.string = [
|
|
1401
|
+
{
|
|
1402
|
+
pattern: /%[qQiIwWxs]?([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/,
|
|
1403
|
+
greedy: true,
|
|
1404
|
+
inside: { 'interpolation': interpolation }
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
pattern: /%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,
|
|
1408
|
+
greedy: true,
|
|
1409
|
+
inside: { 'interpolation': interpolation }
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
pattern: /%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,
|
|
1413
|
+
greedy: true,
|
|
1414
|
+
inside: { 'interpolation': interpolation }
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
pattern: /%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,
|
|
1418
|
+
greedy: true,
|
|
1419
|
+
inside: { 'interpolation': interpolation }
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
pattern: /%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,
|
|
1423
|
+
greedy: true,
|
|
1424
|
+
inside: { 'interpolation': interpolation }
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
pattern: /("|')(?:#\{[^}]+\}|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
1428
|
+
greedy: true,
|
|
1429
|
+
inside: { 'interpolation': interpolation }
|
|
1430
|
+
}
|
|
1431
|
+
];
|
|
1432
|
+
Prism.languages.rb = Prism.languages.ruby;
|
|
1433
|
+
}(Prism));
|
|
1434
|
+
},
|
|
1435
|
+
{}
|
|
1436
|
+
],
|
|
1437
|
+
14: [
|
|
1438
|
+
function (require, module, exports) {
|
|
1439
|
+
var Prism = require('prismjs/components/prism-core');
|
|
1440
|
+
require('prismjs/components/prism-clike');
|
|
1441
|
+
require('prismjs/components/prism-markup-templating');
|
|
1442
|
+
require('prismjs/components/prism-c');
|
|
1443
|
+
require('prismjs/components/prism-cpp');
|
|
1444
|
+
require('prismjs/components/prism-csharp');
|
|
1445
|
+
require('prismjs/components/prism-css');
|
|
1446
|
+
require('prismjs/components/prism-java');
|
|
1447
|
+
require('prismjs/components/prism-javascript');
|
|
1448
|
+
require('prismjs/components/prism-markup');
|
|
1449
|
+
require('prismjs/components/prism-php');
|
|
1450
|
+
require('prismjs/components/prism-python');
|
|
1451
|
+
require('prismjs/components/prism-ruby');
|
|
1452
|
+
module.exports = { boltExport: Prism };
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
'prismjs/components/prism-c': 1,
|
|
1456
|
+
'prismjs/components/prism-clike': 2,
|
|
1457
|
+
'prismjs/components/prism-core': 3,
|
|
1458
|
+
'prismjs/components/prism-cpp': 4,
|
|
1459
|
+
'prismjs/components/prism-csharp': 5,
|
|
1460
|
+
'prismjs/components/prism-css': 6,
|
|
1461
|
+
'prismjs/components/prism-java': 7,
|
|
1462
|
+
'prismjs/components/prism-javascript': 8,
|
|
1463
|
+
'prismjs/components/prism-markup': 10,
|
|
1464
|
+
'prismjs/components/prism-markup-templating': 9,
|
|
1465
|
+
'prismjs/components/prism-php': 11,
|
|
1466
|
+
'prismjs/components/prism-python': 12,
|
|
1467
|
+
'prismjs/components/prism-ruby': 13
|
|
1468
|
+
}
|
|
1469
|
+
]
|
|
1470
|
+
}, {}, [14])(14);
|
|
1471
|
+
}));
|
|
1472
|
+
var prism = window.Prism;
|
|
1473
|
+
window.Prism = oldprism;
|
|
1474
|
+
return prism;
|
|
1475
|
+
}(undefined, exports$1, module, undefined));
|
|
1476
|
+
var Prism$1 = module.exports.boltExport;
|
|
1477
|
+
|
|
1478
|
+
var getLanguages = function (editor) {
|
|
1479
|
+
return editor.getParam('codesample_languages');
|
|
1480
|
+
};
|
|
1481
|
+
var useGlobalPrismJS = function (editor) {
|
|
1482
|
+
return editor.getParam('codesample_global_prismjs', false, 'boolean');
|
|
1483
|
+
};
|
|
1484
|
+
|
|
1485
|
+
var get = function (editor) {
|
|
1486
|
+
return Global.Prism && useGlobalPrismJS(editor) ? Global.Prism : Prism$1;
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
var getSelectedCodeSample = function (editor) {
|
|
1490
|
+
var node = editor.selection ? editor.selection.getNode() : null;
|
|
1491
|
+
if (isCodeSample(node)) {
|
|
1492
|
+
return Option.some(node);
|
|
1493
|
+
}
|
|
1494
|
+
return Option.none();
|
|
1495
|
+
};
|
|
1496
|
+
var insertCodeSample = function (editor, language, code) {
|
|
1497
|
+
editor.undoManager.transact(function () {
|
|
1498
|
+
var node = getSelectedCodeSample(editor);
|
|
1499
|
+
code = global$1.DOM.encode(code);
|
|
1500
|
+
return node.fold(function () {
|
|
1501
|
+
editor.insertContent('<pre id="__new" class="language-' + language + '">' + code + '</pre>');
|
|
1502
|
+
editor.selection.select(editor.$('#__new').removeAttr('id')[0]);
|
|
1503
|
+
}, function (n) {
|
|
1504
|
+
editor.dom.setAttrib(n, 'class', 'language-' + language);
|
|
1505
|
+
n.innerHTML = code;
|
|
1506
|
+
get(editor).highlightElement(n);
|
|
1507
|
+
editor.selection.select(n);
|
|
1508
|
+
});
|
|
1509
|
+
});
|
|
1510
|
+
};
|
|
1511
|
+
var getCurrentCode = function (editor) {
|
|
1512
|
+
var node = getSelectedCodeSample(editor);
|
|
1513
|
+
return node.fold(function () {
|
|
1514
|
+
return '';
|
|
1515
|
+
}, function (n) {
|
|
1516
|
+
return n.textContent;
|
|
1517
|
+
});
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
var getLanguages$1 = function (editor) {
|
|
1521
|
+
var defaultLanguages = [
|
|
1522
|
+
{
|
|
1523
|
+
text: 'HTML/XML',
|
|
1524
|
+
value: 'markup'
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
text: 'JavaScript',
|
|
1528
|
+
value: 'javascript'
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
text: 'CSS',
|
|
1532
|
+
value: 'css'
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
text: 'PHP',
|
|
1536
|
+
value: 'php'
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
text: 'Ruby',
|
|
1540
|
+
value: 'ruby'
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
text: 'Python',
|
|
1544
|
+
value: 'python'
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
text: 'Java',
|
|
1548
|
+
value: 'java'
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
text: 'C',
|
|
1552
|
+
value: 'c'
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
text: 'C#',
|
|
1556
|
+
value: 'csharp'
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
text: 'C++',
|
|
1560
|
+
value: 'cpp'
|
|
1561
|
+
}
|
|
1562
|
+
];
|
|
1563
|
+
var customLanguages = getLanguages(editor);
|
|
1564
|
+
return customLanguages ? customLanguages : defaultLanguages;
|
|
1565
|
+
};
|
|
1566
|
+
var getCurrentLanguage = function (editor, fallback) {
|
|
1567
|
+
var node = getSelectedCodeSample(editor);
|
|
1568
|
+
return node.fold(function () {
|
|
1569
|
+
return fallback;
|
|
1570
|
+
}, function (n) {
|
|
1571
|
+
var matches = n.className.match(/language-(\w+)/);
|
|
1572
|
+
return matches ? matches[1] : fallback;
|
|
1573
|
+
});
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
var open = function (editor) {
|
|
1577
|
+
var languages = getLanguages$1(editor);
|
|
1578
|
+
var defaultLanguage = head(languages).fold(function () {
|
|
1579
|
+
return '';
|
|
1580
|
+
}, function (l) {
|
|
1581
|
+
return l.value;
|
|
1582
|
+
});
|
|
1583
|
+
var currentLanguage = getCurrentLanguage(editor, defaultLanguage);
|
|
1584
|
+
var currentCode = getCurrentCode(editor);
|
|
1585
|
+
editor.windowManager.open({
|
|
1586
|
+
title: 'Insert/Edit Code Sample',
|
|
1587
|
+
size: 'large',
|
|
1588
|
+
body: {
|
|
1589
|
+
type: 'panel',
|
|
1590
|
+
items: [
|
|
1591
|
+
{
|
|
1592
|
+
type: 'selectbox',
|
|
1593
|
+
name: 'language',
|
|
1594
|
+
label: 'Language',
|
|
1595
|
+
items: languages
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
type: 'textarea',
|
|
1599
|
+
name: 'code',
|
|
1600
|
+
label: 'Code view'
|
|
1601
|
+
}
|
|
1602
|
+
]
|
|
1603
|
+
},
|
|
1604
|
+
buttons: [
|
|
1605
|
+
{
|
|
1606
|
+
type: 'cancel',
|
|
1607
|
+
name: 'cancel',
|
|
1608
|
+
text: 'Cancel'
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
type: 'submit',
|
|
1612
|
+
name: 'save',
|
|
1613
|
+
text: 'Save',
|
|
1614
|
+
primary: true
|
|
1615
|
+
}
|
|
1616
|
+
],
|
|
1617
|
+
initialData: {
|
|
1618
|
+
language: currentLanguage,
|
|
1619
|
+
code: currentCode
|
|
1620
|
+
},
|
|
1621
|
+
onSubmit: function (api) {
|
|
1622
|
+
var data = api.getData();
|
|
1623
|
+
insertCodeSample(editor, data.language, data.code);
|
|
1624
|
+
api.close();
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
var register = function (editor) {
|
|
1630
|
+
editor.addCommand('codesample', function () {
|
|
1631
|
+
var node = editor.selection.getNode();
|
|
1632
|
+
if (editor.selection.isCollapsed() || isCodeSample(node)) {
|
|
1633
|
+
open(editor);
|
|
1634
|
+
} else {
|
|
1635
|
+
editor.formatter.toggle('code');
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
var setup = function (editor) {
|
|
1641
|
+
var $ = editor.$;
|
|
1642
|
+
editor.on('PreProcess', function (e) {
|
|
1643
|
+
$('pre[contenteditable=false]', e.node).filter(trimArg(isCodeSample)).each(function (idx, elm) {
|
|
1644
|
+
var $elm = $(elm), code = elm.textContent;
|
|
1645
|
+
$elm.attr('class', $.trim($elm.attr('class')));
|
|
1646
|
+
$elm.removeAttr('contentEditable');
|
|
1647
|
+
$elm.empty().append($('<code></code>').each(function () {
|
|
1648
|
+
this.textContent = code;
|
|
1649
|
+
}));
|
|
1650
|
+
});
|
|
1651
|
+
});
|
|
1652
|
+
editor.on('SetContent', function () {
|
|
1653
|
+
var unprocessedCodeSamples = $('pre').filter(trimArg(isCodeSample)).filter(function (idx, elm) {
|
|
1654
|
+
return elm.contentEditable !== 'false';
|
|
1655
|
+
});
|
|
1656
|
+
if (unprocessedCodeSamples.length) {
|
|
1657
|
+
editor.undoManager.transact(function () {
|
|
1658
|
+
unprocessedCodeSamples.each(function (idx, elm) {
|
|
1659
|
+
$(elm).find('br').each(function (idx, elm) {
|
|
1660
|
+
elm.parentNode.replaceChild(editor.getDoc().createTextNode('\n'), elm);
|
|
1661
|
+
});
|
|
1662
|
+
elm.contentEditable = 'false';
|
|
1663
|
+
elm.innerHTML = editor.dom.encode(elm.textContent);
|
|
1664
|
+
get(editor).highlightElement(elm);
|
|
1665
|
+
elm.className = $.trim(elm.className);
|
|
1666
|
+
});
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
});
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
var isCodeSampleSelection = function (editor) {
|
|
1673
|
+
var node = editor.selection.getStart();
|
|
1674
|
+
return editor.dom.is(node, 'pre[class*="language-"]');
|
|
1675
|
+
};
|
|
1676
|
+
var register$1 = function (editor) {
|
|
1677
|
+
editor.ui.registry.addToggleButton('codesample', {
|
|
1678
|
+
icon: 'code-sample',
|
|
1679
|
+
tooltip: 'Insert/edit code sample',
|
|
1680
|
+
onAction: function () {
|
|
1681
|
+
return open(editor);
|
|
1682
|
+
},
|
|
1683
|
+
onSetup: function (api) {
|
|
1684
|
+
var nodeChangeHandler = function () {
|
|
1685
|
+
api.setActive(isCodeSampleSelection(editor));
|
|
1686
|
+
};
|
|
1687
|
+
editor.on('NodeChange', nodeChangeHandler);
|
|
1688
|
+
return function () {
|
|
1689
|
+
return editor.off('NodeChange', nodeChangeHandler);
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
editor.ui.registry.addMenuItem('codesample', {
|
|
1694
|
+
text: 'Code sample...',
|
|
1695
|
+
icon: 'code-sample',
|
|
1696
|
+
onAction: function () {
|
|
1697
|
+
return open(editor);
|
|
1698
|
+
}
|
|
1699
|
+
});
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
function Plugin () {
|
|
1703
|
+
global.add('codesample', function (editor) {
|
|
1704
|
+
setup(editor);
|
|
1705
|
+
register$1(editor);
|
|
1706
|
+
register(editor);
|
|
1707
|
+
editor.on('dblclick', function (ev) {
|
|
1708
|
+
if (isCodeSample(ev.target)) {
|
|
1709
|
+
open(editor);
|
|
1710
|
+
}
|
|
1711
|
+
});
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
Plugin();
|
|
1716
|
+
|
|
1717
|
+
}(window));
|