forked from ESA-PhiLab/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
standalone config form #19
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
Draft
loriab
wants to merge
12
commits into
gt-sse-center:master
Choose a base branch
from
loriab:pyd_schema_try3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1d85bf0
schema to date
loriab aa4058a
basic in-code playground
loriab 1ffee04
add uischema
loriab d67f8f0
w bootstrap
loriab 6958271
examples and codeblocks
loriab bf37466
fix the focus bug
loriab e8e79a2
accordian
loriab f07d77a
improve Path layout
loriab 9d8bd23
consolidate on uischema
loriab 17df1be
fix shape and some missing fields
loriab 83f7760
fix host and remove duplicate generated json
loriab 90932eb
get metadata and thumbnails UI working
loriab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| IRIS Config Editor (minimal) | ||
|
|
||
| This is a small Vite + React app that uses react-jsonschema-form (rjsf) to render | ||
| an editable form driven by the `irisconfig.json` schema. | ||
|
|
||
| Quick start | ||
|
|
||
| 1. cd tools/iris-config-ui | ||
| 2. npm install | ||
| 3. npm run dev | ||
|
|
||
| 4. Start the persistence server (runs on port 5174 by default): npm run start:server | ||
|
|
||
|
|
||
| Open http://localhost:5173 and you should see the form preview on the right and | ||
| editable JSON schema + uiSchema editors on the left. | ||
|
|
||
| Notes | ||
|
|
||
| - `public/irisconfig.json` was copied from the repository's top-level `irisconfig.json`. | ||
| - The left column lets you edit the raw JSON Schema and apply changes interactively. | ||
| - The uiSchema textarea accepts a JSON object to customize widgets/layout. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>IRIS Config Editor</title> | ||
| <!-- Bootstrap CSS (CDN) --> | ||
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
| <!-- Prevent browser requesting /favicon.ico (use empty data URI) --> | ||
| <link rel="icon" href="data:;base64,=" /> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.jsx"></script> | ||
| <!-- Bootstrap JS (Bundle with Popper) --> | ||
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "name": "iris-config-ui", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vite build", | ||
| "preview": "vite preview", | ||
| "start:server": "node server.js" | ||
| }, | ||
| "dependencies": { | ||
| "@rjsf/bootstrap-4": "^5.0.0", | ||
| "@rjsf/core": "^5.0.0", | ||
| "@rjsf/validator-ajv8": "^5.0.0", | ||
| "cors": "^2.8.5", | ||
| "express": "^4.18.2", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0" | ||
| }, | ||
| "devDependencies": { | ||
| "vite": "^7.2.2" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| sldfkjs | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file appears to be a placeholder with a descriptive filename and dummy content ("sldfkjs"). The filename suggests it should mirror content from
../../schbut currently contains only gibberish. This file should either be removed or properly implemented with the intended mirrored content.