-
Notifications
You must be signed in to change notification settings - Fork 6
Refactor frontend to use Crux architecture #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 36 commits
9dcbfe4
30b0d71
104cd2a
b461c46
d17f6d4
4211618
b12ba17
01683a1
cc5ec7c
a71e45e
1915d12
d9d3faf
2367511
3d7b09b
88dfcb4
5a5ab63
9ed96fe
08fe744
beebc7a
173bec4
290b144
0075cae
c37bc70
5f011df
77553d7
71f1745
38db585
188d7ee
e5c7bad
34daf41
0d6dc66
9a70029
7302648
3957347
11b8410
bda3b4a
35871ff
d853b60
8e82e91
d51890f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| src/ui/node_modules | ||
| src/ui/dist | ||
| src/ui/.vscode | ||
| src/shared_types/generated/typescript/node_modules | ||
| target |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,16 @@ | ||
| /target | ||
| /temp | ||
| .vscode | ||
| centrifugo | ||
| .vscode/settings.json | ||
| tools/centrifugo | ||
| *.tar.gz | ||
| *.env | ||
| *.http | ||
| /dist | ||
| CLAUDE.md | ||
|
|
||
| # Generated WASM package (rebuild with wasm-pack) | ||
| src/ui/src/core/pkg/ | ||
|
|
||
| # Research and documentation files (generated, not part of source) | ||
| *.md | ||
| !README.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "type": "lldb", | ||
| "request": "launch", | ||
| "name": "Debug executable 'omnect-ui'", | ||
| "cargo": { | ||
| "args": [ | ||
| "build", | ||
| "--bin=omnect-ui", | ||
| "--package=omnect-ui", | ||
| "--features=mock" | ||
| ], | ||
| "filter": { | ||
| "name": "omnect-ui", | ||
| "kind": "bin" | ||
| } | ||
| }, | ||
| "args": [], | ||
| "cwd": "${workspaceFolder}", | ||
| "preLaunchTask": "pre_launch_setup", | ||
| "env": { | ||
| "RUST_LOG": "omnect_ui=debug", | ||
| "SOCKET_PATH": "/tmp/api.sock", | ||
| "CERT_PATH": "temp/device_id_cert.pem", | ||
| "KEY_PATH": "temp/device_id_cert_key.pem", | ||
| "CENTRIFUGO_CLIENT_ALLOWED_ORIGINS": "https://${env:hostname}:1977 https://localhost:1977", | ||
| "CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_ALLOW_SUBSCRIBE_FOR_CLIENT": "true", | ||
| "CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_ALLOW_HISTORY_FOR_CLIENT": "true", | ||
| "CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_HISTORY_SIZE": "1", | ||
| "CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_HISTORY_TTL": "720h", | ||
| "CENTRIFUGO_HTTP_SERVER_TLS_ENABLED": "true", | ||
| "CENTRIFUGO_ADMIN_ENABLED": "true", | ||
| "CENTRIFUGO_ADMIN_PASSWORD": "123", | ||
| "CENTRIFUGO_ADMIN_SECRET": "123", | ||
| "UI_PORT": "1977" | ||
| } | ||
| }, | ||
| { | ||
| "type": "lldb", | ||
| "request": "launch", | ||
| "name": "Debug unit tests in executable 'omnect-ui'", | ||
| "cargo": { | ||
| "args": [ | ||
| "test", | ||
| "--no-run", | ||
| "--bin=omnect-ui", | ||
| "--package=omnect-ui" | ||
| ], | ||
| "filter": { | ||
| "name": "omnect-ui", | ||
| "kind": "bin" | ||
| } | ||
| }, | ||
| "args": [], | ||
| "cwd": "${workspaceFolder}" | ||
| } | ||
|
Comment on lines
4
to
58
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider extracting this into a test setup script or container to make things easier for non VSCode development environments :) |
||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "label": "killall_centrifugo", | ||
| "command": "killall centrifugo || true", | ||
| "type": "shell", | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "setup_test_password", | ||
| "type": "shell", | ||
| "command": "cargo", | ||
| "args": [ | ||
| "run", | ||
| "--bin", | ||
| "setup-password", | ||
| "--features=mock", | ||
| "--", | ||
| "123" | ||
| ], | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "check_ods_running", | ||
| "type": "shell", | ||
| "command": "bash", | ||
| "args": [ | ||
| "-c", | ||
| "if [ ! -S /tmp/api.sock ]; then echo '❌ ERROR: omnect-device-service is not running!' && echo 'Please start it first from /home/jzac/projects/omnect-device-service' && echo 'See: https://github.com/omnect/omnect-device-service' && exit 1; else echo '✓ omnect-device-service is running'; fi" | ||
| ], | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "pre_launch_setup", | ||
| "dependsOn": [ | ||
| "check_ods_running", | ||
| "killall_centrifugo", | ||
| "setup_test_password" | ||
| ], | ||
| "dependsOrder": "sequence", | ||
| "problemMatcher": [] | ||
| } | ||
| ] | ||
|
Comment on lines
3
to
10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Potentially extract to dev script, as well :) |
||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.