diff --git a/README.md b/README.md
index defcb1a5..745de934 100644
--- a/README.md
+++ b/README.md
@@ -28,8 +28,8 @@ Key features:
![](./images/banners/screenshots.png)
# Getting Started
- * [Deployment on Kubernetes](./docs/deployement-on-kubernetes.md)
- * [Deployment on Docker](./docs/deployement-on-deployment-on-docker.md)
+ * [Deployment on Kubernetes](./docs/deployment-on-kubernetes.md)
+ * [Deployment on Docker](./docs/deployment-on-docker.md)
* [Integration with Kubernetes](https://realopinsight.com/docs/quickstart-kubernetes-dashboard/)
* [Integration with Zabbix](https://realopinsight.com/docs/quickstart-zabbix-dashboard/)
* [Integration with Nagios and alike](https://realopinsight.com/docs/quickstart-nagios-icinga-centreon-dashboard/)
diff --git a/contribs/etc/wt_config.xml b/contribs/etc/wt_config.xml
index d3d6d006..79abb6bd 100644
--- a/contribs/etc/wt_config.xml
+++ b/contribs/etc/wt_config.xml
@@ -29,7 +29,7 @@
+
@@ -597,7 +597,7 @@
${add-as-source-button}
${delete-button}
-
+
@@ -649,7 +649,7 @@
${open-service-view}
${import-native-config}
${import-zabbix-it-service}
- ${import-nabios-bpi}
+ ${import-nagios-bpi}
@@ -725,7 +725,7 @@
${notification-settings-save-button}
-
+
diff --git a/resources/jPlayer/jquery.jplayer.js b/resources/jPlayer/jquery.jplayer.js
index 842f31b6..40825925 100644
--- a/resources/jPlayer/jquery.jplayer.js
+++ b/resources/jPlayer/jquery.jplayer.js
@@ -596,7 +596,7 @@
keyEnabled: false, // Enables keyboard controls.
audioFullScreen: false, // Enables keyboard controls to enter full screen with audio media.
keyBindings: { // The key control object, defining the key codes and the functions to execute.
- // The parameter, f = $.jPlayer.focus, will be checked truethy before attempting to call any of these functions.
+ // The parameter, f = $.jPlayer.focus, will be checked truthy before attempting to call any of these functions.
// Properties may be added to this object, in key/fn pairs, to enable other key controls. EG, for the playlist add-on.
play: {
key: 80, // p
@@ -699,7 +699,7 @@
playbackRate: 1, // Warning - Now both an option and a status property
ended: 0
-/* Persistant status properties created dynamically at _init():
+/* Persistent status properties created dynamically at _init():
width
height
cssClass
@@ -865,7 +865,7 @@
this.options.volume = this._limitValue(this.options.volume, 0, 1); // Limit volume value's bounds.
- // Create the formats array, with prority based on the order of the supplied formats string
+ // Create the formats array, with priority based on the order of the supplied formats string
$.each(this.options.supplied.toLowerCase().split(","), function(index1, value1) {
var format = value1.replace(/^\s+|\s+$/g, ""); //trim
if(self.format[format]) { // Check format is valid.
@@ -882,7 +882,7 @@
}
});
- // Create the solutions array, with prority based on the order of the solution string
+ // Create the solutions array, with priority based on the order of the solution string
$.each(this.options.solution.toLowerCase().split(","), function(index1, value1) {
var solution = value1.replace(/^\s+|\s+$/g, ""); //trim
if(self.solution[solution]) { // Check solution is valid.
@@ -1212,7 +1212,7 @@
// MJP: The background change remains. Would need to store the original to restore it correctly.
// MJP: The jPlayer element's size change remains.
- // Clear the media to reset the GUI and stop any downloads. Streams on some browsers had persited. (Chrome)
+ // Clear the media to reset the GUI and stop any downloads. Streams on some browsers had persisted. (Chrome)
this.clearMedia();
// Remove the size/sizeFull cssClass from the cssSelectorAncestor
this._removeUiClass();
@@ -1573,7 +1573,7 @@
var ct = 0, cpa = 0, sp = 0, cpr = 0;
// Fixes the duration bug in iOS, where the durationchange event occurs when media.duration is not always correct.
- // Fixes the initial duration bug in BB OS7, where the media.duration is infinity and displays as NaN:NaN due to Date() using inifity.
+ // Fixes the initial duration bug in BB OS7, where the media.duration is infinity and displays as NaN:NaN due to Date() using infinity.
if(isFinite(media.duration)) {
this.status.duration = media.duration;
}
@@ -3162,7 +3162,7 @@
},
_aurora_playHead: function(percent) {
if(this.aurora.player.duration > 0) {
- // The seek() sould be in milliseconds, but the only codec that works with seek (aac.js) uses seconds.
+ // The seek() should be in milliseconds, but the only codec that works with seek (aac.js) uses seconds.
this.aurora.player.seek(percent * this.aurora.player.duration / 100); // Using seconds
}
diff --git a/resources/themes/bootstrap/2/wt.css b/resources/themes/bootstrap/2/wt.css
index 2b64caeb..196acddc 100644
--- a/resources/themes/bootstrap/2/wt.css
+++ b/resources/themes/bootstrap/2/wt.css
@@ -114,7 +114,7 @@
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
}
/*
- * Fix submens in popup menus in navbar
+ * Fix submenus in popup menus in navbar
*/
.navbar .nav > li > .dropdown-menu.submenu:before {
display: none;
diff --git a/resources/themes/bootstrap/2/wt.less b/resources/themes/bootstrap/2/wt.less
index 3bd6a0c6..69433733 100644
--- a/resources/themes/bootstrap/2/wt.less
+++ b/resources/themes/bootstrap/2/wt.less
@@ -105,7 +105,7 @@
}
/*
- * Fix submens in popup menus in navbar
+ * Fix submenus in popup menus in navbar
*/
.navbar .nav > li > .dropdown-menu.submenu:before {
display: none;
diff --git a/resources/themes/bootstrap/3/wt.css b/resources/themes/bootstrap/3/wt.css
index 6951517a..63769b85 100644
--- a/resources/themes/bootstrap/3/wt.css
+++ b/resources/themes/bootstrap/3/wt.css
@@ -104,7 +104,7 @@
}
/*
- * Fix submens in popup menus in navbar
+ * Fix submenus in popup menus in navbar
*/
.navbar .nav > li > .dropdown-menu.submenu:before {
diff --git a/resources/themes/bootstrap/3/wt.less b/resources/themes/bootstrap/3/wt.less
index 0557951b..54bf7938 100644
--- a/resources/themes/bootstrap/3/wt.less
+++ b/resources/themes/bootstrap/3/wt.less
@@ -94,7 +94,7 @@
}
/*
- * Fix submens in popup menus in navbar
+ * Fix submenus in popup menus in navbar
*/
.navbar .nav > li > .dropdown-menu.submenu:before {
display: none;
diff --git a/resources/themes/bootstrap/wt.css b/resources/themes/bootstrap/wt.css
index 30b42329..f5dbc182 100644
--- a/resources/themes/bootstrap/wt.css
+++ b/resources/themes/bootstrap/wt.css
@@ -100,7 +100,7 @@
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
}
/*
- * Fix submens in popup menus in navbar
+ * Fix submenus in popup menus in navbar
*/
.navbar .nav > li > .dropdown-menu.submenu:before {
display: none;
diff --git a/resources/themes/bootstrap/wt.less b/resources/themes/bootstrap/wt.less
index 5e8b0959..dac6b78e 100644
--- a/resources/themes/bootstrap/wt.less
+++ b/resources/themes/bootstrap/wt.less
@@ -88,7 +88,7 @@
}
/*
- * Fix submens in popup menus in navbar
+ * Fix submenus in popup menus in navbar
*/
.navbar .nav > li > .dropdown-menu.submenu:before {
display: none;
diff --git a/unittests/tst_mklshelpertest.cpp b/unittests/tst_mklshelpertest.cpp
index 06744765..38e239ae 100644
--- a/unittests/tst_mklshelpertest.cpp
+++ b/unittests/tst_mklshelpertest.cpp
@@ -14,7 +14,7 @@ class LsHelperTest : public QObject
private Q_SLOTS:
void testCase1();
- void testBadRecvingDataType();
+ void testBadReceivingDataType();
void testCaseService();
void testBadHostBadPort();
void testLoadHostData();
@@ -40,7 +40,7 @@ void LsHelperTest::testCase1()
mkhelper.disconnectFromService();
}
-void LsHelperTest::testBadRecvingDataType()
+void LsHelperTest::testBadReceivingDataType()
{
QVERIFY(true == mkhelper.connectToService());
mkhelper.clearData();
diff --git a/web/src/AuthManager.cpp b/web/src/AuthManager.cpp
index 8dda2efc..c32f175d 100644
--- a/web/src/AuthManager.cpp
+++ b/web/src/AuthManager.cpp
@@ -47,7 +47,7 @@ AuthManager::AuthManager(DbSession* dbSession)
auto authProxyModel = std::make_unique(m_dbSession);
authProxyModel->loginFailed().connect(this, &AuthManager::handleLoginFailed);
authProxyModel->setVisible(Wt::Auth::AuthModel::RememberMeField, false);
- authProxyModel->addPasswordAuth(m_dbSession->passwordAuthentificator());
+ authProxyModel->addPasswordAuth(m_dbSession->passwordAuthenticator());
setModel(std::move(authProxyModel));
setRegistrationEnabled(false);
m_dbSession->wtAuthLogin().changed().connect(this, &AuthManager::handleAuthorization);
diff --git a/web/src/LdapHelper.cpp b/web/src/LdapHelper.cpp
index 82f6fa3e..9baa7ad7 100644
--- a/web/src/LdapHelper.cpp
+++ b/web/src/LdapHelper.cpp
@@ -90,14 +90,14 @@ void LdapHelper::setSslSettings(void)
bool LdapHelper::loginWithDistinguishName(const std::string& dn, const std::string& password)
{
- // Intialize a connection handler
+ // Initialize a connection handler
if (! ldap_is_ldap_url(m_serverUri.c_str()) ) {
m_lastError = QObject::tr("Invalid LDAP URL: %1").arg(m_serverUri.c_str());
return false;
}
if (! m_handler) {
- m_lastError = QObject::tr("Unitialized handler");
+ m_lastError = QObject::tr("Uninitialized handler");
return false;
}
@@ -132,7 +132,7 @@ int LdapHelper::listUsers(const std::string& searchBase,
LdapUserMapT& userMap)
{
if (! m_handler) {
- m_lastError = QObject::tr("LDAP: Unitialized handler");
+ m_lastError = QObject::tr("LDAP: Uninitialized handler");
return -1;
}
@@ -165,7 +165,7 @@ int LdapHelper::listUsers(const std::string& searchBase,
for (LDAPMessage* currentEntry = ldap_first_entry(m_handler, searchResult);
currentEntry != nullptr;
currentEntry = ldap_next_entry(m_handler, currentEntry)) {
- std::string dn = getObjectDistingisghName(currentEntry);
+ std::string dn = getObjectDistinguishName(currentEntry);
userMap[dn].insert("dn", dn);
parseObjectAttr(currentEntry, userMap[dn]);
}
@@ -177,7 +177,7 @@ int LdapHelper::listUsers(const std::string& searchBase,
}
-std::string LdapHelper::getObjectDistingisghName(LDAPMessage* objectData)
+std::string LdapHelper::getObjectDistinguishName(LDAPMessage* objectData)
{
char* buffer;
std::string result = "";
diff --git a/web/src/LdapHelper.hpp b/web/src/LdapHelper.hpp
index 520698bf..dbae14b7 100644
--- a/web/src/LdapHelper.hpp
+++ b/web/src/LdapHelper.hpp
@@ -65,7 +65,7 @@ class LdapHelper
int setupHandler(void);
void cleanupHandler(void);
void setSslSettings(void);
- std::string getObjectDistingisghName(LDAPMessage* objectData);
+ std::string getObjectDistinguishName(LDAPMessage* objectData);
void parseObjectAttr(LDAPMessage* objectData, LdapUserAttrsT& userInfo);
};
diff --git a/web/src/Notificator.hpp b/web/src/Notificator.hpp
index 2bbdee6a..e40c6e13 100644
--- a/web/src/Notificator.hpp
+++ b/web/src/Notificator.hpp
@@ -44,6 +44,6 @@ class Notificator : public QObject
private:
std::unique_ptr m_mailSender;
WebBaseSettings m_preferences;
- QEventLoop m_eventSynchonizer;
+ QEventLoop m_eventSynchronizer;
};
#endif // NOTIFICATOR_H
diff --git a/web/src/WebDashboard.hpp b/web/src/WebDashboard.hpp
index ffed1da3..49e697a3 100644
--- a/web/src/WebDashboard.hpp
+++ b/web/src/WebDashboard.hpp
@@ -108,7 +108,7 @@ class WebDashboard : public DashboardBase, public Wt::WContainerWidget
std::string m_eventContainerId;
std::unique_ptr createEventFeedTpl(const NodeT& node);
- void hanleRenderingAreaSizeChanged(double mapWidth, double mapHeight, double windowWidth, double windowHeight) {}
+ void handleRenderingAreaSizeChanged(double mapWidth, double mapHeight, double windowWidth, double windowHeight) {}
};
diff --git a/web/src/WebDataSourceSettings.cpp b/web/src/WebDataSourceSettings.cpp
index 195e2dc5..5d9e32f0 100644
--- a/web/src/WebDataSourceSettings.cpp
+++ b/web/src/WebDataSourceSettings.cpp
@@ -62,7 +62,7 @@ WebDataSourceSettings::WebDataSourceSettings()
m_monitorTypeFieldRef = bindNew("monitor-type");
m_monitorTypeFieldRef->addItem(Q_TR("-- Select a type --"));
for (const auto& srcid: ngrt4n::MonitorSourceTypes) { m_monitorTypeFieldRef->addItem(srcid.toStdString()); }
- m_monitorTypeFieldRef->activated().connect(this, &WebDataSourceSettings::updateComponentsVisibiliy);
+ m_monitorTypeFieldRef->activated().connect(this, &WebDataSourceSettings::updateComponentsVisibility);
m_monitorUrlFieldRef = bindNew("monitor-url");
m_monitorUrlFieldRef->setValidator(std::make_unique("http", false, this));
@@ -218,7 +218,7 @@ void WebDataSourceSettings::applySourceChanges(int index)
updateSourceDataModel(index);
m_sourceSelectionFieldRef->setCurrentIndex(findFormSourceIndex(index));
- m_operationCompleted.emit(ngrt4n::OperationSucceeded, Q_TR("settings udpated"));
+ m_operationCompleted.emit(ngrt4n::OperationSucceeded, Q_TR("settings updated"));
}
@@ -333,7 +333,7 @@ void WebDataSourceSettings::fillInFormGivenSourceId(int sid)
m_dontVerifyCertificateFieldRef->setCheckState(sourceLoaded.second.verify_ssl_peer? Wt::CheckState::Unchecked : Wt::CheckState::Checked);
m_updateIntervalFieldRef->setValue(updateInterval());
- updateComponentsVisibiliy(m_monitorTypeFieldRef->currentIndex());
+ updateComponentsVisibility(m_monitorTypeFieldRef->currentIndex());
m_sourceSelectionFieldRef->setCurrentIndex(sid);
}
@@ -398,7 +398,7 @@ void WebDataSourceSettings::handleSourceBoxChanged(void)
}
-void WebDataSourceSettings::updateComponentsVisibiliy(int monitorTypeCurrentIndex)
+void WebDataSourceSettings::updateComponentsVisibility(int monitorTypeCurrentIndex)
{
const auto monitorType = QString::fromStdString(m_monitorTypeFieldRef->itemText(monitorTypeCurrentIndex).toUTF8());
diff --git a/web/src/WebDataSourceSettings.hpp b/web/src/WebDataSourceSettings.hpp
index 5dbb5901..776dc091 100644
--- a/web/src/WebDataSourceSettings.hpp
+++ b/web/src/WebDataSourceSettings.hpp
@@ -84,7 +84,7 @@ class WebDataSourceSettings : public WebBaseSettings, public Wt::WTemplate
int findFormSourceIndex(int sid);
void updateSourceDataModel(int sid);
void handleSourceBoxChanged(void);
- void updateComponentsVisibiliy(int monitorTypeCurrentIndex);
+ void updateComponentsVisibility(int monitorTypeCurrentIndex);
void handleShowAuthStringChanged(void);
void saveSourceInDatabase(const SourceT& sinfo);
SourceT getSourceInfoByIndex(int sourceIndex);
diff --git a/web/src/WebEditor.cpp b/web/src/WebEditor.cpp
index ea021a0e..c58d4a07 100644
--- a/web/src/WebEditor.cpp
+++ b/web/src/WebEditor.cpp
@@ -103,7 +103,7 @@ WebEditor::WebEditor(void)
auto importNagiosBpiBtn = std::make_unique(Wt::WLink("images/built-in/import-nagios_32x32.png"));
importNagiosBpiBtn->setToolTip(Q_TR("Import Nagios BPI"));
importNagiosBpiBtn->clicked().connect(this, &WebEditor::handleImportNagiosBpiButton);
- m_editionPaneRef->bindWidget("import-nabios-bpi", std::move(importNagiosBpiBtn));
+ m_editionPaneRef->bindWidget("import-nagios-bpi", std::move(importNagiosBpiBtn));
// name field
m_nameFieldRef = m_editionPaneRef->bindNew("name-field");
@@ -873,20 +873,20 @@ void WebEditor::importNagiosBpi(const std::string& srcId, const std::string& bpi
break;
}
- QString groudId = fields[1];
+ QString groupId = fields[1];
- NodeListT::Iterator currentGroupSrv = cdata.bpnodes.find(groudId);
+ NodeListT::Iterator currentGroupSrv = cdata.bpnodes.find(groupId);
if (currentGroupSrv == cdata.bpnodes.end()) {
NodeT groupSrv;
- groupSrv.id = groudId;
- groupSrv.name = groudId;
+ groupSrv.id = groupId;
+ groupSrv.name = groupId;
groupSrv.type = NodeType::BusinessService;
groupSrv.parents.clear();
groupSrv.sev_prule = PropRules::Unchanged;
groupSrv.sev_crule = CalcRules::Worst;
groupSrv.weight = ngrt4n::WEIGHT_UNIT;
groupSrv.icon = ngrt4n::DEFAULT_ICON;
- currentGroupSrv = cdata.bpnodes.insert(groudId, groupSrv);
+ currentGroupSrv = cdata.bpnodes.insert(groupId, groupSrv);
}
currentGroupSrv->sev_crule = CalcRules::Worst;
diff --git a/web/src/WebMainUI.cpp b/web/src/WebMainUI.cpp
index 07bb67cf..ca3ba707 100644
--- a/web/src/WebMainUI.cpp
+++ b/web/src/WebMainUI.cpp
@@ -106,17 +106,17 @@ WebMainUI::WebMainUI(AuthManager* authManager)
loggedUserMenu->addItem(std::move(loggedUserMenuItem));
m_navbarRef->addMenu(std::move(loggedUserMenu), Wt::AlignmentFlag::Right);
- auto toobarActionIcon = ngrt4n::createFontAwesomeTextButton("fa fa-refresh", "Refresh the console map");
- toobarActionIcon->clicked().connect(this, &WebMainUI::handleRefresh);
- m_navbarRef->addWidget(std::move(toobarActionIcon));
+ auto toolbarActionIcon = ngrt4n::createFontAwesomeTextButton("fa fa-refresh", "Refresh the console map");
+ toolbarActionIcon->clicked().connect(this, &WebMainUI::handleRefresh);
+ m_navbarRef->addWidget(std::move(toolbarActionIcon));
- toobarActionIcon = ngrt4n::createFontAwesomeTextButton("fa fa-search-plus", "Zoom the console map in");
- toobarActionIcon->clicked().connect(std::bind(&WebMainUI::scaleMap, this, ngrt4n::SCALIN_FACTOR));
- m_navbarRef->addWidget(std::move(toobarActionIcon));
+ toolbarActionIcon = ngrt4n::createFontAwesomeTextButton("fa fa-search-plus", "Zoom the console map in");
+ toolbarActionIcon->clicked().connect(std::bind(&WebMainUI::scaleMap, this, ngrt4n::SCALIN_FACTOR));
+ m_navbarRef->addWidget(std::move(toolbarActionIcon));
- toobarActionIcon = ngrt4n::createFontAwesomeTextButton("fa fa-search-minus","Zoom the console map out");
- toobarActionIcon->clicked().connect(std::bind(&WebMainUI::scaleMap, this, ngrt4n::SCALOUT_FACTOR));
- m_navbarRef->addWidget(std::move(toobarActionIcon));
+ toolbarActionIcon = ngrt4n::createFontAwesomeTextButton("fa fa-search-minus","Zoom the console map out");
+ toolbarActionIcon->clicked().connect(std::bind(&WebMainUI::scaleMap, this, ngrt4n::SCALOUT_FACTOR));
+ m_navbarRef->addWidget(std::move(toolbarActionIcon));
// problems icons
if (! m_dbSession->isLoggedAdmin()) {
@@ -208,7 +208,7 @@ WebMainUI::WebMainUI(AuthManager* authManager)
linkPtr = std::make_unique("#", Q_TR("All Users"));
linkPtr->clicked().connect(this, &WebMainUI::handleManageBuiltinUsers);
m_menuLinks.insert(MenuBuiltInUsers, linkPtr.get());
- m_settingsPageRef->bindWidget("menu-builin-users", std::move(linkPtr));
+ m_settingsPageRef->bindWidget("menu-builtin-users", std::move(linkPtr));
// ldap user menu
auto ldapUserManager = std::make_unique(m_dbSession);
@@ -313,7 +313,7 @@ Wt::WTemplate* WebMainUI::buildExecutiveViewPage(void)
}
// Generate view cards
- int currentThumbailIndex = 0;
+ int currentThumbnailIndex = 0;
int cardPerRow = m_dbSession->boardCardsPerRow();
std::string failuresCount = "";
for (const auto& sv : listOfUserViews) {
@@ -336,8 +336,8 @@ Wt::WTemplate* WebMainUI::buildExecutiveViewPage(void)
thumbnail->clicked().connect(std::bind(&WebMainUI::handleDashboardSelected, this, thumbnailTitle));
m_thumbnailComments[thumbnailTitle] = thumbnail->bindNew("thumb-problem-details", "");
m_thumbnails.insert(thumbnailTitle, thumbnail.get());
- thumbnailsLayout->addWidget(std::move(thumbnail), currentThumbailIndex / cardPerRow, currentThumbailIndex % cardPerRow);
- ++currentThumbailIndex;
+ thumbnailsLayout->addWidget(std::move(thumbnail), currentThumbnailIndex / cardPerRow, currentThumbnailIndex % cardPerRow);
+ ++currentThumbnailIndex;
}
if (m_dbSession->displayOnlyTiles()) {
@@ -349,11 +349,11 @@ Wt::WTemplate* WebMainUI::buildExecutiveViewPage(void)
doJavaScript("$('#ngrt4n-side-pane').removeClass().addClass('col-sm-4');");
}
- if (currentThumbailIndex > 0) {
- startDashbaordUpdate();
+ if (currentThumbnailIndex > 0) {
+ startDashboardUpdate();
}
- if (currentThumbailIndex != static_cast(listOfUserViews.size())) {
+ if (currentThumbnailIndex != static_cast(listOfUserViews.size())) {
showMessage(ngrt4n::OperationFailed, QObject::tr("Failed to load views => %1. Check details in logs").arg(failuresCount.c_str()).toStdString());
}
auto thumbnails = std::make_unique();
@@ -466,7 +466,7 @@ void WebMainUI::disableAdminFeatures(void)
{
wApp->doJavaScript("$('#userMenuSection').hide();"
"$('#viewMenuBlock').hide();"
- "$('#menu-database-settingss').hide();"
+ "$('#menu-database-settings').hide();"
"$('#menu-auth-settings').hide();"
"$('#menu-notification-settings').hide();"
"$('#menu-license-activation').hide();");
@@ -506,9 +506,9 @@ void WebMainUI::handleRefresh(void)
currentBoard->updateAllNodesStatus();
currentBoard->updateMap();
NodeT currentRootNode = currentBoard->rootNode();
- int overvallSeverity = qMin(currentRootNode.sev, static_cast(ngrt4n::Unknown));
- if (overvallSeverity != ngrt4n::Normal) {
- ++appStates[overvallSeverity];
+ int overallSeverity = qMin(currentRootNode.sev, static_cast(ngrt4n::Unknown));
+ if (overallSeverity != ngrt4n::Normal) {
+ ++appStates[overallSeverity];
if (m_notificationManager) {
m_notificationManager->updateServiceData(currentRootNode);
}
@@ -877,7 +877,7 @@ bool WebMainUI::createDirectory(const std::string& path, bool cleanContent)
}
-void WebMainUI::startDashbaordUpdate(void)
+void WebMainUI::startDashboardUpdate(void)
{
auto newTimer(new Wt::WTimer());
newTimer->setInterval(std::chrono::milliseconds(2000));
diff --git a/web/src/WebMainUI.hpp b/web/src/WebMainUI.hpp
index bfb6fd48..fb8112d4 100644
--- a/web/src/WebMainUI.hpp
+++ b/web/src/WebMainUI.hpp
@@ -87,7 +87,7 @@ class WebMainUI : public QObject, public Wt::WContainerWidget
void enable(void) {
m_mainWidgetRef->enable();
}
- void disbale(void) {
+ void disable(void) {
m_mainWidgetRef->disable();
}
void handleRefresh(void);
@@ -195,7 +195,7 @@ public Q_SLOTS:
void scaleMap(double factor);
void selectItem4Preview(void);
void setInternalPath(const std::string& path);
- void startDashbaordUpdate(void);
+ void startDashboardUpdate(void);
void disableAdminFeatures(void);
void setupMenus(void);
void saveViewInfoIntoDatabase(const CoreDataT& cdata, const QString& path);
diff --git a/web/src/WebMap.cpp b/web/src/WebMap.cpp
index 2b0b426e..28ba4bd9 100644
--- a/web/src/WebMap.cpp
+++ b/web/src/WebMap.cpp
@@ -69,7 +69,7 @@ WebMap::WebMap(CoreDataT* cdata)
WebMap::~WebMap()
{
- removeThumdImage();
+ removeThumbImage();
}
void WebMap::setPreferredMethod(void)
@@ -285,7 +285,7 @@ void WebMap::applyVisibilityToChild(const NodeT& node, qint8 mask)
}
-void WebMap::removeThumdImage(void)
+void WebMap::removeThumbImage(void)
{
QFile file(m_thumbURL.c_str());
file.remove();
diff --git a/web/src/WebMap.hpp b/web/src/WebMap.hpp
index 1d36bd7a..d43fa51d 100644
--- a/web/src/WebMap.hpp
+++ b/web/src/WebMap.hpp
@@ -78,7 +78,7 @@ class WebMap : public Wt::WPaintedWidget
void handleContainedSizeChanged(double mapW, double mapH, double winW, double winH);
void expandCollapse(const QString& nodeId);
void applyVisibilityToChild(const NodeT& node, qint8 mask);
- void removeThumdImage(void);
+ void removeThumbImage(void);
QString toBase64RootNodeName(void);
};
diff --git a/web/src/WebNotificationSettings.cpp b/web/src/WebNotificationSettings.cpp
index def98cf6..f9754713 100644
--- a/web/src/WebNotificationSettings.cpp
+++ b/web/src/WebNotificationSettings.cpp
@@ -98,7 +98,7 @@ void WebNotificationSettings::saveChanges(void)
settings.setKeyValue(SettingFactory::NOTIF_MAIL_SMTP_SERVER_PORT, m_smtpPortFieldRef->text().toUTF8().c_str());
settings.setKeyValue(SettingFactory::NOTIF_MAIL_SMTP_USE_SSL, QString::number(int(m_smtpUseSslFieldRef->checkState())));
}
- m_operationCompleted.emit(ngrt4n::OperationSucceeded, Q_TR("settings udpated"));
+ m_operationCompleted.emit(ngrt4n::OperationSucceeded, Q_TR("settings updated"));
}
diff --git a/web/src/WebPlatformStatusRaw.cpp b/web/src/WebPlatformStatusRaw.cpp
index db47342c..6d92074a 100644
--- a/web/src/WebPlatformStatusRaw.cpp
+++ b/web/src/WebPlatformStatusRaw.cpp
@@ -90,7 +90,7 @@ void WebPlatformStatusRaw::updateData(const ListofPlatformStatusT& data)
setXSeriesColumn(0);
- const QMap SerieSeverities = {
+ const QMap SeriesSeverities = {
{0, ngrt4n::Unset},
{1, ngrt4n::Unset},
{2, ngrt4n::Normal},
@@ -103,13 +103,13 @@ void WebPlatformStatusRaw::updateData(const ListofPlatformStatusT& data)
};
for (int i = 8; i >= 2; --i) {
- auto serie = std::make_unique(i, Wt::Chart::SeriesType::Line);
- Wt::WColor color = ngrt4n::severityWColor(SerieSeverities[i]);
- serie->setPen(color);
- serie->setBrush(color);
- serie->setStacked(true);
- serie->setFillRange(Wt::Chart::FillRangeType::MinimumValue);
- addSeries(std::move(serie));
+ auto series = std::make_unique(i, Wt::Chart::SeriesType::Line);
+ Wt::WColor color = ngrt4n::severityWColor(SeriesSeverities[i]);
+ series->setPen(color);
+ series->setBrush(color);
+ series->setStacked(true);
+ series->setFillRange(Wt::Chart::FillRangeType::MinimumValue);
+ addSeries(std::move(series));
}
resize(900, 300);
setPanEnabled(true);
diff --git a/web/src/realopinsight-reportd.cpp b/web/src/realopinsight-reportd.cpp
index 9ba0fbc3..c0f9b6fc 100644
--- a/web/src/realopinsight-reportd.cpp
+++ b/web/src/realopinsight-reportd.cpp
@@ -87,9 +87,9 @@ void runCollector(int period)
auto& promStatusMinor = promMetrics.Add({{"scope", view.name}, {"status", "minor"}});
auto& promStatusNormal = promMetrics.Add({{"scope", view.name}, {"status", "normal"}});
- auto initilizeOut = collector.initialize(view.path.c_str());
- if (initilizeOut.first != ngrt4n::RcSuccess) {
- REPORTD_LOG("error", QObject::tr("%1: %2").arg(view.name.c_str(), initilizeOut.second).toStdString());
+ auto initializeOut = collector.initialize(view.path.c_str());
+ if (initializeOut.first != ngrt4n::RcSuccess) {
+ REPORTD_LOG("error", QObject::tr("%1: %2").arg(view.name.c_str(), initializeOut.second).toStdString());
promStatusOverall.Set(ngrt4n::Unknown);
promStatusCritical.Set(-1);
promStatusUnknown.Set(-1);
diff --git a/web/src/utils/smtpclient/MailSender.cpp b/web/src/utils/smtpclient/MailSender.cpp
index 9868f396..1c54ceb8 100644
--- a/web/src/utils/smtpclient/MailSender.cpp
+++ b/web/src/utils/smtpclient/MailSender.cpp
@@ -24,7 +24,7 @@ int MailSender::send(const QString& sender,
{
if (! m_connected) {
connectToHost(m_host, m_port);
- if (m_eventSynchonizer.exec() != 0)
+ if (m_eventSynchronizer.exec() != 0)
return -1;
}
@@ -44,7 +44,7 @@ int MailSender::send(const QString& sender,
int messageId = QxtSmtp::send(message);
m_spool.insert(messageId, message);
- int exitCode = m_eventSynchonizer.exec();
+ int exitCode = m_eventSynchronizer.exec();
return exitCode;
}
@@ -53,14 +53,14 @@ int MailSender::send(const QString& sender,
void MailSender::handleConnected(void)
{
m_connected = true;
- m_eventSynchonizer.exit(0);
+ m_eventSynchronizer.exit(0);
}
void MailSender::handleConnectionFailed(const QByteArray& msg)
{
m_connected = false;
m_lastError = tr("SMTP connection failed: %1").arg(QString(msg));
- m_eventSynchonizer.exit(-1);
+ m_eventSynchronizer.exit(-1);
}
void MailSender::handleMailFailed(int mailID, int errorCode, const QByteArray& msg)
@@ -70,7 +70,7 @@ void MailSender::handleMailFailed(int mailID, int errorCode, const QByteArray& m
).arg(QString::number(errorCode),
msg,
QString::number(mailID));
- m_eventSynchonizer.exit(-1);
+ m_eventSynchronizer.exit(-1);
}
void MailSender::handleSenderRejected(int mailID, const QString& address, const QByteArray & msg)
@@ -79,16 +79,16 @@ void MailSender::handleSenderRejected(int mailID, const QString& address, const
m_lastError = tr("SMTP rejected mail sender."
" Message: %1. Address: %2."
).arg(QString(msg), address);
- m_eventSynchonizer.exit(-1);
+ m_eventSynchronizer.exit(-1);
}
void MailSender::handleMailSent(int mailID)
{
- m_lastError = tr("Email successfuly sent to %1"
+ m_lastError = tr("Email successfully sent to %1"
).arg(m_spool[mailID].recipients().join(","));
m_spool.remove(mailID);
- m_eventSynchonizer.exit(0);
+ m_eventSynchronizer.exit(0);
}
diff --git a/web/src/utils/smtpclient/MailSender.hpp b/web/src/utils/smtpclient/MailSender.hpp
index 9fff4ba5..689742f8 100644
--- a/web/src/utils/smtpclient/MailSender.hpp
+++ b/web/src/utils/smtpclient/MailSender.hpp
@@ -31,7 +31,7 @@ protected Q_SLOTS:
int m_port;
bool m_connected;
QString m_lastError;
- QEventLoop m_eventSynchonizer;
+ QEventLoop m_eventSynchronizer;
QMap m_spool;
void addEvents(void);
diff --git a/web/src/utils/smtpclient/qxtmailattachment.cpp b/web/src/utils/smtpclient/qxtmailattachment.cpp
index a770af85..c9f6f4c3 100644
--- a/web/src/utils/smtpclient/qxtmailattachment.cpp
+++ b/web/src/utils/smtpclient/qxtmailattachment.cpp
@@ -32,7 +32,7 @@
/*!
* \class QxtMailAttachment
* \inmodule QxtNetwork
- * \brief The QxtMailAttachment class represents an attachement to a QxtMailMessage
+ * \brief The QxtMailAttachment class represents an attachment to a QxtMailMessage
*/
diff --git a/web/src/utils/wtwithqt/WQApplication.h b/web/src/utils/wtwithqt/WQApplication.h
index 821ec82b..fd276dfe 100644
--- a/web/src/utils/wtwithqt/WQApplication.h
+++ b/web/src/utils/wtwithqt/WQApplication.h
@@ -38,10 +38,10 @@ namespace Wt {
class DispatchThread;
/*! \class WQApplication WQApplication WQApplication
- * \brief An application class that provides interopability between
+ * \brief An application class that provides interoperability between
* Wt and Qt.
*
- * This class provides interopability between the Wt's multi threading
+ * This class provides interoperability between the Wt's multi threading
* model and Qt's threading requirements for QObject. This is needed
* because Qt's object model, which defines a hierarchy of QObjects,
* requires that every QObject in the hierarchy is created from within
@@ -103,7 +103,7 @@ class WQApplication : public WApplication
* QThread context.
*
* Reimplement this method to construct your Wt widget and Qt object
- * hierarchy within the context of the dedicatd QThread.
+ * hierarchy within the context of the dedicated QThread.
*
* This method is called from within the library after your
* application is created.