Skip to content

Commit

Permalink
Support importing drawing along with attachments
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Khismatullina <[email protected]>
  • Loading branch information
akhismat committed Dec 10, 2024
1 parent 4391483 commit 022522e
Show file tree
Hide file tree
Showing 9 changed files with 292 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@
"name": "Debug Huly import",
"type": "node",
"request": "launch",
"args": ["src/__start.ts", "import", "/home/anna/xored/huly/platform/dev/import-tool/docs/huly/example-workspace", "-u", "user1", "-pw", "1234", "-ws", "ws12"],
"args": ["src/__start.ts", "import", "/home/anna/huly/platform/dev/import-tool/docs/huly/example-workspace", "-u", "user1", "-pw", "1234", "-ws", "ws1"],
"env": {
"FRONT_URL": "http://localhost:8087"
},
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[json]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand Down
93 changes: 81 additions & 12 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ comments:
- author: [email protected]
text: |
Perfect, don't forget to update [documentation](../Documentation/User%20Guide/Installation.md) when you're done.
attachments:
- ./files/screenshot.png
---
**Initial project infrastructure setup.**

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"class": "drawing:class:Drawing",
"content": [
{
"lineWidth": 4,
"erasing": false,
"penColor": "#0000ff",
"points": [
{ "x": 213, "y": 181.5 },
{ "x": 203, "y": 181.5 },
{ "x": 193, "y": 181.5 },
{ "x": 168, "y": 181.5 },
{ "x": 136, "y": 181.5 },
{ "x": 108, "y": 181.5 },
{ "x": 84, "y": 188.5 },
{ "x": 59, "y": 196.5 },
{ "x": 42, "y": 205.5 },
{ "x": 35, "y": 220.5 },
{ "x": 32, "y": 227.5 },
{ "x": 31, "y": 233.5 },
{ "x": 31, "y": 241.5 },
{ "x": 31, "y": 248.5 },
{ "x": 34, "y": 257.5 },
{ "x": 41, "y": 269.5 },
{ "x": 53, "y": 280.5 },
{ "x": 69, "y": 290.5 },
{ "x": 84, "y": 297.5 },
{ "x": 112, "y": 305.5 },
{ "x": 190, "y": 319.5 },
{ "x": 250, "y": 323.5 },
{ "x": 314, "y": 323.5 },
{ "x": 372, "y": 317.5 },
{ "x": 410, "y": 303.5 },
{ "x": 424, "y": 292.5 },
{ "x": 427, "y": 279.5 },
{ "x": 427, "y": 265.5 },
{ "x": 425, "y": 250.5 },
{ "x": 413, "y": 225.5 },
{ "x": 407, "y": 214.5 },
{ "x": 398, "y": 203.5 },
{ "x": 380, "y": 189.5 },
{ "x": 361, "y": 181.5 },
{ "x": 317, "y": 168.5 },
{ "x": 261, "y": 154.5 },
{ "x": 207, "y": 148.5 },
{ "x": 168, "y": 148.5 },
{ "x": 153, "y": 148.5 },
{ "x": 147, "y": 151.5 },
{ "x": 143, "y": 157.5 },
{ "x": 142, "y": 165.5 },
{ "x": 142, "y": 165.5 }
]
}
]
}
3 changes: 2 additions & 1 deletion packages/importer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"commander": "^8.1.0",
"mime-types": "~2.1.34",
"csvtojson": "^2.0.10",
"js-yaml": "^4.1.0"
"js-yaml": "^4.1.0",
"image-size": "^1.1.1"
},
"repository": "https://github.com/hcengineering/platform",
"publishConfig": {
Expand Down
Loading

0 comments on commit 022522e

Please sign in to comment.