Commit graph

43 commits

Author SHA1 Message Date
Martin Pitt
ef6634a0c7 package.json: Bump stylelint to 15
(cherry picked from commit 6ece59c917)
2023-07-19 15:44:03 -04:00
Justin Stephenson
e9f6c15d70 Add xterm-canvas-addon dependency for rendering 2023-07-18 15:07:57 -04:00
Martin Pitt
3e29263d45 package.json: Bump esbuild and esbuild-sass-plugin
esbuild-sass-plugin 2.10 got released as compatible with 2.8, but it is
not compatible any more with esbuild 0.17.18. Bump both.

(cherry picked from commit d3b9064d63)
2023-07-18 15:07:57 -04:00
Allison Karlitskaya
804a15b07f Makefile: bump our test/common dependency
... and make use of the new pywrap feature from our test.

Use the same eslint and stylelint plugin configuration as the cockpit
main repo.

Co-authored-by: Katerina Koukiou <kkoukiou@redhat.com>
(cherry picked from commit 2215aa3bf8)
2023-05-31 08:36:26 -04:00
Justin Stephenson
4426f62000 Bump PF5 react-{table, tokens} not in starter kit 2023-05-24 10:45:14 -04:00
Cockpit Project
9fe6a8229a package.json: Update @patternfly/patternfly, @patternfly/react-core, @patternfly/react-icons, @patternfly/react-styles
Bump Cockpit commit to pick up the necessary adjustments for latest PF,
and adjust test for the new "-v5" namespace prefix.

Closes #654

(cherry picked from commit 092cefab3b)
2023-05-24 10:45:14 -04:00
Justin Stephenson
12ab19bb67 Upgrade to PatternFly 5 Alpha 2023-05-17 11:08:46 -04:00
Martin Pitt
7c82b32a59 package.json: Pin down versions of @patternfly/react-{styles,icons}
These are already installed as dependencies, and we do the same in other
Cockpit projects. The latest react-styles version became incompatible
with the react-core version, causing a build failure.

(cherry picked from commit a47c641af9)
2023-05-17 11:08:46 -04:00
Cockpit Project
81a3650eba Makefile: Update Cockpit lib to 947f1753867e3924b9617aaace936225
Update to PF5 and the new cockpit lib API.

Closes #646

(cherry picked from commit b2bdaac5b2)
2023-05-17 11:08:46 -04:00
Justin Stephenson
d41cf3bfcc Dependency updates 2023-04-27 14:47:24 -04:00
Justin Stephenson
235f110ec7 Bring up to date with cockpit starter kit
This encompasses a number of changes to the build process.
2023-04-27 14:47:24 -04:00
Justin Stephenson
92f3b7b75d Update dependencies excluding Patternfly
Update to webpack 5
2023-01-16 08:55:35 -05:00
Justin Stephenson
6f5ec24e16 Drop moment.js dependency
Addresses CVE-2022-24785
2022-05-19 14:17:07 -04:00
Katerina Koukiou
c855f12deb Use current babel/eslint integration
Fixes these `npm install` warnings:

> deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
> deprecated eslint-loader@4.0.2: This loader has been deprecated. Please use eslint-webpack-plugin

Cherry-picked from starter-kit commit 0e608d562a
2021-11-17 13:05:47 -05:00
Katerina Koukiou
8b9f7f490e package.json: explicitely depend on @patternfly/react-icons otherwise we get an import error 2021-11-17 13:05:47 -05:00
Katerina Koukiou
abc5922946 package.json: update patternfly packages 2021-11-17 13:05:47 -05:00
Katerina Koukiou
4be61896ea package.json: use sass instead of node-sass
node-sass is a compiled ELF module, which is problematic for
distributions that want to rebuild everything from source. The sassc CLI
program is packaged everywhere, and both use the same libsass library.

So drop node-sass and replace it with sass which is also what cockpit
and other external plugins are using.

Port alerts in PF-react-core and fix missing icons in alerts
2021-11-17 13:05:47 -05:00
Katerina Koukiou
e13c9d1bf3 Fetch pkg/lib automatically from cockpit instead of keeping a local copy
* remove mustache module as it's not used anymore.
* port alert component to react-core as the current code creates a
broken UI
2021-11-17 13:05:47 -05:00
Justin Stephenson
d038d2bd55 Throttle journalctl restarts
This addresses an issue with typeahead search generating a significant
load on the system, a single filter test run can make ~100 calls to
journalctl restart if not throttled.
2021-07-14 23:22:19 -04:00
Benjamin Graham
46ad9834b3 Updated dependencies to match latest starterkit
* removed unused dependencies
* updated dependencies to match starterkit
* updated build pipeline
2020-07-24 12:53:46 -04:00
Justin Stephenson
cddcb1f40a Replace term.js with xterm.js 2019-08-26 13:17:13 -04:00
Kyrylo Gliebov
e2a6b5ee81 Switch to Slider instead of ProgressBar 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
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
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
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
Lars Karlitski
7260f5c01f Add scss example
Closes #26
2018-06-22 11:15:57 +02:00
Martin Pitt
47e02ef136 Add i18n for HTML and manifest 2018-06-19 18:09:57 +02:00
Martin Pitt
7ce7b2b40b Add i18n support
Make the "Running on.." string translatable and copy the extraction and
conversion of JSX and PO files from Cockpit.
2018-06-19 14:40:45 +02:00
Martin Pitt
931e1be3c3 Add integration test using Cockpit test API
Closes #16
2018-03-09 10:13:03 +01:00
Lars Karlitski
03217f7fe8 Consistently name everything [cockpit-]starter-kit (#14) 2017-10-19 17:54:12 +02:00
Lars Karlitski
6bfe20fdcc Dist using git ls-files
This makes sure we always include all files in the repository when
disting.

Obsoletes webpack-with-stats, which had a bug anyway: it wasn't
reporting jslint errors.
2017-10-18 19:12:56 +02:00
Lars Karlitski
dd765787e8 Remove all remaining mentions of "subscriptions" 2017-10-18 16:42:54 +02:00
Marius Vollmer
4aa750a0fe Improve source package slightly
This moves us one step closer to a normal source package.  The sources
are now unpacked and we run "make install".  We still don't build
since we don't have all the necessary tools.

Also, most importantly, the source tarball now includes our actual
sources in addition to the prebuilt binaries.
2017-09-11 10:43:48 +02:00
Dominik Perpeet
26a7c0154c Compress distributed files 2017-07-26 10:33:14 +02:00
Dominik Perpeet
a01820e565 Add more sample content to subscriptions page 2017-07-26 10:33:14 +02:00
Dominik Perpeet
3f7ac60374 build: Update webpack config
Make building more convenient, add linting and distribute html files.
2017-06-20 07:41:52 -04:00
Sean Toner
811e3eebe0 initial commit. Created a basic webpack.config.js file, some basic .babelrc settings, and some notes on the build 2017-06-20 07:41:52 -04:00