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
This commit is contained in:
Katerina Koukiou 2021-11-08 10:40:12 +01:00 committed by Justin Stephenson
parent e49176b966
commit e13c9d1bf3
22 changed files with 28 additions and 2696 deletions

View file

@ -59,12 +59,12 @@ import {
} from "@patternfly/react-icons";
import { global_danger_color_200 } from "@patternfly/react-tokens";
import { debounce } from 'throttle-debounce';
import { journal } from 'journal';
const $ = require("jquery");
const cockpit = require("cockpit");
const _ = cockpit.gettext;
const moment = require("moment");
const Journal = require("journal");
const Player = require("./player.jsx");
const Config = require("./config.jsx");
@ -247,7 +247,7 @@ class Logs extends React.Component {
}
const self = this;
this.journalCtl = Journal.journalctl(matches, options)
this.journalCtl = journal.journalctl(matches, options)
.fail(this.journalctlError)
.done(function(data) {
self.journalctlIngest(data);
@ -701,7 +701,7 @@ export default class View extends React.Component {
}
this.journalctlRecordingID = this.state.recordingID;
this.journalctl = Journal.journalctl(matches, options)
this.journalctl = journal.journalctl(matches, options)
.fail(this.journalctlError)
.stream(this.journalctlIngest);
}