diff --git a/dbal/cpp/src/daemon/server_helpers.hpp b/dbal/cpp/src/daemon/server_helpers.hpp deleted file mode 100644 index bc6e89a57..000000000 --- a/dbal/cpp/src/daemon/server_helpers.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef DBAL_SERVER_HELPERS_HPP -#define DBAL_SERVER_HELPERS_HPP - -#include -#include - -#include -#include - -#include "dbal/core/types.hpp" - -namespace dbal { -namespace daemon { - -std::string trim_string(const std::string& value); -std::string resolve_real_ip(const drogon::HttpRequestPtr& request); -std::string resolve_forwarded_proto(const drogon::HttpRequestPtr& request); - -UserRole normalize_role(const std::string& role); -std::string role_to_string(UserRole role); - -long long timestamp_to_epoch_ms(const Timestamp& timestamp); - -Json::Value user_to_json(const User& user); -Json::Value users_to_json(const std::vector& users); - -ListOptions list_options_from_json(const Json::Value& json); -Json::Value list_response_value(const std::vector& users, const ListOptions& options); - -drogon::HttpResponsePtr build_json_response(const Json::Value& body); - -} // namespace daemon -} // namespace dbal - -#endif // DBAL_SERVER_HELPERS_HPP diff --git a/frontends/dbal/.eslintrc.json b/frontends/dbal/.eslintrc.json new file mode 100644 index 000000000..f7d94cd2d --- /dev/null +++ b/frontends/dbal/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "root": true, + "extends": ["next/core-web-vitals"] +}