mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Fix remaining requires
This commit is contained in:
@@ -5,6 +5,7 @@ const $ = require("jquery");
|
||||
|
||||
const autocomplete = require("./autocomplete");
|
||||
const colors = require("./colors");
|
||||
const config = require("./config");
|
||||
const counter = require("./counter");
|
||||
const grid = require("./grid");
|
||||
const summary = require("./summary");
|
||||
@@ -174,7 +175,7 @@ function updateAlerts(apiResponse) {
|
||||
if (dirty) {
|
||||
autocomplete.reset();
|
||||
grid.redraw();
|
||||
if (Config.GetOption("flash").Get()) {
|
||||
if (config.getOption("flash").Get()) {
|
||||
unsee.flash();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
const Masonry = require("masonry-layout");
|
||||
const $ = require("jquery");
|
||||
|
||||
const config = require("./config");
|
||||
|
||||
var selectors = {
|
||||
alerts: "#alerts",
|
||||
incident: ".incident",
|
||||
@@ -38,7 +40,7 @@ function remove(elem) {
|
||||
}
|
||||
|
||||
function append(elem) {
|
||||
if (Config.GetOption("appendtop").Get()) {
|
||||
if (config.getOption("appendtop").Get()) {
|
||||
grid.prepend(elem).masonry("prepended", elem);
|
||||
} else {
|
||||
grid.append(elem).masonry("appended", elem);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const NProgress = require("nprogress");
|
||||
|
||||
const unsee = require("./unsee");
|
||||
|
||||
var timer;
|
||||
|
||||
function init() {
|
||||
@@ -29,7 +31,7 @@ function pause() {
|
||||
|
||||
function start() {
|
||||
var stepMs = 250; // animation step in ms
|
||||
var steps = (Unsee.GetRefreshRate() * 1000) / stepMs; // how many steps we have
|
||||
var steps = (unsee.getRefreshRate() * 1000) / stepMs; // how many steps we have
|
||||
NProgress.set(0.0);
|
||||
resetTimer();
|
||||
timer = setInterval(function() {
|
||||
|
||||
Reference in New Issue
Block a user