Commit Graph

569 Commits

Author SHA1 Message Date
Łukasz Mierzwa
549ff9eefd Add KEEP_LABELS option for whitelisting labels
This allows to provide a list of labels that are the only labels allowed in the UI, reversing the logic of STRIP_LABELS.
Fixes #170
2017-08-11 12:28:02 -07:00
Łukasz Mierzwa
067bd2e645 Merge pull request #157 from cloudflare/fix-ac-ccs
Fix autocomplete dropdown selection color
2017-08-11 12:24:50 -07:00
Łukasz Mierzwa
d8efb97f97 Provide .less style for bootstrap-tagsinput
We use flatly theme for bootstrap while bootstrap-tagsinput bundles a css file that follow vanilla style, create a less version and use it instead of the css one bundles with bootstrap-tagsinput.
typeahead.js allows to customize class names used for UI elements, but bootstrap-tagsinput doesn't support passing that and is no longer maintained, so we need to follow default typeahead.js classes.
2017-08-10 16:53:30 -07:00
Łukasz Mierzwa
add00dab12 Merge pull request #168 from cloudflare/fix-docker-hub
Docker Hub doesn't support build stages yet
2017-08-10 15:18:09 -07:00
Łukasz Mierzwa
98c0c8706a Docker Hub doesn't support multi-stage builds yet
https://github.com/docker/hub-feedback/issues/1039
2017-08-09 12:13:02 -07:00
Łukasz Mierzwa
f3f13bac89 Merge pull request #166 from cloudflare/fix-docker
Fix failing docker builds
2017-08-09 11:34:05 -07:00
Łukasz Mierzwa
fe29b4b28b Update docs to remove go install instructions 2017-08-09 11:24:08 -07:00
Łukasz Mierzwa
971d48f3d7 Use make targets in the dockerfile
By dropping vendor & bindata.go from git unsee is no longer go installable, and realistically it won't be, because the build pipeline is big and involves multiple tools.
Let's just use make targets we use for development when building docker image.
2017-08-09 11:24:08 -07:00
Łukasz Mierzwa
016f54e63c Merge pull request #163 from cloudflare/npm-install-linux
Drop fsevents from package-lock.json
2017-08-09 11:15:59 -07:00
Łukasz Mierzwa
036cb7e500 Drop fsevents from package-lock.json
This dependency was added to package-lock.json because npm install was initially run on MacOS and that package only works there. It spams CI jobs with warnings and keeps changing package-lock.json when developing on linux, MacOS builds should be fixed not to add it
2017-08-09 09:42:43 -07:00
Łukasz Mierzwa
a181807822 Merge pull request #165 from cloudflare/source-maps
Enable source map generation in UglifyJsPlugin
2017-08-08 14:20:13 -07:00
Łukasz Mierzwa
d5a5425dc5 Enable source map generation in UglifyJsPlugin
Looks like it was disabled at some point and depending on the version of webpack it's enabled by default or not:
https://github.com/webpack/webpack/issues/2704#issuecomment-228860162

So it was working with 3.3.0 but now fails with 3.4.1, this PR fixes it
2017-08-08 14:05:32 -07:00
Łukasz Mierzwa
e440af8070 Merge pull request #164 from cloudflare/ignore-bindata
Remove bindata_assetfs.go from git
2017-08-08 14:00:05 -07:00
Łukasz Mierzwa
d8ce9f9710 Remove bindata_assetfs.go from git
Maintaining this file as part of git tree isn't great, it's not really possible to review changes to it, let's just build it locally, especially that we've added webpack that also builds all assets and it's the files generated by webpack that we now compile into bindata_assetfs.go
2017-08-08 12:19:01 -07:00
Łukasz Mierzwa
31feb0c3d7 Merge pull request #159 from cloudflare/jquery-typing
Jquery typing update
2017-08-08 12:06:48 -07:00
Łukasz Mierzwa
1b657c42ce Update git ignore file 2017-08-08 12:03:33 -07:00
Łukasz Mierzwa
55c722773a Resume auto-refresh on backspace
Right now if user starts typing & then starts pressing backspace we pause but never resume, because stopping pressing backspace is ignored when resuming.
2017-08-08 12:03:33 -07:00
Łukasz Mierzwa
937f12e5e0 Update jquery.typing to 0.3.2 2017-08-08 11:57:38 -07:00
Łukasz Mierzwa
4c5fc4870f Merge pull request #162 from cloudflare/gzip
Use gzip middlerware to compress responses if client can accept compr…
2017-08-08 11:31:47 -07:00
Łukasz Mierzwa
38339c887e Use gzip middlerware to compress responses if client can accept compressed content
Some alert.json responses are going to be big, compress it to save bandwidth
2017-08-08 11:28:17 -07:00
Łukasz Mierzwa
7d1f40ef44 Merge pull request #161 from cloudflare/js-source-maps
Enable source map generation in webpack
2017-08-08 11:26:54 -07:00
Łukasz Mierzwa
404cc47f5f Enable source map generation in webpack
JS files are minified, enabling source map generation will help with debugging. Sentry can also use source maps for better exceptions.
2017-08-08 11:22:30 -07:00
Łukasz Mierzwa
987013d4ca Merge pull request #160 from cloudflare/webpack-prod
Automatically disable webpack production mode when NODE_ENV=test is set
2017-08-08 11:21:02 -07:00
Łukasz Mierzwa
c5bff9d062 Automatically disable webpack production mode when NODE_ENV=test is set
This will speed up local development and CI runs (5s vs 30s)
2017-08-08 11:16:07 -07:00
Łukasz Mierzwa
b0b7e94e86 Merge pull request #155 from cloudflare/cache-vendor
Stop committing vendor dir to git
2017-08-08 11:14:16 -07:00
Łukasz Mierzwa
558cbc737b Cache vendor dir on travis
This will avoid slow clones on CI
2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
b8acd53505 Git ignore vendor folder 2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
4aa187674c Call vendor make target when building binary
This will ensure vendor dir is populated
2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
b4329bcf80 Stop commiting vendor dir to git 2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
d693a774df Merge pull request #154 from cloudflare/npm-fixes
Update package-lock.json
2017-08-08 11:00:56 -07:00
Łukasz Mierzwa
586cef4934 Use nodejs 8.x on travis
Latest nodejs is faster and handles package-lock.json better
2017-08-04 21:49:22 -07:00
Łukasz Mierzwa
0d045a8d6f Update package-lock.json
It wasn't updated because I was using npm 3.x which doesn't properly maintain this file upon npm install
2017-08-04 21:49:22 -07:00
Łukasz Mierzwa
05ee04d439 Merge pull request #153 from cloudflare/internal-packages
Convert all packages to be internal
2017-08-04 16:24:35 -07:00
Łukasz Mierzwa
5d4ae47888 Convert all packages to be internal
Internal packages are supported by Go 1.5+, any package in /internal/ dir is only importable from the same repo. This will cleanup main dir a bit and provide better namespace for unsee subpackages
2017-08-04 16:21:27 -07:00
Łukasz Mierzwa
5773ab2cb6 Merge pull request #150 from cloudflare/jest
Jest & webpack
2017-08-04 16:20:54 -07:00
Łukasz Mierzwa
13703d0616 Use webpack & eslint from node_modules dir that we manage 2017-08-04 14:28:01 -07:00
Łukasz Mierzwa
c8ef373b59 Update webpack to the latest stable version 2017-08-03 22:47:46 -07:00
Łukasz Mierzwa
bea01196b3 Add more watchdog tests 2017-08-02 20:58:05 -07:00
Łukasz Mierzwa
ae5f0e39ae remove dead code from templates.test.js 2017-08-02 20:57:24 -07:00
Łukasz Mierzwa
90646a3727 Fix is-in-viewport mock to return true 2017-08-02 20:11:32 -07:00
Łukasz Mierzwa
eb21642103 Add reload tests 2017-07-30 21:35:01 -07:00
Łukasz Mierzwa
b6d5a5614e Run end-to-end tests for unsee.js
This will allow to test entire alerts flow - get alerts.json response (via mocks) and render alerts
2017-07-30 21:08:11 -07:00
Łukasz Mierzwa
6bd6f63c7c Enable node mode in eslint and remove uneeded overrides 2017-07-30 20:19:06 -07:00
Łukasz Mierzwa
2020099987 Mock templates so we actually load and parse all of them 2017-07-30 20:18:32 -07:00
Łukasz Mierzwa
bd249e4c02 Proper behaviour tests for ui.js
Checks whenever code does what it suppose to, not only if it runs
2017-07-30 17:25:10 -07:00
Łukasz Mierzwa
0a1443c18f Enable caching in webpack & babel
Saves ~5s per build
2017-07-30 15:53:28 -07:00
Łukasz Mierzwa
558ace10fc More coverage in the ui.js module tests 2017-07-30 15:53:28 -07:00
Łukasz Mierzwa
f6078d9f1f Add proper counter.js tests 2017-07-29 23:14:42 -07:00
Łukasz Mierzwa
8cc8e505c2 Cache node_modules
So we don't need to download everything on every CI run
2017-07-29 17:30:50 -07:00
Łukasz Mierzwa
3eb1e0cafd Test color.merge() 2017-07-29 16:57:36 -07:00