Commit graph

153 commits

Author SHA1 Message Date
Kyrylo Gliebov
fff3a73253 Add tlog dependency 2019-01-14 13:06:58 +01:00
Kyrylo Gliebov
20138d3e83 Timezone bugfix 2019-01-14 13:06:58 +01:00
Kyrylo Gliebov
91877b0570 systemd-journal-remote use case update 2019-01-14 13:06:58 +01:00
Kyrylo Gliebov
2162092977 Update tests 2018-10-31 17:54:29 +01:00
Kyrylo Gliebov
67716138d2 Add testing 2018-10-30 15:44:11 +01:00
Kyrylo Gliebov
0f37e525d7 Fix Logs view 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
2fe77ec1da Fix SSSD Config 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
75e3f0f4d3 Change to React.Fragment 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
e2a6b5ee81 Switch to Slider instead of ProgressBar 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
5f58af7624 Player refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
1feb78fab7 Recording page refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
f69b9c1887 Config page refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
460b044720 Simplify Hostname 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
c51610e22e Datetimepicker refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
adc8159def Add Hostname filter conditional rendering 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
300a896483 Datetimepicker refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
39778968b3 Hostname and Username filters refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
2118f9e212 Refactoring 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
0a593d20d0 Fix journal error 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
b59140d328 Fix Config forms 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
2aa3270d97 Fix Logs View 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
1abe64fe0c Rebase and migration to full React instead of react-lite 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
4ca9b76b23 Fix URL and CSS links 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
0ce08a4420 Fix Config path 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
0852de4222 Fix InputPlayer 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
b7c21ae104 Fix CSS 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
ea3eb80c07 Add correlated Logs view 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
b1a44e337a Add Hostname filter and column 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
9c605da2f6 Add Input playback 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
471d2c160b Add SSSD config 2018-10-10 17:59:55 +02:00
Kyrylo Gliebov
a20e3c5a81 Session recording module for Cockpit initial commit 2018-10-10 17:59:55 +02:00
Kirill Glebov
d73a91232e Add eslint tasks and README
Closes #47
2018-09-27 13:40:08 +02:00
Martin Pitt
1da6473420 test: Really clean up test VM on image preparation
The previous fix (commit 6e05f5b483) only cleaned
test/images/$(TEST_OS), which is just a symlink to $(TEST_OS).qcow.
Clean the actual image as well.

Closes #46
2018-09-06 16:51:42 +02:00
Martin Pitt
6e05f5b483 test: Properly clean up test VM on image preparation
Remove the entire previous overlay instead of just removing the built
package. This ensures that there are no leftovers from previous
interactive debugging sessions.

This has already shown to lead to confusion in practice in
cockpit-podman.

Closes #44
2018-08-29 14:14:54 +02:00
Martin Pitt
fd59f8629b Fix make rpm for unreleased code
When the topmost commit isn't tagged, rpmbuild otherwise fails with

    error: line 2: Illegal char '-' (0x2d) in: Version: 176-1-g9101a30a

Replace the dashes from `git describe` with periods, to get a valid RPM
upstream version number.

Closes #45
2018-08-29 14:03:19 +02:00
Martin Pitt
21e504403b Move to babel 7
Closes #41
2018-08-29 00:40:49 +02:00
Martin Pitt
8a73531374 Use full React instead of react-lite
This is the direction we are going in Cockpit, as react-lite falls
behind with API development and debuggability.

Closes #43
2018-08-29 00:40:16 +02:00
Martin Pitt
9fa5c6ab05 Properly initialize state of Application
This will otherwise crash with React 16.
2018-08-29 00:40:16 +02:00
Martin Pitt
842a380766 Move to webpack 4
This has uglification built in.

Closes #42
2018-08-29 00:37:18 +02:00
Martin Pitt
133badfa3d Enable a lot of eslint options and plugins
Taken rules from Cockpit, which have been proven to be effective for
finding bugs and keeping clean code, and sensible (not taking
unreasonable effort to satisfy).

Fix code layout in app.jsx accordingly.

Closes #39
2018-08-28 22:57:52 +02:00
Martin Pitt
3922333029 Use eslint for everything
eslint is much more powerful and flexible than jshint, and we don't want
to promote writing new projects with pre-ES6 code.

As a side effect, this also avoids downloading PhantomJS (see
https://github.com/jshint/jshint/issues/3318), thereby cutting down
node_modules/ from 470 MB to 210 MB.
2018-08-28 22:57:52 +02:00
Martin Pitt
da06135330 cockpituous-release: Show how to do Fedora uploads
Closes #40
2018-08-28 22:51:10 +02:00
Martin Pitt
b0fd338e4b Bump Cockpit test API to 176
No API changes.
2018-08-28 22:51:10 +02:00
Martin Pitt
959d743452 Drop Python3 build requirement
This is only being used for extracting the package name from package
json, to avoid having to duplicate it in `Makefile`.
But for only this purpose, Python 3 is rather heavyweight. It's also not
available on RHEL/CentOS 7.
2018-08-28 22:51:10 +02:00
Martin Pitt
0c7ff6a896 Fix license tag in spec file
https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
2018-08-28 22:51:10 +02:00
Martin Pitt
a26ef5d27c Simplify spec file
- Entirely drop `%build` section, as there is nothing to do anyway.
- Use `%make_install` macro.
- Replace the complicated file list wrangling with a simple directory
  enumeration.

Thanks to Igor Gnatenko for the suggestions!

See https://bugzilla.redhat.com/show_bug.cgi?id=1603146

Closes #38
2018-08-02 10:16:49 -04:00
Martin Pitt
509547f502
Add minimal Cockpituous release script
This only builds a tarball and srpm, and shows a few other example.
Document the intent and point to the cockpituous docs.

Closes #37
2018-07-19 09:22:45 +02:00
Martin Pitt
0a7a0bfb59 Fix Makefile dependencies for directories in src/
Our release tarballs only contain files, not their containing
directories, due to `git ls-files`. tar creates these directories on the
fly on unpack, with a current timestamp instead of an archived one. This
causes directories in src/ to be newer than dist/ and thus a `make` will
try to rebuild the webpack. This breaks RPM builds.
2018-07-19 09:11:07 +02:00
Martin Pitt
e9635620c5 spec: Don't try to rebuild webpack when building released tarballs
Release tarballs already have dist/. We can't rebuild the webpack in an
RPM as that requires npm and network access for `npm install`. But we
also don't want to ship the entire `node_modules/` as that is huge and
would require lots of careful license review.

So ship a stub node_modules/ that satisfies the Makefile dependency.
Make sure that this is not newer than package.json or anything in dist/,
so that none of the Makefile's rebuild rules trigger.

Closes #36
2018-07-19 09:11:07 +02:00
Martin Pitt
70c7242d9d Fix webpack result test in dist/
When building in production mode, there is no index.js, just an
index.min.js.gz. This previously caused unnecessary rebuilds, or even
RPM build failures in environments where npm was not available. Test for
index.html instead, which is reliable.

Also factor this out into a constant to make it easier to adjust in
forked projects.
2018-07-19 09:11:07 +02:00