Commit Graph

32 Commits

Author SHA1 Message Date
gconsidine
06deb0d7a7 Add base states for credentials 2017-06-12 09:53:11 -04:00
gconsidine
272e43a345 Fix Angular dependency mismatches in package.json 2017-06-12 09:53:11 -04:00
gconsidine
9d51576e89 Adjust theme, add testing 2017-06-12 09:53:11 -04:00
gconsidine
9a669d7350 Align moment and lodash deps with what's in dependent packages 2017-06-06 11:00:51 -04:00
gconsidine
437121f9cc Update dependencies to be able to regen npm-shrinkwrap 2017-06-06 10:08:24 -04:00
Greg Considine
f5eabe6b16 Add baseline .eslint files 2017-03-28 10:04:44 -04:00
Michael Abashian
4d9bcbfaea nvd3 1.7.1 needs version 3.3.13 of d3.js in order for the tooltip guideline to work 2017-02-15 10:35:58 -05:00
Chris Meyers
195a36aef9 embed json into js module 2017-02-02 18:00:41 -05:00
Chris Meyers
76e5cc1fb1 update ui packaging 2017-02-02 14:06:08 -05:00
Chris Meyers
f62b6ca014 workflow job elapsed timer
* Now with tests for elapsed timer feature.
2017-02-01 16:19:44 -05:00
Shane McDonald
35deb0be37 Simplify UI / Docker targets
- Renamed npm scripts to reflect what they are actually doing. Nothing is being built here!
- Not sure why the default django_host was 0.0.0.0…
- Removed unnecessary logic from build-docker-cid
2017-01-25 18:45:48 -05:00
Shane McDonald
7776dc1304 Remove SauceLabs stuff from package.json 2017-01-25 18:45:48 -05:00
Leigh Johnson
0803605ad7 @noissue - BrowserSync ssl/tls (#4407) 2016-12-13 11:50:13 -05:00
Leigh Johnson
aacae7b844 ui build system documents (#4353)
* add ui build system documentation, pin nodejs + npm engines to versions vetted for Tower

* Update ui_build_system.md

* Update ui_build_system.md
2016-12-09 12:33:01 -05:00
Graham Mainwaring
5d5fe88a47 Move npm dependencies to Ansible github org 2016-12-06 10:14:08 -05:00
John Mitchell
f3526ca86c add angular duration format filter lib 2016-11-18 11:00:13 -08:00
Takao Fujiwara
aebff5366e Update I18N patch under awx/ui to reflect pull request #3363
- Get rid of html tags and codes in translatable strings
- Replace i18n.format with i18n.sprintf to treat multiple %s
- Add translatable strings for login failures and "SIGN IN".
- Rename ansible-tower.pot to ansible-tower-ui.pot for backend pot

Signed-off-by: Takao Fujiwara <tfujiwar@redhat.com>
2016-11-17 17:49:39 +09:00
Leigh Johnson
0d3eb67bd0 Fixes namespace collision & allows command-line options to be passed to UI build system (#3876)
* Fixes BrowserSync window.name namespace collision #3872

* Allow command-line arguments to be passed to development UI builds.
Add support for --ng-debug and --router-debug flags to turn on Angular's
$log service and ui-router's trace utility.
Cleans up development debug settings & defunct websocket configuration.

Resolves lingering issues raised by trying read asynchronously-loaded config file during AngularJS config phase. #3872

* shrinkwrap updated minimist

* update CONTRIBUTING.md to include UI build options

* feedback/review
2016-11-09 12:49:18 -05:00
Leigh Johnson
38e40c7eba Hook up npm script target for jshint (#3916)
* Hook up npm script target for jshint

* Shrinkwrap ui dependencies
2016-11-09 09:53:58 -05:00
Leigh Johnson
4df56edb9f Move browser-sync & file-polling deps to optionalDependencies field, update npm engine field, shrinkwrap new dependency tree. 2016-10-31 13:01:14 -04:00
Leigh Johnson
a49095bdbc Boolean / Smart Search (#3631)
* Part 1: building new search components

Directives: smart-search, column-sort, paginate
Service: QuerySet
Model: DjangoSearchModel

* Part 2: Implementing new search components, de-implementing old search
components

Remove old code:
	* tagSearch directive
	* old pagination strategy
	* old column sorting strategy
	* lookup

Add new directives to list/form generator:
	* smart-search,
	* paginate
	* column-sort

Connect $state + dataset resolution
	* upgrade ui-router lib to v1.0.0-beta3
	* Custom $urlMatcherFactory.type - queryset
	* Render lists, forms, related, lookups in named views
	* Provide html templates in list/form/lookup/related state definitions
	* Provide dataset through resolve block in state definitions

Update utilities
	* isEmpty filter
	* use async validation strategy in awlookup directive

* Part 3: State implementations (might split into per-module commits)

* Support optional state definition flag: squashSearchUrl. *_search params are only URI-encoded if squashSearchUrl is falsey.

* * Fix list badge counts
* Clear search input after search term(s) applied
* Chain of multiple search terms in one submission

* Hook up activity stream

* Hook up portal mode

* Fix pagination range calculations

* Hook up organization sub-list views

* Hook up listDefinition.search defaults

* Fix ng-disabled conditions reflecting RBAC access on form fields

* Fix actively-editing indicator in generated lists

* form generator - fix undefined span, remove dead event listeners

* wrap hosts/groups lists in a panel, fix groups list error

* Smart search directive: clear all search tags

* Search tags - ‘Clear All’ text - 12px
Search key - remove top padding/margin
Search key - reverse bolding of relationship fields / label, add commas
Search tags - remove padding-bottom
Lookup modal - “X” close button styled incorrectly
Lookup modal - List title not rendered
Lookup modal - 20px margin between buttons

* Portal Mode
Fix default column-sort on jobs list
Hide column-oort on job status column
Apply custom search bar sizes

* stateDefinition.factory

Return ES6 Promise instead of $q promise.
$q cannot be safely provided during module.config() phase
Some generated state trees (inventory / inventoryManage) need to be
reduced to one promise. Side-step issues caused by ui-router de-registering ALL registered states that match placeholder state name/url pattern.

e.g. inventories.lazyLoad() would de-register inventoryManage states if
a page refresh occured @ /#/inventories/**

* Combine generated state trees: inventories + inventoryManage
Hook up inventory sync schedule list/form add /form edit views

* Hook up system job schedule list/add/edit states

* Fix breadcrumb of generated states in /setup view
Fix typo in scheduler search prefix

* Remove old search system deritus from list definitions

* Fix breadcrumb definitions in states registered in app.js config block

* Transclude list action buttons in generated form lists

* Lookup Modal passes acceptance criterea:
Modal cancel/exit - don’t update form field’s ng-model
Modal save - do update form field's ng-model
Transclude generated list contents into <lookup-modal> directive
Lookup modal test spec

* Fix typo in merge conflict resolution

* Disable failing unit tests pending revision

* Integrate smart-search architechture into add-permissions modal

* use a semicolon delimiter instead of comma to avoid collision with django __in comparator

* Hook up Dashboard > Hosts states, update Dashboard Inventory/Project counts with new search filters

* Misc bug splat

Add 20px spacing around root ui-view
Fix missing closing div in related views
Remove dupe line in smart-search controller

* Remove defunct LookupHelper code

* Rebuild inventories list status tooltips on updates to dataset

Code cleanup - remove defunct modules
Remove LookupHelper / LookupInit code
Remove pre-RBAC permissions module

* Add mising stateTree / basePath properties to form definitions

* Resolve i18n conflicts in list and form generator
Freeze dependencies

* Integrate sockets

* Final bug splat:
fix jobs > job details and jobs > scheduled routing
fix mis-resolved merge conflicts
swap console.info for $log.debug
2016-10-28 14:28:06 -04:00
Leigh Johnson
2c8d295132 UI Build System - new interface
Use `make ui-devel` to build a development/debug version of the  UI, with source maps,
without raising any additional browser-sync or filesystem polling.
2016-10-26 16:53:36 -04:00
Takao Fujiwara
40b94a38a8 Enable message i18n with angular-gettext
Signed-off-by: Takao Fujiwara <tfujiwar@redhat.com>
2016-10-25 15:26:45 -07:00
Leigh Johnson
cf54fe27e6 Fix schedules sitewide (#3469)
* Remove custom rrule module loaders, update angular-scheduler dept

* snip comment

* remove nlp module loaders
2016-10-04 14:25:18 -07:00
Leigh Johnson
5b1d4f3d67 remove websocket proxy from build-docker-machine script, freeze ui deps 2016-10-04 14:18:44 -07:00
Jared Tabor
e9b54dcd3c switching socket.io-client for ReconnectingWebSocket library 2016-10-04 14:16:09 -07:00
Leigh Johnson
c08a9f8bbc Use a local installation of grunt-cli, freeze deps 2016-09-22 10:15:31 -04:00
Leigh Johnson
e9570c9d52 Update package.json deps to include PhantomJS / karma launcher, update output location, freeze deps 2016-09-21 16:19:12 -04:00
Leigh Johnson
7e7bd76644 Fix schedules sitewide (#3469)
* Remove custom rrule module loaders, update angular-scheduler dept

* snip comment

* remove nlp module loaders
2016-09-09 10:49:28 -04:00
Leigh Johnson
ffd9c4eb4d Exclude tower.vendor.js from BrowserSync polling, remove chunk stats plugin, update ui deps 2016-09-07 13:28:06 -04:00
Leigh Johnson
c3b9050773 use a better-supported babel plugin instead of jank webpack loader for istanbul instrumentation (#3341) 2016-09-07 11:47:19 -04:00
Leigh Johnson
ce61fe4a42 Refactor UI Build System (#3203)
* initial build trial, clean up awx/ui

* fix hardcoded refs to ng-toast, add jshint preloader

* remove browserify test

* update grunt-jshint -> jshint module loader, browser-sync, update dev targets to build-docker-machine & build-docker-cid, fix blocking tasks

* less autoprefixer

* sample build commands

* fix release build

* update README

* karma config stub

* webpack config for karma tests

* karma preview for shane

* fix build-docker-machine target

* karma+webpack test pipeline configuration, stub tests

* fix smart/job status icons classes

* fix jquery + jsyaml shims, fix LESS cascade

* fix angular-codemirror dependency, explicitly import style/mode dependencies

* shim jsonlint

* fix angular-scheduler AMD imports, remove jquuery-ui shim, fix release config

* use closed $.fn.datepicker for system-tracking

* remove packaging/node/

* remove old tests

* shrinkwrap fragile dependency sandcastle, update README, lint

* first pass at fixing rrule shim

* update makefile targets

* update gitignore w/ new flag file

* add saucelabs karma config

* add license controller test

* add examples of service and directive tests

* Makefile flubs

* consolidate clean-ui target, compulsively update flag file location

* dep on CJS/AMD/UMD compatible version of rrule lib, fix example tests/config for demo

* boilerplate karma config for saucelabs (should be abstracted to common config after proven to work)

* update docs

* docs feedback

* update Dockerfile with Node 6.x dep
2016-08-17 16:09:54 -04:00