open-nomad/ui/package.json

164 lines
5.0 KiB
JSON
Raw Normal View History

2017-09-19 14:47:10 +00:00
{
"name": "nomad-ui",
"version": "0.0.0",
"description": "The web ui for Nomad, by HashiCorp.",
2019-03-15 20:26:18 +00:00
"repository": "",
2017-09-19 14:47:10 +00:00
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build --environment=production",
"precommit": "lint-staged",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
2019-03-15 20:26:18 +00:00
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"start": "./node_modules/ember-cli/bin/ember server",
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"build-storybook": "STORYBOOK=true ember build && build-storybook -s dist",
"storybook": "STORYBOOK=true start-storybook -p 6006 -s dist",
"test": "npm-run-all lint:* test:*",
"test:ember": "ember test"
2017-09-19 14:47:10 +00:00
},
2019-04-02 23:11:22 +00:00
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
2017-09-19 14:47:10 +00:00
"lint-staged": {
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"{app,tests,config,lib,mirage,stories}/**/*.js": [
"prettier --write"
],
"app/styles/**/*.*": [
"prettier --write"
]
2017-09-19 14:47:10 +00:00
},
"devDependencies": {
2019-04-02 22:01:20 +00:00
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
"@ember/optional-features": "^1.3.0",
"@ember/test-helpers": "^2.0.0",
"@glimmer/component": "^1.0.1",
"@glimmer/tracking": "^1.0.0",
"@hashicorp/structure-icons": "^1.3.0",
"@storybook/ember-cli-storybook": "https://github.com/DingoEatingFuzz/ember-cli-storybook#c207500",
"anser": "^1.4.8",
"babel-eslint": "^10.1.0",
"base64-js": "^1.3.1",
2019-04-02 22:01:20 +00:00
"broccoli-asset-rev": "^3.0.0",
2017-12-20 15:37:56 +00:00
"bulma": "0.6.1",
2017-09-19 14:47:10 +00:00
"core-js": "^2.4.1",
2020-09-25 23:37:51 +00:00
"d3-array": "^2.1.0",
2018-09-07 16:55:39 +00:00
"d3-axis": "^1.0.0",
"d3-format": "^1.3.0",
"d3-scale": "^1.0.0",
2018-09-17 22:55:48 +00:00
"d3-selection": "^1.1.0",
2018-09-07 16:55:39 +00:00
"d3-shape": "^1.2.0",
"d3-time-format": "^2.1.0",
2017-09-19 14:47:10 +00:00
"d3-transition": "^1.1.0",
"duration-js": "^4.0.0",
"ember-a11y-testing": "^4.0.0",
"ember-auto-import": "^1.6.0",
"ember-can": "^2.0.0",
"ember-classic-decorator": "^1.0.8",
"ember-cli": "~3.20.2",
"ember-cli-babel": "^7.21.0",
"ember-cli-clipboard": "^0.13.0",
"ember-cli-dependency-checker": "^3.2.0",
2019-03-12 23:15:07 +00:00
"ember-cli-deprecation-workflow": "^1.0.1",
2019-03-16 00:18:26 +00:00
"ember-cli-funnel": "^0.6.1",
"ember-cli-htmlbars": "^5.2.0",
"ember-cli-inject-live-reload": "^2.0.2",
2019-09-26 18:47:07 +00:00
"ember-cli-mirage": "^1.1.2",
2017-12-13 03:14:19 +00:00
"ember-cli-moment-shim": "^3.5.0",
"ember-cli-page-object": "^1.17.2",
"ember-cli-sass": "^10.0.0",
2019-03-15 20:26:18 +00:00
"ember-cli-sri": "^2.1.1",
2017-12-13 03:14:19 +00:00
"ember-cli-string-helpers": "^1.5.0",
"ember-cli-terser": "^4.0.1",
"ember-composable-helpers": "^4.4.1",
2019-10-08 18:44:19 +00:00
"ember-concurrency": "^1.0.0",
2019-03-26 04:55:06 +00:00
"ember-copy": "^1.0.0",
"ember-data": "~3.12.0",
2019-10-08 18:44:19 +00:00
"ember-data-model-fragments": "4.0.0",
"ember-decorators": "^6.1.1",
"ember-export-application-global": "^2.0.1",
"ember-fetch": "^8.0.2",
2019-03-26 04:24:11 +00:00
"ember-inflector": "^3.0.0",
2019-10-08 18:44:19 +00:00
"ember-inline-svg": "^0.3.0",
"ember-load-initializers": "^2.1.1",
2019-03-12 23:42:47 +00:00
"ember-maybe-import-regenerator": "^0.1.6",
"ember-modifier": "^2.1.1",
2019-03-26 05:27:47 +00:00
"ember-moment": "^7.8.1",
"ember-named-blocks-polyfill": "^0.2.4",
"ember-overridable-computed": "^1.0.0",
"ember-page-title": "^6.0.3",
"ember-power-select": "^4.1.3",
"ember-qunit": "^4.6.0",
"ember-qunit-nice-errors": "^1.2.0",
"ember-resolver": "^8.0.0",
2019-10-08 18:44:19 +00:00
"ember-responsive": "^3.0.4",
"ember-sinon": "^4.0.0",
"ember-source": "~3.20.2",
"ember-template-lint": "^2.9.1",
"ember-test-selectors": "^5.0.0",
2017-12-13 03:14:19 +00:00
"ember-truth-helpers": "^2.0.0",
"eslint": "^7.5.0",
"eslint-plugin-ember": "^8.9.1",
"eslint-plugin-ember-a11y-testing": "a11y-tool-sandbox/eslint-plugin-ember-a11y-testing#ca31c9698c7cb105f1c9761d98fcaca7d6874459",
"eslint-plugin-node": "^11.1.0",
2019-09-26 18:47:07 +00:00
"faker": "^4.1.0",
2017-12-13 03:14:19 +00:00
"flat": "^4.0.0",
2019-04-02 23:11:22 +00:00
"fuse.js": "^3.4.4",
"glob": "^4.0.5",
"http-proxy": "^1.1.6",
2020-04-10 03:45:37 +00:00
"husky": "^4.2.5",
"is-ip": "^3.1.0",
"ivy-codemirror": "IvyApp/ivy-codemirror#c3b7f49f8e6492878619f8055695581240cce21a",
"lint-staged": "^10.1.3",
2019-03-15 20:26:18 +00:00
"loader.js": "^4.7.0",
"lodash.intersection": "^4.4.0",
"morgan": "^1.3.2",
"npm-run-all": "^4.1.5",
2019-09-26 18:47:07 +00:00
"pretender": "^3.0.1",
2017-10-18 17:38:18 +00:00
"prettier": "^1.4.4",
"query-string": "^5.0.0",
"qunit-dom": "^1.2.0",
"sass": "^1.17.3",
"testem": "^3.0.3",
"testem-multi-reporter": "^1.2.0",
"text-encoder-lite": "^2.0.0",
"xterm": "^4.6.0",
"xterm-addon-fit": "^0.3.0"
2017-09-19 14:47:10 +00:00
},
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"optionalDependencies": {
"@babel/plugin-transform-member-expression-literals": "^7.2.0",
2021-10-06 18:06:57 +00:00
"@storybook/addon-knobs": "^6.3.1",
"@storybook/addon-storysource": "^6.3.10",
"@storybook/addon-viewport": "^6.3.10",
"@storybook/addons": "^6.3.10",
"@storybook/ember": "^6.3.10",
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"babel-loader": "^8.0.6",
"ember-cli-get-component-path-option": "^1.0.0",
"ember-cli-string-utils": "^1.1.0"
},
2017-09-19 14:47:10 +00:00
"engines": {
"node": "10.* || >= 12"
2017-09-19 14:47:10 +00:00
},
"ember": {
"edition": "octane"
},
2017-09-19 14:47:10 +00:00
"private": true,
"ember-addon": {
"paths": [
"lib/bulma"
]
2018-09-17 22:55:48 +00:00
},
"dependencies": {
ui: add parameterized dispatch interface (#10675) * ui: add parameterized dispatch interface This commit adds a new interface for dispatching parameteried jobs, if the user has the right permissions. The UI can be accessed by viewing a parameterized job and clicking on the "Dispatch Job" button located in the "Job Launches" section. * fix failing lint test * clean up dispatch and remove meta This commit cleans up a few things that had typos and inconsistent naming. In line with this, the custom `meta` view was removed in favor of using the included `AttributesTable`. * ui: encode dispatch job payload and start adding tests * ui: remove unused test imports * ui: redesign job dispatch form * ui: initial acceptance tests for dispatch job * ui: generate parameterized job children with correct id format * ui: fix job dispatch breadcrumb link * ui: refactor job dispatch component into glimmer component and add form validation * ui: remove unused CSS class * ui: align job dispatch button * ui: handle namespace-specific requests on job dispatch * ui: rename payloadMissing to payloadHasError * ui: don't re-fetch job spec on dispatch job * ui: keep overview tab selected on job dispatch page * ui: fix task and task-group linting * ui: URL encode job id on dispatch job tests * ui: fix error when job meta is null * ui: handle job dispatch from adapter * ui: add more tests for dispatch job page * ui: add "job dispatch" capability check * ui: update job dispatch from code review Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2021-07-20 22:27:41 +00:00
"lru_map": "^0.3.3",
"no-case": "^3.0.4",
"title-case": "^3.0.3"
},
"resolutions": {
"ivy-codemirror/codemirror": "^5.56.0"
2017-09-19 14:47:10 +00:00
}
}