diff --git a/main.mjs b/main.mjs deleted file mode 100644 index 51bfcbcdd..000000000 --- a/main.mjs +++ /dev/null @@ -1,109 +0,0 @@ -const data = { - uid: '3jiixjqak8v', - collection: 'records', - measures: [ - { - field: ['items', 'count'], - aggregation: 'sum', - alias: 'items.count', - }, - ], - dimensions: [ - { - field: ['items', 'product_id'], - }, - { - field: ['movement'], - }, - ], - filter: { - $and: [ - { - date: { - $dateBetween: [new Date('2024-02-29T16:00:00.000Z'), new Date('2024-03-31T15:59:59.999Z')], - }, - }, - ], - }, - orders: [], -}; -// const result = await fetch("https://shcx.daoyoucloud.com/api/charts:query", { -// "headers": { -// "accept": "application/json, text/plain, */*", -// "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6", -// "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjQsImlhdCI6MTcxMDMxNDA2MywiZXhwIjoxNzEwOTE4ODYzfQ.aLc66wn-egDk_VOoackTph0kghLAquqp-Hdr1qN9gdU", -// "content-type": "application/json", -// "sec-ch-ua": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Microsoft Edge\";v=\"122\"", -// "sec-ch-ua-mobile": "?0", -// "sec-ch-ua-platform": "\"macOS\"", -// "sec-fetch-dest": "empty", -// "sec-fetch-mode": "cors", -// "sec-fetch-site": "same-origin", -// "x-authenticator": "basic", -// "x-hostname": "shcx.daoyoucloud.com", -// "x-locale": "zh-CN", -// "x-role": "admin", -// "x-timezone": "+08:00", -// "x-with-acl-meta": "true", -// "Referer": "https://shcx.daoyoucloud.com/admin/sujj53fixe7?", -// "Referrer-Policy": "strict-origin-when-cross-origin" -// }, -// "body": JSON.stringify(data), -// "method": "POST" -// }); - -// { -// "uid": "9bismho25ro", -// "collection": "view_record_items", -// "measures": Array[5], -// "dimensions": Array[3], -// "filter": { -// "$and": [ -// { -// "$and": [ -// { -// "record": { -// "date": { -// "$dateBetween": [ -// "2024-02-29T16:00:00.000Z", -// "2024-03-31T15:59:59.999Z" -// ] -// } -// } -// } -// ] -// } -// ] -// }, -// "orders": [ - -// ] -// } - -const result = await fetch('http://127.0.0.1:15000/api/charts:query', { - headers: { - accept: 'application/json, text/plain, */*', - 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6', - authorization: - 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjQsImlhdCI6MTcxMDQyNDM2NywiZXhwIjoxNzExMDI5MTY3fQ.6XqA8aTAHwkr9UDRjPgQey2c3_pwxfJZJ8gdDn4NxJc', - 'content-type': 'application/json', - 'sec-ch-ua': '"Chromium";v="122", "Not(A:Brand";v="24", "Microsoft Edge";v="122"', - 'sec-ch-ua-mobile': '?0', - 'sec-ch-ua-platform': '"macOS"', - 'sec-fetch-dest': 'empty', - 'sec-fetch-mode': 'cors', - 'sec-fetch-site': 'same-origin', - 'x-authenticator': 'basic', - 'x-hostname': '127.0.0.1', - 'x-locale': 'zh-CN', - 'x-role': 'root', - 'x-timezone': '+08:00', - 'x-with-acl-meta': 'true', - Referer: 'http://127.0.0.1:15000/admin/dihuq9gj0cl', - 'Referrer-Policy': 'strict-origin-when-cross-origin', - }, - body: JSON.stringify(data), - method: 'POST', -}); - -console.log(await result.json()); diff --git a/packages/core/app/client/public/cmaps/78-EUC-H.bcmap b/packages/core/app/client/public/cmaps/78-EUC-H.bcmap new file mode 100644 index 000000000..2655fc70a Binary files /dev/null and b/packages/core/app/client/public/cmaps/78-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78-EUC-V.bcmap b/packages/core/app/client/public/cmaps/78-EUC-V.bcmap new file mode 100644 index 000000000..f1ed85382 Binary files /dev/null and b/packages/core/app/client/public/cmaps/78-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78-H.bcmap b/packages/core/app/client/public/cmaps/78-H.bcmap new file mode 100644 index 000000000..39e89d333 Binary files /dev/null and b/packages/core/app/client/public/cmaps/78-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/78-RKSJ-H.bcmap new file mode 100644 index 000000000..e4167cb51 Binary files /dev/null and b/packages/core/app/client/public/cmaps/78-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/78-RKSJ-V.bcmap new file mode 100644 index 000000000..50b1646e9 Binary files /dev/null and b/packages/core/app/client/public/cmaps/78-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78-V.bcmap b/packages/core/app/client/public/cmaps/78-V.bcmap new file mode 100644 index 000000000..d7af99b5e Binary files /dev/null and b/packages/core/app/client/public/cmaps/78-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78ms-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/78ms-RKSJ-H.bcmap new file mode 100644 index 000000000..37077d01e Binary files /dev/null and b/packages/core/app/client/public/cmaps/78ms-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/78ms-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/78ms-RKSJ-V.bcmap new file mode 100644 index 000000000..acf23231a Binary files /dev/null and b/packages/core/app/client/public/cmaps/78ms-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/83pv-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/83pv-RKSJ-H.bcmap new file mode 100644 index 000000000..2359bc529 Binary files /dev/null and b/packages/core/app/client/public/cmaps/83pv-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/90ms-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/90ms-RKSJ-H.bcmap new file mode 100644 index 000000000..af8293829 Binary files /dev/null and b/packages/core/app/client/public/cmaps/90ms-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/90ms-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/90ms-RKSJ-V.bcmap new file mode 100644 index 000000000..780549de1 Binary files /dev/null and b/packages/core/app/client/public/cmaps/90ms-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/90msp-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/90msp-RKSJ-H.bcmap new file mode 100644 index 000000000..bfd3119c6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/90msp-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/90msp-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/90msp-RKSJ-V.bcmap new file mode 100644 index 000000000..25ef14ab4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/90msp-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/90pv-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/90pv-RKSJ-H.bcmap new file mode 100644 index 000000000..02f713bb8 Binary files /dev/null and b/packages/core/app/client/public/cmaps/90pv-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/90pv-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/90pv-RKSJ-V.bcmap new file mode 100644 index 000000000..d08e0cc5d Binary files /dev/null and b/packages/core/app/client/public/cmaps/90pv-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Add-H.bcmap b/packages/core/app/client/public/cmaps/Add-H.bcmap new file mode 100644 index 000000000..59442acaf Binary files /dev/null and b/packages/core/app/client/public/cmaps/Add-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Add-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/Add-RKSJ-H.bcmap new file mode 100644 index 000000000..a3065e441 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Add-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Add-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/Add-RKSJ-V.bcmap new file mode 100644 index 000000000..040014cfc Binary files /dev/null and b/packages/core/app/client/public/cmaps/Add-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Add-V.bcmap b/packages/core/app/client/public/cmaps/Add-V.bcmap new file mode 100644 index 000000000..2f816d320 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Add-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-0.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-0.bcmap new file mode 100644 index 000000000..88ec04af4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-0.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-1.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-1.bcmap new file mode 100644 index 000000000..03a501477 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-1.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-2.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-2.bcmap new file mode 100644 index 000000000..2aa95141f Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-3.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-3.bcmap new file mode 100644 index 000000000..86d8b8c79 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-3.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-4.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-4.bcmap new file mode 100644 index 000000000..f50fc6c14 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-4.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-5.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-5.bcmap new file mode 100644 index 000000000..6caf4a831 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-5.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-6.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-6.bcmap new file mode 100644 index 000000000..b77fb0705 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-6.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-CNS1-UCS2.bcmap b/packages/core/app/client/public/cmaps/Adobe-CNS1-UCS2.bcmap new file mode 100644 index 000000000..69d79a2c2 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-CNS1-UCS2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-0.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-0.bcmap new file mode 100644 index 000000000..36101083f Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-0.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-1.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-1.bcmap new file mode 100644 index 000000000..707bb1065 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-1.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-2.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-2.bcmap new file mode 100644 index 000000000..f7648cc3f Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-3.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-3.bcmap new file mode 100644 index 000000000..852145890 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-3.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-4.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-4.bcmap new file mode 100644 index 000000000..e40c63ab1 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-4.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-5.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-5.bcmap new file mode 100644 index 000000000..d7623b500 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-5.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-GB1-UCS2.bcmap b/packages/core/app/client/public/cmaps/Adobe-GB1-UCS2.bcmap new file mode 100644 index 000000000..758652593 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-GB1-UCS2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-0.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-0.bcmap new file mode 100644 index 000000000..f0e94ec19 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-0.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-1.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-1.bcmap new file mode 100644 index 000000000..dad42c5ad Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-1.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-2.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-2.bcmap new file mode 100644 index 000000000..090819a06 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-3.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-3.bcmap new file mode 100644 index 000000000..087dfc155 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-3.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-4.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-4.bcmap new file mode 100644 index 000000000..46aa9bffe Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-4.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-5.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-5.bcmap new file mode 100644 index 000000000..5b4b65cc6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-5.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-6.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-6.bcmap new file mode 100644 index 000000000..e77d699ab Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-6.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Japan1-UCS2.bcmap b/packages/core/app/client/public/cmaps/Adobe-Japan1-UCS2.bcmap new file mode 100644 index 000000000..128a14107 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Japan1-UCS2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Korea1-0.bcmap b/packages/core/app/client/public/cmaps/Adobe-Korea1-0.bcmap new file mode 100644 index 000000000..cef1a9985 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Korea1-0.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Korea1-1.bcmap b/packages/core/app/client/public/cmaps/Adobe-Korea1-1.bcmap new file mode 100644 index 000000000..11ffa36df Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Korea1-1.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Korea1-2.bcmap b/packages/core/app/client/public/cmaps/Adobe-Korea1-2.bcmap new file mode 100644 index 000000000..3172308c7 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Korea1-2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Adobe-Korea1-UCS2.bcmap b/packages/core/app/client/public/cmaps/Adobe-Korea1-UCS2.bcmap new file mode 100644 index 000000000..f3371c0cb Binary files /dev/null and b/packages/core/app/client/public/cmaps/Adobe-Korea1-UCS2.bcmap differ diff --git a/packages/core/app/client/public/cmaps/B5-H.bcmap b/packages/core/app/client/public/cmaps/B5-H.bcmap new file mode 100644 index 000000000..beb4d2281 Binary files /dev/null and b/packages/core/app/client/public/cmaps/B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/B5-V.bcmap b/packages/core/app/client/public/cmaps/B5-V.bcmap new file mode 100644 index 000000000..2d4f87d50 Binary files /dev/null and b/packages/core/app/client/public/cmaps/B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/B5pc-H.bcmap b/packages/core/app/client/public/cmaps/B5pc-H.bcmap new file mode 100644 index 000000000..ce0013167 Binary files /dev/null and b/packages/core/app/client/public/cmaps/B5pc-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/B5pc-V.bcmap b/packages/core/app/client/public/cmaps/B5pc-V.bcmap new file mode 100644 index 000000000..73b99ff2f Binary files /dev/null and b/packages/core/app/client/public/cmaps/B5pc-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/CNS-EUC-H.bcmap b/packages/core/app/client/public/cmaps/CNS-EUC-H.bcmap new file mode 100644 index 000000000..61d1d0cb0 Binary files /dev/null and b/packages/core/app/client/public/cmaps/CNS-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/CNS-EUC-V.bcmap b/packages/core/app/client/public/cmaps/CNS-EUC-V.bcmap new file mode 100644 index 000000000..1a393a51e Binary files /dev/null and b/packages/core/app/client/public/cmaps/CNS-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/CNS1-H.bcmap b/packages/core/app/client/public/cmaps/CNS1-H.bcmap new file mode 100644 index 000000000..f738e218a Binary files /dev/null and b/packages/core/app/client/public/cmaps/CNS1-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/CNS1-V.bcmap b/packages/core/app/client/public/cmaps/CNS1-V.bcmap new file mode 100644 index 000000000..9c3169f0d Binary files /dev/null and b/packages/core/app/client/public/cmaps/CNS1-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/CNS2-H.bcmap b/packages/core/app/client/public/cmaps/CNS2-H.bcmap new file mode 100644 index 000000000..c89b3527f Binary files /dev/null and b/packages/core/app/client/public/cmaps/CNS2-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/CNS2-V.bcmap b/packages/core/app/client/public/cmaps/CNS2-V.bcmap new file mode 100644 index 000000000..7588cec83 --- /dev/null +++ b/packages/core/app/client/public/cmaps/CNS2-V.bcmap @@ -0,0 +1,3 @@ +àRCopyright 1990-2009 Adobe Systems Incorporated. +All rights reserved. +See ./LICENSEáCNS2-H \ No newline at end of file diff --git a/packages/core/app/client/public/cmaps/ETHK-B5-H.bcmap b/packages/core/app/client/public/cmaps/ETHK-B5-H.bcmap new file mode 100644 index 000000000..cb29415de Binary files /dev/null and b/packages/core/app/client/public/cmaps/ETHK-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/ETHK-B5-V.bcmap b/packages/core/app/client/public/cmaps/ETHK-B5-V.bcmap new file mode 100644 index 000000000..f09aec631 Binary files /dev/null and b/packages/core/app/client/public/cmaps/ETHK-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/ETen-B5-H.bcmap b/packages/core/app/client/public/cmaps/ETen-B5-H.bcmap new file mode 100644 index 000000000..c2d77462d Binary files /dev/null and b/packages/core/app/client/public/cmaps/ETen-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/ETen-B5-V.bcmap b/packages/core/app/client/public/cmaps/ETen-B5-V.bcmap new file mode 100644 index 000000000..89bff159e Binary files /dev/null and b/packages/core/app/client/public/cmaps/ETen-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/ETenms-B5-H.bcmap b/packages/core/app/client/public/cmaps/ETenms-B5-H.bcmap new file mode 100644 index 000000000..a7d69db5e --- /dev/null +++ b/packages/core/app/client/public/cmaps/ETenms-B5-H.bcmap @@ -0,0 +1,3 @@ +àRCopyright 1990-2009 Adobe Systems Incorporated. +All rights reserved. +See ./LICENSEá ETen-B5-H` ^ \ No newline at end of file diff --git a/packages/core/app/client/public/cmaps/ETenms-B5-V.bcmap b/packages/core/app/client/public/cmaps/ETenms-B5-V.bcmap new file mode 100644 index 000000000..adc5d618d Binary files /dev/null and b/packages/core/app/client/public/cmaps/ETenms-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/EUC-H.bcmap b/packages/core/app/client/public/cmaps/EUC-H.bcmap new file mode 100644 index 000000000..e92ea5b3b Binary files /dev/null and b/packages/core/app/client/public/cmaps/EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/EUC-V.bcmap b/packages/core/app/client/public/cmaps/EUC-V.bcmap new file mode 100644 index 000000000..7a7c18322 Binary files /dev/null and b/packages/core/app/client/public/cmaps/EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Ext-H.bcmap b/packages/core/app/client/public/cmaps/Ext-H.bcmap new file mode 100644 index 000000000..3b5cde44d Binary files /dev/null and b/packages/core/app/client/public/cmaps/Ext-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Ext-RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/Ext-RKSJ-H.bcmap new file mode 100644 index 000000000..ea4d2d97b Binary files /dev/null and b/packages/core/app/client/public/cmaps/Ext-RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Ext-RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/Ext-RKSJ-V.bcmap new file mode 100644 index 000000000..3457c2770 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Ext-RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Ext-V.bcmap b/packages/core/app/client/public/cmaps/Ext-V.bcmap new file mode 100644 index 000000000..4999ca404 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Ext-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GB-EUC-H.bcmap b/packages/core/app/client/public/cmaps/GB-EUC-H.bcmap new file mode 100644 index 000000000..e39908b98 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GB-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GB-EUC-V.bcmap b/packages/core/app/client/public/cmaps/GB-EUC-V.bcmap new file mode 100644 index 000000000..d5be5446a Binary files /dev/null and b/packages/core/app/client/public/cmaps/GB-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GB-H.bcmap b/packages/core/app/client/public/cmaps/GB-H.bcmap new file mode 100644 index 000000000..39189c54e --- /dev/null +++ b/packages/core/app/client/public/cmaps/GB-H.bcmap @@ -0,0 +1,4 @@ +àRCopyright 1990-2009 Adobe Systems Incorporated. +All rights reserved. +See ./LICENSE!!º]aX!!]`21> p z$]‚"R‚d-Uƒ7*„ 4„%+ „Z „{/…%…<9K…b1]†."‡ ‰`]‡,"]ˆ +"]ˆh"]‰F"]Š$"]‹"]‹`"]Œ>"]"]z"]ŽX"]6"]"]r"]‘P"]’."]“ "]“j"]”H"]•&"]–"]–b"]—@"]˜"]˜|"]™Z"]š8"]›"]›t"]œR"]0"]ž"]žl"]ŸJ"] ("]¡"]¡d"]¢B"]£ "X£~']¤W"]¥5"]¦"]¦q"]§O"]¨-"]© "]©i"]ªG"]«%"]¬"]¬a"]­?"]®"]®{"]¯Y"]°7"]±"]±s"]²Q"]³/"]´ "]´k"]µI"]¶'"]·"]·c"]¸A"]¹"]¹}"]º["]»9 \ No newline at end of file diff --git a/packages/core/app/client/public/cmaps/GB-V.bcmap b/packages/core/app/client/public/cmaps/GB-V.bcmap new file mode 100644 index 000000000..310834512 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GB-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBK-EUC-H.bcmap b/packages/core/app/client/public/cmaps/GBK-EUC-H.bcmap new file mode 100644 index 000000000..05fff7e82 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBK-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBK-EUC-V.bcmap b/packages/core/app/client/public/cmaps/GBK-EUC-V.bcmap new file mode 100644 index 000000000..0cdf6bed6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBK-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBK2K-H.bcmap b/packages/core/app/client/public/cmaps/GBK2K-H.bcmap new file mode 100644 index 000000000..46f6ba596 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBK2K-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBK2K-V.bcmap b/packages/core/app/client/public/cmaps/GBK2K-V.bcmap new file mode 100644 index 000000000..d9a947984 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBK2K-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBKp-EUC-H.bcmap b/packages/core/app/client/public/cmaps/GBKp-EUC-H.bcmap new file mode 100644 index 000000000..5cb0af687 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBKp-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBKp-EUC-V.bcmap b/packages/core/app/client/public/cmaps/GBKp-EUC-V.bcmap new file mode 100644 index 000000000..bca93b8ef Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBKp-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBT-EUC-H.bcmap b/packages/core/app/client/public/cmaps/GBT-EUC-H.bcmap new file mode 100644 index 000000000..4b4e2d322 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBT-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBT-EUC-V.bcmap b/packages/core/app/client/public/cmaps/GBT-EUC-V.bcmap new file mode 100644 index 000000000..38f706699 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBT-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBT-H.bcmap b/packages/core/app/client/public/cmaps/GBT-H.bcmap new file mode 100644 index 000000000..8437ac337 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBT-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBT-V.bcmap b/packages/core/app/client/public/cmaps/GBT-V.bcmap new file mode 100644 index 000000000..697ab4a8e Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBT-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBTpc-EUC-H.bcmap b/packages/core/app/client/public/cmaps/GBTpc-EUC-H.bcmap new file mode 100644 index 000000000..f6e50e893 Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBTpc-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBTpc-EUC-V.bcmap b/packages/core/app/client/public/cmaps/GBTpc-EUC-V.bcmap new file mode 100644 index 000000000..6c0d71a2d Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBTpc-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBpc-EUC-H.bcmap b/packages/core/app/client/public/cmaps/GBpc-EUC-H.bcmap new file mode 100644 index 000000000..c9edf67cf Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBpc-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/GBpc-EUC-V.bcmap b/packages/core/app/client/public/cmaps/GBpc-EUC-V.bcmap new file mode 100644 index 000000000..31450c97f Binary files /dev/null and b/packages/core/app/client/public/cmaps/GBpc-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/H.bcmap b/packages/core/app/client/public/cmaps/H.bcmap new file mode 100644 index 000000000..7b24ea462 Binary files /dev/null and b/packages/core/app/client/public/cmaps/H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKdla-B5-H.bcmap b/packages/core/app/client/public/cmaps/HKdla-B5-H.bcmap new file mode 100644 index 000000000..7d30c0500 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKdla-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKdla-B5-V.bcmap b/packages/core/app/client/public/cmaps/HKdla-B5-V.bcmap new file mode 100644 index 000000000..78946940d Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKdla-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKdlb-B5-H.bcmap b/packages/core/app/client/public/cmaps/HKdlb-B5-H.bcmap new file mode 100644 index 000000000..d829a2310 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKdlb-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKdlb-B5-V.bcmap b/packages/core/app/client/public/cmaps/HKdlb-B5-V.bcmap new file mode 100644 index 000000000..2b572b50a Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKdlb-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKgccs-B5-H.bcmap b/packages/core/app/client/public/cmaps/HKgccs-B5-H.bcmap new file mode 100644 index 000000000..971a4f23f Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKgccs-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKgccs-B5-V.bcmap b/packages/core/app/client/public/cmaps/HKgccs-B5-V.bcmap new file mode 100644 index 000000000..d353ca256 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKgccs-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKm314-B5-H.bcmap b/packages/core/app/client/public/cmaps/HKm314-B5-H.bcmap new file mode 100644 index 000000000..576dc0111 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKm314-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKm314-B5-V.bcmap b/packages/core/app/client/public/cmaps/HKm314-B5-V.bcmap new file mode 100644 index 000000000..0e96d0e22 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKm314-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKm471-B5-H.bcmap b/packages/core/app/client/public/cmaps/HKm471-B5-H.bcmap new file mode 100644 index 000000000..11d170c75 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKm471-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKm471-B5-V.bcmap b/packages/core/app/client/public/cmaps/HKm471-B5-V.bcmap new file mode 100644 index 000000000..54959bf9e Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKm471-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKscs-B5-H.bcmap b/packages/core/app/client/public/cmaps/HKscs-B5-H.bcmap new file mode 100644 index 000000000..6ef7857ad Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKscs-B5-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/HKscs-B5-V.bcmap b/packages/core/app/client/public/cmaps/HKscs-B5-V.bcmap new file mode 100644 index 000000000..1fb2fa2a2 Binary files /dev/null and b/packages/core/app/client/public/cmaps/HKscs-B5-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Hankaku.bcmap b/packages/core/app/client/public/cmaps/Hankaku.bcmap new file mode 100644 index 000000000..4b8ec7fce Binary files /dev/null and b/packages/core/app/client/public/cmaps/Hankaku.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Hiragana.bcmap b/packages/core/app/client/public/cmaps/Hiragana.bcmap new file mode 100644 index 000000000..17e983e77 Binary files /dev/null and b/packages/core/app/client/public/cmaps/Hiragana.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSC-EUC-H.bcmap b/packages/core/app/client/public/cmaps/KSC-EUC-H.bcmap new file mode 100644 index 000000000..a45c65f00 Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSC-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSC-EUC-V.bcmap b/packages/core/app/client/public/cmaps/KSC-EUC-V.bcmap new file mode 100644 index 000000000..0e7b21f0a Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSC-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSC-H.bcmap b/packages/core/app/client/public/cmaps/KSC-H.bcmap new file mode 100644 index 000000000..b9b22b678 Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSC-Johab-H.bcmap b/packages/core/app/client/public/cmaps/KSC-Johab-H.bcmap new file mode 100644 index 000000000..2531ffcf4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSC-Johab-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSC-Johab-V.bcmap b/packages/core/app/client/public/cmaps/KSC-Johab-V.bcmap new file mode 100644 index 000000000..367ceb226 Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSC-Johab-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSC-V.bcmap b/packages/core/app/client/public/cmaps/KSC-V.bcmap new file mode 100644 index 000000000..6ae2f0b6b Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSCms-UHC-H.bcmap b/packages/core/app/client/public/cmaps/KSCms-UHC-H.bcmap new file mode 100644 index 000000000..a8d4240e6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSCms-UHC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSCms-UHC-HW-H.bcmap b/packages/core/app/client/public/cmaps/KSCms-UHC-HW-H.bcmap new file mode 100644 index 000000000..8b4ae18fd Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSCms-UHC-HW-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSCms-UHC-HW-V.bcmap b/packages/core/app/client/public/cmaps/KSCms-UHC-HW-V.bcmap new file mode 100644 index 000000000..b655dbcfb Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSCms-UHC-HW-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSCms-UHC-V.bcmap b/packages/core/app/client/public/cmaps/KSCms-UHC-V.bcmap new file mode 100644 index 000000000..21f97f65b Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSCms-UHC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSCpc-EUC-H.bcmap b/packages/core/app/client/public/cmaps/KSCpc-EUC-H.bcmap new file mode 100644 index 000000000..e06f361eb Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSCpc-EUC-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/KSCpc-EUC-V.bcmap b/packages/core/app/client/public/cmaps/KSCpc-EUC-V.bcmap new file mode 100644 index 000000000..f3c9113fc Binary files /dev/null and b/packages/core/app/client/public/cmaps/KSCpc-EUC-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Katakana.bcmap b/packages/core/app/client/public/cmaps/Katakana.bcmap new file mode 100644 index 000000000..524303c4f Binary files /dev/null and b/packages/core/app/client/public/cmaps/Katakana.bcmap differ diff --git a/packages/core/app/client/public/cmaps/LICENSE b/packages/core/app/client/public/cmaps/LICENSE new file mode 100644 index 000000000..b1ad168ad --- /dev/null +++ b/packages/core/app/client/public/cmaps/LICENSE @@ -0,0 +1,36 @@ +%%Copyright: ----------------------------------------------------------- +%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. +%%Copyright: All rights reserved. +%%Copyright: +%%Copyright: Redistribution and use in source and binary forms, with or +%%Copyright: without modification, are permitted provided that the +%%Copyright: following conditions are met: +%%Copyright: +%%Copyright: Redistributions of source code must retain the above +%%Copyright: copyright notice, this list of conditions and the following +%%Copyright: disclaimer. +%%Copyright: +%%Copyright: Redistributions in binary form must reproduce the above +%%Copyright: copyright notice, this list of conditions and the following +%%Copyright: disclaimer in the documentation and/or other materials +%%Copyright: provided with the distribution. +%%Copyright: +%%Copyright: Neither the name of Adobe Systems Incorporated nor the names +%%Copyright: of its contributors may be used to endorse or promote +%%Copyright: products derived from this software without specific prior +%%Copyright: written permission. +%%Copyright: +%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +%%Copyright: ----------------------------------------------------------- diff --git a/packages/core/app/client/public/cmaps/NWP-H.bcmap b/packages/core/app/client/public/cmaps/NWP-H.bcmap new file mode 100644 index 000000000..afc5e4b05 Binary files /dev/null and b/packages/core/app/client/public/cmaps/NWP-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/NWP-V.bcmap b/packages/core/app/client/public/cmaps/NWP-V.bcmap new file mode 100644 index 000000000..bb5785e32 Binary files /dev/null and b/packages/core/app/client/public/cmaps/NWP-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/RKSJ-H.bcmap b/packages/core/app/client/public/cmaps/RKSJ-H.bcmap new file mode 100644 index 000000000..fb8d298e9 Binary files /dev/null and b/packages/core/app/client/public/cmaps/RKSJ-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/RKSJ-V.bcmap b/packages/core/app/client/public/cmaps/RKSJ-V.bcmap new file mode 100644 index 000000000..a2555a6c0 Binary files /dev/null and b/packages/core/app/client/public/cmaps/RKSJ-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/Roman.bcmap b/packages/core/app/client/public/cmaps/Roman.bcmap new file mode 100644 index 000000000..f896dcf1c Binary files /dev/null and b/packages/core/app/client/public/cmaps/Roman.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UCS2-H.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UCS2-H.bcmap new file mode 100644 index 000000000..d5db27c5c Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UCS2-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UCS2-V.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UCS2-V.bcmap new file mode 100644 index 000000000..1dc9b7a21 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UCS2-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UTF16-H.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UTF16-H.bcmap new file mode 100644 index 000000000..961afefb6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UTF16-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UTF16-V.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UTF16-V.bcmap new file mode 100644 index 000000000..df0cffe86 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UTF16-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UTF32-H.bcmap new file mode 100644 index 000000000..1ab18a143 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UTF32-V.bcmap new file mode 100644 index 000000000..ad14662e2 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UTF8-H.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UTF8-H.bcmap new file mode 100644 index 000000000..83c6bd7c4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UTF8-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniCNS-UTF8-V.bcmap b/packages/core/app/client/public/cmaps/UniCNS-UTF8-V.bcmap new file mode 100644 index 000000000..22a27e4dd Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniCNS-UTF8-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UCS2-H.bcmap b/packages/core/app/client/public/cmaps/UniGB-UCS2-H.bcmap new file mode 100644 index 000000000..5bd6228ce Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UCS2-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UCS2-V.bcmap b/packages/core/app/client/public/cmaps/UniGB-UCS2-V.bcmap new file mode 100644 index 000000000..53c534b7f Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UCS2-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UTF16-H.bcmap b/packages/core/app/client/public/cmaps/UniGB-UTF16-H.bcmap new file mode 100644 index 000000000..b95045b40 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UTF16-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UTF16-V.bcmap b/packages/core/app/client/public/cmaps/UniGB-UTF16-V.bcmap new file mode 100644 index 000000000..51f023e0d Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UTF16-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniGB-UTF32-H.bcmap new file mode 100644 index 000000000..f0dbd14f3 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniGB-UTF32-V.bcmap new file mode 100644 index 000000000..ce9c30a98 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UTF8-H.bcmap b/packages/core/app/client/public/cmaps/UniGB-UTF8-H.bcmap new file mode 100644 index 000000000..982ca462b Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UTF8-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniGB-UTF8-V.bcmap b/packages/core/app/client/public/cmaps/UniGB-UTF8-V.bcmap new file mode 100644 index 000000000..f78020dd4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniGB-UTF8-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UCS2-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UCS2-H.bcmap new file mode 100644 index 000000000..7daf56afa Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UCS2-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UCS2-HW-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UCS2-HW-H.bcmap new file mode 100644 index 000000000..ac9975c58 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UCS2-HW-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UCS2-HW-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UCS2-HW-V.bcmap new file mode 100644 index 000000000..3da0a1c62 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UCS2-HW-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UCS2-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UCS2-V.bcmap new file mode 100644 index 000000000..c50b9ddfd Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UCS2-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UTF16-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UTF16-H.bcmap new file mode 100644 index 000000000..676134463 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UTF16-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UTF16-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UTF16-V.bcmap new file mode 100644 index 000000000..70bf90c0e Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UTF16-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UTF32-H.bcmap new file mode 100644 index 000000000..7a83d53ae Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UTF32-V.bcmap new file mode 100644 index 000000000..7a8713539 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UTF8-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UTF8-H.bcmap new file mode 100644 index 000000000..9f0334cac Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UTF8-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS-UTF8-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS-UTF8-V.bcmap new file mode 100644 index 000000000..808a94f0f Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS-UTF8-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS2004-UTF16-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS2004-UTF16-H.bcmap new file mode 100644 index 000000000..d768bf811 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS2004-UTF16-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS2004-UTF16-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS2004-UTF16-V.bcmap new file mode 100644 index 000000000..3d5bf6fb4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS2004-UTF16-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS2004-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS2004-UTF32-H.bcmap new file mode 100644 index 000000000..09eee10d4 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS2004-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS2004-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS2004-UTF32-V.bcmap new file mode 100644 index 000000000..6c5460013 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS2004-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS2004-UTF8-H.bcmap b/packages/core/app/client/public/cmaps/UniJIS2004-UTF8-H.bcmap new file mode 100644 index 000000000..1b1a64f50 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS2004-UTF8-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJIS2004-UTF8-V.bcmap b/packages/core/app/client/public/cmaps/UniJIS2004-UTF8-V.bcmap new file mode 100644 index 000000000..994aa9ef9 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJIS2004-UTF8-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISPro-UCS2-HW-V.bcmap b/packages/core/app/client/public/cmaps/UniJISPro-UCS2-HW-V.bcmap new file mode 100644 index 000000000..643f921b6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISPro-UCS2-HW-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISPro-UCS2-V.bcmap b/packages/core/app/client/public/cmaps/UniJISPro-UCS2-V.bcmap new file mode 100644 index 000000000..c148f67f5 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISPro-UCS2-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISPro-UTF8-V.bcmap b/packages/core/app/client/public/cmaps/UniJISPro-UTF8-V.bcmap new file mode 100644 index 000000000..1849d809a Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISPro-UTF8-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISX0213-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniJISX0213-UTF32-H.bcmap new file mode 100644 index 000000000..a83a677c5 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISX0213-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISX0213-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniJISX0213-UTF32-V.bcmap new file mode 100644 index 000000000..f527248ad Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISX0213-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISX02132004-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniJISX02132004-UTF32-H.bcmap new file mode 100644 index 000000000..e1a988dc9 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISX02132004-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniJISX02132004-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniJISX02132004-UTF32-V.bcmap new file mode 100644 index 000000000..47e054a96 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniJISX02132004-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UCS2-H.bcmap b/packages/core/app/client/public/cmaps/UniKS-UCS2-H.bcmap new file mode 100644 index 000000000..b5b94852a Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UCS2-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UCS2-V.bcmap b/packages/core/app/client/public/cmaps/UniKS-UCS2-V.bcmap new file mode 100644 index 000000000..026adcaad Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UCS2-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UTF16-H.bcmap b/packages/core/app/client/public/cmaps/UniKS-UTF16-H.bcmap new file mode 100644 index 000000000..fd4e66e81 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UTF16-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UTF16-V.bcmap b/packages/core/app/client/public/cmaps/UniKS-UTF16-V.bcmap new file mode 100644 index 000000000..075efb705 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UTF16-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UTF32-H.bcmap b/packages/core/app/client/public/cmaps/UniKS-UTF32-H.bcmap new file mode 100644 index 000000000..769d2142c Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UTF32-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UTF32-V.bcmap b/packages/core/app/client/public/cmaps/UniKS-UTF32-V.bcmap new file mode 100644 index 000000000..bdab208b6 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UTF32-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UTF8-H.bcmap b/packages/core/app/client/public/cmaps/UniKS-UTF8-H.bcmap new file mode 100644 index 000000000..6ff8674af Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UTF8-H.bcmap differ diff --git a/packages/core/app/client/public/cmaps/UniKS-UTF8-V.bcmap b/packages/core/app/client/public/cmaps/UniKS-UTF8-V.bcmap new file mode 100644 index 000000000..8dfa76a58 Binary files /dev/null and b/packages/core/app/client/public/cmaps/UniKS-UTF8-V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/V.bcmap b/packages/core/app/client/public/cmaps/V.bcmap new file mode 100644 index 000000000..fdec99066 Binary files /dev/null and b/packages/core/app/client/public/cmaps/V.bcmap differ diff --git a/packages/core/app/client/public/cmaps/WP-Symbol.bcmap b/packages/core/app/client/public/cmaps/WP-Symbol.bcmap new file mode 100644 index 000000000..46729bbf3 Binary files /dev/null and b/packages/core/app/client/public/cmaps/WP-Symbol.bcmap differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitDingbats.pfb b/packages/core/app/client/public/standard_fonts/FoxitDingbats.pfb new file mode 100644 index 000000000..30d52963e Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitDingbats.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitFixed.pfb b/packages/core/app/client/public/standard_fonts/FoxitFixed.pfb new file mode 100644 index 000000000..f12dcbce5 Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitFixed.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitFixedBold.pfb b/packages/core/app/client/public/standard_fonts/FoxitFixedBold.pfb new file mode 100644 index 000000000..cf8e24aee Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitFixedBold.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitFixedBoldItalic.pfb b/packages/core/app/client/public/standard_fonts/FoxitFixedBoldItalic.pfb new file mode 100644 index 000000000..d2880017c Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitFixedBoldItalic.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitFixedItalic.pfb b/packages/core/app/client/public/standard_fonts/FoxitFixedItalic.pfb new file mode 100644 index 000000000..d71697d4b Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitFixedItalic.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitSerif.pfb b/packages/core/app/client/public/standard_fonts/FoxitSerif.pfb new file mode 100644 index 000000000..3fa682efb Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitSerif.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitSerifBold.pfb b/packages/core/app/client/public/standard_fonts/FoxitSerifBold.pfb new file mode 100644 index 000000000..ff7c6ddec Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitSerifBold.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitSerifBoldItalic.pfb b/packages/core/app/client/public/standard_fonts/FoxitSerifBoldItalic.pfb new file mode 100644 index 000000000..460231fb8 Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitSerifBoldItalic.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitSerifItalic.pfb b/packages/core/app/client/public/standard_fonts/FoxitSerifItalic.pfb new file mode 100644 index 000000000..d03a7c781 Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitSerifItalic.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/FoxitSymbol.pfb b/packages/core/app/client/public/standard_fonts/FoxitSymbol.pfb new file mode 100644 index 000000000..c8f9bca78 Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/FoxitSymbol.pfb differ diff --git a/packages/core/app/client/public/standard_fonts/LICENSE_FOXIT b/packages/core/app/client/public/standard_fonts/LICENSE_FOXIT new file mode 100644 index 000000000..8b4ed6ddd --- /dev/null +++ b/packages/core/app/client/public/standard_fonts/LICENSE_FOXIT @@ -0,0 +1,27 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/core/app/client/public/standard_fonts/LICENSE_LIBERATION b/packages/core/app/client/public/standard_fonts/LICENSE_LIBERATION new file mode 100644 index 000000000..aba73e8a4 --- /dev/null +++ b/packages/core/app/client/public/standard_fonts/LICENSE_LIBERATION @@ -0,0 +1,102 @@ +Digitized data copyright (c) 2010 Google Corporation + with Reserved Font Arimo, Tinos and Cousine. +Copyright (c) 2012 Red Hat, Inc. + with Reserved Font Name Liberation. + +This Font Software is licensed under the SIL Open Font License, +Version 1.1. + +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 + +PREAMBLE The goals of the Open Font License (OFL) are to stimulate +worldwide development of collaborative font projects, to support the font +creation efforts of academic and linguistic communities, and to provide +a free and open framework in which fonts may be shared and improved in +partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. +The fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply to +any document created using the fonts or their derivatives. + + + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. +This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components +as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting ? in part or in whole ? +any of the components of the Original Version, by changing formats or +by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer +or other person who contributed to the Font Software. + + +PERMISSION & CONDITIONS + +Permission is hereby granted, free of charge, to any person obtaining a +copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components,in + Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, + redistributed and/or sold with any software, provided that each copy + contains the above copyright notice and this license. These can be + included either as stand-alone text files, human-readable headers or + in the appropriate machine-readable metadata fields within text or + binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font + Name(s) unless explicit written permission is granted by the + corresponding Copyright Holder. This restriction only applies to the + primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font + Software shall not be used to promote, endorse or advertise any + Modified Version, except to acknowledge the contribution(s) of the + Copyright Holder(s) and the Author(s) or with their explicit written + permission. + +5) The Font Software, modified or unmodified, in part or in whole, must + be distributed entirely under this license, and must not be distributed + under any other license. The requirement for fonts to remain under + this license does not apply to any document created using the Font + Software. + + + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + + + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. + diff --git a/packages/core/app/client/public/standard_fonts/LiberationSans-Bold.ttf b/packages/core/app/client/public/standard_fonts/LiberationSans-Bold.ttf new file mode 100644 index 000000000..ee2371540 Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/LiberationSans-Bold.ttf differ diff --git a/packages/core/app/client/public/standard_fonts/LiberationSans-BoldItalic.ttf b/packages/core/app/client/public/standard_fonts/LiberationSans-BoldItalic.ttf new file mode 100644 index 000000000..42b5717dd Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/LiberationSans-BoldItalic.ttf differ diff --git a/packages/core/app/client/public/standard_fonts/LiberationSans-Italic.ttf b/packages/core/app/client/public/standard_fonts/LiberationSans-Italic.ttf new file mode 100644 index 000000000..0cf612634 Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/LiberationSans-Italic.ttf differ diff --git a/packages/core/app/client/public/standard_fonts/LiberationSans-Regular.ttf b/packages/core/app/client/public/standard_fonts/LiberationSans-Regular.ttf new file mode 100644 index 000000000..366d1489c Binary files /dev/null and b/packages/core/app/client/public/standard_fonts/LiberationSans-Regular.ttf differ diff --git a/packages/plugins/@hera/plugin-core/src/__tests__/utils.test.ts b/packages/plugins/@hera/plugin-core/src/__tests__/utils.test.ts deleted file mode 100644 index 7fb9c08b4..000000000 --- a/packages/plugins/@hera/plugin-core/src/__tests__/utils.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import format, { formatCurrency } from '../utils/currencyUtils'; - -describe('utils', () => { - beforeEach(async () => {}); - - afterEach(() => {}); - - describe('currencyUtils', () => { - it('formatCurrency', async () => { - expect(formatCurrency(100, 2)).toBe('Â¥100.00'); - expect(formatCurrency(null, 2)).toBe('Â¥0.00'); - expect(formatCurrency(undefined, 2)).toBe('Â¥0.00'); - }); - }); -}); diff --git a/packages/plugins/@hera/plugin-core/src/client/components/CustomComponentDispatcher.tsx b/packages/plugins/@hera/plugin-core/src/client/components/CustomComponentDispatcher.tsx index 690186b2e..eb4214c2a 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/CustomComponentDispatcher.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/CustomComponentDispatcher.tsx @@ -3,8 +3,8 @@ import React from 'react'; import { useTranslation } from '../locale'; import { useField, useFieldSchema } from '@formily/react'; import { Field } from '@nocobase/database'; -import { CUSTOM_COMPONENT_TYPE_FORM_ITEM } from '..'; import { useCustomComponent } from '../hooks/useCustomComponent'; +import { CustomComponentType } from '../custom-components'; export const CustomComponentStub = (props) => { return
请选择组件
; @@ -31,7 +31,7 @@ export const customComponentDispatcherSettings = new SchemaSettings({ name: 'component', type: 'select', useComponentProps() { - const formItemComponents = useCustomComponent(CUSTOM_COMPONENT_TYPE_FORM_ITEM); + const formItemComponents = useCustomComponent(CustomComponentType.CUSTOM_FORM_ITEM); const { t } = useTranslation(); const field = useField(); const fieldSchema = useFieldSchema(); diff --git a/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx b/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx index a6ed92ca2..3aeb1a565 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/PDFViewer.tsx @@ -8,8 +8,11 @@ import 'react-pdf/dist/Page/TextLayer.css'; import { uid } from '@formily/shared'; import { useRequest } from '@nocobase/client'; import { useTranslation } from '../locale'; -// TODO CMap settings. +const options = { + cMapUrl: '/cmaps/', + standardFontDataUrl: '/standard_fonts/', +}; pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cat.net/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`; interface PDFViewerProps { @@ -71,10 +74,12 @@ export const PDFViewer = forwardRef((props, ref) = document.body.removeChild(iframe); }; }, [data, loading]); + console.log('width', width); return ( ( @@ -88,7 +93,7 @@ export const PDFViewer = forwardRef((props, ref) = error={
{t('error')}
} > {Array.from(new Array(numPages), (el, index) => ( - +

{index + 1}/{numPages}页

diff --git a/packages/plugins/@hera/plugin-core/src/client/custom-components.ts b/packages/plugins/@hera/plugin-core/src/client/custom-components.ts new file mode 100644 index 000000000..c82d3fc77 --- /dev/null +++ b/packages/plugins/@hera/plugin-core/src/client/custom-components.ts @@ -0,0 +1,25 @@ +import { ReactFC } from '@formily/react'; +import { ComponentType, MemoExoticComponent } from 'react'; + +export interface CustomFunctionComponent

extends React.FunctionComponent

{ + __componentType: CustomComponentType; + __componentLabel: string; +} + +export interface CustomFC

extends MemoExoticComponent> { + __componentType: CustomComponentType; + __componentLabel: string; +} + +export enum CustomComponentType { + CUSTOM_FORM_ITEM = 'FORM_ITEM', + CUSTOM_FIELD = 'FIELD', + CUSTOM_ASSOCIATED_FIELD = 'ASSOCIATED_FIELD', +} + +export interface CustomComponentOption { + label: string; + name: string; + type?: CustomComponentType; + component: ComponentType; +} diff --git a/packages/plugins/@hera/plugin-core/src/client/hooks/useCustomComponent.tsx b/packages/plugins/@hera/plugin-core/src/client/hooks/useCustomComponent.tsx index cd45d6e19..2620b7054 100644 --- a/packages/plugins/@hera/plugin-core/src/client/hooks/useCustomComponent.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/hooks/useCustomComponent.tsx @@ -1,11 +1,13 @@ import { useApp } from '@nocobase/client'; import _ from 'lodash'; -import { KEY_CUSTOM_COMPONENT_LABEL, KEY_CUSTOM_COMPONENT_TYPE } from '..'; +import { CustomComponentType, CustomFunctionComponent } from '..'; -export const useCustomComponent = (type: string) => { +export const useCustomComponent = (type: CustomComponentType) => { const app = useApp(); - return _.filter(app.components, (component) => component[KEY_CUSTOM_COMPONENT_TYPE] === type).map((component) => ({ - label: component[KEY_CUSTOM_COMPONENT_LABEL], - value: component.displayName, - })); + return _.filter(app.components, (component: CustomFunctionComponent) => component.__componentType === type).map( + (component: CustomFunctionComponent) => ({ + label: component.__componentLabel, + value: component.displayName, + }), + ); }; diff --git a/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomAssociatedComponents.tsx b/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomAssociatedComponents.tsx index d83870a5d..c098a57ba 100644 --- a/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomAssociatedComponents.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomAssociatedComponents.tsx @@ -1,6 +1,6 @@ -import { CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD } from '..'; +import { CustomComponentType } from '..'; import { useCustomComponent } from './useCustomComponent'; export const useGetCustomAssociatedComponents = () => { - return useCustomComponent(CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD); + return useCustomComponent(CustomComponentType.CUSTOM_ASSOCIATED_FIELD); }; diff --git a/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomComponents.tsx b/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomComponents.tsx index cc62a2492..1bd6d11f0 100644 --- a/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomComponents.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/hooks/useGetCustomComponents.tsx @@ -1,6 +1,6 @@ -import { CUSTOM_COMPONENT_TYPE_FIELD } from '..'; +import { CustomComponentType } from '..'; import { useCustomComponent } from './useCustomComponent'; export const useGetCustomComponents = () => { - return useCustomComponent(CUSTOM_COMPONENT_TYPE_FIELD); + return useCustomComponent(CustomComponentType.CUSTOM_FIELD); }; diff --git a/packages/plugins/@hera/plugin-core/src/client/index.tsx b/packages/plugins/@hera/plugin-core/src/client/index.tsx index 977193e29..858d950d6 100644 --- a/packages/plugins/@hera/plugin-core/src/client/index.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/index.tsx @@ -1,12 +1,12 @@ -import React, { ComponentType } from 'react'; +import React from 'react'; import { autorun } from '@formily/reactive'; import { Menu, Plugin, RemoteSchemaTemplateManagerProvider, EditTitleField, - useCollection_deprecated, SchemaSettingOptions, + useCollection, } from '@nocobase/client'; import { HeraAdminLayout } from './layouts'; import { remove } from 'lodash'; @@ -87,24 +87,9 @@ import Expression from './components/Expression'; import { CustomField } from './components/CustomField'; import { useGetCustomAssociatedComponents } from './hooks/useGetCustomAssociatedComponents'; import { useGetCustomComponents } from './hooks/useGetCustomComponents'; -import { SwiperBlock, SwiperBlockInitializer } from './schema-initializer/SwiperBlockInitializer'; -import { NoticeBlock, NoticeBlockInitializer } from './schema-initializer/NoticeBlockInitializer'; -import { TabSearchBlock, TabSearchBlockInitializer } from './schema-initializer/TabSearchBlockInitializer'; import { AutoComplete } from './schema-components/AutoComplete/AutoComplete'; - -export enum CustomComponentType { - CUSTOM_FORM_ITEM, - CUSTOM_FIELD, - CUSTOM_ASSOCIATED_FIELD, -} - -export interface CustomComponentOption { - label: string; - name: string; - type?: CustomComponentType; - component: ComponentType; -} export { usePDFViewerRef } from './schema-initializer/PDFVIewerBlockInitializer'; +export * from './custom-components'; export class PluginCoreClient extends Plugin { locale: Locale; @@ -177,8 +162,6 @@ export class PluginCoreClient extends Plugin { DatePicker, RemoteSelect, SignatureInput, - SwiperBlockInitializer, - SwiperBlock, AssociationField: ExtendedAssociationField, OutboundButton, OutboundLinkActionInitializer, @@ -204,10 +187,6 @@ export class PluginCoreClient extends Plugin { // @ts-ignore Designer: MenuDesigner, }, - TabSearchBlockInitializer, - TabSearchBlock, - NoticeBlock, - NoticeBlockInitializer, }); } @@ -289,33 +268,6 @@ export class PluginCoreClient extends Plugin { type: 'divider', }); this.app.schemaInitializerManager.addItem('FilterFormItemInitializers', customItem.name, customItem); - // mobile - this.app.schemaInitializerManager.addItem('MBlockInitializers', 'dataBlocks.swiper', { - title: 'swiper', - name: 'swiper', - type: 'item', - Component: 'SwiperBlockInitializer', - }); - this.app.schemaInitializerManager.addItem('MBlockInitializers', 'dataBlocks.notice', { - title: 'notice', - name: 'notice', - type: 'item', - Component: 'NoticeBlockInitializer', - }); - - this.app.schemaInitializerManager.addItem('MBlockInitializers', 'filterBlocks', { - title: '{{t("Filter blocks")}}', - type: 'itemGroup', - children: [ - { - name: 'tabSearch', - title: 'tabSearch', - Component: 'TabSearchBlockInitializer', - }, - ], - }); - - this.app.schemaInitializerManager.addItem('MBlockInitializers', 'filterBlocks.filterForm', {}); const addCustomComponent = { name: 'addCustomComponent', @@ -395,9 +347,9 @@ export class PluginCoreClient extends Plugin { Component: SetFilterScope, useVisible: useSetFilterScopeVisible, useComponentProps() { - const { name } = useCollection_deprecated(); + const collection = useCollection(); return { - collectionName: name, + collectionName: collection.name, }; }, }); @@ -433,9 +385,3 @@ export class PluginCoreClient extends Plugin { } export default PluginCoreClient; - -export const KEY_CUSTOM_COMPONENT_TYPE = '__componentType'; -export const KEY_CUSTOM_COMPONENT_LABEL = '__componentLabel'; -export const CUSTOM_COMPONENT_TYPE_FIELD = 'FIELD'; -export const CUSTOM_COMPONENT_TYPE_FORM_ITEM = 'FORM_ITEM'; -export const CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD = 'ASSOCIATED_FIELD'; diff --git a/packages/plugins/@hera/plugin-core/src/client/providers/BackupCenterProvider.tsx b/packages/plugins/@hera/plugin-core/src/client/providers/BackupCenterProvider.tsx deleted file mode 100644 index 1c8b5f0b5..000000000 --- a/packages/plugins/@hera/plugin-core/src/client/providers/BackupCenterProvider.tsx +++ /dev/null @@ -1,263 +0,0 @@ -import { useAPIClient } from '@nocobase/client'; -import { Button, Card, Drawer, Space, Spin, Table, Tag, Upload, message } from 'antd'; -import type { UploadProps } from 'antd'; -import type { ColumnsType } from 'antd/es/table'; -import React, { FC, useEffect, useState } from 'react'; -import { saveAs } from 'file-saver'; -import { UploadOutlined } from '@ant-design/icons'; - -const columns: ColumnsType = [ - { - title: '类型', - dataIndex: 'category', - key: 'category', - }, - { - title: '命å空间', - dataIndex: 'namespace', - key: 'namespace', - render(value, record, index) { - return value ? {value} : null; - }, - }, - { - title: '功能', - dataIndex: 'function', - key: 'function', - }, - { - title: 'æ•°æ®è¡¨æ ‡è¯†é›†åˆ', - dataIndex: 'collections', - key: 'collections', - render(value, record, index) { - return value ? ( - - {value.map((n) => ( - {n} - ))} - - ) : null; - }, - }, - { - title: 'å¯å¯¼å‡º', - dataIndex: 'dumpable', - key: 'dumpable', - }, - { - title: 'æ•°æ®è¡¨æ ‡è¯†', - dataIndex: 'name', - key: 'name', - }, - { - title: 'æ•°æ®è¡¨å称', - dataIndex: 'title', - key: 'title', - }, -]; -const keyFn = (record) => [record.namespace ?? '', record.function ?? '', record.name ?? ''].join('_'); -const RestoreButton = () => { - const api = useAPIClient(); - const [requiredGroups, setRequiredGroups] = useState([]); - const [optionalGroups, setOptionalGroups] = useState([]); - const [userCollections, setUserCollections] = useState([]); - const [selectedOptionalGroups, setSelectedOptionalGroups] = useState([]); - const [selectedUserCollections, setSelectedUserCollections] = useState([]); - const [isModalOpen, setIsModalOpen] = useState(false); - const [key, setKey] = useState(''); - const [loading, setLoading] = useState(false); - - const showModal = () => { - setIsModalOpen(true); - }; - - const handleOk = () => { - setLoading(true); - api - .resource('duplicator') - .restore({ - values: { - restoreKey: key, - selectedOptionalGroups, - selectedUserCollections, - }, - }) - .then((res) => { - setIsModalOpen(false); - setLoading(false); - message.success('æ¢å¤æˆåŠŸï¼'); - }) - .catch(() => { - setLoading(false); - message.error('æ¢å¤å¤±è´¥ï¼'); - }); - }; - - const handleCancel = () => { - setIsModalOpen(false); - }; - const props: UploadProps = { - name: 'file', - action: '/api/duplicator:upload', - headers: { - authorization: `Bearer ${api.auth.getToken()}`, - }, - onChange(info) { - if (info.file.status === 'done') { - message.success(`${info.file.name} file uploaded successfully`); - const key = info.file.response.data.key; - const meta = info.file.response.data.meta; - - const { requiredGroups, selectedOptionalGroups, selectedUserCollections } = meta; - setKey(key); - setRequiredGroups(requiredGroups.map((i) => ({ ...i, category: 'required' }))); - setOptionalGroups(selectedOptionalGroups.map((i) => ({ ...i, category: 'optional' }))); - setUserCollections( - selectedUserCollections - .filter((i: string) => !i.startsWith('view_')) - .map((i) => ({ name: i, category: 'user' })), - ); - } else if (info.file.status === 'error') { - message.error(`${info.file.name} file upload failed.`); - } - }, - }; - return ( - <> - - - - - - } - > - - - - - {requiredGroups.length !== 0 && ( - item.category === 'optional') - .map((item) => item.namespace + '.' + item.function), - ); - setSelectedUserCollections( - selectedRows.filter((item) => item.category === 'user').map((item) => item.name), - ); - }, - getCheckboxProps(record) { - return { - disabled: record.category === 'required', - }; - }, - defaultSelectedRowKeys: requiredGroups.map(keyFn), - }} - pagination={{ - pageSize: 200, - }} - /> - )} - - - - ); -}; -export const BackupCenterPanel = () => { - const api = useAPIClient(); - const [requiredGroups, setRequiredGroups] = useState([]); - const [optionalGroups, setOptionalGroups] = useState([]); - const [userCollections, setUserCollections] = useState([]); - const [selectedOptionalGroups, setSelectedOptionalGroups] = useState([]); - const [selectedUserCollections, setSelectedUserCollections] = useState([]); - useEffect(() => { - api - .resource('duplicator') - .dumpableCollections() - .then((res) => { - const { requiredGroups, optionalGroups, userCollections } = res.data; - setRequiredGroups(requiredGroups.map((i) => ({ ...i, category: 'required' }))); - setOptionalGroups(optionalGroups.map((i) => ({ ...i, category: 'optional' }))); - setUserCollections( - userCollections - .filter((i: { name: string }) => !i.name.startsWith('view_')) - .map((i) => ({ ...i, category: 'user' })), - ); - }) - .catch(() => { - // ignore-error - }); - }, [api]); - if (requiredGroups.length === 0) { - return null; - } - return ( - -
-   - - - - -
-
item.category === 'optional') - .map((item) => item.namespace + '.' + item.function), - ); - setSelectedUserCollections( - selectedRows.filter((item) => item.category === 'user').map((item) => item.name), - ); - }, - getCheckboxProps(record) { - return { - disabled: record.category === 'required', - }; - }, - defaultSelectedRowKeys: requiredGroups.map(keyFn), - }} - pagination={{ - pageSize: 200, - }} - /> - - ); -}; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/PDFViewer.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/PDFViewer.tsx index 37cfcba1b..5b3708881 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/PDFViewer.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/PDFViewer.tsx @@ -1,4 +1,4 @@ -import React, { useLayoutEffect, useRef, useState } from 'react'; +import React, { useEffect, useRef, useState } from 'react'; import { PDFViewer } from '../components/PDFViewer'; import { Space } from 'antd'; import { css } from '@nocobase/client'; @@ -9,10 +9,12 @@ export const InternalPDFViewer = (props) => { const containerRef = useRef(null); const [width, setWidth] = useState(0); const [, setHeight] = useState(0); - useLayoutEffect(() => { - setWidth(containerRef.current.offsetWidth); - setHeight(containerRef.current.offsetHeight); - }); + useEffect(() => { + if (containerRef.current) { + setWidth(containerRef.current.offsetWidth); + setHeight(containerRef.current.offsetHeight); + } + }, [containerRef]); const ref = usePDFViewerRef(); const usePdfPath = useMaybePdfPath ?? (() => ''); const pdfPath = usePdfPath(); @@ -36,6 +38,8 @@ export const InternalPDFViewer = (props) => { border: 1px dashed black; margin-top: 12px; overflow: hidden; + display: flex; + justify-content: center; `} > {pdfPath ? : ''} diff --git a/packages/plugins/@hera/plugin-core/src/server/__tests__/test.test.ts b/packages/plugins/@hera/plugin-core/src/server/__tests__/test.test.ts deleted file mode 100644 index b151e48cd..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/__tests__/test.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -describe('hera-core > Plugin', () => { - beforeEach(async () => {}); - - afterEach(() => {}); - - describe('create', () => { - it('create with enabled', async () => { - expect(10).toBe(10); - }); - }); -}); diff --git a/packages/plugins/@hera/plugin-core/src/server/__tests__/utils.test.ts b/packages/plugins/@hera/plugin-core/src/server/__tests__/utils.test.ts deleted file mode 100644 index 88f00b08f..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/__tests__/utils.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { currentPoint } from '../utils/curren-formula'; - -describe('utils', () => { - beforeEach(async () => {}); - - afterEach(() => {}); - - describe('currency-formula', () => { - it('currentPoint', async () => { - expect(currentPoint(100, 2)).toBe('100.00'); - expect(currentPoint(null, 2)).toBe(''); - expect(currentPoint(undefined, 2)).toBe(''); - }); - }); -}); diff --git a/packages/plugins/@hera/plugin-core/src/server/index.ts b/packages/plugins/@hera/plugin-core/src/server/index.ts index d7a0bd243..aa2b8cae7 100644 --- a/packages/plugins/@hera/plugin-core/src/server/index.ts +++ b/packages/plugins/@hera/plugin-core/src/server/index.ts @@ -2,5 +2,4 @@ export { default } from './plugin'; export * from './services/system-setting-service'; export * from './services/sql-loader'; -export * from '../utils/constants'; export { Document, Page, Text, View, StyleSheet, Image, renderToStream, Font } from '@react-pdf/renderer'; diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/contract.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/contract.ts deleted file mode 100644 index 8b4324187..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/contract.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { RuleItem } from './rule'; - -export interface Contract { - tax_rate: number; - tax_included: any; - rule_items: RuleItem[]; - calc_type: number; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/options.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/options.ts deleted file mode 100644 index 77a8025ea..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/options.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface recordPdfOptions { - isDouble: number; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/record.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/record.ts deleted file mode 100644 index 93971c73a..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/record.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { RecordCategory } from '../../utils/constants'; -import { RecordItems, Record_fee_item } from './records'; - -export interface Record { - weight_items: any; - record_items: RecordItems[]; - systemTitle: any; - record_lease_rules: any; - weight: number; - record_weight_items: any; - in_stock: any; - out_stock: any; - contract: any; - userPhone: string; - nickname: string; - comment: any; - date: any; - number: any; - vehicles: any; - original_number: any; - movement: number; - category: RecordCategory; - record_fee_items: Record_fee_item[]; - pdfExplain: string; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/records.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/records.ts deleted file mode 100644 index 9ae4aab71..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/records.ts +++ /dev/null @@ -1,67 +0,0 @@ -export interface RecordItems { - id: number; - sort: number; - count: number; - comment: string; - product: Product; - createdAt: string; - record_id: number; - t_item_id: any; - updatedAt: string; - product_id: number; - unit_price: any; - createdById: number; - updatedById: number; - record_item_fee_items: Record_fee_item[]; -} - -export interface Product { - id: number; - name: string; - sort: number; - spec: string; - label: string; - ratio: number | null; - weight: number | null; - comment: string; - createdAt: Date; - updatedAt: Date; - category_id: number; - createdById: number; - custom_name: string; - updatedById: number; - product_category: Product_category; -} - -export interface Product_category { - id: number; - attr: string[]; - name: string; - sort: number; - unit: string; - comment: string; - createdAt: Date; - updatedAt: Date; - convertible: boolean; - createdById: number; - updatedById: number; - product_name: string; - conversion_unit: string; -} - -export interface Record_fee_item { - product: Product; - id: number; - sort: number; - count: number; - comment: string; - fee_item: any[]; - createdAt: Date; - record_id: number; - updatedAt: Date; - product_id: number; - createdById: number; - is_excluded: boolean; - updatedById: number; - record_item_id: number; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/rule.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/rule.ts deleted file mode 100644 index 652982d09..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/rule.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Product } from './records'; -import { ConversionLogics, countCource } from '../../utils/constants'; - -export interface FeeRule extends LeaseRule { - id: number; - product: Product; - fee_product_id: number; - count_source: countCource; - unit: string; - unit_name: string; - product_id: number; - unit_price: number; - contract_rule_id: number; - conversion_logic_id: number; - alias: string; -} - -export interface LeaseRule { - unit_price: number; - product_id?: number; - conversion_logic_id: ConversionLogics; - ucl: WeightRule; - product_fee: any; - products: any; -} - -export interface Rule { - fee_item: FeeRule[]; - lease_items: LeaseRule[]; -} - -export interface RuleItem { - end_date: Date; - start_date: Date; - contract_rule_id: number; - rule: Rule; -} - -export interface WeightRule { - weight_items: any[]; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/settlement.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/settlement.ts deleted file mode 100644 index 50522ab83..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/settlement.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Record } from './record'; -import { Contract } from './contract'; - -export interface Settlement { - settlement_summary_items: any[]; - settlement_items: any[]; - settlement_history_items: any[]; - settlement_add_items: any[]; - accumulate_collection: number; - current_collection: number; - tax: number; - accumulate: number; - loadfreight: number; - h_compensate: number; - n_compensate: number; - maintenance: number; - rent: number; - current_expenses: number; - settlements: Settlement[]; - end_date: Date; - start_date: Date; - records: Record[]; - contracts: Contract; - contract_id: number; - createdById: number; - updatedById: number; - createdAt: number; - updatedAt: number; - sort: number; - name: number; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/interfaces/systemSetting.ts b/packages/plugins/@hera/plugin-core/src/server/interfaces/systemSetting.ts deleted file mode 100644 index 5ac9996a3..000000000 --- a/packages/plugins/@hera/plugin-core/src/server/interfaces/systemSetting.ts +++ /dev/null @@ -1,3 +0,0 @@ -interface SystemSetting { - title: string; -} diff --git a/packages/plugins/@hera/plugin-core/src/server/services/plugin-version.ts b/packages/plugins/@hera/plugin-core/src/server/services/plugin-version.ts index 5e485dfca..73db0be64 100644 --- a/packages/plugins/@hera/plugin-core/src/server/services/plugin-version.ts +++ b/packages/plugins/@hera/plugin-core/src/server/services/plugin-version.ts @@ -1,6 +1,5 @@ import Application, { PluginManager } from '@nocobase/server'; import { Service, App } from '@nocobase/utils'; -import { PLUGIN_NAME } from '../../utils/constants'; @Service() export class PluginVersionService { @@ -9,6 +8,6 @@ export class PluginVersionService { async get() { const pm = this.app.pm as PluginManager; - return pm.get(PLUGIN_NAME).toJSON(); + return pm.get('@hera/plugin-core').toJSON(); } } diff --git a/packages/plugins/@hera/plugin-core/src/server/services/system-setting-service.ts b/packages/plugins/@hera/plugin-core/src/server/services/system-setting-service.ts index cc4d64bed..306ce28fd 100644 --- a/packages/plugins/@hera/plugin-core/src/server/services/system-setting-service.ts +++ b/packages/plugins/@hera/plugin-core/src/server/services/system-setting-service.ts @@ -1,6 +1,10 @@ import { Service, Db } from '@nocobase/utils'; import Database from '@nocobase/database'; +export interface SystemSetting { + title: string; +} + @Service() export class SystemSettingService { @Db() diff --git a/packages/plugins/@hera/plugin-core/src/utils/constants.ts b/packages/plugins/@hera/plugin-core/src/utils/constants.ts deleted file mode 100644 index b46040423..000000000 --- a/packages/plugins/@hera/plugin-core/src/utils/constants.ts +++ /dev/null @@ -1,195 +0,0 @@ -export enum ConversionLogics { - /** - * 1 ä¸æ¢ç®— - */ - Keep = 1, - /** - * 3实际é‡é‡ - */ - ActualWeight = 3, - /** - * 2æ¢ç®— - */ - Product = 2, - /** - * 4默认é‡é‡ - */ - ProductWeight = 4, -} - -export enum RecordCategory { - /** - * 0ç§Ÿèµ - */ - lease = '0', - /** - * 1购销 - */ - purchase = '1', - /** - * 2æš‚å­˜ - */ - staging = '2', - /** - * 3盘点 - */ - inventory = '3', - /** - * 4é‡‡è´­ç›´å‘ - */ - purchase2lease = '4', - /** - * 5租èµç›´å‘ - */ - lease2lease = '5', -} - -export enum AddItemsCategory { - /** - * 0 租金 - */ - rent = '0', - /** - * 维修人工 - */ - maintenance = '1', - /** - * æ— ç‰©èµ”å¿ - */ - n_compensate = '2', - /** - * æœ‰ç‰©èµ”å¿ - */ - h_compensate = '3', - /** - * 装å¸è¿è´¹ - */ - loadFreight = '4', -} - -export enum SourcesType { - /** - * 0 人工录入 - */ - staff = '0', - /** - * 1 å‡ºåº“é‡ - */ - outbound = '1', - /** - * 2 å…¥åº“é‡ - */ - inbound = '2', - /** - * 3 å‡ºå…¥åº“é‡ - */ - inAndOut = '3', - /** - * 4 出库å•æ•° - */ - outboundNumber = '4', - /** - * 5 入库å•æ•° - */ - inboundNumber = '5', - /** - * 6 出入库å•æ•° - */ - inAndOutNumber = '6', -} - -export enum PromptText { - noContractedCompany = '无签约公å¸ï¼Œè¯·è”系管ç†å‘˜ä¿®æ”¹', -} - -export enum Itemcategory { - /** - * 维修人工 - */ - maintenance = '维修人工', - /** - * æ— ç‰©èµ”å¿ - */ - n_compensate = '无物赔å¿', - /** - * æœ‰ç‰©èµ”å¿ - */ - h_compensate = '有物赔å¿', - /** - * 装å¸è¿è´¹ - */ - loadFreight = '装å¸è¿è´¹', - /** - * 租金 - */ - rent = '租金', -} - -export enum countCource { - /** - * 0人工录入 - */ - artificial = 0, - /** - * 1出库产å“æ•°é‡ - */ - outProduct = 1, - /** - * 2入库产å“æ•°é‡ - */ - enterProduct = 2, - /** - * 3出入库产å“æ•°é‡ - */ - product = 3, - /** - * 4出库å•æ•°é‡ - */ - outItem = 4, - /** - * 5入库å•æ•°é‡ - */ - enterItem = 5, - /** - * 6出入库å•æ•°é‡ - */ - item = 6, -} - -export const PLUGIN_NAME = '@hera/plugin-core'; - -export enum settlementStatus { - /** - * 0需è¦è®¡ç®— - */ - needCompute = '0', - /** - * 1需è¦é‡æ–°è®¡ç®— - */ - needReCompute = '1', - /** - * 2最新 - */ - latest = '2', -} - -export enum CalcDateType { - /** - * 0: 计头ä¸è®¡å°¾ - */ - countHeads = '0', - /** - * 1: 计尾ä¸è®¡å¤´ - */ - countTails = '1', - /** - * 2: 计头计尾 - */ - countHT = '2', - /** - * 3: ä¸è®¡å¤´ä¸è®¡å°¾ - */ - withoutHT = '3', -} - -export const RulesNumber = 99999; diff --git a/packages/plugins/@hera/plugin-core/src/utils/currencyUtils.ts b/packages/plugins/@hera/plugin-core/src/utils/currencyUtils.ts deleted file mode 100644 index e54366b9e..000000000 --- a/packages/plugins/@hera/plugin-core/src/utils/currencyUtils.ts +++ /dev/null @@ -1,87 +0,0 @@ -export enum FormatType { - /** - * é‡‘é¢ - */ - currency = 'currency', - /** - * 百分比 - */ - percent = 'percent', - /** - * æ•°é‡ - */ - quantity = 'quantity', -} - -/** - * æ ¼å¼åŒ–数字,支æŒé‡‘é¢ã€ç™¾åˆ†æ¯”ã€æ•°é‡ç­‰ - * @param _number æ•°å­— - * @param fractionDigits ä¿ç•™ä½æ•° - * @param formatType æ ¼å¼åŒ–类型: 'currency' | 'percent' | 'quantity' / 金é¢ï¼Œç™¾åˆ†æ¯”ï¼Œæ•°é‡ - * @returns æ ¼å¼åŒ–åŽçš„字符串 - */ -const format = (_number: number, fractionDigits: number, formatType: FormatType): string => { - const number = typeof _number === 'undefined' || Number.isNaN(_number) ? 0 : _number; - let style; - let currency; - - switch (formatType) { - case 'currency': - style = 'currency'; - currency = 'CNY'; - break; - case 'percent': - style = 'percent'; - break; - case 'quantity': - style = 'decimal'; - break; - default: - throw new Error('Invalid formatType. Supported values are "currency", "percent", and "quantity".'); - } - const options = { - style, - currency, - minimumFractionDigits: fractionDigits, - maximumFractionDigits: fractionDigits, - }; - const numberFormat = new Intl.NumberFormat('zh-CN', options); - return numberFormat.format(number); -}; - -// Examples -/** - * è®¡ç®—é‡‘é¢ - * @param number é‡‘é¢ - * @param fractionDigits 需è¦ä¿ç•™çš„ä½æ•° - * @returns - */ -export const formatCurrency = (number: number, fractionDigits: number) => - format(number, fractionDigits, FormatType.currency); // ï¿¥10,000.00 -/** - *计算百分比 - * @param number 需è¦è½¬åŒ–的百分比 - * @param fractionDigits ä¿ç•™ä½æ•° - * @returns - */ -export const formatPercent = (number: number, fractionDigits: number) => - format(number, fractionDigits, FormatType.percent); // 75.00% -/** - * è®¡ç®—æ•°é‡ - * @param number æ•°å­— - * @param fractionDigits 需è¦ä¿ç•™çš„ä½æ•° - * @returns - */ -export const formatQuantity = (number: number, fractionDigits = 2) => - format(number, fractionDigits, FormatType.quantity); // 12,345.679 - -export default format; - -/** - * 判断数字是å¦æ˜¯æ•´æ•° - * @param num - * @returns - */ -function _isDecimal(num: number): boolean { - return Number.isFinite(num) && !Number.isInteger(num); -} diff --git a/packages/plugins/@hera/plugin-core/src/utils/daysUtils.ts b/packages/plugins/@hera/plugin-core/src/utils/daysUtils.ts deleted file mode 100644 index f1c5328fb..000000000 --- a/packages/plugins/@hera/plugin-core/src/utils/daysUtils.ts +++ /dev/null @@ -1,9 +0,0 @@ -import dayjs from 'dayjs'; - -const convertFormat = (currentDate, formatText) => { - return dayjs(currentDate).format(formatText); -}; - -export const converDate = (currentDate: Date, formatText: string) => { - return convertFormat(currentDate, formatText); -}; diff --git a/packages/plugins/@hera/plugin-core/src/utils/mapUtils.ts b/packages/plugins/@hera/plugin-core/src/utils/mapUtils.ts deleted file mode 100644 index d8d8027a3..000000000 --- a/packages/plugins/@hera/plugin-core/src/utils/mapUtils.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const mapIfHas = (getfunction, category) => { - if (isNaN(category)) { - if (category == 0) { - category = '租金'; - } - return category; - } else { - return getfunction(category); - } -}; diff --git a/packages/plugins/@hera/plugin-core/src/utils/unitUtils.ts b/packages/plugins/@hera/plugin-core/src/utils/unitUtils.ts deleted file mode 100644 index 64a9c95c7..000000000 --- a/packages/plugins/@hera/plugin-core/src/utils/unitUtils.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const converUnitCount = (count, unit) => { - const converCount = count; - const converUnit = unit; - return { converCount, converUnit }; -}; diff --git a/packages/plugins/@hera/plugin-mobile/.npmignore b/packages/plugins/@hera/plugin-mobile/.npmignore new file mode 100644 index 000000000..65f5e8779 --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/.npmignore @@ -0,0 +1,2 @@ +/node_modules +/src diff --git a/packages/plugins/@hera/plugin-mobile/README.md b/packages/plugins/@hera/plugin-mobile/README.md new file mode 100644 index 000000000..4bb676b3d --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/README.md @@ -0,0 +1 @@ +# @hera/plugin-mobile diff --git a/packages/plugins/@hera/plugin-mobile/client.d.ts b/packages/plugins/@hera/plugin-mobile/client.d.ts new file mode 100644 index 000000000..6c459cbac --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/client.d.ts @@ -0,0 +1,2 @@ +export * from './dist/client'; +export { default } from './dist/client'; diff --git a/packages/plugins/@hera/plugin-mobile/client.js b/packages/plugins/@hera/plugin-mobile/client.js new file mode 100644 index 000000000..b6e3be70e --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/client.js @@ -0,0 +1 @@ +module.exports = require('./dist/client/index.js'); diff --git a/packages/plugins/@hera/plugin-mobile/package.json b/packages/plugins/@hera/plugin-mobile/package.json new file mode 100644 index 000000000..fc6995229 --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/package.json @@ -0,0 +1,11 @@ +{ + "name": "@hera/plugin-mobile", + "version": "1.0", + "main": "dist/server/index.js", + "dependencies": {}, + "peerDependencies": { + "@nocobase/client": "0.x", + "@nocobase/server": "0.x", + "@nocobase/test": "0.x" + } +} diff --git a/packages/plugins/@hera/plugin-mobile/server.d.ts b/packages/plugins/@hera/plugin-mobile/server.d.ts new file mode 100644 index 000000000..c41081ddc --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/server.d.ts @@ -0,0 +1,2 @@ +export * from './dist/server'; +export { default } from './dist/server'; diff --git a/packages/plugins/@hera/plugin-mobile/server.js b/packages/plugins/@hera/plugin-mobile/server.js new file mode 100644 index 000000000..972842039 --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/server.js @@ -0,0 +1 @@ +module.exports = require('./dist/server/index.js'); diff --git a/packages/plugins/@hera/plugin-mobile/src/client/index.tsx b/packages/plugins/@hera/plugin-mobile/src/client/index.tsx new file mode 100644 index 000000000..bb895bdc1 --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/src/client/index.tsx @@ -0,0 +1,47 @@ +import { Plugin } from '@nocobase/client'; +import { SwiperBlock, SwiperBlockInitializer } from './schema-initializer/SwiperBlockInitializer'; +import { TabSearchBlock, TabSearchBlockInitializer } from './schema-initializer/TabSearchBlockInitializer'; +import { NoticeBlock, NoticeBlockInitializer } from './schema-initializer/NoticeBlockInitializer'; + +export class PluginMobileClient extends Plugin { + async afterAdd() {} + + async beforeLoad() {} + + async load() { + this.app.addComponents({ + NoticeBlock, + NoticeBlockInitializer, + SwiperBlock, + SwiperBlockInitializer, + TabSearchBlock, + TabSearchBlockInitializer, + }); + this.app.schemaInitializerManager.addItem('MBlockInitializers', 'dataBlocks.swiper', { + title: 'swiper', + name: 'swiper', + type: 'item', + Component: 'SwiperBlockInitializer', + }); + this.app.schemaInitializerManager.addItem('MBlockInitializers', 'dataBlocks.notice', { + title: 'notice', + name: 'notice', + type: 'item', + Component: 'NoticeBlockInitializer', + }); + + this.app.schemaInitializerManager.addItem('MBlockInitializers', 'filterBlocks', { + title: '{{t("Filter blocks")}}', + type: 'itemGroup', + children: [ + { + name: 'tabSearch', + title: 'tabSearch', + Component: 'TabSearchBlockInitializer', + }, + ], + }); + } +} + +export default PluginMobileClient; diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/NoticeBlockInitializer.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schema-initializer/NoticeBlockInitializer.tsx similarity index 100% rename from packages/plugins/@hera/plugin-core/src/client/schema-initializer/NoticeBlockInitializer.tsx rename to packages/plugins/@hera/plugin-mobile/src/client/schema-initializer/NoticeBlockInitializer.tsx diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/SwiperBlockInitializer.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schema-initializer/SwiperBlockInitializer.tsx similarity index 100% rename from packages/plugins/@hera/plugin-core/src/client/schema-initializer/SwiperBlockInitializer.tsx rename to packages/plugins/@hera/plugin-mobile/src/client/schema-initializer/SwiperBlockInitializer.tsx diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-initializer/TabSearchBlockInitializer.tsx b/packages/plugins/@hera/plugin-mobile/src/client/schema-initializer/TabSearchBlockInitializer.tsx similarity index 100% rename from packages/plugins/@hera/plugin-core/src/client/schema-initializer/TabSearchBlockInitializer.tsx rename to packages/plugins/@hera/plugin-mobile/src/client/schema-initializer/TabSearchBlockInitializer.tsx diff --git a/packages/plugins/@hera/plugin-mobile/src/index.ts b/packages/plugins/@hera/plugin-mobile/src/index.ts new file mode 100644 index 000000000..7e74612df --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/src/index.ts @@ -0,0 +1,2 @@ +export * from './server'; +export { default } from './server'; diff --git a/packages/plugins/@hera/plugin-mobile/src/server/collections/.gitkeep b/packages/plugins/@hera/plugin-mobile/src/server/collections/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/packages/plugins/@hera/plugin-mobile/src/server/index.ts b/packages/plugins/@hera/plugin-mobile/src/server/index.ts new file mode 100644 index 000000000..b68aea57f --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/src/server/index.ts @@ -0,0 +1 @@ +export { default } from './plugin'; diff --git a/packages/plugins/@hera/plugin-mobile/src/server/plugin.ts b/packages/plugins/@hera/plugin-mobile/src/server/plugin.ts new file mode 100644 index 000000000..b078ebcee --- /dev/null +++ b/packages/plugins/@hera/plugin-mobile/src/server/plugin.ts @@ -0,0 +1,19 @@ +import { Plugin } from '@nocobase/server'; + +export class PluginMobileServer extends Plugin { + async afterAdd() {} + + async beforeLoad() {} + + async load() {} + + async install() {} + + async afterEnable() {} + + async afterDisable() {} + + async remove() {} +} + +export default PluginMobileServer; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx index 9b15fc03b..039e65de2 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/DetailChecks.tsx @@ -1,16 +1,12 @@ import React from 'react'; import _ from 'lodash'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; import { useField, useFieldSchema, useForm } from '@formily/react'; import { FormPath } from '@formily/core'; import { useRequest } from '@nocobase/client'; import { Space, Spin, Tag } from 'antd'; -export const DetailChecks = () => { +export const DetailChecks: CustomFunctionComponent = () => { const form = useForm(); const fieldSchema = useFieldSchema(); const field = useField(); @@ -65,5 +61,5 @@ export const DetailChecks = () => { }; DetailChecks.displayName = 'DetailChecks'; -DetailChecks[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -DetailChecks[KEY_CUSTOM_COMPONENT_LABEL] = '明细检查 - 详情'; +DetailChecks.__componentType = CustomComponentType.CUSTOM_FIELD; +DetailChecks.__componentLabel = '明细检查 - 详情'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx index 7a4891415..86124561b 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx @@ -1,17 +1,13 @@ import React from 'react'; import _ from 'lodash'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; import { useField, useFieldSchema, useForm } from '@formily/react'; import { FormPath } from '@formily/core'; import { useRequest } from '@nocobase/client'; import { Descriptions, Spin } from 'antd'; import { formatQuantity } from '../../utils/currencyUtils'; -export const RecordDetails = () => { +export const RecordDetails: CustomFunctionComponent = () => { const form = useForm(); const fieldSchema = useFieldSchema(); const field = useField(); @@ -127,5 +123,5 @@ export const RecordDetails = () => { }; RecordDetails.displayName = 'RecordDetails'; -RecordDetails[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -RecordDetails[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 详情'; +RecordDetails.__componentType = CustomComponentType.CUSTOM_FIELD; +RecordDetails.__componentLabel = 'è®°å½•å• - 详情'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx index bf8796a5c..497a59e97 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx @@ -1,17 +1,13 @@ import { onFieldInit, onFieldValueChange } from '@formily/core'; import { useField, useForm, useFormEffects } from '@formily/react'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; import { useRequest } from '@nocobase/client'; import _ from 'lodash'; import React, { useEffect, useState } from 'react'; import { ConversionLogics, Movement, countCource } from '../../utils/constants'; import { formatQuantity } from '../../utils/currencyUtils'; -export const RecordFeeConvertedAmount = (props) => { +export const RecordFeeConvertedAmount: CustomFunctionComponent = () => { // 查数æ®ï¼ŒæŸ¥é‡Œé¢çš„费用关è”çš„æ•°æ® const contractPlans = useRequest({ resource: 'contract_plans', @@ -213,5 +209,5 @@ export const RecordFeeConvertedAmount = (props) => { }; RecordFeeConvertedAmount.displayName = 'RecordFeeConvertedAmount'; -RecordFeeConvertedAmount[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -RecordFeeConvertedAmount[KEY_CUSTOM_COMPONENT_LABEL] = '费用 - æ¢ç®—æ•°é‡'; +RecordFeeConvertedAmount.__componentType = CustomComponentType.CUSTOM_FIELD; +RecordFeeConvertedAmount.__componentLabel = '费用 - æ¢ç®—æ•°é‡'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx index 1c64420cf..46de89457 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx @@ -1,16 +1,12 @@ import { onFieldInit, onFieldValueChange } from '@formily/core'; import { useForm, useFormEffects } from '@formily/react'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; import { useRequest } from '@nocobase/client'; import _ from 'lodash'; import React, { useEffect, useState } from 'react'; import { ConversionLogics, Movement, countCource } from '../../utils/constants'; -export const ReadFeeConvertedAmount = (props) => { +export const ReadFeeConvertedAmount: CustomFunctionComponent = () => { // 查数æ®ï¼ŒæŸ¥é‡Œé¢çš„费用关è”çš„æ•°æ® const contractPlans = useRequest({ resource: 'contract_plans', @@ -66,46 +62,46 @@ export const ReadFeeConvertedAmount = (props) => { const feeData = form.values; const recordPlaid = contractPlans.data.data.find( (item) => - item.id == recordItems.record.contract_plan.id || - (item.contract_id == recordItems.record.contract_id && + item.id === recordItems.record.contract_plan.id || + (item.contract_id === recordItems.record.contract_id && item.start_date <= recordItems.record.date && item.end_date >= recordItems.record.date), ); const leaseRule = recordPlaid.lease_items.find((rule) => - rule.products.find((product) => product.id - 99999 == productData.category_id || product.id == productData.id), + rule.products.find((product) => product.id - 99999 === productData.category_id || product.id === productData.id), ); - const feeRule = leaseRule.fee_items.find((fee) => fee.fee_product_id == feeData.product?.id); + const feeRule = leaseRule.fee_items.find((fee) => fee.fee_product_id === feeData.product?.id); if (!feeRule) return; let calcValue = 0; - if (feeRule.count_source == countCource.artificial) { + if (feeRule.count_source === countCource.artificial) { // 手工录入 calcValue = feeData.count || 0; } else if ( - (feeRule.count_source == countCource.outProduct && form.values.movement == Movement.out) || - (feeRule.count_source == countCource.enterProduct && form.values.movement == Movement.in) || - feeRule.count_source == countCource.product + (feeRule.count_source === countCource.outProduct && form.values.movement === Movement.out) || + (feeRule.count_source === countCource.enterProduct && form.values.movement === Movement.in) || + feeRule.count_source === countCource.product ) { // 出库é‡, 入库é‡, å‡ºå…¥åº“é‡ calcValue = productData.count || 0; } - const category = productCategory.data.data.find((item) => item.id == productData.category_id); + const category = productCategory.data.data.find((item) => item.id === productData.category_id); if ( - feeRule.conversion_logic_id == ConversionLogics.Keep || - feeRule.conversion_logic_id == ConversionLogics.ActualWeight + feeRule.conversion_logic_id === ConversionLogics.Keep || + feeRule.conversion_logic_id === ConversionLogics.ActualWeight ) { // ä¸å¿…å¤„ç† - } else if (feeRule.conversion_logic_id == ConversionLogics.Product) { + } else if (feeRule.conversion_logic_id === ConversionLogics.Product) { calcValue = category.convertible ? calcValue * productData.ratio : calcValue; - } else if (feeRule.conversion_logic_id == ConversionLogics.ProductWeight) { + } else if (feeRule.conversion_logic_id === ConversionLogics.ProductWeight) { calcValue = calcValue * productData.weight; } else { const weightItem = feeRule.conversion_logic.weight_items.find((item) => { - item.product_id - 99999 == category.id || item.product_id == productData.id; + item.product_id - 99999 === category.id || item.product_id === productData.id; }); if (!weightItem) return; - if (weightItem.conversion_logic_id == ConversionLogics.Keep) { + if (weightItem.conversion_logic_id === ConversionLogics.Keep) { calcValue = calcValue * weightItem.weight; - } else if (weightItem.conversion_logic_id == ConversionLogics.Product) { + } else if (weightItem.conversion_logic_id === ConversionLogics.Product) { calcValue = category.convertible ? calcValue * productData.ratio * weightItem.weight : calcValue * weightItem.weight; @@ -130,5 +126,5 @@ export const ReadFeeConvertedAmount = (props) => { }; ReadFeeConvertedAmount.displayName = 'ReadFeeConvertedAmount'; -ReadFeeConvertedAmount[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -ReadFeeConvertedAmount[KEY_CUSTOM_COMPONENT_LABEL] = '费用 - æ¢ç®—æ•°é‡-预览模å¼'; +ReadFeeConvertedAmount.__componentType = CustomComponentType.CUSTOM_FIELD; +ReadFeeConvertedAmount.__componentLabel = '费用 - æ¢ç®—æ•°é‡-预览模å¼'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx index 5040d3657..61c360c57 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeScope.tsx @@ -2,11 +2,7 @@ import _ from 'lodash'; import { Spin } from 'antd'; import React from 'react'; import { observer, useField, useFieldSchema, useForm } from '@formily/react'; -import { - CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { useFeeItems } from '../hooks'; import { useDeepCompareEffect } from 'ahooks'; @@ -34,8 +30,8 @@ export const RecordFeeScope = observer(() => { }, [result, form, fieldPath]); return loading ? : <>; -}); +}) as CustomFC; RecordFeeScope.displayName = 'RecordFeeScope'; -RecordFeeScope[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD; -RecordFeeScope[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 费用范围'; +RecordFeeScope.__componentType = CustomComponentType.CUSTOM_ASSOCIATED_FIELD; +RecordFeeScope.__componentLabel = 'è®°å½•å• - 费用范围'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx index 8693bc983..c9eaa2d7c 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemCount.tsx @@ -1,9 +1,5 @@ import React from 'react'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { observer, useField, useForm } from '@formily/react'; import _ from 'lodash'; import { formatQuantity } from '../../utils/currencyUtils'; @@ -35,8 +31,8 @@ export const RecordItemCount = observer((props) => { return {formatQuantity(value, 2) + unit}; } return - ; -}); +}) as CustomFC; RecordItemCount.displayName = 'RecordItemCount'; -RecordItemCount[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -RecordItemCount[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 明细 - æ¢ç®—æ•°é‡'; +RecordItemCount.__componentType = CustomComponentType.CUSTOM_FIELD; +RecordItemCount.__componentLabel = 'è®°å½•å• - 明细 - æ¢ç®—æ•°é‡'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx index b7eadbbd8..92f045768 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx @@ -1,9 +1,5 @@ import React from 'react'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { observer, useField, useForm } from '@formily/react'; import _ from 'lodash'; import { ConversionLogics, RecordCategory } from '../../utils/constants'; @@ -117,11 +113,11 @@ export const RecordItemValuationQuantity = observer((props) => { ))} ); -}); +}) as CustomFC; RecordItemValuationQuantity.displayName = 'RecordItemValuationQuantity'; -RecordItemValuationQuantity[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -RecordItemValuationQuantity[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 明细 - 计价数é‡'; +RecordItemValuationQuantity.__componentType = CustomComponentType.CUSTOM_FIELD; +RecordItemValuationQuantity.__componentLabel = 'è®°å½•å• - 明细 - 计价数é‡'; const subtotal = (rule: any, itemData: any, productCategory: any, reqWeightRules: any) => { let count: number; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx index 49455b4cc..c61f43089 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemWeight.tsx @@ -1,9 +1,5 @@ import React from 'react'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { observer, useField, useForm } from '@formily/react'; import _ from 'lodash'; import { formatQuantity } from '../../utils/currencyUtils'; @@ -19,8 +15,8 @@ export const RecordItemWeight = observer((props) => { } } return - ; -}); +}) as CustomFC; RecordItemWeight.displayName = 'RecordItemWeight'; -RecordItemWeight[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -RecordItemWeight[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 明细 - é‡é‡'; +RecordItemWeight.__componentType = CustomComponentType.CUSTOM_FIELD; +RecordItemWeight.__componentLabel = 'è®°å½•å• - 明细 - é‡é‡'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx index c2b1e81c1..a98678600 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordProductScope.tsx @@ -3,11 +3,7 @@ import { Spin } from 'antd'; import React from 'react'; import { observer, useForm } from '@formily/react'; import { RecordCategory } from '../../utils/constants'; -import { - CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFC } from '@hera/plugin-core/client'; import { useCachedRequest, useLeaseItems } from '../hooks'; import { useDeepCompareEffect } from 'ahooks'; @@ -89,8 +85,8 @@ export const RecordProductScope = observer(() => { }); }, [result, form]); return loading || leaseItemsLoading || inLeaseItemsLoading || outLeaseItemsLoading ? : <>; -}); +}) as CustomFC; RecordProductScope.displayName = 'RecordProductScope'; -RecordProductScope[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_ASSOCIATED_FIELD; -RecordProductScope[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 产å“范围'; +RecordProductScope.__componentType = CustomComponentType.CUSTOM_ASSOCIATED_FIELD; +RecordProductScope.__componentLabel = 'è®°å½•å• - 产å“范围'; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx index c40e17c55..77edd3989 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordSummary.tsx @@ -1,18 +1,14 @@ import { observer, useForm } from '@formily/react'; import { ConversionLogics, RecordCategory } from '../../utils/constants'; import { Descriptions, Tabs } from 'antd'; -import { - CUSTOM_COMPONENT_TYPE_FORM_ITEM, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFC, CustomFunctionComponent } from '@hera/plugin-core/client'; import React from 'react'; import _ from 'lodash'; import { formatCurrency, formatQuantity } from '../../utils/currencyUtils'; import { useCachedRequest, useLeaseItems } from '../hooks'; import { RecordItems } from '../../interfaces/records'; const cache = []; -export const RecordSummary = observer((props): any => { +export const RecordSummary = observer((): any => { cache.length = 0; const form = useForm(); const contractPlanId = form.values.contract_plan?.id; @@ -171,11 +167,11 @@ export const RecordSummary = observer((props): any => { ) ); -}); +}) as CustomFC; RecordSummary.displayName = 'RecordSummary'; -RecordSummary[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FORM_ITEM; -RecordSummary[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - å°ç»“'; +RecordSummary.__componentType = CustomComponentType.CUSTOM_FORM_ITEM; +RecordSummary.__componentLabel = 'è®°å½•å• - å°ç»“'; /** 计算å°ç»“ * @param event RecordItem 订å•é¡¹ï¼Œrecord_item diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx index 15e4e00f2..2b691ed03 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordTotalPrice.tsx @@ -5,13 +5,9 @@ import { ConversionLogics } from '../../utils/constants'; import { useRequest } from '@nocobase/client'; import _ from 'lodash'; import { formatCurrency } from '../../utils/currencyUtils'; -import { - CUSTOM_COMPONENT_TYPE_FIELD, - KEY_CUSTOM_COMPONENT_LABEL, - KEY_CUSTOM_COMPONENT_TYPE, -} from '@hera/plugin-core/client'; +import { CustomComponentType, CustomFunctionComponent } from '@hera/plugin-core/client'; -export const RecordTotalPrice = (props) => { +export const RecordTotalPrice: CustomFunctionComponent = () => { const form = useForm(); const field = useField(); const [all_price, setAllPrice] = useState(0); @@ -135,5 +131,5 @@ export const RecordTotalPrice = (props) => { }; RecordTotalPrice.displayName = 'RecordTotalPrice'; -RecordTotalPrice[KEY_CUSTOM_COMPONENT_TYPE] = CUSTOM_COMPONENT_TYPE_FIELD; -RecordTotalPrice[KEY_CUSTOM_COMPONENT_LABEL] = 'è®°å½•å• - 报价 - 总价'; +RecordTotalPrice.__componentLabel = 'è®°å½•å• - 报价 - 总价'; +RecordTotalPrice.__componentType = CustomComponentType.CUSTOM_FIELD; diff --git a/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts b/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts index 6b8ff1126..9a0c06ccf 100644 --- a/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts +++ b/packages/plugins/@hera/plugin-rental/src/server/services/record-service.ts @@ -1,7 +1,6 @@ import Database, { CreateOptions, MagicAttributeModel, Transaction } from '@nocobase/database'; -import { ConversionLogics, RecordCategory, settlementStatus } from '@hera/plugin-core'; import { Db, Service } from '@nocobase/utils'; -import { Movement, RecordTypes } from '../../utils/constants'; +import { ConversionLogics, Movement, RecordCategory, RecordTypes, settlementStatus } from '../../utils/constants'; @Service() export class RecordService {