Граф коммитов

119 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 49339088f6 Bug 1364894 - Load HTML with html-loader not raw-loader
Neutrino 4 configures `file-loader` as the loader for HTML (rather than
the more usual `html-loader`), which means the HTML is not parsed to
look for further dependencies such as `<img src="...">` tags. Our
custom Neutrino config overrode that to `raw-loader` (presumably to
work around bugs caused by the use of `file-loader`), which doesn't
parse HTML either.

Instead, these assets were being manually copied to `dist/img/` by
`neutrino-custom/production.js`'s `CopyPlugin` rule, effectively
circumventing the webpack build process.

Newer Neutrino correctly uses `html-loader`, causing our HTML to be
parsed during the webpack build for the first time. However now that
the images are being resolved at build time rather than runtime, the
relative paths need to be updated to account for the directory layout
differences between `src/` and `dist/`, to prevent build errors.

A significant benefit of this change is that images referenced from
HTML will now be output with hashed filenames, meaning they get given
long-lived `Cache-Control` headers by WhiteNoise.

See:
https://webpack.js.org/loaders/file-loader/
https://webpack.js.org/loaders/raw-loader/
https://webpack.js.org/loaders/html-loader/
2018-01-24 23:43:58 +00:00
renovate[bot] 4ed5e3c779 Update dependency jquery to v3.3.1 (#3156) 2018-01-22 01:26:27 +00:00
renovate[bot] c45f92330f Update dependency jasmine-core to v2.9.1 (#3152) 2018-01-21 12:14:02 +00:00
renovate[bot] e8cc1fe515 Update dependency jasmine-core to v2.9.0 (#3149) 2018-01-19 09:50:29 +00:00
renovate[bot] 15066ececb Update dependency ajv to v6.0.1 (#3130) 2018-01-12 22:46:58 +00:00
renovate[bot] c8f7de4bb2 Update dependency json-e to v2.5.0 (#3119) 2018-01-09 22:30:04 +00:00
renovate[bot] b2337e0172 Update dependency ajv to v6.0.0 (#3115) 2018-01-08 21:44:46 +00:00
renovate[bot] 3c835bc30c Update dependency json-e to v2.4.0 (#3110) 2018-01-07 19:28:20 +00:00
Ed Morley 3ada44e019 Bug 1364888 - Upgrade to AngularJS 1.6
The previous commit switched us away from the deprecated `$http`
callback methods, meaning the only other breaking change that affects
us is the `hashPrefix` change, which we revert by manually setting
it back to the empty string, so that existing URLs still work:
https://docs.angularjs.org/guide/migration#commit-aa077e8

For more details, see:
https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#160-rainbow-tsunami-2016-12-08

Closes #3044.
2018-01-05 11:13:58 +00:00
Ed Morley a83ee853c7
Bug 1427295 - Remove unused angular-cookies (#3076)
Since we don't use any of the functionality provided by it:
https://docs.angularjs.org/api/ngCookies#module-components
2018-01-04 00:25:32 +00:00
Ed Morley 96eef0f86f
Bug 1426902 - Upgrade to React 16 (#3067)
https://reactjs.org/blog/2017/09/26/react-v16.0.html
https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html

Replaces #3048/#3068/#3069, since additional changes were required.

Also adjusts the Babili minification settings to work around a bug
in the minification of react-dom (that will hopefully be fixed in
newer versions of `babel-plugin-minify-mangle-names`, that we'll get
as part of Neutrino upgrade):
https://github.com/babel/minify/tree/babel-preset-babili@0.0.11/packages/babel-preset-babili#options

Closes #3069.
2018-01-03 19:49:25 +00:00
Ed Morley b615b12d7b
Bug 1427655 - Un-vendor flot and its plugins (#3095)
It wasn't unvendored at the time of the switch to Neutrino/webpack
due to the official `flot` NPM package being out of date. However
there are now unofficial up to date flot packages on NPM that we can
use instead - which avoids the clutter and grep false-positives of
vendoring.

I've diffed the vendored files with those in `jquery.flot` and they
are identical, so this change should be a no-op in terms of
functionality.
2018-01-03 15:40:02 +00:00
Ed Morley d38d2d475c
Bug 1427615 - Un-vendor angular-clipboard (#3092)
The issue seen with the old Grunt+babel build process no longer
occurs, so we don't need the modified vendored version. As an added
bonus, the upstream version supports the ES6 import style which we
want to start using soon:
https://github.com/omichelsen/angular-clipboard#use-with-a-module-loader
2018-01-03 15:18:40 +00:00
renovate[bot] 2bca255b90 Update dependency angular-toarrayfilter to v1.0.3 (#3096) 2018-01-03 15:17:41 +00:00
renovate[bot] fe83bfb9f4 Update dependency enzyme to v3.3.0 (#3081) 2017-12-30 14:19:15 +00:00
Ed Morley 2c93921725
Revert "Update hawk from v6.0.2 to v7.0.5 (#3049)" (#3066)
This reverts commit b37ef957a2.

There appears to be a bug with the webpack module resolution, such that Treeherder's upgraded Hawk 7 is being used by taskcluster-client, even though that has a separate dependency on Hawk 6, and so should be using its own copy of Hawk.

For now, let's roll back to Hawk 7 for Treeherder's direct dependency (used by the login flow), to work around this.
2017-12-21 21:06:45 +00:00
Ed Morley b37ef957a2 Update hawk from v6.0.2 to v7.0.5 (#3049)
Has to adjust Hawk.client.header() usage for Hawk v8 API:
f72cdeafd1 (diff-04c6e90faac2675aa89e2176d2eec7d8L174)

And also now import the non-dist/minified build, to work around:
https://github.com/hueniverse/hawk/issues/223
2017-12-20 15:36:30 +00:00
renovate[bot] 1d7745957f Update dependency angular-local-storage to v0.7.1 (#3039) 2017-12-20 03:10:06 +00:00
renovate[bot] 2864ae9976 Update dependency metrics-graphics to v2.12.0 (#3043) 2017-12-20 03:05:27 +00:00
renovate[bot] b2e6c34151 Update dependency popper.js to v1.12.9 (#3045) 2017-12-20 03:02:37 +00:00
renovate[bot] 0696fa6434 Update dependency karma-jasmine to v1.1.1 (#3040) 2017-12-20 02:57:19 +00:00
renovate[bot] e4da81ab25 Update dependency enzyme to v3.2.0 (#3046) 2017-12-20 02:47:05 +00:00
renovate[bot] e2a3f90516 Update dependency json-e to v2.3.5 (#3042) 2017-12-20 02:45:07 +00:00
renovate[bot] 100a8f732f Update dependency karma-firefox-launcher to v1.1.0 (#3041) 2017-12-20 02:43:01 +00:00
renovate[bot] 9523a39735 Update dependency ajv to v5.5.2 (#3038) 2017-12-20 02:41:01 +00:00
renovate[bot] 49b7dd1c4f Update dependency ngreact to v0.5.1 (#3037) 2017-12-20 02:36:59 +00:00
Cameron Dawson a7e4848aad
Bug 1366909 - Merge Test view app into Treeherder repository (#3001)
Modify the code to:
* share assets and global settings wherever possible
* update links going both directions
* other small UI tweaks for uniformity with Treeherder
* Fixed a few routing dead-ends on the react side
* Removed the dead TestDetail file we weren't using anyway
* fix production domain urls
2017-12-14 08:03:32 -08:00
Ed Morley a4b335d286
Bug 1419987 - Always use latest minor version of node.js (#2979)
Since the node minor/patch versions are reliable enough that it's
not worth the hassle of pinning to an exact version. This only
affects Heroku/Travis, since Vagrant was already always using the
latest 8 series release via the APT repo.

This effectively upgrades node on Heroku/Travis from 8.9.0 to 8.9.1,
since it's the latest release at the moment:
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.9.1

The yarn version specifier has been adjusted to use the `.x` format,
which gives the same end result as the caret range, given Heroku
doesn't cache binaries from one build to the next (only `node_modules`).
2017-11-27 16:40:54 +00:00
Cameron Dawson 97076b338d Bug 1364891 - Update from React 15.3 to 15.6
Also upgrade Enzyme from 2.7.1 to 3.1.1

Most notable change here is that React.PropTypes is now
moved to a separate package and referenced just by
PropTypes.  So this needed some import and linting changes.
2017-11-14 09:59:24 -08:00
Cameron Dawson 51dc3cc938 Bug 1408100 - Upgrade to Bootstrap 4
This adds the upgrade to Bootstrap 4, and some basic changes and
some CSS tweaks we needed to keep out UI consistent.

The simpler changes are things like:

* Classes that were renamed
* Adding classes that are now needed (dropdown-item, etc)
* Change an item from a button to a span
* Changing order of items (modal header close button, etc)
* CSS class syntax changes

The other changes are lots of CSS padding, margin, font and
other spacing tweaks.
2017-11-09 11:12:09 -08:00
Ed Morley 3d94c40c87
Bug 1413509 - Update Node.js from 8.7.0 to 8.9.0 (#2896)
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.9.0
2017-11-01 23:56:44 +00:00
Ed Morley 2247a57d42 Bug 1351907 - Improve yarn script Windows compatibility (#2863)
Typically the `package.json` commands call scripts that exist in the
top-level `node_modules/.bin/` directory, which are (a) already on
`PATH` when invoked by yarn, and (b) on Windows have `.cmd` script
shims that work around Windows' lack of shebang support.

However due to symlinks being problematic inside Virtualbox, we have
to use `--no-bin-links` with `yarn install`, which means the top-level
`.bin/` directory doesn't exist. As such, the `<package>/bin/` scripts
have to be used directly, which require prefixing with `node` to work
around lack of shebang support on Windows.

See:
https://shapeshed.com/writing-cross-platform-node/#scripts-in-package-json

Note that even with these changes, the `start:stage` command will not
work due to the environment variable prefix. This will be solved by
the switch to newer Neutrino, which supports setting environment
variables using the `--options` command line parameter instead.
2017-10-23 17:29:41 +01:00
Ed Morley 04762e5961 Bug 1408776 - Update js-yaml from 3.9.1 to 3.10.0
https://github.com/nodeca/js-yaml/blob/3.10.0/CHANGELOG.md#3100--2017-09-10
2017-10-17 19:53:03 +02:00
Ed Morley cb305ac52e Bug 1408776 - Update json-e from 2.2.1 to 2.3.1
https://github.com/taskcluster/json-e/compare/v2.2.1...v2.3.1
2017-10-17 19:53:03 +02:00
Ed Morley 325ab2fb59 Bug 1408776 - Update jasmine-core from 2.7.0 to 2.8.0
https://github.com/jasmine/jasmine/blob/v2.8.0/release_notes/2.8.0.md
2017-10-17 19:53:03 +02:00
Ed Morley 0574a6e7bd Bug 1408776 - Update ngreact from 0.4.1 to 0.5.0
https://github.com/ngReact/ngReact/releases/tag/v0.5.0
2017-10-17 19:53:03 +02:00
Ed Morley 7043a0dfb6 Bug 1408776 - Update ajv from 5.2.2 to 5.2.3
https://github.com/epoberezkin/ajv/compare/v5.2.2...v5.2.3
2017-10-17 19:53:03 +02:00
Ed Morley 68970eda55 Bug 1408776 - Update taskcluster-client from 2.5.0 to 2.5.4
https://github.com/taskcluster/taskcluster-client/compare/v2.5.0...v2.5.4
2017-10-17 19:53:03 +02:00
Ed Morley 16a36b1274 Bug 1408776 - Update deepmerge from 1.5.0 to 1.5.2
https://github.com/KyleAMathews/deepmerge/blob/v1.5.2/changelog.md#152
2017-10-17 19:53:03 +02:00
Ed Morley 7970088409 Bug 1408776 - Update angular-ui-router from 0.4.2 to 0.4.3
https://github.com/angular-ui/ui-router/blob/0.4.3/CHANGELOG.md#043-2017-10-04
2017-10-17 19:53:03 +02:00
Ed Morley fe72a67145 Bug 1408776 - Remove caret version ranges from package.json
Since in a `yarn.lock` world they cause confusion with tooling as
to what package version is actually in use.
2017-10-17 19:53:03 +02:00
Ed Morley eb97e5ddb8 Bug 1408776 - Remove explicit eslint dependency
Since it's already a dependency of `neutrino-lint-base`.
2017-10-17 19:53:03 +02:00
Ed Morley ce313a65d5 Bug 1408776 - Remove explicit karma dependency
Since it's already a dependency of `neutrino-preset-karma`.
2017-10-17 19:53:03 +02:00
Ed Morley daf26985c6 Bug 1408776 - Remove explicit 'marked' dependency
The `angular-marked` package is already listed in `package.json`,
which itself has a dependency on `marked`, so we don't need to list
it explicitly ourselves.
2017-10-17 19:53:03 +02:00
Ed Morley a75cff15aa Bug 1408954 - Use latest yarn on Heroku/Travis (#2839)
For parity with Vagrant and to save the hassle of constantly updating.
Heroku uses the version from `package.json`.
2017-10-17 18:46:50 +02:00
Ed Morley 4269267131 Bug 1408748 - Update node from 8.6.0 to 8.7.0 (#2837)
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.7.0
2017-10-15 16:11:25 +02:00
Cameron Dawson cbf6045a6f Bug 1407008 - Update Node.js from 8.5.0 to 8.6.0 2017-10-09 12:47:43 -07:00
Brian Stack 5c0c7eb5e2 Bug 1397436 - Improve actions.json actions editor 2017-09-20 17:06:22 -07:00
Ed Morley e0fd996131 Bug 1399281 - Update nodejs from 8.4.0 to 8.5.0
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.5.0
2017-09-13 22:58:28 +01:00
Brian Stack e918b4e1b1 Bug 1391321 - Use taskcluster actions.json for all actions (#2718)
Bug 1391321 - Use taskcluster actions.json for all actions
2017-08-25 11:48:38 -07:00