firefly-portal-web 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -0
- package/dist-lib/Empower-789f2826.mjs +94 -0
- package/dist-lib/Empower-789f2826.mjs.map +1 -0
- package/dist-lib/Empower.vue_vue_type_script_setup_true_lang-c454e7a0.mjs +134 -0
- package/dist-lib/Empower.vue_vue_type_script_setup_true_lang-c454e7a0.mjs.map +1 -0
- package/dist-lib/Field-40d74a96.mjs +94 -0
- package/dist-lib/Field-40d74a96.mjs.map +1 -0
- package/dist-lib/Field.vue_vue_type_script_setup_true_lang-e1964a74.mjs +148 -0
- package/dist-lib/Field.vue_vue_type_script_setup_true_lang-e1964a74.mjs.map +1 -0
- package/dist-lib/FieldForm-a5d4038b.mjs +93 -0
- package/dist-lib/FieldForm-a5d4038b.mjs.map +1 -0
- package/dist-lib/FieldForm.vue_vue_type_script_setup_true_lang-f92c7e23.mjs +160 -0
- package/dist-lib/FieldForm.vue_vue_type_script_setup_true_lang-f92c7e23.mjs.map +1 -0
- package/dist-lib/Form-06ee1b64.mjs +97 -0
- package/dist-lib/Form-06ee1b64.mjs.map +1 -0
- package/dist-lib/Form-15a7f801.mjs +95 -0
- package/dist-lib/Form-15a7f801.mjs.map +1 -0
- package/dist-lib/Form-465fe45d.mjs +237 -0
- package/dist-lib/Form-465fe45d.mjs.map +1 -0
- package/dist-lib/Form-6e6a6a0d.mjs +94 -0
- package/dist-lib/Form-6e6a6a0d.mjs.map +1 -0
- package/dist-lib/Form-a61f1446.mjs +93 -0
- package/dist-lib/Form-a61f1446.mjs.map +1 -0
- package/dist-lib/Form-aeafea39.mjs +93 -0
- package/dist-lib/Form-aeafea39.mjs.map +1 -0
- package/dist-lib/Form-b0b8b1f3.mjs +94 -0
- package/dist-lib/Form-b0b8b1f3.mjs.map +1 -0
- package/dist-lib/Form-b2915cd3.mjs +95 -0
- package/dist-lib/Form-b2915cd3.mjs.map +1 -0
- package/dist-lib/Form-b2ce5535.mjs +93 -0
- package/dist-lib/Form-b2ce5535.mjs.map +1 -0
- package/dist-lib/Form-ca6e92bd.mjs +421 -0
- package/dist-lib/Form-ca6e92bd.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-039f5c88.mjs +101 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-039f5c88.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-1883a047.mjs +91 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-1883a047.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-5fbc0f96.mjs +302 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-5fbc0f96.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-61497691.mjs +181 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-61497691.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-69cc4bfc.mjs +94 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-69cc4bfc.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-a3d7f865.mjs +263 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-a3d7f865.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-ae83b1bb.mjs +104 -0
- package/dist-lib/Form.vue_vue_type_script_setup_true_lang-ae83b1bb.mjs.map +1 -0
- package/dist-lib/Form.vue_vue_type_style_index_0_lang-f240a568.mjs +838 -0
- package/dist-lib/Form.vue_vue_type_style_index_0_lang-f240a568.mjs.map +1 -0
- package/dist-lib/Info-e9cb4268.mjs +747 -0
- package/dist-lib/Info-e9cb4268.mjs.map +1 -0
- package/dist-lib/Log-b1cc7014.mjs +94 -0
- package/dist-lib/Log-b1cc7014.mjs.map +1 -0
- package/dist-lib/Log.vue_vue_type_script_setup_true_lang-0ba0615b.mjs +93 -0
- package/dist-lib/Log.vue_vue_type_script_setup_true_lang-0ba0615b.mjs.map +1 -0
- package/dist-lib/Login-fc04d844.mjs +109 -0
- package/dist-lib/Login-fc04d844.mjs.map +1 -0
- package/dist-lib/LoginForm-eafdf0bc.mjs +93 -0
- package/dist-lib/LoginForm-eafdf0bc.mjs.map +1 -0
- package/dist-lib/LoginForm.vue_vue_type_script_setup_true_lang-2a241386.mjs +202 -0
- package/dist-lib/LoginForm.vue_vue_type_script_setup_true_lang-2a241386.mjs.map +1 -0
- package/dist-lib/PageExplainModal-efbb4616.mjs +140 -0
- package/dist-lib/PageExplainModal-efbb4616.mjs.map +1 -0
- package/dist-lib/Preview-531e9361.mjs +93 -0
- package/dist-lib/Preview-531e9361.mjs.map +1 -0
- package/dist-lib/Preview-6086e84b.mjs +93 -0
- package/dist-lib/Preview-6086e84b.mjs.map +1 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-0013b21d.mjs +137 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-0013b21d.mjs.map +1 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-815bfd98.mjs +67 -0
- package/dist-lib/Preview.vue_vue_type_script_setup_true_lang-815bfd98.mjs.map +1 -0
- package/dist-lib/TableAction-fcabc30c.mjs +114 -0
- package/dist-lib/TableAction-fcabc30c.mjs.map +1 -0
- package/dist-lib/UserSelect-4e259116.mjs +94 -0
- package/dist-lib/UserSelect-4e259116.mjs.map +1 -0
- package/dist-lib/UserSelect.vue_vue_type_script_setup_true_lang-aa25c5fc.mjs +282 -0
- package/dist-lib/UserSelect.vue_vue_type_script_setup_true_lang-aa25c5fc.mjs.map +1 -0
- package/dist-lib/cdn/socials/dingtalk.png +0 -0
- package/dist-lib/cdn/socials/feishu.png +0 -0
- package/dist-lib/cdn/socials/gitHub.png +0 -0
- package/dist-lib/cdn/socials/qq.png +0 -0
- package/dist-lib/cdn/socials/wechat_open.png +0 -0
- package/dist-lib/cdn/socials/wxWork.png +0 -0
- package/dist-lib/commonFields-5ff2332b.mjs +24 -0
- package/dist-lib/commonFields-5ff2332b.mjs.map +1 -0
- package/dist-lib/css/fonts/ym/iconfont.css +2419 -0
- package/dist-lib/css/fonts/ym/iconfont.ttf +0 -0
- package/dist-lib/css/fonts/ym/iconfont.woff +0 -0
- package/dist-lib/css/fonts/ym/iconfont.woff2 +0 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.css +7203 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.ttf +0 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.woff +0 -0
- package/dist-lib/css/fonts/ym-custom/iconfont.woff2 +0 -0
- package/dist-lib/css/index.css +135 -0
- package/dist-lib/css/print-lock.css +352 -0
- package/dist-lib/emtryImg-85b013aa.mjs +5 -0
- package/dist-lib/emtryImg-85b013aa.mjs.map +1 -0
- package/dist-lib/en_US-6b59f0a7.mjs +774 -0
- package/dist-lib/en_US-6b59f0a7.mjs.map +1 -0
- package/dist-lib/favicon.ico +0 -0
- package/dist-lib/firefly-portal-preview.css +1 -0
- package/dist-lib/firefly-portal-preview.d.ts +82 -0
- package/dist-lib/firefly-portal-preview.es.js +92 -0
- package/dist-lib/firefly-portal-preview.es.js.map +1 -0
- package/dist-lib/firefly-portal-preview.umd.js +79 -0
- package/dist-lib/firefly-portal-preview.umd.js.map +1 -0
- package/dist-lib/formValidate-33d5595a.mjs +68 -0
- package/dist-lib/formValidate-33d5595a.mjs.map +1 -0
- package/dist-lib/index-1a090e82.mjs +173 -0
- package/dist-lib/index-1a090e82.mjs.map +1 -0
- package/dist-lib/index-28ba2ea1.mjs +154 -0
- package/dist-lib/index-28ba2ea1.mjs.map +1 -0
- package/dist-lib/index-29f92d0d.mjs +130 -0
- package/dist-lib/index-29f92d0d.mjs.map +1 -0
- package/dist-lib/index-2c2c19d4.mjs +160 -0
- package/dist-lib/index-2c2c19d4.mjs.map +1 -0
- package/dist-lib/index-2f898c1f.mjs +103 -0
- package/dist-lib/index-2f898c1f.mjs.map +1 -0
- package/dist-lib/index-3462ba0d.mjs +139 -0
- package/dist-lib/index-3462ba0d.mjs.map +1 -0
- package/dist-lib/index-3ebbb3a9.mjs +97 -0
- package/dist-lib/index-3ebbb3a9.mjs.map +1 -0
- package/dist-lib/index-436ec82c.mjs +145 -0
- package/dist-lib/index-436ec82c.mjs.map +1 -0
- package/dist-lib/index-44e8def1.mjs +267 -0
- package/dist-lib/index-44e8def1.mjs.map +1 -0
- package/dist-lib/index-47596f01.mjs +144 -0
- package/dist-lib/index-47596f01.mjs.map +1 -0
- package/dist-lib/index-5888a3a4.mjs +226 -0
- package/dist-lib/index-5888a3a4.mjs.map +1 -0
- package/dist-lib/index-58fb457c.mjs +179 -0
- package/dist-lib/index-58fb457c.mjs.map +1 -0
- package/dist-lib/index-5b8b1ba9.mjs +119766 -0
- package/dist-lib/index-5b8b1ba9.mjs.map +1 -0
- package/dist-lib/index-687fd3de.mjs +396 -0
- package/dist-lib/index-687fd3de.mjs.map +1 -0
- package/dist-lib/index-6eca8dab.mjs +135 -0
- package/dist-lib/index-6eca8dab.mjs.map +1 -0
- package/dist-lib/index-73df4468.mjs +187 -0
- package/dist-lib/index-73df4468.mjs.map +1 -0
- package/dist-lib/index-7ae97180.mjs +597 -0
- package/dist-lib/index-7ae97180.mjs.map +1 -0
- package/dist-lib/index-8374b2f2.mjs +354 -0
- package/dist-lib/index-8374b2f2.mjs.map +1 -0
- package/dist-lib/index-89a27c27.mjs +255 -0
- package/dist-lib/index-89a27c27.mjs.map +1 -0
- package/dist-lib/index-9263cd45.mjs +482 -0
- package/dist-lib/index-9263cd45.mjs.map +1 -0
- package/dist-lib/index-934ca5d0.mjs +93 -0
- package/dist-lib/index-934ca5d0.mjs.map +1 -0
- package/dist-lib/index-97081729.mjs +269 -0
- package/dist-lib/index-97081729.mjs.map +1 -0
- package/dist-lib/index-9dec931e.mjs +145 -0
- package/dist-lib/index-9dec931e.mjs.map +1 -0
- package/dist-lib/index-9fc40c89.mjs +298 -0
- package/dist-lib/index-9fc40c89.mjs.map +1 -0
- package/dist-lib/index-a57664c9.mjs +204 -0
- package/dist-lib/index-a57664c9.mjs.map +1 -0
- package/dist-lib/index-a83288bf.mjs +180 -0
- package/dist-lib/index-a83288bf.mjs.map +1 -0
- package/dist-lib/index-adf15a9e.mjs +392 -0
- package/dist-lib/index-adf15a9e.mjs.map +1 -0
- package/dist-lib/index-b5b20206.mjs +617 -0
- package/dist-lib/index-b5b20206.mjs.map +1 -0
- package/dist-lib/index-b6f446cf.mjs +92 -0
- package/dist-lib/index-b6f446cf.mjs.map +1 -0
- package/dist-lib/index-b9e3947c.mjs +156 -0
- package/dist-lib/index-b9e3947c.mjs.map +1 -0
- package/dist-lib/index-bde150fa.mjs +261 -0
- package/dist-lib/index-bde150fa.mjs.map +1 -0
- package/dist-lib/index-be097ef0.mjs +188 -0
- package/dist-lib/index-be097ef0.mjs.map +1 -0
- package/dist-lib/index-bff033bc.mjs +563 -0
- package/dist-lib/index-bff033bc.mjs.map +1 -0
- package/dist-lib/index-c4d74c6c.mjs +258 -0
- package/dist-lib/index-c4d74c6c.mjs.map +1 -0
- package/dist-lib/index-c708e214.mjs +96 -0
- package/dist-lib/index-c708e214.mjs.map +1 -0
- package/dist-lib/index-d936d570.mjs +191 -0
- package/dist-lib/index-d936d570.mjs.map +1 -0
- package/dist-lib/index-da857153.mjs +223 -0
- package/dist-lib/index-da857153.mjs.map +1 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-0eb8f454.mjs +136 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-0eb8f454.mjs.map +1 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-10a915e2.mjs +137 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-10a915e2.mjs.map +1 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-570dd942.mjs +131 -0
- package/dist-lib/index.vue_vue_type_script_setup_true_lang-570dd942.mjs.map +1 -0
- package/dist-lib/interfaceOauth-bb8e782e.mjs +40 -0
- package/dist-lib/interfaceOauth-bb8e782e.mjs.map +1 -0
- package/dist-lib/preview-e588e33c.mjs +194 -0
- package/dist-lib/preview-e588e33c.mjs.map +1 -0
- package/dist-lib/resource/emoji/100.gif +0 -0
- package/dist-lib/resource/emoji/101.gif +0 -0
- package/dist-lib/resource/emoji/102.gif +0 -0
- package/dist-lib/resource/emoji/103.gif +0 -0
- package/dist-lib/resource/emoji/104.gif +0 -0
- package/dist-lib/resource/emoji/105.gif +0 -0
- package/dist-lib/resource/emoji/106.gif +0 -0
- package/dist-lib/resource/emoji/107.gif +0 -0
- package/dist-lib/resource/emoji/108.gif +0 -0
- package/dist-lib/resource/emoji/109.gif +0 -0
- package/dist-lib/resource/emoji/110.gif +0 -0
- package/dist-lib/resource/emoji/111.gif +0 -0
- package/dist-lib/resource/emoji/112.gif +0 -0
- package/dist-lib/resource/emoji/113.gif +0 -0
- package/dist-lib/resource/emoji/114.gif +0 -0
- package/dist-lib/resource/emoji/115.gif +0 -0
- package/dist-lib/resource/emoji/116.gif +0 -0
- package/dist-lib/resource/emoji/117.gif +0 -0
- package/dist-lib/resource/emoji/118.gif +0 -0
- package/dist-lib/resource/emoji/119.gif +0 -0
- package/dist-lib/resource/emoji/120.gif +0 -0
- package/dist-lib/resource/emoji/121.gif +0 -0
- package/dist-lib/resource/emoji/122.gif +0 -0
- package/dist-lib/resource/emoji/123.gif +0 -0
- package/dist-lib/resource/emoji/124.gif +0 -0
- package/dist-lib/resource/emoji/125.gif +0 -0
- package/dist-lib/resource/emoji/126.gif +0 -0
- package/dist-lib/resource/emoji/127.gif +0 -0
- package/dist-lib/resource/emoji/128.gif +0 -0
- package/dist-lib/resource/emoji/129.gif +0 -0
- package/dist-lib/resource/emoji/130.gif +0 -0
- package/dist-lib/resource/emoji/131.gif +0 -0
- package/dist-lib/resource/emoji/132.gif +0 -0
- package/dist-lib/resource/emoji/133.gif +0 -0
- package/dist-lib/resource/emoji/134.gif +0 -0
- package/dist-lib/resource/emoji/135.gif +0 -0
- package/dist-lib/resource/emoji/136.gif +0 -0
- package/dist-lib/resource/emoji/137.gif +0 -0
- package/dist-lib/resource/emoji/138.gif +0 -0
- package/dist-lib/resource/emoji/139.gif +0 -0
- package/dist-lib/resource/emoji/140.gif +0 -0
- package/dist-lib/resource/emoji/141.gif +0 -0
- package/dist-lib/resource/emoji/142.gif +0 -0
- package/dist-lib/resource/emoji/143.gif +0 -0
- package/dist-lib/resource/emoji/144.gif +0 -0
- package/dist-lib/resource/emoji/145.gif +0 -0
- package/dist-lib/resource/emoji/146.gif +0 -0
- package/dist-lib/resource/emoji/147.gif +0 -0
- package/dist-lib/resource/emoji/148.gif +0 -0
- package/dist-lib/resource/emoji/149.gif +0 -0
- package/dist-lib/resource/emoji/150.gif +0 -0
- package/dist-lib/resource/emoji/151.gif +0 -0
- package/dist-lib/resource/emoji/152.gif +0 -0
- package/dist-lib/resource/emoji/153.gif +0 -0
- package/dist-lib/resource/emoji/154.gif +0 -0
- package/dist-lib/resource/emoji/155.gif +0 -0
- package/dist-lib/resource/emoji/156.gif +0 -0
- package/dist-lib/resource/emoji/157.gif +0 -0
- package/dist-lib/resource/emoji/158.gif +0 -0
- package/dist-lib/resource/emoji/159.gif +0 -0
- package/dist-lib/resource/emoji/160.gif +0 -0
- package/dist-lib/resource/emoji/161.gif +0 -0
- package/dist-lib/resource/emoji/162.gif +0 -0
- package/dist-lib/resource/emoji/163.gif +0 -0
- package/dist-lib/resource/emoji/164.gif +0 -0
- package/dist-lib/resource/emoji/165.gif +0 -0
- package/dist-lib/resource/emoji/166.gif +0 -0
- package/dist-lib/resource/emoji/167.gif +0 -0
- package/dist-lib/resource/emoji/168.gif +0 -0
- package/dist-lib/resource/emoji/169.gif +0 -0
- package/dist-lib/resource/emoji/170.gif +0 -0
- package/dist-lib/resource/emoji/171.gif +0 -0
- package/dist-lib/resource/emoji/172.gif +0 -0
- package/dist-lib/resource/emoji/173.gif +0 -0
- package/dist-lib/resource/emoji/174.gif +0 -0
- package/dist-lib/resource/emoji/175.gif +0 -0
- package/dist-lib/resource/emoji/176.gif +0 -0
- package/dist-lib/resource/emoji/177.gif +0 -0
- package/dist-lib/resource/emoji/178.gif +0 -0
- package/dist-lib/resource/emoji/179.gif +0 -0
- package/dist-lib/resource/emoji/180.gif +0 -0
- package/dist-lib/resource/emoji/181.gif +0 -0
- package/dist-lib/resource/emoji/182.gif +0 -0
- package/dist-lib/resource/emoji/183.gif +0 -0
- package/dist-lib/resource/emoji/184.gif +0 -0
- package/dist-lib/resource/emoji/185.gif +0 -0
- package/dist-lib/resource/emoji/186.gif +0 -0
- package/dist-lib/resource/emoji/187.gif +0 -0
- package/dist-lib/resource/emoji/188.gif +0 -0
- package/dist-lib/resource/emoji/189.gif +0 -0
- package/dist-lib/resource/emoji/190.gif +0 -0
- package/dist-lib/resource/emoji/191.gif +0 -0
- package/dist-lib/resource/emoji/192.gif +0 -0
- package/dist-lib/resource/emoji/193.gif +0 -0
- package/dist-lib/resource/emoji/194.gif +0 -0
- package/dist-lib/resource/emoji/195.gif +0 -0
- package/dist-lib/resource/emoji/196.gif +0 -0
- package/dist-lib/resource/emoji/197.gif +0 -0
- package/dist-lib/resource/emoji/198.gif +0 -0
- package/dist-lib/resource/emoji/199.gif +0 -0
- package/dist-lib/resource/emoji/200.png +0 -0
- package/dist-lib/resource/emoji/201.png +0 -0
- package/dist-lib/resource/emoji/202.png +0 -0
- package/dist-lib/resource/emoji/203.png +0 -0
- package/dist-lib/resource/emoji/204.png +0 -0
- package/dist-lib/resource/emoji/205.png +0 -0
- package/dist-lib/resource/emoji/206.png +0 -0
- package/dist-lib/resource/emoji/207.png +0 -0
- package/dist-lib/resource/emoji/208.png +0 -0
- package/dist-lib/resource/emoji/209.png +0 -0
- package/dist-lib/resource/emoji/210.png +0 -0
- package/dist-lib/resource/emoji/211.png +0 -0
- package/dist-lib/resource/emoji/212.png +0 -0
- package/dist-lib/resource/emoji/213.png +0 -0
- package/dist-lib/resource/emoji/214.png +0 -0
- package/dist-lib/resource/emoji/215.png +0 -0
- package/dist-lib/resource/emoji/216.png +0 -0
- package/dist-lib/resource/emoji/217.png +0 -0
- package/dist-lib/resource/emoji/218.png +0 -0
- package/dist-lib/resource/emoji/219.png +0 -0
- package/dist-lib/resource/img/logo.png +0 -0
- package/dist-lib/resource/img/pwa-192x192.png +0 -0
- package/dist-lib/resource/img/pwa-512x512.png +0 -0
- package/dist-lib/resource/tinymce/langs/en.js +419 -0
- package/dist-lib/resource/tinymce/langs/zh_CN.js +389 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/dist-lib/resource/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/dist-lib/useCommon-36969e5f.mjs +110 -0
- package/dist-lib/useCommon-36969e5f.mjs.map +1 -0
- package/dist-lib/useECharts-bb3ba984.mjs +77 -0
- package/dist-lib/useECharts-bb3ba984.mjs.map +1 -0
- package/dist-lib/useTable-99fc521a.mjs +172 -0
- package/dist-lib/useTable-99fc521a.mjs.map +1 -0
- package/dist-lib/zh_CN-5eabc04b.mjs +772 -0
- package/dist-lib/zh_CN-5eabc04b.mjs.map +1 -0
- package/dist-lib/zh_TW-ef5c69c0.mjs +774 -0
- package/dist-lib/zh_TW-ef5c69c0.mjs.map +1 -0
- package/package.json +247 -0
- package/src/components/PortalPreview/__tests__/index.spec.ts +258 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.css +2419 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.ttf +0 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.woff +0 -0
- package/src/components/PortalPreview/fonts/ym/iconfont.woff2 +0 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.css +7203 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.ttf +0 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.woff +0 -0
- package/src/components/PortalPreview/fonts/ym-custom/iconfont.woff2 +0 -0
- package/src/components/PortalPreview/index.ts +31 -0
- package/src/components/PortalPreview/index.vue +329 -0
- package/src/components/PortalPreview/style/overrides.css +15 -0
- package/src/components/PortalPreview/types.ts +61 -0
|
@@ -0,0 +1,747 @@
|
|
|
1
|
+
import { defineComponent as l, openBlock as e, createBlock as c, unref as a, mergeProps as u, withCtx as i, pushScopeId as r, popScopeId as k, createElementVNode as n, createTextVNode as t } from "vue";
|
|
2
|
+
import { n as d, q as m, _ as y } from "./index-5b8b1ba9.mjs";
|
|
3
|
+
import "lodash-es";
|
|
4
|
+
import "ant-design-vue";
|
|
5
|
+
import "vue-i18n";
|
|
6
|
+
import "pinia";
|
|
7
|
+
import "crypto-js/aes";
|
|
8
|
+
import "crypto-js/enc-utf8";
|
|
9
|
+
import "crypto-js/pad-pkcs7";
|
|
10
|
+
import "crypto-js/mode-ecb";
|
|
11
|
+
import "crypto-js/md5";
|
|
12
|
+
import "crypto-js/enc-base64";
|
|
13
|
+
import "crypto-js/enc-hex";
|
|
14
|
+
import "dayjs";
|
|
15
|
+
import "@vueuse/core";
|
|
16
|
+
import "vue-router";
|
|
17
|
+
import "axios";
|
|
18
|
+
import "@ant-design/icons-vue";
|
|
19
|
+
import "@ant-design/colors";
|
|
20
|
+
import "@iconify/iconify";
|
|
21
|
+
import "vue-types";
|
|
22
|
+
import "@firefly-plus/icons-vue";
|
|
23
|
+
import "qrcode";
|
|
24
|
+
import "vue-simple-uploader";
|
|
25
|
+
import "spark-md5";
|
|
26
|
+
import "vue-simple-uploader/dist/style.css";
|
|
27
|
+
import "tinymce/tinymce";
|
|
28
|
+
import "tinymce/themes/silver";
|
|
29
|
+
import "tinymce/icons/default/icons";
|
|
30
|
+
import "tinymce/plugins/advlist";
|
|
31
|
+
import "tinymce/plugins/anchor";
|
|
32
|
+
import "tinymce/plugins/autolink";
|
|
33
|
+
import "tinymce/plugins/autosave";
|
|
34
|
+
import "tinymce/plugins/code";
|
|
35
|
+
import "tinymce/plugins/codesample";
|
|
36
|
+
import "tinymce/plugins/directionality";
|
|
37
|
+
import "tinymce/plugins/fullscreen";
|
|
38
|
+
import "tinymce/plugins/hr";
|
|
39
|
+
import "tinymce/plugins/insertdatetime";
|
|
40
|
+
import "tinymce/plugins/link";
|
|
41
|
+
import "tinymce/plugins/lists";
|
|
42
|
+
import "tinymce/plugins/media";
|
|
43
|
+
import "tinymce/plugins/nonbreaking";
|
|
44
|
+
import "tinymce/plugins/noneditable";
|
|
45
|
+
import "tinymce/plugins/pagebreak";
|
|
46
|
+
import "tinymce/plugins/paste";
|
|
47
|
+
import "tinymce/plugins/preview";
|
|
48
|
+
import "tinymce/plugins/print";
|
|
49
|
+
import "tinymce/plugins/save";
|
|
50
|
+
import "tinymce/plugins/searchreplace";
|
|
51
|
+
import "tinymce/plugins/spellchecker";
|
|
52
|
+
import "tinymce/plugins/tabfocus";
|
|
53
|
+
import "tinymce/plugins/table";
|
|
54
|
+
import "tinymce/plugins/template";
|
|
55
|
+
import "tinymce/plugins/textpattern";
|
|
56
|
+
import "tinymce/plugins/visualblocks";
|
|
57
|
+
import "tinymce/plugins/visualchars";
|
|
58
|
+
import "tinymce/plugins/wordcount";
|
|
59
|
+
import "tinymce/plugins/image";
|
|
60
|
+
import "tinymce/plugins/charmap";
|
|
61
|
+
import "tinymce/plugins/imagetools";
|
|
62
|
+
import "tinymce/plugins/help";
|
|
63
|
+
import "tinymce/plugins/quickbars";
|
|
64
|
+
import "tinymce/plugins/importcss";
|
|
65
|
+
import "tinymce/plugins/toc";
|
|
66
|
+
import "tinymce/plugins/emoticons";
|
|
67
|
+
import "sortablejs";
|
|
68
|
+
import "codemirror";
|
|
69
|
+
import "codemirror/theme/idea.css";
|
|
70
|
+
import "codemirror/theme/material-palenight.css";
|
|
71
|
+
import "codemirror/mode/javascript/javascript";
|
|
72
|
+
import "codemirror/mode/css/css";
|
|
73
|
+
import "codemirror/mode/htmlmixed/htmlmixed";
|
|
74
|
+
import "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
75
|
+
import "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
76
|
+
import "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
77
|
+
import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
|
|
78
|
+
import "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
79
|
+
import "monaco-editor";
|
|
80
|
+
import "vue-json-pretty";
|
|
81
|
+
import "vue-json-pretty/lib/styles.css";
|
|
82
|
+
import "firefly-plus-components";
|
|
83
|
+
import "vuedraggable";
|
|
84
|
+
import "uuid";
|
|
85
|
+
import "element-plus";
|
|
86
|
+
import "firefly-plus-components/index.css";
|
|
87
|
+
import "element-plus/dist/index.css";
|
|
88
|
+
import "vue-grid-layout";
|
|
89
|
+
const x = (s) => (r("data-v-f3eb1a77"), s = s(), k(), s), g = /* @__PURE__ */ x(() => /* @__PURE__ */ n("div", { class: "doc-container" }, [
|
|
90
|
+
/* @__PURE__ */ n("div", { class: "docu-container" }, [
|
|
91
|
+
/* @__PURE__ */ n("h4", null, "验证开启"),
|
|
92
|
+
/* @__PURE__ */ n("p", null, "验证签名关闭,不使用验证机制"),
|
|
93
|
+
/* @__PURE__ */ n("p", null, "直接将appId和appSecret,按照 Authorization: appId::appSecret 格式加入到 Header 中。"),
|
|
94
|
+
/* @__PURE__ */ n("p", null, "验证签名开启,使用下列签名验证机制"),
|
|
95
|
+
/* @__PURE__ */ n("h4", null, " 签名验证机制 "),
|
|
96
|
+
/* @__PURE__ */ n("p", null, "和第三方服务对接时,需要建立通讯双方的信任关系,以及确保通讯内容不被篡改,不被重放等。通常,我们采用 HTTPS 和 KeyId/SecretKey 的方式:"),
|
|
97
|
+
/* @__PURE__ */ n("ol", null, [
|
|
98
|
+
/* @__PURE__ */ n("li", null, "HTTPS 用来确定接收方的身份,利用公钥证书机制来保证。"),
|
|
99
|
+
/* @__PURE__ */ n("li", null, " 根据双方共享的一对 keyId/secret,使用 HMAC 签名机制,发送方对请求内容进行签名,并加入到Header中,接收方使用同样的方式对请求进行签名计算,比对签名结果用来判别发送方的身份。 ")
|
|
100
|
+
]),
|
|
101
|
+
/* @__PURE__ */ n("p", null, "当前HTTP授权证书支持globalsign, symantec, geotrust, comodo这四类,其余证书类型需要经过处理,暂时不推荐。"),
|
|
102
|
+
/* @__PURE__ */ n("p", null, "本系统内采用appId/appSecret来进行签名。"),
|
|
103
|
+
/* @__PURE__ */ n("h4", null, "签名过程 "),
|
|
104
|
+
/* @__PURE__ */ n("p", null, "签名分为以下4个步骤:"),
|
|
105
|
+
/* @__PURE__ */ n("ol", null, [
|
|
106
|
+
/* @__PURE__ */ n("li", null, "选择合适的签名方法"),
|
|
107
|
+
/* @__PURE__ */ n("li", null, "根据对应的签名,构建待签名的字符串"),
|
|
108
|
+
/* @__PURE__ */ n("li", null, "根据对应的签名算法和对应的appSecret,计算待签名字符串的 Hmac 签名"),
|
|
109
|
+
/* @__PURE__ */ n("li", null, [
|
|
110
|
+
/* @__PURE__ */ t(" 将签名按规定格式加入到 Header: Authorization中。 "),
|
|
111
|
+
/* @__PURE__ */ n("p", null, "通常使用: Authorization: SignVersion:KeyId:Scope:Signature; ")
|
|
112
|
+
]),
|
|
113
|
+
/* @__PURE__ */ n("p", null, "本系统内最终以KeyId:Signature规则展示")
|
|
114
|
+
]),
|
|
115
|
+
/* @__PURE__ */ n("h4", null, " 签名方法 "),
|
|
116
|
+
/* @__PURE__ */ n("p", null, "为了使双方采用一致的算法计算签名,需要规定签名字符串的构建和签名算法,为了满足后续的签名算法升级,当前支持的签名方式为: HmacSHA256"),
|
|
117
|
+
/* @__PURE__ */ n("p", null, "待签名字符串,请按照以下顺序构建"),
|
|
118
|
+
/* @__PURE__ */ n("ol", null, [
|
|
119
|
+
/* @__PURE__ */ n("li", null, [
|
|
120
|
+
/* @__PURE__ */ n("p", null, "Http Method, 大写。例如 GET, POST。加上换行符 \\n")
|
|
121
|
+
]),
|
|
122
|
+
/* @__PURE__ */ n("li", null, [
|
|
123
|
+
/* @__PURE__ */ n("p", null, "URI Path。query params string 之前的部分。 加上换行符 \\n")
|
|
124
|
+
]),
|
|
125
|
+
/* @__PURE__ */ n("li", null, [
|
|
126
|
+
/* @__PURE__ */ n("p", null, "Header 中的 YmDate, 以时间戳的形式,例如(2022-06-28 16:26:11=>1656404771000)。加上换行符 \\n"),
|
|
127
|
+
/* @__PURE__ */ n("p", null, "该时间将会用来判断请求有效性,限定一分钟之内有效。若无效返回验证超时。")
|
|
128
|
+
]),
|
|
129
|
+
/* @__PURE__ */ n("li", null, [
|
|
130
|
+
/* @__PURE__ */ n("p", null, "UserKey用于用户认证 \\n")
|
|
131
|
+
]),
|
|
132
|
+
/* @__PURE__ */ n("li", null, [
|
|
133
|
+
/* @__PURE__ */ n("p", null, "Header 中的 Host,为开发者自身的域名,加上换行符 \\n")
|
|
134
|
+
])
|
|
135
|
+
]),
|
|
136
|
+
/* @__PURE__ */ n("p", null, "Header规范化方法如下:"),
|
|
137
|
+
/* @__PURE__ */ n("ol", null, [
|
|
138
|
+
/* @__PURE__ */ n("li", null, "将所有的 header name 都变成小写,按照字典序排序。"),
|
|
139
|
+
/* @__PURE__ */ n("li", null, "对每一个小写的 name, 取出所有的对应的 value。如果有多个 value, 对所有的 value 进行字典序排序,用逗号 (,) 连接。"),
|
|
140
|
+
/* @__PURE__ */ n("li", null, "对每一对 name, value。按照如下方式拼接:name:value\\n (\\n 为换行)")
|
|
141
|
+
]),
|
|
142
|
+
/* @__PURE__ */ n("h4", null, "计算待签名字符串的签名"),
|
|
143
|
+
/* @__PURE__ */ n("p", null, [
|
|
144
|
+
/* @__PURE__ */ n("b", null, "签名使用的 Key")
|
|
145
|
+
]),
|
|
146
|
+
/* @__PURE__ */ n("ol", null, [
|
|
147
|
+
/* @__PURE__ */ n("li", null, "HmacSHA256 方式直接使用 appId 对应的 appSecret。通常这是一个32位 Base64 字符串,将其 Base64 decode 为字节数组。 "),
|
|
148
|
+
/* @__PURE__ */ n("li", null, "其他方法,为了更加安全的保护 appSecret, 可能会使用特定的算法根据 appSecret 派生出新的签名用的 key。目前保留。")
|
|
149
|
+
]),
|
|
150
|
+
/* @__PURE__ */ n("p", null, [
|
|
151
|
+
/* @__PURE__ */ n("b", null, "计算签名")
|
|
152
|
+
]),
|
|
153
|
+
/* @__PURE__ */ n("ol", null, [
|
|
154
|
+
/* @__PURE__ */ n("li", null, "使用 HmacSha256 计算 Hmac 签名。"),
|
|
155
|
+
/* @__PURE__ */ n("li", null, "将待签名字符串,获取对应的 UTF-8 字节数组。"),
|
|
156
|
+
/* @__PURE__ */ n("li", null, "使用签名算法对待签名字节数组计算 Hmac 签名。"),
|
|
157
|
+
/* @__PURE__ */ n("li", null, "将签名结果变成 Hex 字符串。"),
|
|
158
|
+
/* @__PURE__ */ n("li", null, "将签名结果,按照 Authorization: <KeyId>:<Signature> 格式加入到 Header 中。")
|
|
159
|
+
]),
|
|
160
|
+
/* @__PURE__ */ n("h4", null, " 签名示例 "),
|
|
161
|
+
/* @__PURE__ */ n("p", null, "针对 appId, appSecret (abcde, xxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyy)"),
|
|
162
|
+
/* @__PURE__ */ n("p", null, "appId和appSecret为必传参数。可以添加为请求头参数(Header)如:abcde:xxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyy"),
|
|
163
|
+
/* @__PURE__ */ n("p", null, "其他参数:如果是GET请求,统一路径传参;如果是POST请求,统一Body-application/json传参。 "),
|
|
164
|
+
/* @__PURE__ */ n("h5", null, " GET 请求: "),
|
|
165
|
+
/* @__PURE__ */ n("p", null, [
|
|
166
|
+
/* @__PURE__ */ n("em", null, "GET"),
|
|
167
|
+
/* @__PURE__ */ t(" /api/system/DataInterface/{id}/Actions/Response?tenantId=xxxxx&name=abc"),
|
|
168
|
+
/* @__PURE__ */ n("br"),
|
|
169
|
+
/* @__PURE__ */ t(" Host : localhost:30000"),
|
|
170
|
+
/* @__PURE__ */ n("br"),
|
|
171
|
+
/* @__PURE__ */ t(" YmDate : 1656404771000"),
|
|
172
|
+
/* @__PURE__ */ n("br"),
|
|
173
|
+
/* @__PURE__ */ t(" UserKey : xxxxxxx"),
|
|
174
|
+
/* @__PURE__ */ n("br")
|
|
175
|
+
]),
|
|
176
|
+
/* @__PURE__ */ n("p", null, "按照规则生成的待签名字符串如下:"),
|
|
177
|
+
/* @__PURE__ */ n("table", { class: "table table-bordered" }, [
|
|
178
|
+
/* @__PURE__ */ n("thead", null, [
|
|
179
|
+
/* @__PURE__ */ n("tr", null, [
|
|
180
|
+
/* @__PURE__ */ n("th", null, "签名结果"),
|
|
181
|
+
/* @__PURE__ */ n("th", null, "说明")
|
|
182
|
+
])
|
|
183
|
+
]),
|
|
184
|
+
/* @__PURE__ */ n("tbody", null, [
|
|
185
|
+
/* @__PURE__ */ n("tr", null, [
|
|
186
|
+
/* @__PURE__ */ n("td", null, "待签名字段名"),
|
|
187
|
+
/* @__PURE__ */ n("td", null, "待签名字段值")
|
|
188
|
+
]),
|
|
189
|
+
/* @__PURE__ */ n("tr", null, [
|
|
190
|
+
/* @__PURE__ */ n("td", null, "Http Method"),
|
|
191
|
+
/* @__PURE__ */ n("td", null, "GET")
|
|
192
|
+
]),
|
|
193
|
+
/* @__PURE__ */ n("tr", null, [
|
|
194
|
+
/* @__PURE__ */ n("td", null, "URL Path"),
|
|
195
|
+
/* @__PURE__ */ n("td", null, "/api/system/DataInterface/{id}/Actions/Response")
|
|
196
|
+
]),
|
|
197
|
+
/* @__PURE__ */ n("tr", null, [
|
|
198
|
+
/* @__PURE__ */ n("td", null, "YmDate"),
|
|
199
|
+
/* @__PURE__ */ n("td", null, "1656404771000")
|
|
200
|
+
]),
|
|
201
|
+
/* @__PURE__ */ n("tr", null, [
|
|
202
|
+
/* @__PURE__ */ n("td", null, "UserKey"),
|
|
203
|
+
/* @__PURE__ */ n("td", null, "xxxxxxx")
|
|
204
|
+
]),
|
|
205
|
+
/* @__PURE__ */ n("tr", null, [
|
|
206
|
+
/* @__PURE__ */ n("td", null, "Host"),
|
|
207
|
+
/* @__PURE__ */ n("td", null, "localhost:30000")
|
|
208
|
+
]),
|
|
209
|
+
/* @__PURE__ */ n("tr", null, [
|
|
210
|
+
/* @__PURE__ */ n("td", null, "最终待签名字符串"),
|
|
211
|
+
/* @__PURE__ */ n("td", null, [
|
|
212
|
+
/* @__PURE__ */ t("以下 \\n 表明换行"),
|
|
213
|
+
/* @__PURE__ */ n("br"),
|
|
214
|
+
/* @__PURE__ */ t("GET\\n"),
|
|
215
|
+
/* @__PURE__ */ n("br"),
|
|
216
|
+
/* @__PURE__ */ t("/api/system/DataInterface/{id}/Actions/Response\\n"),
|
|
217
|
+
/* @__PURE__ */ n("br"),
|
|
218
|
+
/* @__PURE__ */ t("1656404771000\\n "),
|
|
219
|
+
/* @__PURE__ */ n("br"),
|
|
220
|
+
/* @__PURE__ */ t("localhost:30000\\n"),
|
|
221
|
+
/* @__PURE__ */ n("br")
|
|
222
|
+
])
|
|
223
|
+
]),
|
|
224
|
+
/* @__PURE__ */ n("tr", null, [
|
|
225
|
+
/* @__PURE__ */ n("td", null, "最终计算的 Authorization header"),
|
|
226
|
+
/* @__PURE__ */ n("td", null, "Authorization: abcde::5a13e56353da7954a96605c7f21f0f14a26a49baf387f95e600cdbdd7f0dc604")
|
|
227
|
+
])
|
|
228
|
+
])
|
|
229
|
+
]),
|
|
230
|
+
/* @__PURE__ */ n("h5", null, " POST 请求: "),
|
|
231
|
+
/* @__PURE__ */ n("p", null, [
|
|
232
|
+
/* @__PURE__ */ n("em", null, [
|
|
233
|
+
/* @__PURE__ */ t(" POST /api/system/DataInterface/{id}/Actions/Response"),
|
|
234
|
+
/* @__PURE__ */ n("br"),
|
|
235
|
+
/* @__PURE__ */ t(" Host : localhost:30000"),
|
|
236
|
+
/* @__PURE__ */ n("br"),
|
|
237
|
+
/* @__PURE__ */ t(" YmDate : 1656404771000"),
|
|
238
|
+
/* @__PURE__ */ n("br"),
|
|
239
|
+
/* @__PURE__ */ t(" UserKey : xxxxxxx"),
|
|
240
|
+
/* @__PURE__ */ n("br"),
|
|
241
|
+
/* @__PURE__ */ t(' body参数json格式如:{"tenantId":"123","name":"abc"} ')
|
|
242
|
+
])
|
|
243
|
+
]),
|
|
244
|
+
/* @__PURE__ */ n("p", null, "按照规则生成的待签名字符串如下:"),
|
|
245
|
+
/* @__PURE__ */ n("table", { class: "table table-bordered" }, [
|
|
246
|
+
/* @__PURE__ */ n("thead", null, [
|
|
247
|
+
/* @__PURE__ */ n("tr", null, [
|
|
248
|
+
/* @__PURE__ */ n("th", null, "签名结果"),
|
|
249
|
+
/* @__PURE__ */ n("th")
|
|
250
|
+
])
|
|
251
|
+
]),
|
|
252
|
+
/* @__PURE__ */ n("tbody", null, [
|
|
253
|
+
/* @__PURE__ */ n("tr", null, [
|
|
254
|
+
/* @__PURE__ */ n("td", null, "待签名字段名"),
|
|
255
|
+
/* @__PURE__ */ n("td", null, "待签名字段值")
|
|
256
|
+
]),
|
|
257
|
+
/* @__PURE__ */ n("tr", null, [
|
|
258
|
+
/* @__PURE__ */ n("td", null, "Http Method"),
|
|
259
|
+
/* @__PURE__ */ n("td", null, "POST")
|
|
260
|
+
]),
|
|
261
|
+
/* @__PURE__ */ n("tr", null, [
|
|
262
|
+
/* @__PURE__ */ n("td", null, "URL Path"),
|
|
263
|
+
/* @__PURE__ */ n("td", null, "/api/system/DataInterface/{id}/Actions/Response")
|
|
264
|
+
]),
|
|
265
|
+
/* @__PURE__ */ n("tr", null, [
|
|
266
|
+
/* @__PURE__ */ n("td", null, "YmDate"),
|
|
267
|
+
/* @__PURE__ */ n("td", null, "1656404771000")
|
|
268
|
+
]),
|
|
269
|
+
/* @__PURE__ */ n("tr", null, [
|
|
270
|
+
/* @__PURE__ */ n("td", null, "UserKey"),
|
|
271
|
+
/* @__PURE__ */ n("td", null, "xxxxxxx")
|
|
272
|
+
]),
|
|
273
|
+
/* @__PURE__ */ n("tr", null, [
|
|
274
|
+
/* @__PURE__ */ n("td", null, "Host"),
|
|
275
|
+
/* @__PURE__ */ n("td", null, "localhost:30000")
|
|
276
|
+
]),
|
|
277
|
+
/* @__PURE__ */ n("tr", null, [
|
|
278
|
+
/* @__PURE__ */ n("td", null, "最终待签名字符串"),
|
|
279
|
+
/* @__PURE__ */ n("td", null, [
|
|
280
|
+
/* @__PURE__ */ t("以下 \\n 表明换行"),
|
|
281
|
+
/* @__PURE__ */ n("br"),
|
|
282
|
+
/* @__PURE__ */ t("POST\\n"),
|
|
283
|
+
/* @__PURE__ */ n("br"),
|
|
284
|
+
/* @__PURE__ */ t("/hmac/testPost\\n"),
|
|
285
|
+
/* @__PURE__ */ n("br"),
|
|
286
|
+
/* @__PURE__ */ t("1656404771000\\n "),
|
|
287
|
+
/* @__PURE__ */ n("br"),
|
|
288
|
+
/* @__PURE__ */ t("localhost:30000\\n"),
|
|
289
|
+
/* @__PURE__ */ n("br")
|
|
290
|
+
])
|
|
291
|
+
]),
|
|
292
|
+
/* @__PURE__ */ n("tr", null, [
|
|
293
|
+
/* @__PURE__ */ n("td", null, "最终计算的 Authorization header"),
|
|
294
|
+
/* @__PURE__ */ n("td", null, "Authorization : abcde::7af664ac15b675633bc13a3ab03adc2d0c6e3834999785698e5830ae215a8545")
|
|
295
|
+
])
|
|
296
|
+
])
|
|
297
|
+
]),
|
|
298
|
+
/* @__PURE__ */ n("h4", null, " (java版)生成待签名字符串及Authorization代码示例: "),
|
|
299
|
+
/* @__PURE__ */ n("pre", { class: "language-java" }, [
|
|
300
|
+
/* @__PURE__ */ n("code", { class: "language-java" }, [
|
|
301
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
302
|
+
/* @__PURE__ */ t(" org"),
|
|
303
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
304
|
+
/* @__PURE__ */ t("apache"),
|
|
305
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
306
|
+
/* @__PURE__ */ t("commons"),
|
|
307
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
308
|
+
/* @__PURE__ */ t("codec"),
|
|
309
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
310
|
+
/* @__PURE__ */ t("binary"),
|
|
311
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
312
|
+
/* @__PURE__ */ t("Base64"),
|
|
313
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
314
|
+
/* @__PURE__ */ t(`
|
|
315
|
+
`),
|
|
316
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
317
|
+
/* @__PURE__ */ t(" org"),
|
|
318
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
319
|
+
/* @__PURE__ */ t("apache"),
|
|
320
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
321
|
+
/* @__PURE__ */ t("commons"),
|
|
322
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
323
|
+
/* @__PURE__ */ t("codec"),
|
|
324
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
325
|
+
/* @__PURE__ */ t("binary"),
|
|
326
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
327
|
+
/* @__PURE__ */ t("Hex"),
|
|
328
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
329
|
+
/* @__PURE__ */ t(`
|
|
330
|
+
`),
|
|
331
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
332
|
+
/* @__PURE__ */ t(" javax"),
|
|
333
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
334
|
+
/* @__PURE__ */ t("crypto"),
|
|
335
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
336
|
+
/* @__PURE__ */ t("Mac"),
|
|
337
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
338
|
+
/* @__PURE__ */ t(`
|
|
339
|
+
`),
|
|
340
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
341
|
+
/* @__PURE__ */ t(" javax"),
|
|
342
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
343
|
+
/* @__PURE__ */ t("crypto"),
|
|
344
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
345
|
+
/* @__PURE__ */ t("spec"),
|
|
346
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
347
|
+
/* @__PURE__ */ t("SecretKeySpec"),
|
|
348
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
349
|
+
/* @__PURE__ */ t(`
|
|
350
|
+
`),
|
|
351
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
352
|
+
/* @__PURE__ */ t(" java"),
|
|
353
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
354
|
+
/* @__PURE__ */ t("io"),
|
|
355
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
356
|
+
/* @__PURE__ */ t("UnsupportedEncodingException"),
|
|
357
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
358
|
+
/* @__PURE__ */ t(`
|
|
359
|
+
`),
|
|
360
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
361
|
+
/* @__PURE__ */ t(" java"),
|
|
362
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
363
|
+
/* @__PURE__ */ t("security"),
|
|
364
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
365
|
+
/* @__PURE__ */ t("InvalidKeyException"),
|
|
366
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
367
|
+
/* @__PURE__ */ t(`
|
|
368
|
+
`),
|
|
369
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "import"),
|
|
370
|
+
/* @__PURE__ */ t(" java"),
|
|
371
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
372
|
+
/* @__PURE__ */ t("security"),
|
|
373
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
374
|
+
/* @__PURE__ */ t("NoSuchAlgorithmException"),
|
|
375
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
376
|
+
/* @__PURE__ */ t(`
|
|
377
|
+
`),
|
|
378
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "public"),
|
|
379
|
+
/* @__PURE__ */ t(),
|
|
380
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "class"),
|
|
381
|
+
/* @__PURE__ */ t(),
|
|
382
|
+
/* @__PURE__ */ n("span", { class: "token class-name" }, "EncryDemo"),
|
|
383
|
+
/* @__PURE__ */ t(),
|
|
384
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "{"),
|
|
385
|
+
/* @__PURE__ */ t(`
|
|
386
|
+
`),
|
|
387
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "public"),
|
|
388
|
+
/* @__PURE__ */ t(),
|
|
389
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "static"),
|
|
390
|
+
/* @__PURE__ */ t(),
|
|
391
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "void"),
|
|
392
|
+
/* @__PURE__ */ t(),
|
|
393
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "main"),
|
|
394
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
395
|
+
/* @__PURE__ */ t("String"),
|
|
396
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "["),
|
|
397
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "]"),
|
|
398
|
+
/* @__PURE__ */ t(" args"),
|
|
399
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
400
|
+
/* @__PURE__ */ t(),
|
|
401
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "throws"),
|
|
402
|
+
/* @__PURE__ */ t(" NoSuchAlgorithmException"),
|
|
403
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ","),
|
|
404
|
+
/* @__PURE__ */ t(" InvalidKeyException"),
|
|
405
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ","),
|
|
406
|
+
/* @__PURE__ */ t(" UnsupportedEncodingException "),
|
|
407
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "{"),
|
|
408
|
+
/* @__PURE__ */ t(`
|
|
409
|
+
String secret `),
|
|
410
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
411
|
+
/* @__PURE__ */ t(),
|
|
412
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"xxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyy"'),
|
|
413
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
414
|
+
/* @__PURE__ */ t(`
|
|
415
|
+
String algorithmForMac `),
|
|
416
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
417
|
+
/* @__PURE__ */ t(),
|
|
418
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"HmacSHA256"'),
|
|
419
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
420
|
+
/* @__PURE__ */ t(`
|
|
421
|
+
String method `),
|
|
422
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
423
|
+
/* @__PURE__ */ t(),
|
|
424
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"POST"'),
|
|
425
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
426
|
+
/* @__PURE__ */ t(`
|
|
427
|
+
String urlPath `),
|
|
428
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
429
|
+
/* @__PURE__ */ t(),
|
|
430
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"/api/system/DataInterface/{id}/Actions/Response"'),
|
|
431
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
432
|
+
/* @__PURE__ */ t(`
|
|
433
|
+
String YmDate `),
|
|
434
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
435
|
+
/* @__PURE__ */ t(),
|
|
436
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"1656404771000"'),
|
|
437
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
438
|
+
/* @__PURE__ */ t(`
|
|
439
|
+
String host `),
|
|
440
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
441
|
+
/* @__PURE__ */ t(),
|
|
442
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"localhost:30000"'),
|
|
443
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
444
|
+
/* @__PURE__ */ t(`
|
|
445
|
+
String source `),
|
|
446
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
447
|
+
/* @__PURE__ */ t(),
|
|
448
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "new"),
|
|
449
|
+
/* @__PURE__ */ t(),
|
|
450
|
+
/* @__PURE__ */ n("span", { class: "token class-name" }, "StringBuilder()"),
|
|
451
|
+
/* @__PURE__ */ t(`
|
|
452
|
+
`),
|
|
453
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
454
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
455
|
+
/* @__PURE__ */ t("(method)"),
|
|
456
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
457
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
458
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
459
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
460
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
461
|
+
/* @__PURE__ */ t(`
|
|
462
|
+
`),
|
|
463
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
464
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
465
|
+
/* @__PURE__ */ t("(url)"),
|
|
466
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
467
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
468
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
469
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
470
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
471
|
+
/* @__PURE__ */ t(`
|
|
472
|
+
`),
|
|
473
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
474
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
475
|
+
/* @__PURE__ */ t("(ymdate)"),
|
|
476
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
477
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
478
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
479
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
480
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
481
|
+
/* @__PURE__ */ t(`
|
|
482
|
+
`),
|
|
483
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
484
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
485
|
+
/* @__PURE__ */ t("(host)"),
|
|
486
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
487
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "append"),
|
|
488
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
489
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
490
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
491
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ".toString();"),
|
|
492
|
+
/* @__PURE__ */ t(`
|
|
493
|
+
Mac mac `),
|
|
494
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
495
|
+
/* @__PURE__ */ t(" Mac"),
|
|
496
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
497
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "getInstance"),
|
|
498
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
499
|
+
/* @__PURE__ */ t("algorithmForMac"),
|
|
500
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
501
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
502
|
+
/* @__PURE__ */ t(`
|
|
503
|
+
SecretKeySpec secretKeySpec `),
|
|
504
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
505
|
+
/* @__PURE__ */ t(),
|
|
506
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "new"),
|
|
507
|
+
/* @__PURE__ */ t(),
|
|
508
|
+
/* @__PURE__ */ n("span", { class: "token class-name" }, "SecretKeySpec"),
|
|
509
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
510
|
+
/* @__PURE__ */ t("Base64"),
|
|
511
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
512
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "decodeBase64"),
|
|
513
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
514
|
+
/* @__PURE__ */ t("secret"),
|
|
515
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
516
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ","),
|
|
517
|
+
/* @__PURE__ */ t(" algorithmForMac"),
|
|
518
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
519
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
520
|
+
/* @__PURE__ */ t(`
|
|
521
|
+
mac`),
|
|
522
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
523
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "init"),
|
|
524
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
525
|
+
/* @__PURE__ */ t("secretKeySpec"),
|
|
526
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
527
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
528
|
+
/* @__PURE__ */ t(`
|
|
529
|
+
String signature `),
|
|
530
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
531
|
+
/* @__PURE__ */ t(" Hex"),
|
|
532
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
533
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "encodeHexString"),
|
|
534
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
535
|
+
/* @__PURE__ */ t("mac"),
|
|
536
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
537
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "doFinal"),
|
|
538
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
539
|
+
/* @__PURE__ */ t("source"),
|
|
540
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
541
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "getBytes"),
|
|
542
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
543
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"utf-8"'),
|
|
544
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
545
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
546
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
547
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
548
|
+
/* @__PURE__ */ t(`
|
|
549
|
+
System`),
|
|
550
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
551
|
+
/* @__PURE__ */ t("out"),
|
|
552
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
553
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "println"),
|
|
554
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
555
|
+
/* @__PURE__ */ t("signature"),
|
|
556
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
557
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
558
|
+
/* @__PURE__ */ t(`
|
|
559
|
+
`),
|
|
560
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "}"),
|
|
561
|
+
/* @__PURE__ */ t(`
|
|
562
|
+
`),
|
|
563
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "}"),
|
|
564
|
+
/* @__PURE__ */ t(`
|
|
565
|
+
`)
|
|
566
|
+
])
|
|
567
|
+
]),
|
|
568
|
+
/* @__PURE__ */ n("h4", null, "(.net版)生成待签名字符串及Authorization代码示例: >"),
|
|
569
|
+
/* @__PURE__ */ n("pre", { class: "language-java" }, [
|
|
570
|
+
/* @__PURE__ */ n("code", { class: "language-java" }, [
|
|
571
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "using"),
|
|
572
|
+
/* @__PURE__ */ n("span", null, " System.Security.Cryptography;"),
|
|
573
|
+
/* @__PURE__ */ t(`
|
|
574
|
+
`),
|
|
575
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "using"),
|
|
576
|
+
/* @__PURE__ */ n("span", null, " System.Text;"),
|
|
577
|
+
/* @__PURE__ */ t(`
|
|
578
|
+
`),
|
|
579
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "using"),
|
|
580
|
+
/* @__PURE__ */ n("span", null, " JNPF.Common.Extension;"),
|
|
581
|
+
/* @__PURE__ */ t(`
|
|
582
|
+
`),
|
|
583
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "namespace JNPF.Systems.System"),
|
|
584
|
+
/* @__PURE__ */ t(`
|
|
585
|
+
`),
|
|
586
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "{"),
|
|
587
|
+
/* @__PURE__ */ t(`
|
|
588
|
+
`),
|
|
589
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, " internal class Class1"),
|
|
590
|
+
/* @__PURE__ */ t(`
|
|
591
|
+
`),
|
|
592
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "{"),
|
|
593
|
+
/* @__PURE__ */ t(`
|
|
594
|
+
`),
|
|
595
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, " static void Main(string[] args)"),
|
|
596
|
+
/* @__PURE__ */ t(`
|
|
597
|
+
`),
|
|
598
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "{"),
|
|
599
|
+
/* @__PURE__ */ t(`
|
|
600
|
+
String secret `),
|
|
601
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
602
|
+
/* @__PURE__ */ t(),
|
|
603
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"xxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyy"'),
|
|
604
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
605
|
+
/* @__PURE__ */ t(`
|
|
606
|
+
String method `),
|
|
607
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
608
|
+
/* @__PURE__ */ t(),
|
|
609
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"POST"'),
|
|
610
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
611
|
+
/* @__PURE__ */ t(`
|
|
612
|
+
String urlPath `),
|
|
613
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
614
|
+
/* @__PURE__ */ t(),
|
|
615
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"/api/system/DataInterface/{id}/Actions/Response"'),
|
|
616
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
617
|
+
/* @__PURE__ */ t(`
|
|
618
|
+
String YmDate `),
|
|
619
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
620
|
+
/* @__PURE__ */ t(),
|
|
621
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"1656404771000"'),
|
|
622
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
623
|
+
/* @__PURE__ */ t(`
|
|
624
|
+
String host `),
|
|
625
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
626
|
+
/* @__PURE__ */ t(),
|
|
627
|
+
/* @__PURE__ */ n("span", { class: "token string" }, '"localhost:30000"'),
|
|
628
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ";"),
|
|
629
|
+
/* @__PURE__ */ t(`
|
|
630
|
+
String source `),
|
|
631
|
+
/* @__PURE__ */ n("span", { class: "token operator" }, "="),
|
|
632
|
+
/* @__PURE__ */ t(),
|
|
633
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "new"),
|
|
634
|
+
/* @__PURE__ */ t(),
|
|
635
|
+
/* @__PURE__ */ n("span", { class: "token class-name" }, "StringBuilder()"),
|
|
636
|
+
/* @__PURE__ */ t(`
|
|
637
|
+
`),
|
|
638
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
639
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
640
|
+
/* @__PURE__ */ t("(method)"),
|
|
641
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
642
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
643
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
644
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
645
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
646
|
+
/* @__PURE__ */ t(`
|
|
647
|
+
`),
|
|
648
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
649
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
650
|
+
/* @__PURE__ */ t("(url)"),
|
|
651
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
652
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
653
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
654
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
655
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
656
|
+
/* @__PURE__ */ t(`
|
|
657
|
+
`),
|
|
658
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
659
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
660
|
+
/* @__PURE__ */ t("(ymdate)"),
|
|
661
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
662
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
663
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
664
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
665
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
666
|
+
/* @__PURE__ */ t(`
|
|
667
|
+
`),
|
|
668
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
669
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
670
|
+
/* @__PURE__ */ t("(host)"),
|
|
671
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "."),
|
|
672
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "Append"),
|
|
673
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "("),
|
|
674
|
+
/* @__PURE__ */ n("span", { class: "token string" }, "'\\n'"),
|
|
675
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ")"),
|
|
676
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, ".ToString();"),
|
|
677
|
+
/* @__PURE__ */ t(`
|
|
678
|
+
`),
|
|
679
|
+
/* @__PURE__ */ n("span", null, "using (var hmac = "),
|
|
680
|
+
/* @__PURE__ */ n("span", { class: "token keyword" }, "new"),
|
|
681
|
+
/* @__PURE__ */ n("span", null, " HMACSHA256(secret."),
|
|
682
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "ToBytes"),
|
|
683
|
+
/* @__PURE__ */ n("span", null, "(Encoding.UTF8)))"),
|
|
684
|
+
/* @__PURE__ */ t(`
|
|
685
|
+
`),
|
|
686
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "{"),
|
|
687
|
+
/* @__PURE__ */ t(`
|
|
688
|
+
`),
|
|
689
|
+
/* @__PURE__ */ n("span", null, "byte[] hashmessage = hmac."),
|
|
690
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "ComputeHash"),
|
|
691
|
+
/* @__PURE__ */ n("span", null, "(source."),
|
|
692
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "ToBytes"),
|
|
693
|
+
/* @__PURE__ */ n("span", null, "(Encoding.UTF8));"),
|
|
694
|
+
/* @__PURE__ */ t(`
|
|
695
|
+
`),
|
|
696
|
+
/* @__PURE__ */ n("span", null, "var signature = hashmessage."),
|
|
697
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "ToHexString"),
|
|
698
|
+
/* @__PURE__ */ n("span", null, "();"),
|
|
699
|
+
/* @__PURE__ */ t(`
|
|
700
|
+
`),
|
|
701
|
+
/* @__PURE__ */ n("span", null, "Console."),
|
|
702
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "WriteLine"),
|
|
703
|
+
/* @__PURE__ */ n("span", null, "(signature);"),
|
|
704
|
+
/* @__PURE__ */ t(`
|
|
705
|
+
`),
|
|
706
|
+
/* @__PURE__ */ n("span", null, "Console."),
|
|
707
|
+
/* @__PURE__ */ n("span", { class: "token function" }, "ReadKey"),
|
|
708
|
+
/* @__PURE__ */ n("span", null, "();"),
|
|
709
|
+
/* @__PURE__ */ t(`
|
|
710
|
+
`),
|
|
711
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "}"),
|
|
712
|
+
/* @__PURE__ */ t(`
|
|
713
|
+
`),
|
|
714
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "}"),
|
|
715
|
+
/* @__PURE__ */ t(`
|
|
716
|
+
`),
|
|
717
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "}"),
|
|
718
|
+
/* @__PURE__ */ t(`
|
|
719
|
+
`),
|
|
720
|
+
/* @__PURE__ */ n("span", { class: "token punctuation" }, "}"),
|
|
721
|
+
/* @__PURE__ */ t(`
|
|
722
|
+
`)
|
|
723
|
+
])
|
|
724
|
+
])
|
|
725
|
+
])
|
|
726
|
+
], -1)), h = /* @__PURE__ */ l({
|
|
727
|
+
__name: "Info",
|
|
728
|
+
setup(s) {
|
|
729
|
+
const [o] = d();
|
|
730
|
+
return (p, S) => (e(), c(a(m), u(p.$attrs, {
|
|
731
|
+
onRegister: a(o),
|
|
732
|
+
title: "验证签名使用说明",
|
|
733
|
+
footer: null,
|
|
734
|
+
width: 800
|
|
735
|
+
}), {
|
|
736
|
+
default: i(() => [
|
|
737
|
+
g
|
|
738
|
+
]),
|
|
739
|
+
_: 1
|
|
740
|
+
}, 16, ["onRegister"]));
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
const tt = /* @__PURE__ */ y(h, [["__scopeId", "data-v-f3eb1a77"]]);
|
|
744
|
+
export {
|
|
745
|
+
tt as default
|
|
746
|
+
};
|
|
747
|
+
//# sourceMappingURL=Info-e9cb4268.mjs.map
|