feat: web dashboard and playground work

The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-26 17:52:10 -05:00
parent 854d02f509
commit e213a7aeff
681 changed files with 88310 additions and 1321 deletions

View File

@@ -0,0 +1,36 @@
#include "MySQLDatabase.h"
std::vector<IFeaturedProperties::FeaturedSlot> MySQLDatabase::GetFeaturedPropertySlots() {
std::vector<FeaturedSlot> slots;
auto result = ExecuteSelect("SELECT * FROM featured_properties ORDER BY template_id;");
while (result->next()) {
slots.push_back({ result->getUInt("template_id"), static_cast<uint8_t>(result->getUInt("mode")), result->getInt64("property_id"),
result->getInt64("updated_at"), result->getString("updated_by").c_str(), result->getUInt("zone_id") });
}
return slots;
}
void MySQLDatabase::SetFeaturedPropertySlot(const FeaturedSlot& slot) {
ExecuteInsert(
"INSERT INTO featured_properties (template_id, mode, property_id, updated_at, updated_by, zone_id) VALUES (?, ?, ?, ?, ?, ?) "
"ON DUPLICATE KEY UPDATE mode = VALUES(mode), property_id = VALUES(property_id), updated_at = VALUES(updated_at), updated_by = VALUES(updated_by), zone_id = VALUES(zone_id);",
slot.templateId, static_cast<uint32_t>(slot.mode), slot.propertyId, slot.updatedAt, slot.updatedBy, slot.zoneId);
}
IFeaturedProperties::FeaturedSettings MySQLDatabase::GetFeaturedPropertiesSettings() {
FeaturedSettings settings;
auto result = ExecuteSelect("SELECT * FROM featured_properties_settings WHERE id = 1;");
if (result->next()) {
settings.fullAuto = result->getInt("full_auto") != 0;
settings.updatedAt = result->getInt64("updated_at");
settings.updatedBy = result->getString("updated_by").c_str();
}
return settings;
}
void MySQLDatabase::SetFeaturedPropertiesSettings(const FeaturedSettings& settings) {
ExecuteInsert(
"INSERT INTO featured_properties_settings (id, full_auto, updated_at, updated_by) VALUES (1, ?, ?, ?) "
"ON DUPLICATE KEY UPDATE full_auto = VALUES(full_auto), updated_at = VALUES(updated_at), updated_by = VALUES(updated_by);",
settings.fullAuto ? 1 : 0, settings.updatedAt, settings.updatedBy);
}