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,1304 @@
|
|
|
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 Cell = function (initial) {
|
|
13
|
+
var value = initial;
|
|
14
|
+
var get = function () {
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
17
|
+
var set = function (v) {
|
|
18
|
+
value = v;
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
get: get,
|
|
22
|
+
set: set
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
27
|
+
|
|
28
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
29
|
+
|
|
30
|
+
var noop = function () {
|
|
31
|
+
};
|
|
32
|
+
var constant = function (value) {
|
|
33
|
+
return function () {
|
|
34
|
+
return value;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
var never = constant(false);
|
|
38
|
+
var always = constant(true);
|
|
39
|
+
|
|
40
|
+
var none = function () {
|
|
41
|
+
return NONE;
|
|
42
|
+
};
|
|
43
|
+
var NONE = function () {
|
|
44
|
+
var eq = function (o) {
|
|
45
|
+
return o.isNone();
|
|
46
|
+
};
|
|
47
|
+
var call = function (thunk) {
|
|
48
|
+
return thunk();
|
|
49
|
+
};
|
|
50
|
+
var id = function (n) {
|
|
51
|
+
return n;
|
|
52
|
+
};
|
|
53
|
+
var me = {
|
|
54
|
+
fold: function (n, _s) {
|
|
55
|
+
return n();
|
|
56
|
+
},
|
|
57
|
+
is: never,
|
|
58
|
+
isSome: never,
|
|
59
|
+
isNone: always,
|
|
60
|
+
getOr: id,
|
|
61
|
+
getOrThunk: call,
|
|
62
|
+
getOrDie: function (msg) {
|
|
63
|
+
throw new Error(msg || 'error: getOrDie called on none.');
|
|
64
|
+
},
|
|
65
|
+
getOrNull: constant(null),
|
|
66
|
+
getOrUndefined: constant(undefined),
|
|
67
|
+
or: id,
|
|
68
|
+
orThunk: call,
|
|
69
|
+
map: none,
|
|
70
|
+
each: noop,
|
|
71
|
+
bind: none,
|
|
72
|
+
exists: never,
|
|
73
|
+
forall: always,
|
|
74
|
+
filter: none,
|
|
75
|
+
equals: eq,
|
|
76
|
+
equals_: eq,
|
|
77
|
+
toArray: function () {
|
|
78
|
+
return [];
|
|
79
|
+
},
|
|
80
|
+
toString: constant('none()')
|
|
81
|
+
};
|
|
82
|
+
return me;
|
|
83
|
+
}();
|
|
84
|
+
var some = function (a) {
|
|
85
|
+
var constant_a = constant(a);
|
|
86
|
+
var self = function () {
|
|
87
|
+
return me;
|
|
88
|
+
};
|
|
89
|
+
var bind = function (f) {
|
|
90
|
+
return f(a);
|
|
91
|
+
};
|
|
92
|
+
var me = {
|
|
93
|
+
fold: function (n, s) {
|
|
94
|
+
return s(a);
|
|
95
|
+
},
|
|
96
|
+
is: function (v) {
|
|
97
|
+
return a === v;
|
|
98
|
+
},
|
|
99
|
+
isSome: always,
|
|
100
|
+
isNone: never,
|
|
101
|
+
getOr: constant_a,
|
|
102
|
+
getOrThunk: constant_a,
|
|
103
|
+
getOrDie: constant_a,
|
|
104
|
+
getOrNull: constant_a,
|
|
105
|
+
getOrUndefined: constant_a,
|
|
106
|
+
or: self,
|
|
107
|
+
orThunk: self,
|
|
108
|
+
map: function (f) {
|
|
109
|
+
return some(f(a));
|
|
110
|
+
},
|
|
111
|
+
each: function (f) {
|
|
112
|
+
f(a);
|
|
113
|
+
},
|
|
114
|
+
bind: bind,
|
|
115
|
+
exists: bind,
|
|
116
|
+
forall: bind,
|
|
117
|
+
filter: function (f) {
|
|
118
|
+
return f(a) ? me : NONE;
|
|
119
|
+
},
|
|
120
|
+
toArray: function () {
|
|
121
|
+
return [a];
|
|
122
|
+
},
|
|
123
|
+
toString: function () {
|
|
124
|
+
return 'some(' + a + ')';
|
|
125
|
+
},
|
|
126
|
+
equals: function (o) {
|
|
127
|
+
return o.is(a);
|
|
128
|
+
},
|
|
129
|
+
equals_: function (o, elementEq) {
|
|
130
|
+
return o.fold(never, function (b) {
|
|
131
|
+
return elementEq(a, b);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
return me;
|
|
136
|
+
};
|
|
137
|
+
var from = function (value) {
|
|
138
|
+
return value === null || value === undefined ? NONE : some(value);
|
|
139
|
+
};
|
|
140
|
+
var Option = {
|
|
141
|
+
some: some,
|
|
142
|
+
none: none,
|
|
143
|
+
from: from
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
function create(width, height) {
|
|
147
|
+
return resize(domGlobals.document.createElement('canvas'), width, height);
|
|
148
|
+
}
|
|
149
|
+
function clone(canvas) {
|
|
150
|
+
var tCanvas = create(canvas.width, canvas.height);
|
|
151
|
+
var ctx = get2dContext(tCanvas);
|
|
152
|
+
ctx.drawImage(canvas, 0, 0);
|
|
153
|
+
return tCanvas;
|
|
154
|
+
}
|
|
155
|
+
function get2dContext(canvas) {
|
|
156
|
+
return canvas.getContext('2d');
|
|
157
|
+
}
|
|
158
|
+
function resize(canvas, width, height) {
|
|
159
|
+
canvas.width = width;
|
|
160
|
+
canvas.height = height;
|
|
161
|
+
return canvas;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function getWidth(image) {
|
|
165
|
+
return image.naturalWidth || image.width;
|
|
166
|
+
}
|
|
167
|
+
function getHeight(image) {
|
|
168
|
+
return image.naturalHeight || image.height;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var promise = function () {
|
|
172
|
+
var Promise = function (fn) {
|
|
173
|
+
if (typeof this !== 'object') {
|
|
174
|
+
throw new TypeError('Promises must be constructed via new');
|
|
175
|
+
}
|
|
176
|
+
if (typeof fn !== 'function') {
|
|
177
|
+
throw new TypeError('not a function');
|
|
178
|
+
}
|
|
179
|
+
this._state = null;
|
|
180
|
+
this._value = null;
|
|
181
|
+
this._deferreds = [];
|
|
182
|
+
doResolve(fn, bind(resolve, this), bind(reject, this));
|
|
183
|
+
};
|
|
184
|
+
var asap = Promise.immediateFn || typeof window.setImmediate === 'function' && window.setImmediate || function (fn) {
|
|
185
|
+
domGlobals.setTimeout(fn, 1);
|
|
186
|
+
};
|
|
187
|
+
function bind(fn, thisArg) {
|
|
188
|
+
return function () {
|
|
189
|
+
return fn.apply(thisArg, arguments);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
var isArray = Array.isArray || function (value) {
|
|
193
|
+
return Object.prototype.toString.call(value) === '[object Array]';
|
|
194
|
+
};
|
|
195
|
+
function handle(deferred) {
|
|
196
|
+
var me = this;
|
|
197
|
+
if (this._state === null) {
|
|
198
|
+
this._deferreds.push(deferred);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
asap(function () {
|
|
202
|
+
var cb = me._state ? deferred.onFulfilled : deferred.onRejected;
|
|
203
|
+
if (cb === null) {
|
|
204
|
+
(me._state ? deferred.resolve : deferred.reject)(me._value);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
var ret;
|
|
208
|
+
try {
|
|
209
|
+
ret = cb(me._value);
|
|
210
|
+
} catch (e) {
|
|
211
|
+
deferred.reject(e);
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
deferred.resolve(ret);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function resolve(newValue) {
|
|
218
|
+
try {
|
|
219
|
+
if (newValue === this) {
|
|
220
|
+
throw new TypeError('A promise cannot be resolved with itself.');
|
|
221
|
+
}
|
|
222
|
+
if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
|
|
223
|
+
var then = newValue.then;
|
|
224
|
+
if (typeof then === 'function') {
|
|
225
|
+
doResolve(bind(then, newValue), bind(resolve, this), bind(reject, this));
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
this._state = true;
|
|
230
|
+
this._value = newValue;
|
|
231
|
+
finale.call(this);
|
|
232
|
+
} catch (e) {
|
|
233
|
+
reject.call(this, e);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function reject(newValue) {
|
|
237
|
+
this._state = false;
|
|
238
|
+
this._value = newValue;
|
|
239
|
+
finale.call(this);
|
|
240
|
+
}
|
|
241
|
+
function finale() {
|
|
242
|
+
for (var _i = 0, _a = this._deferreds; _i < _a.length; _i++) {
|
|
243
|
+
var deferred = _a[_i];
|
|
244
|
+
handle.call(this, deferred);
|
|
245
|
+
}
|
|
246
|
+
this._deferreds = [];
|
|
247
|
+
}
|
|
248
|
+
function Handler(onFulfilled, onRejected, resolve, reject) {
|
|
249
|
+
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
250
|
+
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
251
|
+
this.resolve = resolve;
|
|
252
|
+
this.reject = reject;
|
|
253
|
+
}
|
|
254
|
+
function doResolve(fn, onFulfilled, onRejected) {
|
|
255
|
+
var done = false;
|
|
256
|
+
try {
|
|
257
|
+
fn(function (value) {
|
|
258
|
+
if (done) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
done = true;
|
|
262
|
+
onFulfilled(value);
|
|
263
|
+
}, function (reason) {
|
|
264
|
+
if (done) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
done = true;
|
|
268
|
+
onRejected(reason);
|
|
269
|
+
});
|
|
270
|
+
} catch (ex) {
|
|
271
|
+
if (done) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
done = true;
|
|
275
|
+
onRejected(ex);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
Promise.prototype.catch = function (onRejected) {
|
|
279
|
+
return this.then(null, onRejected);
|
|
280
|
+
};
|
|
281
|
+
Promise.prototype.then = function (onFulfilled, onRejected) {
|
|
282
|
+
var me = this;
|
|
283
|
+
return new Promise(function (resolve, reject) {
|
|
284
|
+
handle.call(me, new Handler(onFulfilled, onRejected, resolve, reject));
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
Promise.all = function () {
|
|
288
|
+
var values = [];
|
|
289
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
290
|
+
values[_i] = arguments[_i];
|
|
291
|
+
}
|
|
292
|
+
var args = Array.prototype.slice.call(values.length === 1 && isArray(values[0]) ? values[0] : values);
|
|
293
|
+
return new Promise(function (resolve, reject) {
|
|
294
|
+
if (args.length === 0) {
|
|
295
|
+
return resolve([]);
|
|
296
|
+
}
|
|
297
|
+
var remaining = args.length;
|
|
298
|
+
function res(i, val) {
|
|
299
|
+
try {
|
|
300
|
+
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
301
|
+
var then = val.then;
|
|
302
|
+
if (typeof then === 'function') {
|
|
303
|
+
then.call(val, function (val) {
|
|
304
|
+
res(i, val);
|
|
305
|
+
}, reject);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
args[i] = val;
|
|
310
|
+
if (--remaining === 0) {
|
|
311
|
+
resolve(args);
|
|
312
|
+
}
|
|
313
|
+
} catch (ex) {
|
|
314
|
+
reject(ex);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
for (var i = 0; i < args.length; i++) {
|
|
318
|
+
res(i, args[i]);
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
Promise.resolve = function (value) {
|
|
323
|
+
if (value && typeof value === 'object' && value.constructor === Promise) {
|
|
324
|
+
return value;
|
|
325
|
+
}
|
|
326
|
+
return new Promise(function (resolve) {
|
|
327
|
+
resolve(value);
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
Promise.reject = function (reason) {
|
|
331
|
+
return new Promise(function (resolve, reject) {
|
|
332
|
+
reject(reason);
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
Promise.race = function (values) {
|
|
336
|
+
return new Promise(function (resolve, reject) {
|
|
337
|
+
for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
|
|
338
|
+
var value = values_1[_i];
|
|
339
|
+
value.then(resolve, reject);
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
};
|
|
343
|
+
return Promise;
|
|
344
|
+
};
|
|
345
|
+
var Promise = window.Promise ? window.Promise : promise();
|
|
346
|
+
|
|
347
|
+
function imageToBlob(image) {
|
|
348
|
+
var src = image.src;
|
|
349
|
+
if (src.indexOf('data:') === 0) {
|
|
350
|
+
return dataUriToBlob(src);
|
|
351
|
+
}
|
|
352
|
+
return anyUriToBlob(src);
|
|
353
|
+
}
|
|
354
|
+
function blobToImage(blob) {
|
|
355
|
+
return new Promise(function (resolve, reject) {
|
|
356
|
+
var blobUrl = domGlobals.URL.createObjectURL(blob);
|
|
357
|
+
var image = new domGlobals.Image();
|
|
358
|
+
var removeListeners = function () {
|
|
359
|
+
image.removeEventListener('load', loaded);
|
|
360
|
+
image.removeEventListener('error', error);
|
|
361
|
+
};
|
|
362
|
+
function loaded() {
|
|
363
|
+
removeListeners();
|
|
364
|
+
resolve(image);
|
|
365
|
+
}
|
|
366
|
+
function error() {
|
|
367
|
+
removeListeners();
|
|
368
|
+
reject('Unable to load data of type ' + blob.type + ': ' + blobUrl);
|
|
369
|
+
}
|
|
370
|
+
image.addEventListener('load', loaded);
|
|
371
|
+
image.addEventListener('error', error);
|
|
372
|
+
image.src = blobUrl;
|
|
373
|
+
if (image.complete) {
|
|
374
|
+
loaded();
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function anyUriToBlob(url) {
|
|
379
|
+
return new Promise(function (resolve, reject) {
|
|
380
|
+
var xhr = new domGlobals.XMLHttpRequest();
|
|
381
|
+
xhr.open('GET', url, true);
|
|
382
|
+
xhr.responseType = 'blob';
|
|
383
|
+
xhr.onload = function () {
|
|
384
|
+
if (this.status === 200) {
|
|
385
|
+
resolve(this.response);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
xhr.onerror = function () {
|
|
389
|
+
var _this = this;
|
|
390
|
+
var corsError = function () {
|
|
391
|
+
var obj = new Error('No access to download image');
|
|
392
|
+
obj.code = 18;
|
|
393
|
+
obj.name = 'SecurityError';
|
|
394
|
+
return obj;
|
|
395
|
+
};
|
|
396
|
+
var genericError = function () {
|
|
397
|
+
return new Error('Error ' + _this.status + ' downloading image');
|
|
398
|
+
};
|
|
399
|
+
reject(this.status === 0 ? corsError() : genericError());
|
|
400
|
+
};
|
|
401
|
+
xhr.send();
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
function dataUriToBlobSync(uri) {
|
|
405
|
+
var data = uri.split(',');
|
|
406
|
+
var matches = /data:([^;]+)/.exec(data[0]);
|
|
407
|
+
if (!matches) {
|
|
408
|
+
return Option.none();
|
|
409
|
+
}
|
|
410
|
+
var mimetype = matches[1];
|
|
411
|
+
var base64 = data[1];
|
|
412
|
+
var sliceSize = 1024;
|
|
413
|
+
var byteCharacters = domGlobals.atob(base64);
|
|
414
|
+
var bytesLength = byteCharacters.length;
|
|
415
|
+
var slicesCount = Math.ceil(bytesLength / sliceSize);
|
|
416
|
+
var byteArrays = new Array(slicesCount);
|
|
417
|
+
for (var sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
|
|
418
|
+
var begin = sliceIndex * sliceSize;
|
|
419
|
+
var end = Math.min(begin + sliceSize, bytesLength);
|
|
420
|
+
var bytes = new Array(end - begin);
|
|
421
|
+
for (var offset = begin, i = 0; offset < end; ++i, ++offset) {
|
|
422
|
+
bytes[i] = byteCharacters[offset].charCodeAt(0);
|
|
423
|
+
}
|
|
424
|
+
byteArrays[sliceIndex] = new Uint8Array(bytes);
|
|
425
|
+
}
|
|
426
|
+
return Option.some(new domGlobals.Blob(byteArrays, { type: mimetype }));
|
|
427
|
+
}
|
|
428
|
+
function dataUriToBlob(uri) {
|
|
429
|
+
return new Promise(function (resolve, reject) {
|
|
430
|
+
dataUriToBlobSync(uri).fold(function () {
|
|
431
|
+
reject('uri is not base64: ' + uri);
|
|
432
|
+
}, resolve);
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
function canvasToBlob(canvas, type, quality) {
|
|
436
|
+
type = type || 'image/png';
|
|
437
|
+
if (domGlobals.HTMLCanvasElement.prototype.toBlob) {
|
|
438
|
+
return new Promise(function (resolve, reject) {
|
|
439
|
+
canvas.toBlob(function (blob) {
|
|
440
|
+
if (blob) {
|
|
441
|
+
resolve(blob);
|
|
442
|
+
} else {
|
|
443
|
+
reject();
|
|
444
|
+
}
|
|
445
|
+
}, type, quality);
|
|
446
|
+
});
|
|
447
|
+
} else {
|
|
448
|
+
return dataUriToBlob(canvas.toDataURL(type, quality));
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
function canvasToDataURL(canvas, type, quality) {
|
|
452
|
+
type = type || 'image/png';
|
|
453
|
+
return canvas.toDataURL(type, quality);
|
|
454
|
+
}
|
|
455
|
+
function blobToCanvas(blob) {
|
|
456
|
+
return blobToImage(blob).then(function (image) {
|
|
457
|
+
revokeImageUrl(image);
|
|
458
|
+
var canvas = create(getWidth(image), getHeight(image));
|
|
459
|
+
var context = get2dContext(canvas);
|
|
460
|
+
context.drawImage(image, 0, 0);
|
|
461
|
+
return canvas;
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function blobToDataUri(blob) {
|
|
465
|
+
return new Promise(function (resolve) {
|
|
466
|
+
var reader = new domGlobals.FileReader();
|
|
467
|
+
reader.onloadend = function () {
|
|
468
|
+
resolve(reader.result);
|
|
469
|
+
};
|
|
470
|
+
reader.readAsDataURL(blob);
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
function revokeImageUrl(image) {
|
|
474
|
+
domGlobals.URL.revokeObjectURL(image.src);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
var blobToImage$1 = function (blob) {
|
|
478
|
+
return blobToImage(blob);
|
|
479
|
+
};
|
|
480
|
+
var imageToBlob$1 = function (image) {
|
|
481
|
+
return imageToBlob(image);
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
function create$1(getCanvas, blob, uri) {
|
|
485
|
+
var initialType = blob.type;
|
|
486
|
+
var getType = constant(initialType);
|
|
487
|
+
function toBlob() {
|
|
488
|
+
return Promise.resolve(blob);
|
|
489
|
+
}
|
|
490
|
+
var toDataURL = constant(uri);
|
|
491
|
+
function toBase64() {
|
|
492
|
+
return uri.split(',')[1];
|
|
493
|
+
}
|
|
494
|
+
function toAdjustedBlob(type, quality) {
|
|
495
|
+
return getCanvas.then(function (canvas) {
|
|
496
|
+
return canvasToBlob(canvas, type, quality);
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
function toAdjustedDataURL(type, quality) {
|
|
500
|
+
return getCanvas.then(function (canvas) {
|
|
501
|
+
return canvasToDataURL(canvas, type, quality);
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
function toAdjustedBase64(type, quality) {
|
|
505
|
+
return toAdjustedDataURL(type, quality).then(function (dataurl) {
|
|
506
|
+
return dataurl.split(',')[1];
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function toCanvas() {
|
|
510
|
+
return getCanvas.then(clone);
|
|
511
|
+
}
|
|
512
|
+
return {
|
|
513
|
+
getType: getType,
|
|
514
|
+
toBlob: toBlob,
|
|
515
|
+
toDataURL: toDataURL,
|
|
516
|
+
toBase64: toBase64,
|
|
517
|
+
toAdjustedBlob: toAdjustedBlob,
|
|
518
|
+
toAdjustedDataURL: toAdjustedDataURL,
|
|
519
|
+
toAdjustedBase64: toAdjustedBase64,
|
|
520
|
+
toCanvas: toCanvas
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
function fromBlob(blob) {
|
|
524
|
+
return blobToDataUri(blob).then(function (uri) {
|
|
525
|
+
return create$1(blobToCanvas(blob), blob, uri);
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
function fromCanvas(canvas, type) {
|
|
529
|
+
return canvasToBlob(canvas, type).then(function (blob) {
|
|
530
|
+
return create$1(Promise.resolve(canvas), blob, canvas.toDataURL());
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
function rotate(ir, angle) {
|
|
535
|
+
return ir.toCanvas().then(function (canvas) {
|
|
536
|
+
return applyRotate(canvas, ir.getType(), angle);
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
function applyRotate(image, type, angle) {
|
|
540
|
+
var canvas = create(image.width, image.height);
|
|
541
|
+
var context = get2dContext(canvas);
|
|
542
|
+
var translateX = 0;
|
|
543
|
+
var translateY = 0;
|
|
544
|
+
angle = angle < 0 ? 360 + angle : angle;
|
|
545
|
+
if (angle === 90 || angle === 270) {
|
|
546
|
+
resize(canvas, canvas.height, canvas.width);
|
|
547
|
+
}
|
|
548
|
+
if (angle === 90 || angle === 180) {
|
|
549
|
+
translateX = canvas.width;
|
|
550
|
+
}
|
|
551
|
+
if (angle === 270 || angle === 180) {
|
|
552
|
+
translateY = canvas.height;
|
|
553
|
+
}
|
|
554
|
+
context.translate(translateX, translateY);
|
|
555
|
+
context.rotate(angle * Math.PI / 180);
|
|
556
|
+
context.drawImage(image, 0, 0);
|
|
557
|
+
return fromCanvas(canvas, type);
|
|
558
|
+
}
|
|
559
|
+
function flip(ir, axis) {
|
|
560
|
+
return ir.toCanvas().then(function (canvas) {
|
|
561
|
+
return applyFlip(canvas, ir.getType(), axis);
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function applyFlip(image, type, axis) {
|
|
565
|
+
var canvas = create(image.width, image.height);
|
|
566
|
+
var context = get2dContext(canvas);
|
|
567
|
+
if (axis === 'v') {
|
|
568
|
+
context.scale(1, -1);
|
|
569
|
+
context.drawImage(image, 0, -canvas.height);
|
|
570
|
+
} else {
|
|
571
|
+
context.scale(-1, 1);
|
|
572
|
+
context.drawImage(image, -canvas.width, 0);
|
|
573
|
+
}
|
|
574
|
+
return fromCanvas(canvas, type);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
var isSimpleType = function (type) {
|
|
578
|
+
return function (value) {
|
|
579
|
+
return typeof value === type;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
var isFunction = isSimpleType('function');
|
|
583
|
+
|
|
584
|
+
var findUntil = function (xs, pred, until) {
|
|
585
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
|
586
|
+
var x = xs[i];
|
|
587
|
+
if (pred(x, i)) {
|
|
588
|
+
return Option.some(x);
|
|
589
|
+
} else if (until(x, i)) {
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return Option.none();
|
|
594
|
+
};
|
|
595
|
+
var find = function (xs, pred) {
|
|
596
|
+
return findUntil(xs, pred, never);
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
var flip$1 = function (ir, axis) {
|
|
600
|
+
return flip(ir, axis);
|
|
601
|
+
};
|
|
602
|
+
var rotate$1 = function (ir, angle) {
|
|
603
|
+
return rotate(ir, angle);
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
var blobToImageResult = function (blob) {
|
|
607
|
+
return fromBlob(blob);
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
var fromHtml = function (html, scope) {
|
|
611
|
+
var doc = scope || domGlobals.document;
|
|
612
|
+
var div = doc.createElement('div');
|
|
613
|
+
div.innerHTML = html;
|
|
614
|
+
if (!div.hasChildNodes() || div.childNodes.length > 1) {
|
|
615
|
+
domGlobals.console.error('HTML does not have a single root node', html);
|
|
616
|
+
throw new Error('HTML must have a single root node');
|
|
617
|
+
}
|
|
618
|
+
return fromDom(div.childNodes[0]);
|
|
619
|
+
};
|
|
620
|
+
var fromTag = function (tag, scope) {
|
|
621
|
+
var doc = scope || domGlobals.document;
|
|
622
|
+
var node = doc.createElement(tag);
|
|
623
|
+
return fromDom(node);
|
|
624
|
+
};
|
|
625
|
+
var fromText = function (text, scope) {
|
|
626
|
+
var doc = scope || domGlobals.document;
|
|
627
|
+
var node = doc.createTextNode(text);
|
|
628
|
+
return fromDom(node);
|
|
629
|
+
};
|
|
630
|
+
var fromDom = function (node) {
|
|
631
|
+
if (node === null || node === undefined) {
|
|
632
|
+
throw new Error('Node cannot be null or undefined');
|
|
633
|
+
}
|
|
634
|
+
return { dom: constant(node) };
|
|
635
|
+
};
|
|
636
|
+
var fromPoint = function (docElm, x, y) {
|
|
637
|
+
var doc = docElm.dom();
|
|
638
|
+
return Option.from(doc.elementFromPoint(x, y)).map(fromDom);
|
|
639
|
+
};
|
|
640
|
+
var Element = {
|
|
641
|
+
fromHtml: fromHtml,
|
|
642
|
+
fromTag: fromTag,
|
|
643
|
+
fromText: fromText,
|
|
644
|
+
fromDom: fromDom,
|
|
645
|
+
fromPoint: fromPoint
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
var ELEMENT = 1;
|
|
649
|
+
|
|
650
|
+
var is = function (element, selector) {
|
|
651
|
+
var dom = element.dom();
|
|
652
|
+
if (dom.nodeType !== ELEMENT) {
|
|
653
|
+
return false;
|
|
654
|
+
} else {
|
|
655
|
+
var elem = dom;
|
|
656
|
+
if (elem.matches !== undefined) {
|
|
657
|
+
return elem.matches(selector);
|
|
658
|
+
} else if (elem.msMatchesSelector !== undefined) {
|
|
659
|
+
return elem.msMatchesSelector(selector);
|
|
660
|
+
} else if (elem.webkitMatchesSelector !== undefined) {
|
|
661
|
+
return elem.webkitMatchesSelector(selector);
|
|
662
|
+
} else if (elem.mozMatchesSelector !== undefined) {
|
|
663
|
+
return elem.mozMatchesSelector(selector);
|
|
664
|
+
} else {
|
|
665
|
+
throw new Error('Browser lacks native selectors');
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
|
|
671
|
+
|
|
672
|
+
var supported = isFunction(domGlobals.Element.prototype.attachShadow) && isFunction(domGlobals.Node.prototype.getRootNode);
|
|
673
|
+
|
|
674
|
+
var child = function (scope, predicate) {
|
|
675
|
+
var pred = function (node) {
|
|
676
|
+
return predicate(Element.fromDom(node));
|
|
677
|
+
};
|
|
678
|
+
var result = find(scope.dom().childNodes, pred);
|
|
679
|
+
return result.map(Element.fromDom);
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
var child$1 = function (scope, selector) {
|
|
683
|
+
return child(scope, function (e) {
|
|
684
|
+
return is(e, selector);
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
689
|
+
|
|
690
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
|
691
|
+
|
|
692
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.util.URI');
|
|
693
|
+
|
|
694
|
+
var getToolbarItems = function (editor) {
|
|
695
|
+
return editor.getParam('imagetools_toolbar', 'rotateleft rotateright flipv fliph editimage imageoptions');
|
|
696
|
+
};
|
|
697
|
+
var getProxyUrl = function (editor) {
|
|
698
|
+
return editor.getParam('imagetools_proxy');
|
|
699
|
+
};
|
|
700
|
+
var getCorsHosts = function (editor) {
|
|
701
|
+
return editor.getParam('imagetools_cors_hosts', [], 'string[]');
|
|
702
|
+
};
|
|
703
|
+
var getCredentialsHosts = function (editor) {
|
|
704
|
+
return editor.getParam('imagetools_credentials_hosts', [], 'string[]');
|
|
705
|
+
};
|
|
706
|
+
var getFetchImage = function (editor) {
|
|
707
|
+
return Option.from(editor.getParam('imagetools_fetch_image', null, 'function'));
|
|
708
|
+
};
|
|
709
|
+
var getApiKey = function (editor) {
|
|
710
|
+
return editor.getParam('api_key', editor.getParam('imagetools_api_key', '', 'string'), 'string');
|
|
711
|
+
};
|
|
712
|
+
var getUploadTimeout = function (editor) {
|
|
713
|
+
return editor.getParam('images_upload_timeout', 30000, 'number');
|
|
714
|
+
};
|
|
715
|
+
var shouldReuseFilename = function (editor) {
|
|
716
|
+
return editor.getParam('images_reuse_filename', false, 'boolean');
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
function getImageSize(img) {
|
|
720
|
+
var width, height;
|
|
721
|
+
function isPxValue(value) {
|
|
722
|
+
return /^[0-9\.]+px$/.test(value);
|
|
723
|
+
}
|
|
724
|
+
width = img.style.width;
|
|
725
|
+
height = img.style.height;
|
|
726
|
+
if (width || height) {
|
|
727
|
+
if (isPxValue(width) && isPxValue(height)) {
|
|
728
|
+
return {
|
|
729
|
+
w: parseInt(width, 10),
|
|
730
|
+
h: parseInt(height, 10)
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
return null;
|
|
734
|
+
}
|
|
735
|
+
width = img.width;
|
|
736
|
+
height = img.height;
|
|
737
|
+
if (width && height) {
|
|
738
|
+
return {
|
|
739
|
+
w: parseInt(width, 10),
|
|
740
|
+
h: parseInt(height, 10)
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
return null;
|
|
744
|
+
}
|
|
745
|
+
function setImageSize(img, size) {
|
|
746
|
+
var width, height;
|
|
747
|
+
if (size) {
|
|
748
|
+
width = img.style.width;
|
|
749
|
+
height = img.style.height;
|
|
750
|
+
if (width || height) {
|
|
751
|
+
img.style.width = size.w + 'px';
|
|
752
|
+
img.style.height = size.h + 'px';
|
|
753
|
+
img.removeAttribute('data-mce-style');
|
|
754
|
+
}
|
|
755
|
+
width = img.width;
|
|
756
|
+
height = img.height;
|
|
757
|
+
if (width || height) {
|
|
758
|
+
img.setAttribute('width', size.w);
|
|
759
|
+
img.setAttribute('height', size.h);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
function getNaturalImageSize(img) {
|
|
764
|
+
return {
|
|
765
|
+
w: img.naturalWidth,
|
|
766
|
+
h: img.naturalHeight
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
var isValue = function (obj) {
|
|
771
|
+
return obj !== null && obj !== undefined;
|
|
772
|
+
};
|
|
773
|
+
var traverse = function (json, path) {
|
|
774
|
+
var value = path.reduce(function (result, key) {
|
|
775
|
+
return isValue(result) ? result[key] : undefined;
|
|
776
|
+
}, json);
|
|
777
|
+
return isValue(value) ? value : null;
|
|
778
|
+
};
|
|
779
|
+
var requestUrlAsBlob = function (url, headers, withCredentials) {
|
|
780
|
+
return new global$3(function (resolve) {
|
|
781
|
+
var xhr = new domGlobals.XMLHttpRequest();
|
|
782
|
+
xhr.onreadystatechange = function () {
|
|
783
|
+
if (xhr.readyState === 4) {
|
|
784
|
+
resolve({
|
|
785
|
+
status: xhr.status,
|
|
786
|
+
blob: this.response
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
xhr.open('GET', url, true);
|
|
791
|
+
xhr.withCredentials = withCredentials;
|
|
792
|
+
global$1.each(headers, function (value, key) {
|
|
793
|
+
xhr.setRequestHeader(key, value);
|
|
794
|
+
});
|
|
795
|
+
xhr.responseType = 'blob';
|
|
796
|
+
xhr.send();
|
|
797
|
+
});
|
|
798
|
+
};
|
|
799
|
+
var readBlob = function (blob) {
|
|
800
|
+
return new global$3(function (resolve) {
|
|
801
|
+
var fr = new domGlobals.FileReader();
|
|
802
|
+
fr.onload = function (e) {
|
|
803
|
+
var data = e.target;
|
|
804
|
+
resolve(data.result);
|
|
805
|
+
};
|
|
806
|
+
fr.readAsText(blob);
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
var parseJson = function (text) {
|
|
810
|
+
var json;
|
|
811
|
+
try {
|
|
812
|
+
json = JSON.parse(text);
|
|
813
|
+
} catch (ex) {
|
|
814
|
+
}
|
|
815
|
+
return json;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
var friendlyHttpErrors = [
|
|
819
|
+
{
|
|
820
|
+
code: 404,
|
|
821
|
+
message: 'Could not find Image Proxy'
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
code: 403,
|
|
825
|
+
message: 'Rejected request'
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
code: 0,
|
|
829
|
+
message: 'Incorrect Image Proxy URL'
|
|
830
|
+
}
|
|
831
|
+
];
|
|
832
|
+
var friendlyServiceErrors = [
|
|
833
|
+
{
|
|
834
|
+
type: 'key_missing',
|
|
835
|
+
message: 'The request did not include an api key.'
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
type: 'key_not_found',
|
|
839
|
+
message: 'The provided api key could not be found.'
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
type: 'domain_not_trusted',
|
|
843
|
+
message: 'The api key is not valid for the request origins.'
|
|
844
|
+
}
|
|
845
|
+
];
|
|
846
|
+
var isServiceErrorCode = function (code) {
|
|
847
|
+
return code === 400 || code === 403 || code === 500;
|
|
848
|
+
};
|
|
849
|
+
var getHttpErrorMsg = function (status) {
|
|
850
|
+
var message = find(friendlyHttpErrors, function (error) {
|
|
851
|
+
return status === error.code;
|
|
852
|
+
}).fold(constant('Unknown ImageProxy error'), function (error) {
|
|
853
|
+
return error.message;
|
|
854
|
+
});
|
|
855
|
+
return 'ImageProxy HTTP error: ' + message;
|
|
856
|
+
};
|
|
857
|
+
var handleHttpError = function (status) {
|
|
858
|
+
var message = getHttpErrorMsg(status);
|
|
859
|
+
return global$3.reject(message);
|
|
860
|
+
};
|
|
861
|
+
var getServiceErrorMsg = function (type) {
|
|
862
|
+
return find(friendlyServiceErrors, function (error) {
|
|
863
|
+
return error.type === type;
|
|
864
|
+
}).fold(constant('Unknown service error'), function (error) {
|
|
865
|
+
return error.message;
|
|
866
|
+
});
|
|
867
|
+
};
|
|
868
|
+
var getServiceError = function (text) {
|
|
869
|
+
var serviceError = parseJson(text);
|
|
870
|
+
var errorType = traverse(serviceError, [
|
|
871
|
+
'error',
|
|
872
|
+
'type'
|
|
873
|
+
]);
|
|
874
|
+
var errorMsg = errorType ? getServiceErrorMsg(errorType) : 'Invalid JSON in service error message';
|
|
875
|
+
return 'ImageProxy Service error: ' + errorMsg;
|
|
876
|
+
};
|
|
877
|
+
var handleServiceError = function (status, blob) {
|
|
878
|
+
return readBlob(blob).then(function (text) {
|
|
879
|
+
var serviceError = getServiceError(text);
|
|
880
|
+
return global$3.reject(serviceError);
|
|
881
|
+
});
|
|
882
|
+
};
|
|
883
|
+
var handleServiceErrorResponse = function (status, blob) {
|
|
884
|
+
return isServiceErrorCode(status) ? handleServiceError(status, blob) : handleHttpError(status);
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
var appendApiKey = function (url, apiKey) {
|
|
888
|
+
var separator = url.indexOf('?') === -1 ? '?' : '&';
|
|
889
|
+
if (/[?&]apiKey=/.test(url) || !apiKey) {
|
|
890
|
+
return url;
|
|
891
|
+
} else {
|
|
892
|
+
return url + separator + 'apiKey=' + encodeURIComponent(apiKey);
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
var requestServiceBlob = function (url, apiKey) {
|
|
896
|
+
var headers = {
|
|
897
|
+
'Content-Type': 'application/json;charset=UTF-8',
|
|
898
|
+
'tiny-api-key': apiKey
|
|
899
|
+
};
|
|
900
|
+
return requestUrlAsBlob(appendApiKey(url, apiKey), headers, false).then(function (result) {
|
|
901
|
+
return result.status < 200 || result.status >= 300 ? handleServiceErrorResponse(result.status, result.blob) : global$3.resolve(result.blob);
|
|
902
|
+
});
|
|
903
|
+
};
|
|
904
|
+
function requestBlob(url, withCredentials) {
|
|
905
|
+
return requestUrlAsBlob(url, {}, withCredentials).then(function (result) {
|
|
906
|
+
return result.status < 200 || result.status >= 300 ? handleHttpError(result.status) : global$3.resolve(result.blob);
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
var getUrl = function (url, apiKey, withCredentials) {
|
|
910
|
+
return apiKey ? requestServiceBlob(url, apiKey) : requestBlob(url, withCredentials);
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
var count = 0;
|
|
914
|
+
var getFigureImg = function (elem) {
|
|
915
|
+
return child$1(Element.fromDom(elem), 'img');
|
|
916
|
+
};
|
|
917
|
+
var isFigure = function (editor, elem) {
|
|
918
|
+
return editor.dom.is(elem, 'figure');
|
|
919
|
+
};
|
|
920
|
+
var getEditableImage = function (editor, elem) {
|
|
921
|
+
var isImage = function (imgNode) {
|
|
922
|
+
return editor.dom.is(imgNode, 'img:not([data-mce-object],[data-mce-placeholder])');
|
|
923
|
+
};
|
|
924
|
+
var isEditable = function (imgNode) {
|
|
925
|
+
return isImage(imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || getProxyUrl(editor));
|
|
926
|
+
};
|
|
927
|
+
if (isFigure(editor, elem)) {
|
|
928
|
+
var imgOpt = getFigureImg(elem);
|
|
929
|
+
return imgOpt.map(function (img) {
|
|
930
|
+
return isEditable(img.dom()) ? Option.some(img.dom()) : Option.none();
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
return isEditable(elem) ? Option.some(elem) : Option.none();
|
|
934
|
+
};
|
|
935
|
+
var displayError = function (editor, error) {
|
|
936
|
+
editor.notificationManager.open({
|
|
937
|
+
text: error,
|
|
938
|
+
type: 'error'
|
|
939
|
+
});
|
|
940
|
+
};
|
|
941
|
+
var getSelectedImage = function (editor) {
|
|
942
|
+
var elem = editor.selection.getNode();
|
|
943
|
+
if (isFigure(editor, elem)) {
|
|
944
|
+
return getFigureImg(elem);
|
|
945
|
+
} else {
|
|
946
|
+
return Option.some(Element.fromDom(elem));
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
var extractFilename = function (editor, url) {
|
|
950
|
+
var m = url.match(/\/([^\/\?]+)?\.(?:jpeg|jpg|png|gif)(?:\?|$)/i);
|
|
951
|
+
if (m) {
|
|
952
|
+
return editor.dom.encode(m[1]);
|
|
953
|
+
}
|
|
954
|
+
return null;
|
|
955
|
+
};
|
|
956
|
+
var createId = function () {
|
|
957
|
+
return 'imagetools' + count++;
|
|
958
|
+
};
|
|
959
|
+
var isLocalImage = function (editor, img) {
|
|
960
|
+
var url = img.src;
|
|
961
|
+
return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global$4(url).host === editor.documentBaseURI.host;
|
|
962
|
+
};
|
|
963
|
+
var isCorsImage = function (editor, img) {
|
|
964
|
+
return global$1.inArray(getCorsHosts(editor), new global$4(img.src).host) !== -1;
|
|
965
|
+
};
|
|
966
|
+
var isCorsWithCredentialsImage = function (editor, img) {
|
|
967
|
+
return global$1.inArray(getCredentialsHosts(editor), new global$4(img.src).host) !== -1;
|
|
968
|
+
};
|
|
969
|
+
var defaultFetchImage = function (editor, img) {
|
|
970
|
+
var src = img.src, apiKey;
|
|
971
|
+
if (isCorsImage(editor, img)) {
|
|
972
|
+
return getUrl(img.src, null, isCorsWithCredentialsImage(editor, img));
|
|
973
|
+
}
|
|
974
|
+
if (!isLocalImage(editor, img)) {
|
|
975
|
+
src = getProxyUrl(editor);
|
|
976
|
+
src += (src.indexOf('?') === -1 ? '?' : '&') + 'url=' + encodeURIComponent(img.src);
|
|
977
|
+
apiKey = getApiKey(editor);
|
|
978
|
+
return getUrl(src, apiKey, false);
|
|
979
|
+
}
|
|
980
|
+
return imageToBlob$1(img);
|
|
981
|
+
};
|
|
982
|
+
var imageToBlob$2 = function (editor, img) {
|
|
983
|
+
return getFetchImage(editor).fold(function () {
|
|
984
|
+
return defaultFetchImage(editor, img);
|
|
985
|
+
}, function (customFetchImage) {
|
|
986
|
+
return customFetchImage(img);
|
|
987
|
+
});
|
|
988
|
+
};
|
|
989
|
+
var findBlob = function (editor, img) {
|
|
990
|
+
var blobInfo = editor.editorUpload.blobCache.getByUri(img.src);
|
|
991
|
+
if (blobInfo) {
|
|
992
|
+
return global$3.resolve(blobInfo.blob());
|
|
993
|
+
}
|
|
994
|
+
return imageToBlob$2(editor, img);
|
|
995
|
+
};
|
|
996
|
+
var startTimedUpload = function (editor, imageUploadTimerState) {
|
|
997
|
+
var imageUploadTimer = global$2.setEditorTimeout(editor, function () {
|
|
998
|
+
editor.editorUpload.uploadImagesAuto();
|
|
999
|
+
}, getUploadTimeout(editor));
|
|
1000
|
+
imageUploadTimerState.set(imageUploadTimer);
|
|
1001
|
+
};
|
|
1002
|
+
var cancelTimedUpload = function (imageUploadTimerState) {
|
|
1003
|
+
global$2.clearTimeout(imageUploadTimerState.get());
|
|
1004
|
+
};
|
|
1005
|
+
var updateSelectedImage = function (editor, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
|
|
1006
|
+
return ir.toBlob().then(function (blob) {
|
|
1007
|
+
var uri, name, blobInfo;
|
|
1008
|
+
var blobCache = editor.editorUpload.blobCache;
|
|
1009
|
+
uri = selectedImage.src;
|
|
1010
|
+
if (shouldReuseFilename(editor)) {
|
|
1011
|
+
blobInfo = blobCache.getByUri(uri);
|
|
1012
|
+
if (blobInfo) {
|
|
1013
|
+
uri = blobInfo.uri();
|
|
1014
|
+
name = blobInfo.name();
|
|
1015
|
+
} else {
|
|
1016
|
+
name = extractFilename(editor, uri);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
blobInfo = blobCache.create({
|
|
1020
|
+
id: createId(),
|
|
1021
|
+
blob: blob,
|
|
1022
|
+
base64: ir.toBase64(),
|
|
1023
|
+
uri: uri,
|
|
1024
|
+
name: name
|
|
1025
|
+
});
|
|
1026
|
+
blobCache.add(blobInfo);
|
|
1027
|
+
editor.undoManager.transact(function () {
|
|
1028
|
+
function imageLoadedHandler() {
|
|
1029
|
+
editor.$(selectedImage).off('load', imageLoadedHandler);
|
|
1030
|
+
editor.nodeChanged();
|
|
1031
|
+
if (uploadImmediately) {
|
|
1032
|
+
editor.editorUpload.uploadImagesAuto();
|
|
1033
|
+
} else {
|
|
1034
|
+
cancelTimedUpload(imageUploadTimerState);
|
|
1035
|
+
startTimedUpload(editor, imageUploadTimerState);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
editor.$(selectedImage).on('load', imageLoadedHandler);
|
|
1039
|
+
if (size) {
|
|
1040
|
+
editor.$(selectedImage).attr({
|
|
1041
|
+
width: size.w,
|
|
1042
|
+
height: size.h
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
editor.$(selectedImage).attr({ src: blobInfo.blobUri() }).removeAttr('data-mce-src');
|
|
1046
|
+
});
|
|
1047
|
+
return blobInfo;
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
var selectedImageOperation = function (editor, imageUploadTimerState, fn, size) {
|
|
1051
|
+
return function () {
|
|
1052
|
+
var imgOpt = getSelectedImage(editor);
|
|
1053
|
+
return imgOpt.fold(function () {
|
|
1054
|
+
displayError(editor, 'Could not find selected image');
|
|
1055
|
+
}, function (img) {
|
|
1056
|
+
return editor._scanForImages().then(function () {
|
|
1057
|
+
return findBlob(editor, img.dom());
|
|
1058
|
+
}).then(blobToImageResult).then(fn).then(function (imageResult) {
|
|
1059
|
+
return updateSelectedImage(editor, imageResult, false, imageUploadTimerState, img.dom(), size);
|
|
1060
|
+
}, function (error) {
|
|
1061
|
+
displayError(editor, error);
|
|
1062
|
+
});
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
var rotate$2 = function (editor, imageUploadTimerState, angle) {
|
|
1067
|
+
return function () {
|
|
1068
|
+
var imgOpt = getSelectedImage(editor);
|
|
1069
|
+
var flippedSize = imgOpt.fold(function () {
|
|
1070
|
+
return null;
|
|
1071
|
+
}, function (img) {
|
|
1072
|
+
var size = getImageSize(img.dom());
|
|
1073
|
+
return size ? {
|
|
1074
|
+
w: size.h,
|
|
1075
|
+
h: size.w
|
|
1076
|
+
} : null;
|
|
1077
|
+
});
|
|
1078
|
+
return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) {
|
|
1079
|
+
return rotate$1(imageResult, angle);
|
|
1080
|
+
}, flippedSize)();
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
var flip$2 = function (editor, imageUploadTimerState, axis) {
|
|
1084
|
+
return function () {
|
|
1085
|
+
return selectedImageOperation(editor, imageUploadTimerState, function (imageResult) {
|
|
1086
|
+
return flip$1(imageResult, axis);
|
|
1087
|
+
})();
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
var handleDialogBlob = function (editor, imageUploadTimerState, img, originalSize, blob) {
|
|
1091
|
+
return blobToImage$1(blob).then(function (newImage) {
|
|
1092
|
+
var newSize = getNaturalImageSize(newImage);
|
|
1093
|
+
if (originalSize.w !== newSize.w || originalSize.h !== newSize.h) {
|
|
1094
|
+
if (getImageSize(img)) {
|
|
1095
|
+
setImageSize(img, newSize);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
domGlobals.URL.revokeObjectURL(newImage.src);
|
|
1099
|
+
return blob;
|
|
1100
|
+
}).then(blobToImageResult).then(function (imageResult) {
|
|
1101
|
+
return updateSelectedImage(editor, imageResult, true, imageUploadTimerState, img);
|
|
1102
|
+
}, function () {
|
|
1103
|
+
});
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
var saveState = 'save-state';
|
|
1107
|
+
var disable = 'disable';
|
|
1108
|
+
var enable = 'enable';
|
|
1109
|
+
|
|
1110
|
+
var createState = function (blob) {
|
|
1111
|
+
return {
|
|
1112
|
+
blob: blob,
|
|
1113
|
+
url: domGlobals.URL.createObjectURL(blob)
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
var makeOpen = function (editor, imageUploadTimerState) {
|
|
1117
|
+
return function () {
|
|
1118
|
+
var getLoadedSpec = function (currentState) {
|
|
1119
|
+
return {
|
|
1120
|
+
title: 'Edit Image',
|
|
1121
|
+
size: 'large',
|
|
1122
|
+
body: {
|
|
1123
|
+
type: 'panel',
|
|
1124
|
+
items: [{
|
|
1125
|
+
type: 'imagetools',
|
|
1126
|
+
name: 'imagetools',
|
|
1127
|
+
label: 'Edit Image',
|
|
1128
|
+
currentState: currentState
|
|
1129
|
+
}]
|
|
1130
|
+
},
|
|
1131
|
+
buttons: [
|
|
1132
|
+
{
|
|
1133
|
+
type: 'cancel',
|
|
1134
|
+
name: 'cancel',
|
|
1135
|
+
text: 'Cancel'
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
type: 'submit',
|
|
1139
|
+
name: 'save',
|
|
1140
|
+
text: 'Save',
|
|
1141
|
+
primary: true,
|
|
1142
|
+
disabled: true
|
|
1143
|
+
}
|
|
1144
|
+
],
|
|
1145
|
+
onSubmit: function (api) {
|
|
1146
|
+
var blob = api.getData().imagetools.blob;
|
|
1147
|
+
originalImgOpt.each(function (originalImg) {
|
|
1148
|
+
originalSizeOpt.each(function (originalSize) {
|
|
1149
|
+
handleDialogBlob(editor, imageUploadTimerState, originalImg.dom(), originalSize, blob);
|
|
1150
|
+
});
|
|
1151
|
+
});
|
|
1152
|
+
api.close();
|
|
1153
|
+
},
|
|
1154
|
+
onCancel: function () {
|
|
1155
|
+
},
|
|
1156
|
+
onAction: function (api, details) {
|
|
1157
|
+
switch (details.name) {
|
|
1158
|
+
case saveState:
|
|
1159
|
+
if (details.value) {
|
|
1160
|
+
api.enable('save');
|
|
1161
|
+
} else {
|
|
1162
|
+
api.disable('save');
|
|
1163
|
+
}
|
|
1164
|
+
break;
|
|
1165
|
+
case disable:
|
|
1166
|
+
api.disable('save');
|
|
1167
|
+
api.disable('cancel');
|
|
1168
|
+
break;
|
|
1169
|
+
case enable:
|
|
1170
|
+
api.enable('cancel');
|
|
1171
|
+
break;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
var originalImgOpt = getSelectedImage(editor);
|
|
1177
|
+
var originalSizeOpt = originalImgOpt.map(function (origImg) {
|
|
1178
|
+
return getNaturalImageSize(origImg.dom());
|
|
1179
|
+
});
|
|
1180
|
+
var imgOpt = getSelectedImage(editor);
|
|
1181
|
+
imgOpt.each(function (img) {
|
|
1182
|
+
getEditableImage(editor, img.dom()).each(function (_) {
|
|
1183
|
+
findBlob(editor, img.dom()).then(function (blob) {
|
|
1184
|
+
var state = createState(blob);
|
|
1185
|
+
editor.windowManager.open(getLoadedSpec(state));
|
|
1186
|
+
});
|
|
1187
|
+
});
|
|
1188
|
+
});
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
var register = function (editor, imageUploadTimerState) {
|
|
1193
|
+
global$1.each({
|
|
1194
|
+
mceImageRotateLeft: rotate$2(editor, imageUploadTimerState, -90),
|
|
1195
|
+
mceImageRotateRight: rotate$2(editor, imageUploadTimerState, 90),
|
|
1196
|
+
mceImageFlipVertical: flip$2(editor, imageUploadTimerState, 'v'),
|
|
1197
|
+
mceImageFlipHorizontal: flip$2(editor, imageUploadTimerState, 'h'),
|
|
1198
|
+
mceEditImage: makeOpen(editor, imageUploadTimerState)
|
|
1199
|
+
}, function (fn, cmd) {
|
|
1200
|
+
editor.addCommand(cmd, fn);
|
|
1201
|
+
});
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
var setup = function (editor, imageUploadTimerState, lastSelectedImageState) {
|
|
1205
|
+
editor.on('NodeChange', function (e) {
|
|
1206
|
+
var lastSelectedImage = lastSelectedImageState.get();
|
|
1207
|
+
if (lastSelectedImage && lastSelectedImage.src !== e.element.src) {
|
|
1208
|
+
cancelTimedUpload(imageUploadTimerState);
|
|
1209
|
+
editor.editorUpload.uploadImagesAuto();
|
|
1210
|
+
lastSelectedImageState.set(null);
|
|
1211
|
+
}
|
|
1212
|
+
getEditableImage(editor, e.element).each(lastSelectedImageState.set);
|
|
1213
|
+
});
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
var register$1 = function (editor) {
|
|
1217
|
+
var cmd = function (command) {
|
|
1218
|
+
return function () {
|
|
1219
|
+
return editor.execCommand(command);
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
editor.ui.registry.addButton('rotateleft', {
|
|
1223
|
+
tooltip: 'Rotate counterclockwise',
|
|
1224
|
+
icon: 'rotate-left',
|
|
1225
|
+
onAction: cmd('mceImageRotateLeft')
|
|
1226
|
+
});
|
|
1227
|
+
editor.ui.registry.addButton('rotateright', {
|
|
1228
|
+
tooltip: 'Rotate clockwise',
|
|
1229
|
+
icon: 'rotate-right',
|
|
1230
|
+
onAction: cmd('mceImageRotateRight')
|
|
1231
|
+
});
|
|
1232
|
+
editor.ui.registry.addButton('flipv', {
|
|
1233
|
+
tooltip: 'Flip vertically',
|
|
1234
|
+
icon: 'flip-vertically',
|
|
1235
|
+
onAction: cmd('mceImageFlipVertical')
|
|
1236
|
+
});
|
|
1237
|
+
editor.ui.registry.addButton('fliph', {
|
|
1238
|
+
tooltip: 'Flip horizontally',
|
|
1239
|
+
icon: 'flip-horizontally',
|
|
1240
|
+
onAction: cmd('mceImageFlipHorizontal')
|
|
1241
|
+
});
|
|
1242
|
+
editor.ui.registry.addButton('editimage', {
|
|
1243
|
+
tooltip: 'Edit image',
|
|
1244
|
+
icon: 'edit-image',
|
|
1245
|
+
onAction: cmd('mceEditImage'),
|
|
1246
|
+
onSetup: function (buttonApi) {
|
|
1247
|
+
var setDisabled = function () {
|
|
1248
|
+
var elementOpt = getSelectedImage(editor);
|
|
1249
|
+
elementOpt.each(function (element) {
|
|
1250
|
+
var disabled = getEditableImage(editor, element.dom()).isNone();
|
|
1251
|
+
buttonApi.setDisabled(disabled);
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
editor.on('NodeChange', setDisabled);
|
|
1255
|
+
return function () {
|
|
1256
|
+
editor.off('NodeChange', setDisabled);
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1260
|
+
editor.ui.registry.addButton('imageoptions', {
|
|
1261
|
+
tooltip: 'Image options',
|
|
1262
|
+
icon: 'image-options',
|
|
1263
|
+
onAction: cmd('mceImage')
|
|
1264
|
+
});
|
|
1265
|
+
editor.ui.registry.addContextMenu('imagetools', {
|
|
1266
|
+
update: function (element) {
|
|
1267
|
+
return getEditableImage(editor, element).fold(function () {
|
|
1268
|
+
return [];
|
|
1269
|
+
}, function (_) {
|
|
1270
|
+
return [{
|
|
1271
|
+
text: 'Edit image',
|
|
1272
|
+
icon: 'edit-image',
|
|
1273
|
+
onAction: cmd('mceEditImage')
|
|
1274
|
+
}];
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
var register$2 = function (editor) {
|
|
1281
|
+
editor.ui.registry.addContextToolbar('imagetools', {
|
|
1282
|
+
items: getToolbarItems(editor),
|
|
1283
|
+
predicate: function (elem) {
|
|
1284
|
+
return getEditableImage(editor, elem).isSome();
|
|
1285
|
+
},
|
|
1286
|
+
position: 'node',
|
|
1287
|
+
scope: 'node'
|
|
1288
|
+
});
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
function Plugin () {
|
|
1292
|
+
global.add('imagetools', function (editor) {
|
|
1293
|
+
var imageUploadTimerState = Cell(0);
|
|
1294
|
+
var lastSelectedImageState = Cell(null);
|
|
1295
|
+
register(editor, imageUploadTimerState);
|
|
1296
|
+
register$1(editor);
|
|
1297
|
+
register$2(editor);
|
|
1298
|
+
setup(editor, imageUploadTimerState, lastSelectedImageState);
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
Plugin();
|
|
1303
|
+
|
|
1304
|
+
}(window));
|