Commit Graph

31 Commits

Author SHA1 Message Date
Jai Bhagat
8c600acb35 ui: prettify js files 2022-01-20 09:54:56 -05:00
Jai Bhagat
ba9d95c34d ui: disable no-string-protype-extensions where its currently in use 2022-01-20 09:46:49 -05:00
Michael Lange
a019587de5 Use common helpers and utils for formatting hertz 2021-03-31 09:29:14 -07:00
Michael Lange
f82fe6b875 Format all bytes using helpers, even the ones that are already MiBs 2021-03-31 09:29:02 -07:00
Michael Lange
efaadd426b format-scheduled-bytes helper 2021-03-31 09:29:02 -07:00
Michael Lange
432ec44ba2 Refactor formatBytes helper to use core units util 2021-03-31 09:29:01 -07:00
Michael Lange
a6a9df5b4b Simple bind helper
This binds a function to a target before passing it along to another
component. It's normal to expect to get to use `this` within functions
on components and controllers, but (sans actions) that doesn't happen
automatically.
2021-03-24 13:52:51 -07:00
Michael Lange
a97b1bc3e2 New all-icons helper that's really only meant for development use
This returns an array of all icons. As the comment suggests, it's
because the SVGs file can't be imported in stories since it is generated
as part of the Ember project.
2020-10-26 12:25:34 -07:00
Michael Lange
c2b7f7c073 Add cluster details to the topology page 2020-10-15 02:54:13 -07:00
Michael Lange
950c2bd39d Make eq-by helper resilient to a lack of prop since handlebars doesn't short-circuit evaluation 2020-08-06 17:59:26 -07:00
Michael Lange
208eb0d808 Compare scale events by their UID instead of reference equality 2020-08-05 12:02:23 -07:00
Michael Lange
e28efc6afc LazyClick should also get interrupted by buttons 2020-06-18 22:08:26 -07:00
Michael Lange
4bb24ac8f0 Remove jquery from the lazy-click helper 2020-05-26 14:31:15 -07:00
Michael Lange
f255a1c963 Expose existing qp serialization util as a helper 2020-05-19 17:28:23 -07:00
Michael Lange
72a928c5ec Treat null and undefined equally 2020-05-13 08:36:04 -07:00
Michael Lange
c04b5d29f4 Add short option to date formatters 2020-05-06 17:21:46 -07:00
Michael Lange
7e6a4f74fc Address inflector deprecations 2019-04-10 14:54:35 -07:00
Michael Lange
e1b0eb58e9 Remove the includes helper in favor of the contains helper 2019-04-10 10:34:10 -05:00
Michael Lange
1affa098c0 Simple includes helper that works like Array#includes 2019-04-10 10:34:10 -05:00
Michael Lange
076dddbe7f New helpers to standardize date and timestamp formats 2019-02-01 09:19:28 -08:00
Michael Lange
9a6d2bee10 Add a longForm option to format-duration 2018-09-27 12:55:17 -07:00
Michael Lange
4d00f2f46d Duration formatting utility
The cloest Moment.js has is "homanize" which isn't precise enough.
2018-05-30 11:27:21 -07:00
Michael Lange
2e19c2d877 Use the new ember modules imports
Generated with a codemode:
https://github.com/ember-cli/ember-modules-codemod
2018-01-17 09:02:04 -08:00
Michael Lange
1f4b61f074 Merge pull request #3428 from hashicorp/b-ui-missed-the-deployment-allocs
Add modified and version headers to deployment allocation table
2017-10-25 10:31:20 -07:00
Michael Lange
855ebf98ce Switch from href-to to link-to for QP persistence
See this issue: https://github.com/intercom/ember-href-to/issues/62
2017-10-23 17:42:35 -07:00
Michael Lange
2bc1957f62 Handle the not a number case 2017-10-19 17:35:58 -07:00
Michael Lange
f1dc08db29 Tests (and bug fixes!) for the format-bytes helper 2017-10-17 10:17:42 -07:00
Michael Lange
5f617d7955 New helper for human-formatting bytes 2017-10-17 10:17:42 -07:00
Michael Lange
abf313a8ce Add new icon helper and the first icon: warning 2017-10-03 10:54:22 -07:00
Michael Lange
5c5de58b8f Fix the links in table rows bug
Click events were greedily redirecting to the resource pages instead
of first yielding to the anchor tag clicked if an anchor tag was in
fact clicked.
2017-09-26 11:59:42 -07:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00