Skip to content

Commit

Permalink
Ccf 2024/icon (opentiny#899)
Browse files Browse the repository at this point in the history
* feat: 新增物料-图标模块

* feat: 自定义图标方案

* feat: 自定义图标方案

---------

Co-authored-by: YPF <ypf@acewill.cn>
  • Loading branch information
cooooooooooode and ai-workspace-gpt authored Nov 10, 2024
1 parent d90f0f2 commit 9e4eb00
Show file tree
Hide file tree
Showing 44 changed files with 5,883 additions and 78 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions mockServer/src/database/blockGroups.db
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{"id":"6tl2nTKzF95aJ6im","app":{"id":918,"name":"portal-app","app_website":null,"platform":{"id":897,"name":"portal-platform"},"obs_url":"","created_by":null,"updated_by":null,"created_at":"2022-06-08T07:19:01.000Z","updated_at":"2023-09-04T08:55:40.000Z","state":null,"published":false,"createdBy":86,"updatedBy":564,"tenant":1,"home_page":"NTJ4MjvqoVj8OVsc","css":null,"config":{},"git_group":"","project_name":"","constants":null,"data_handler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"},"description":"demo应用","latest":22,"platform_history":null,"editor_url":"","branch":"develop","visit_url":null,"is_demo":null,"image_url":"","is_default":true,"template_type":null,"set_template_time":null,"set_template_by":null,"set_default_by":169,"framework":"Vue","global_state":[],"default_lang":null,"extend_config":{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"},"assets_url":"","data_hash":"ae128e37f6bc378f1b9c21d75bd05551","can_associate":true,"data_source_global":{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"}}},"name":"123","desc":"","blocks":[],"_id":"6tl2nTKzF95aJ6im"}
{"id":"b57MCCORYPGjgL23","app":{"id":918,"name":"portal-app","app_website":null,"platform":{"id":897,"name":"portal-platform"},"obs_url":"","created_by":null,"updated_by":null,"created_at":"2022-06-08T07:19:01.000Z","updated_at":"2023-09-04T08:55:40.000Z","state":null,"published":false,"createdBy":86,"updatedBy":564,"tenant":1,"home_page":"NTJ4MjvqoVj8OVsc","css":null,"config":{},"git_group":"","project_name":"","constants":null,"data_handler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"},"description":"demo应用","latest":22,"platform_history":null,"editor_url":"","branch":"develop","visit_url":null,"is_demo":null,"image_url":"","is_default":true,"template_type":null,"set_template_time":null,"set_template_by":null,"set_default_by":169,"framework":"Vue","global_state":[],"default_lang":null,"extend_config":{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"},"assets_url":"","data_hash":"ae128e37f6bc378f1b9c21d75bd05551","can_associate":true,"data_source_global":{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\n return res;\n}"}}},"name":"我的区块","desc":"","blocks":["ALvDb0JD8atzd3nA"],"_id":"b57MCCORYPGjgL23"}
{"$$indexCreated":{"fieldName":"name","unique":true,"sparse":false}}
{"$$indexCreated":{"fieldName":"name","unique":true}}
4 changes: 4 additions & 0 deletions mockServer/src/database/icons.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"prefix":"test","name":"test","lastModified":1722795342,"aliases":{},"width":8,"height":8,"icons":{"bug":{"body":"<path fill=\"currentColor\" d=\"M3.5 0C2.31 0 1.52 1.69 2.31 2.5c-.09.07-.2.14-.28.22L.72 2.06A.5.5 0 0 0 .38 2a.5.5 0 0 0-.09.94l1.16.56c-.09.16-.19.33-.25.5H.51a.5.5 0 0 0-.09 0a.5.5 0 1 0 .09 1h.5q0 .345.06.66l-.78.41a.5.5 0 1 0 .44.88l.66-.34c.25.46.62.85 1.03 1.09c.35-.19.59-.44.59-.72V5.54a.5.5 0 0 0 0-.09v-.81a.5.5 0 0 0 0-.22c.05-.23.26-.41.5-.41c.28 0 .5.22.5.5v.88a.5.5 0 0 0 0 .09v.06a.5.5 0 0 0 0 .09v1.34c0 .27.24.53.59.72c.41-.25.79-.63 1.03-1.09l.66.34a.5.5 0 1 0 .44-.88l-.78-.41q.06-.315.06-.66h.5a.5.5 0 1 0 0-1h-.69c-.06-.17-.16-.34-.25-.5l1.16-.56a.5.5 0 0 0-.31-.94a.5.5 0 0 0-.13.06l-1.31.66c-.09-.08-.19-.15-.28-.22c.78-.83 0-2.5-1.19-2.5z\"/>"},"bullhorn":{"body":"<path fill=\"currentColor\" d=\"M6 0v6c.03.01.07 0 .09 0h.81c.05 0 .09-.04.09-.09V.1c0-.06-.04-.09-.09-.09h-.91zM5 .5L2.09 1.97c-.05.02-.13.03-.19.03H.09C.03 2 0 2.04 0 2.09V3.9c0 .06.04.09.09.09H1l1.03 2.72c.11.25.44.36.69.25s.36-.44.25-.69l-.75-1.78c.03-.14.13-.22.28-.22v-.03L5 5.49v-5z\"/>"},"chat":{"body":"<path fill=\"currentColor\" d=\"M0 0v5l1-1h1V1h3V0zm3 2v4h4l1 1V2z\"/>"},"eject":{"body":"<path fill=\"currentColor\" d=\"M4 0L0 5h8zM0 6v2h8V6z\"/>"},"location":{"body":"<path fill=\"currentColor\" d=\"M8 0L0 4l3 1l1 3z\"/>"},"media-play":{"body":"<path fill=\"currentColor\" d=\"M1 1v6l6-3z\"/>"}},"occupier":{"id":86,"username":"开发者","email":"developer@lowcode.com","resetPasswordToken":"developer","confirmationToken":"dfb2c162-351f-4f44-ad5f-8998","is_admin":true},"_id":"RmX521SR31Xbek8P"}
{"prefix":"test2","name":"test2","lastModified":1729441119,"aliases":{},"width":24,"height":24,"icons":{"architecture":{"body":"<path fill=\"currentColor\" d=\"m6.75 21l-.25-2.2l2.85-7.85q.375.35.813.588t.937.362l-2.75 7.55zm10.5 0l-1.6-1.55l-2.75-7.55q.5-.125.938-.363t.812-.587l2.85 7.85zM12 11q-1.25 0-2.125-.875T9 8q0-.975.563-1.737T11 5.2V3h2v2.2q.875.3 1.438 1.063T15 8q0 1.25-.875 2.125T12 11m0-2q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9\"/>"},"architecture-rounded":{"body":"<path fill=\"currentColor\" d=\"m11.1 11.9l-2.7 7.45q-.025.075-.125.175l-.8.775q-.225.225-.512.113T6.625 20l-.1-1.075l.025-.225l2.8-7.75q.375.35.813.588t.937.362m.9-.9q-1.25 0-2.125-.875T9 8q0-.975.563-1.737T11 5.2V4q0-.425.288-.712T12 3t.713.288T13 4v1.2q.875.3 1.438 1.063T15 8q0 1.25-.875 2.125T12 11m0-2q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m.9 2.9q.5-.125.938-.363t.812-.587l2.8 7.75q.025.075.025.225l-.1 1.075q-.05.3-.338.413t-.512-.113l-.8-.775l-.125-.175z\"/>"},"arrow-cool-down":{"body":"<path fill=\"currentColor\" d=\"m12 22l-7-7l1.4-1.425l4.6 4.6V11h2v7.175l4.6-4.575L19 15zM11 9V6h2v3zm0-5V2h2v2z\"/>"},"arrow-cool-down-rounded":{"body":"<path fill=\"currentColor\" d=\"M12 21.9q-.2 0-.375-.075T11.3 21.6l-5.6-5.575q-.275-.275-.275-.7T5.7 14.6q.3-.3.713-.3t.712.3L11 18.5v-6.175q0-.425.288-.712t.712-.288t.713.288t.287.712V18.5l3.9-3.9q.275-.275.688-.275t.712.3q.275.275.275.7t-.275.7L12.7 21.6q-.15.15-.325.225T12 21.9m0-12.575q-.425 0-.712-.287T11 8.325v-1q0-.425.288-.712T12 6.325t.713.288t.287.712v1q0 .425-.288.713T12 9.325m0-5q-.425 0-.712-.287T11 3.325t.288-.712t.712-.288t.713.288t.287.712t-.288.713t-.712.287\"/>"},"arrow-warm-up":{"body":"<path fill=\"currentColor\" d=\"M11 5.825L6.4 10.4L5 9l7-7l7 7l-1.4 1.425l-4.6-4.6V13h-2zM11 18v-3h2v3zm0 4v-2h2v2z\"/>"},"arrow-warm-up-rounded":{"body":"<path fill=\"currentColor\" d=\"M12 13q-.425 0-.712-.288T11 12V5.825L7.1 9.7q-.275.275-.687.288T5.7 9.7q-.275-.275-.275-.7t.275-.7l5.6-5.6q.15-.15.325-.212T12 2.425t.375.063t.325.212l5.6 5.6q.275.275.275.688T18.3 9.7q-.3.3-.712.3t-.713-.3L13 5.825V12q0 .425-.288.713T12 13m0 5q-.425 0-.712-.288T11 17v-1q0-.425.288-.712T12 15t.713.288T13 16v1q0 .425-.288.713T12 18m0 4q-.425 0-.712-.288T11 21t.288-.712T12 20t.713.288T13 21t-.288.713T12 22\"/>"},"avg-pace":{"body":"<path fill=\"currentColor\" d=\"M15.25 5q-.525 0-.888-.363T14 3.75t.363-.888t.887-.362t.888.363t.362.887t-.363.888T15.25 5m0 16.5q-.525 0-.888-.363T14 20.25t.363-.888t.887-.362t.888.363t.362.887t-.363.888t-.887.362m4-13q-.525 0-.888-.363T18 7.25t.363-.888T19.25 6t.888.363t.362.887t-.363.888t-.887.362m0 9.5q-.525 0-.888-.363T18 16.75t.363-.888t.887-.362t.888.363t.362.887t-.363.888t-.887.362m1.5-4.75q-.525 0-.888-.363T19.5 12t.363-.888t.887-.362t.888.363T22 12t-.363.888t-.887.362M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2v2Q8.65 4 6.325 6.325T4 12t2.325 5.675T12 20zm0-8q-.825 0-1.412-.587T10 12q0-.125.013-.262t.062-.263L8 9.4L9.4 8l2.075 2.075q.1-.025.525-.075q.825 0 1.413.588T14 12t-.587 1.413T12 14\"/>"},"avg-pace-rounded":{"body":"<path fill=\"currentColor\" d=\"M15.25 5q-.525 0-.888-.363T14 3.75t.363-.888t.887-.362t.888.363t.362.887t-.363.888T15.25 5m0 16.5q-.525 0-.888-.363T14 20.25t.363-.888t.887-.362t.888.363t.362.887t-.363.888t-.887.362m4-13q-.525 0-.888-.363T18 7.25t.363-.888T19.25 6t.888.363t.362.887t-.363.888t-.887.362m0 9.5q-.525 0-.888-.363T18 16.75t.363-.888t.887-.362t.888.363t.362.887t-.363.888t-.887.362m1.5-4.75q-.525 0-.888-.363T19.5 12t.363-.888t.887-.362t.888.363T22 12t-.363.888t-.887.362M2 12q0-3.925 2.613-6.75t6.412-3.2q.4-.05.688.238T12 3q0 .4-.262.7t-.663.35q-3.025.35-5.05 2.6T4 12q0 3.125 2.025 5.363t5.05 2.587q.4.05.663.35T12 21q0 .425-.288.713t-.687.237Q7.2 21.575 4.6 18.75T2 12m10 2q-.825 0-1.412-.587T10 12q0-.125.013-.262t.062-.263L8.7 10.1q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l1.375 1.375q.1-.025.525-.075q.825 0 1.413.588T14 12t-.587 1.413T12 14\"/>"},"avg-time":{"body":"<path fill=\"currentColor\" d=\"M9 3V1h6v2zm1 11.75l-1.1-2.2q-.125-.275-.375-.413T8 12H3.05q.375-3.375 2.925-5.687T12 4q1.55 0 2.975.5t2.675 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.8 1.05 1.275 2.213T20.95 12h-4.325L14.9 8.55q-.275-.575-.9-.575t-.9.575zM12 22q-3.475 0-6.025-2.312T3.05 14h4.325L9.1 17.45q.275.575.9.575t.9-.575l3.1-6.2l1.1 2.2q.125.275.375.413T16 14h4.95q-.375 3.375-2.925 5.687T12 22\"/>"},"avg-time-outline":{"body":"<path fill=\"currentColor\" d=\"M5.075 12H8q.275 0 .525.138t.375.412l1.1 2.2l3.1-6.2q.275-.575.9-.575t.9.575L16.625 12h2.3Q18.55 9.45 16.6 7.725T12 6T7.4 7.725T5.075 12M12 20q2.65 0 4.6-1.725T18.925 14H16q-.275 0-.525-.137t-.375-.413l-1.1-2.2l-3.1 6.2q-.275.575-.9.575t-.9-.575L7.375 14h-2.3q.375 2.55 2.325 4.275T12 20m0 2q-1.85 0-3.487-.712T5.65 19.35t-1.937-2.863T3 13h2q0 2.9 2.05 4.95T12 20t4.95-2.05T19 13h2q0 1.85-.712 3.488T18.35 19.35t-2.863 1.938T12 22m-9-9q0-1.85.713-3.488T5.65 6.65t2.863-1.937T12 4q1.55 0 2.975.5t2.675 1.45l1.4-1.4l1.4 1.4l-1.4 1.4Q20 8.6 20.5 10.025T21 13h-2q0-2.9-2.05-4.95T12 6T7.05 8.05T5 13zM9 3V1h6v2zm3 17q-2.9 0-4.95-2.05T5 13t2.05-4.95T12 6t4.95 2.05T19 13t-2.05 4.95T12 20m0-7\"/>"},"avg-time-outline-rounded":{"body":"<path fill=\"currentColor\" d=\"M5.075 12H8q.275 0 .525.138t.375.412l1.1 2.2l3.1-6.2q.275-.575.9-.575t.9.575L16.625 12h2.3Q18.55 9.45 16.6 7.725T12 6T7.4 7.725T5.075 12M12 20q2.65 0 4.6-1.725T18.925 14H16q-.275 0-.525-.137t-.375-.413l-1.1-2.2l-3.1 6.2q-.275.575-.9.575t-.9-.575L7.375 14h-2.3q.375 2.55 2.325 4.275T12 20m0 2q-1.85 0-3.487-.712T5.65 19.35t-1.937-2.863T3 13h2q0 2.9 2.05 4.95T12 20t4.95-2.05T19 13h2q0 1.85-.712 3.488T18.35 19.35t-2.863 1.938T12 22m-9-9q0-1.85.713-3.488T5.65 6.65t2.863-1.937T12 4q1.55 0 2.975.5t2.675 1.45l.7-.7q.275-.275.7-.275t.7.275t.275.7t-.275.7l-.7.7Q20 8.6 20.5 10.025T21 13h-2q0-2.9-2.05-4.95T12 6T7.05 8.05T5 13zm7-10q-.425 0-.712-.288T9 2t.288-.712T10 1h4q.425 0 .713.288T15 2t-.288.713T14 3zm2 17q-2.9 0-4.95-2.05T5 13t2.05-4.95T12 6t4.95 2.05T19 13t-2.05 4.95T12 20m0-7\"/>"},"avg-time-outline-sharp":{"body":"<path fill=\"currentColor\" d=\"M12 22q-1.85 0-3.488-.712T5.65 19.35t-1.937-2.863T3 13h2q0 2.9 2.05 4.95T12 20t4.95-2.05T19 13h2q0 1.85-.712 3.488T18.35 19.35t-2.863 1.938T12 22m-9-9q0-1.85.713-3.488T5.65 6.65t2.863-1.937T12 4q1.55 0 2.975.5t2.675 1.45l1.4-1.4l1.4 1.4l-1.4 1.4Q20 8.6 20.5 10.025T21 13h-2q0-2.9-2.05-4.95T12 6T7.05 8.05T5 13zM9 3V1h6v2zm3 3Q9.35 6 7.4 7.725T5.075 12h3.55l1.3 2.4L14 7.25L16.6 12h2.325Q18.55 9.45 16.6 7.725T12 6m0 14q2.65 0 4.6-1.725T18.925 14h-3.55l-1.3-2.4L10 18.75L7.4 14H5.075q.375 2.55 2.325 4.275T12 20m0 0q-2.9 0-4.95-2.05T5 13t2.05-4.95T12 6t4.95 2.05T19 13t-2.05 4.95T12 20m0-7\"/>"},"avg-time-rounded":{"body":"<path fill=\"currentColor\" d=\"M10 3q-.425 0-.712-.288T9 2t.288-.712T10 1h4q.425 0 .713.288T15 2t-.288.713T14 3zm0 11.75l-1.1-2.2q-.125-.275-.375-.413T8 12H3.05q.375-3.375 2.925-5.687T12 4q1.55 0 2.975.5t2.675 1.45l.7-.7q.275-.275.7-.288t.7.288q.275.275.275.7t-.275.7l-.7.7q.8 1.05 1.275 2.213T20.95 12h-4.325L14.9 8.55q-.275-.575-.9-.575t-.9.575zM12 22q-3.475 0-6.025-2.312T3.05 14h4.325L9.1 17.45q.275.575.9.575t.9-.575l3.1-6.2l1.1 2.2q.125.275.375.413T16 14h4.95q-.375 3.375-2.912 5.687T12 22\"/>"},"avg-time-sharp":{"body":"<path fill=\"currentColor\" d=\"M9 3V1h6v2zm.925 11.4l-1.3-2.4H3.05q.375-3.375 2.925-5.687T12 4q1.55 0 2.975.5t2.675 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.8 1.05 1.275 2.213T20.95 12H16.6L14 7.25zM12 22q-3.475 0-6.025-2.312T3.05 14H7.4l2.6 4.75l4.075-7.15l1.3 2.4h5.575q-.375 3.375-2.912 5.688T12 22\"/>"},"azm":{"body":"<path fill=\"currentColor\" d=\"m16 17l4-4V4h-9L7 8h9zm-6 6l4-4v-9H5l-4 4h9z\"/>"},"azm-outline":{"body":"<path fill=\"currentColor\" d=\"M10 23v-9H1L11 4h9v9zm6-8.825l2-2V6h-6.175l-2 2H16zm-4 4l2-2V10H7.825l-2 2H12z\"/>"},"azm-outline-rounded":{"body":"<path fill=\"currentColor\" d=\"M11.7 21.3q-.475.475-1.087.213T10 20.575V14H3.425q-.675 0-.937-.612T2.7 12.3l7.725-7.725q.275-.275.638-.425t.762-.15H18q.825 0 1.413.588T20 6v6.175q0 .4-.15.763t-.425.637zM16 9v5.175l2-2V6h-6.175l-2 2H15q.425 0 .713.288T16 9m-4 4v5.175l2-2V10H7.825l-2 2H11q.425 0 .713.288T12 13\"/>"},"azm-rounded":{"body":"<path fill=\"currentColor\" d=\"M16 9v6.8q0 .35.3.475t.55-.125l2.575-2.575q.275-.275.425-.637t.15-.763V6q0-.825-.587-1.412T18 4h-6.175q-.4 0-.762.15t-.638.425L7.85 7.15q-.25.25-.125.55T8.2 8H15q.425 0 .713.288T16 9m-6 6v6.8q0 .35.3.475t.55-.125l2.575-2.575q.275-.275.425-.637t.15-.763V12q0-.825-.587-1.412T12 10H5.825q-.4 0-.763.15t-.637.425L1.85 13.15q-.25.25-.125.55t.475.3H9q.425 0 .713.288T10 15\"/>"},"backpack":{"body":"<path fill=\"currentColor\" d=\"M6 22q-.825 0-1.412-.587T4 20V8q0-1.4.85-2.45T7 4.15V2h3v2h4V2h3v2.15q1.3.35 2.15 1.4T20 8v12q0 .825-.587 1.413T18 22zm8.5-6h2v-4h-9v2h7z\"/>"},"backpack-outline":{"body":"<path fill=\"currentColor\" d=\"M6 22q-.825 0-1.412-.587T4 20V8q0-1.4.85-2.45T7 4.15V2h3v2h4V2h3v2.15q1.3.35 2.15 1.4T20 8v12q0 .825-.587 1.413T18 22zm0-2h12V8q0-.825-.587-1.412T16 6H8q-.825 0-1.412.588T6 8zm8.5-4h2v-4h-9v2h7zM12 13\"/>"},"backpack-outline-rounded":{"body":"<path fill=\"currentColor\" d=\"M6 22q-.825 0-1.412-.587T4 20V8q0-1.4.85-2.45T7 4.15V3q0-.425.288-.713T8 2h1q.425 0 .713.288T10 3v1h4V3q0-.425.288-.712T15 2h1q.425 0 .713.288T17 3v1.15q1.3.35 2.15 1.4T20 8v12q0 .825-.587 1.413T18 22zm0-2h12V8q0-.825-.587-1.412T16 6H8q-.825 0-1.412.588T6 8zm8.5-6v1q0 .425.288.713T15.5 16t.713-.288T16.5 15v-2q0-.425-.288-.712T15.5 12h-7q-.425 0-.712.288T7.5 13t.288.713T8.5 14zM12 13\"/>"},"backpack-outline-sharp":{"body":"<path fill=\"currentColor\" d=\"M4 22V8q0-1.4.85-2.45T7 4.15V2h3v2h4V2h3v2.15q1.3.35 2.15 1.4T20 8v14zm2-2h12V8q0-.825-.587-1.412T16 6H8q-.825 0-1.412.588T6 8zm8.5-4h2v-4h-9v2h7zM12 13\"/>"},"backpack-rounded":{"body":"<path fill=\"currentColor\" d=\"M6 22q-.825 0-1.412-.587T4 20V8q0-1.4.85-2.45T7 4.15V3q0-.425.288-.713T8 2h1q.425 0 .713.288T10 3v1h4V3q0-.425.288-.712T15 2h1q.425 0 .713.288T17 3v1.15q1.3.35 2.15 1.4T20 8v12q0 .825-.587 1.413T18 22zm8.5-8v1q0 .425.288.713T15.5 16t.713-.288T16.5 15v-2q0-.425-.288-.712T15.5 12h-7q-.425 0-.712.288T7.5 13t.288.713T8.5 14z\"/>"},"backpack-sharp":{"body":"<path fill=\"currentColor\" d=\"M4 22V8q0-1.4.85-2.45T7 4.15V2h3v2h4V2h3v2.15q1.3.35 2.15 1.4T20 8v14zm10.5-6h2v-4h-9v2h7z\"/>"},"bath-outdoor":{"body":"<path fill=\"currentColor\" d=\"M6 11.275V13.6q-.5.35-.75.713T5 15q0 .15.038.3t.137.3L6 16h2.25l.15.425L9.5 16h4l.725.95l2.675-.4L18 15h1q0-.325-.25-.687T18 13.6v-2.325q1.45.725 2.225 1.688T21 15l1 1.5l-1 3h-3.1l.1.5l-2.5 1h-7l-.25-.65L5.5 21L2 18.5V16l1.05-.525q-.025-.125-.038-.238T3 15q0-1.075.775-2.038T6 11.276M6.75 13q.125-.375.188-.713T7 11.55q0-.75-.375-1.3t-.85-1.175t-.85-1.388t-.375-1.962q0-.375.038-.8T4.725 4H6.75q-.125.575-.162.95t-.038.7q0 .925.388 1.537T7.775 8.4t.838 1.325T9 11.6q0 .35-.05.7t-.15.7zm4 0q.125-.375.188-.713T11 11.55q0-.75-.375-1.3t-.85-1.175t-.85-1.388t-.375-1.962q0-.375.038-.8T8.725 4h2.025q-.125.575-.175.95t-.05.7q0 .925.387 1.537T11.75 8.4t.838 1.325t.387 1.875q0 .35-.038.7t-.137.7zm4 0q.125-.375.188-.713T15 11.55q0-.75-.375-1.3t-.85-1.175t-.85-1.388t-.375-1.962q0-.375.038-.8T12.725 4h2.025q-.125.575-.175.95t-.05.7q0 .925.387 1.537T15.75 8.4t.838 1.325t.387 1.875q0 .35-.038.7t-.137.7z\"/>"},"bath-outdoor-outline":{"body":"<path fill=\"currentColor\" d=\"M6 11.275V13.6q-.5.35-.75.713T5 15q0 .15.038.3t.137.3L6 16h2.25l.15.425L9.5 16h4l.725.95l2.675-.4L18 15h1q0-.325-.25-.687T18 13.6v-2.325q1.45.725 2.225 1.688T21 15l1 1.5l-1 3h-3.1l.1.5l-2.5 1h-7l-.25-.65L5.5 21L2 18.5V16l1.05-.525q-.025-.125-.038-.238T3 15q0-1.075.775-2.038T6 11.276m-1.95 6.8l.925-.925L4 16.675l-.5.25v.775zm1.825 1.3l1.875-.45L7.2 17.5h-.45l-1.425 1.425zm3.675.125h3.025l.675-1.35l-.5-.65H9.8l-.85.35zm4.75 0h.9l1.05-.425l-.175-.875l-1.125.175zm3.45-1.5h2.175l.425-1.275l-.15-.225h-1.425zm-11-5q.125-.375.188-.712T7 11.55q0-.75-.375-1.3t-.85-1.175t-.85-1.388t-.375-1.962q0-.375.038-.8T4.725 4H6.75q-.125.575-.162.95t-.038.7q0 .925.388 1.537T7.775 8.4t.838 1.325T9 11.6q0 .35-.05.7t-.15.7zm4 0q.125-.375.188-.712T11 11.55q0-.75-.375-1.3t-.85-1.175t-.85-1.388t-.375-1.962q0-.375.038-.8T8.725 4h2.025q-.125.575-.175.95t-.05.7q0 .925.387 1.537T11.75 8.4t.838 1.325t.387 1.875q0 .35-.038.7t-.137.7zm4 0q.125-.375.188-.712T15 11.55q0-.75-.375-1.3t-.85-1.175t-.85-1.388t-.375-1.962q0-.375.038-.8T12.725 4h2.025q-.125.575-.175.95t-.05.7q0 .925.387 1.537T15.75 8.4t.838 1.325t.387 1.875q0 .35-.038.7t-.137.7z\"/>"}},"occupier":{"id":86,"username":"开发者","email":"developer@lowcode.com","resetPasswordToken":"developer","confirmationToken":"dfb2c162-351f-4f44-ad5f-8998","is_admin":true},"_id":"rYcNOtwD6tur9sxw"}
{"$$indexCreated":{"fieldName":"prefix","unique":true,"sparse":false}}
{"$$indexCreated":{"fieldName":"prefix","unique":true}}
2 changes: 1 addition & 1 deletion mockServer/src/database/pages.db

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions mockServer/src/routes/main-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,26 @@ router.post('block-history/create', async (ctx) => {
ctx.body = await mockService.blockHistoryService.create(ctx.request.body)
})

/* 图标库 */

router.post('/app-center/api/icons/list', async (ctx) => {
ctx.body = await mockService.iconService.collectionList(ctx.request.body)
})
router.post('/app-center/api/icons/create', async (ctx) => {
ctx.body = await mockService.iconService.collectionCreate(ctx.request.body)
})
router.post('/app-center/api/icons/import', async (ctx) => {
ctx.body = await mockService.iconService.collectionImport(ctx.request.body)
})
router.post('/app-center/api/icons/remove', async (ctx) => {
ctx.body = await mockService.iconService.collectionRemove(ctx.request.body)
})
router.post('/app-center/api/icon/import', async (ctx) => {
ctx.body = await mockService.iconService.iconImport(ctx.request.body)
})
router.post('/app-center/api/icon/remove', async (ctx) => {
ctx.body = await mockService.iconService.iconRemove(ctx.request.body)
})


export default router
Loading

0 comments on commit 9e4eb00

Please sign in to comment.