{"id":23338516,"url":"https://github.com/cloudwan/gohan_webui","last_synced_at":"2025-08-30T09:33:06.779Z","repository":{"id":49009069,"uuid":"49989785","full_name":"cloudwan/gohan_webui","owner":"cloudwan","description":"Gohan Web UI  s javascript based webui project for Gohan. MVC will be auto generated based on Gohan schema","archived":false,"fork":false,"pushed_at":"2021-06-22T15:38:23.000Z","size":4030,"stargazers_count":6,"open_issues_count":2,"forks_count":15,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-09T22:43:49.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudwan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2016-01-19T23:13:21.000Z","updated_at":"2021-12-17T08:37:26.000Z","dependencies_parsed_at":"2022-08-27T21:50:57.076Z","dependency_job_id":null,"html_url":"https://github.com/cloudwan/gohan_webui","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/cloudwan/gohan_webui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwan%2Fgohan_webui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwan%2Fgohan_webui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwan%2Fgohan_webui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwan%2Fgohan_webui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudwan","download_url":"https://codeload.github.com/cloudwan/gohan_webui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwan%2Fgohan_webui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272833285,"owners_count":25000870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-21T03:14:14.339Z","updated_at":"2025-08-30T09:33:06.728Z","avatar_url":"https://github.com/cloudwan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gohan Web UI\n======================================================================================================================\n\nWeb UI project for Gohan project\n(https://github.com/cloudwan/gohan)\n\n[![Join the chat at https://gitter.im/cloudwan/gohan](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cloudwan/gohan?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nGetting started\n----------------------------------------------------------------------------------------------------------------------\n\nSee getting started in Gohan\n\nhttps://github.com/cloudwan/gohan\n\nSetup development environment\n----------------------------------------------------------------------------------------------------------------------\n\n- Run gohan server\n- Install npm dependencies\n```\n    $ npm install\n```\n- Copy configurations files\n```\n    $ cp app/config.json.sample app/config.json\n```\n- Build application for development\n```\n    $ npm run build-dev\n```\n- Start dev server with auto refresh and options. Learn more about options, read the [official document](https://webpack.github.io/docs/webpack-dev-server.html#webpack-dev-server-cli).\n```\n    $ npm run dev-server\n    $ npm run dev-server -- --host 0.0.0.0 --https\n```\n- Server starts on\n```\n    http://localhost:8080/\n```\n- Start tests\n```\n    $ npm run test\n```\n- Build application for production\n```\n    $ npm run build\n```\n\nConfig file\n----------------------------------------------------------------------------------------------------------------------\n`config.json` file should be located in the same directory as all source files. Sample configuration is included in `config.json.sample` file.\n\nPossible fields in config file:\n- `authUrl` - URL to Keystone\n- `gohan` - Gohan connection config, must be an object with following fields:\n  - `schema` - path to JSON Schema\n  - `url` - URL to Gohan server\n- `sidebar` - array of custom sidebar buttons, must contain objects with following fields:\n  - `path`\n  - `title` \n  - `id`\n- `sidebarFavorites` - array of links to views, must contain resources' IDs\n- `sidebarCategories` - array of objects including information about views' categories, must contain objects with following fields:\n  - `name` - display name of category\n  - `id` - ID of category\n  - `items` - array of links to views in the category\n- `sidebarChildResources` - array of schema IDs of child resources which should be visible in sidebar menu\n- `routes` - config array for routing, must contain objects with following fields:\n  - `path` - URL path to view\n  - `viewClass` - name of React component related to the view (in `src/routes/componentList.js`)\n  - `name` - name of route\n  - `exact` - match path exactly, default `true`\n- `errorMessages` - map of error messages\n  - `tokenExpire` - token expired message\n- `pageLimit` - limit of displayed items in page\n- `loginRequestTimeout` - time left (in ms) to token expiration (when token renew dialog should be shown)\n- `polling` - flag to enable polling (must be true or false)\n- `pollingInterval` - interval (in ms) of polling\n- `storagePrefix` - prefix to store token information (local- and sessionStorage)\n- `tableDefaultSortKey` - default sort key\n- `tableDefaultSortOrder` - default sort order (asc or desc)\n- `title`- title of web page\n- `followableRelations` - flag to enable following resource by reference\n- `useKeystoneDomain` - flag to enable use domain feature in keystone v3\n- `selectDomainFromHost` - regex to select domain from host (keystone v3)\n- `domainName` - default domain name\n\n\nUI schema\n----------------------------------------------------------------------------------------------------------------------\n`locales/en-us/uiSchema.json` file containg the definition of specific UI behaviors in dialogs like hiding and showing fields\n\nThe JSON file should contain an array of objects with following fields:\n - `id` - ID of JSON Schema resource\n - `title` - (optional) - title of resource\n - `properties` - (optional) - properties customization, objects with following fields:\n    - `[fieldName]` - (optional) - customization of single field, objects with following fields:\n       - `ui:widget` - (optional) -  alternative widget\n       - `ui:field` - (optional) - alternative field\n       - `ui:step` - (optional) - specified step in number input field\n       - `ui:labelTemplate` - (optional) - label custom template for select field\n       - `ui:requiredResource` - (optional) - custom require collection for select field\n       - `ui:query` - (optional) - query to fetch additional data for select field\n - `logic` - (optional) - custom dialog logic\n    - `[fieldName]` - (optional) - field name\n       - `[fieldName]` - (field name (if parent is Object), when array, `[fieldName]` should be `items`\n          - `[value]` - (optional) - specified value of field\n             - `hide` - array of fields to hide\n\nOther methods of customization using UI schema can be find [react-jsonschema-form documentation](https://github.com/rjsf-team/react-jsonschema-form/tree/v0.51.0#form-customization)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwan%2Fgohan_webui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudwan%2Fgohan_webui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwan%2Fgohan_webui/lists"}