mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 16:23:22 +00:00
ADD - add in-game phone administration and configuration (#25)
* ADD - build in-game admin command center * ADD - open admin panel by command * ENH - rebuild admin panel as standalone editor * ENH - compact admin workspace navigation * ENH - expand admin device controls * ENH - refine admin panel navigation style * ADD - add SQL phone configurator * FIX - expose complete phone configuration * FIX - make company jobs freely configurable * FIX - align configurator tables to left * ENH - organize configurator collection controls * ENH - organize nested configurator sections * ENH - add configurator field descriptions * FIX - hide fixed configurator add controls * ENH - refine configurator editing experience * ENH - refine admin configurator controls * FIX - apply configurator settings instantly * FIX - close live activity command registration --------- Co-authored-by: Leon.Schmidt <leonmauricewill15@gmail.com>
This commit is contained in:
co-authored by
Leon.Schmidt
parent
7aa4677b81
commit
a9143b0fba
@@ -1,8 +1,23 @@
|
||||
Bridge.Database.AfterMigration("sky_phone", function()
|
||||
local categories = {}
|
||||
local districts = {}
|
||||
for _, value in ipairs(Config.LocalPages.Categories) do categories[value] = true end
|
||||
for _, value in ipairs(Config.Marketplace.Districts) do districts[value] = true end
|
||||
|
||||
local function refresh_runtime_configuration()
|
||||
categories = {}
|
||||
districts = {}
|
||||
for _, value in ipairs(Config.LocalPages.Categories) do
|
||||
categories[value] = true
|
||||
end
|
||||
for _, value in ipairs(Config.Marketplace.Districts) do
|
||||
districts[value] = true
|
||||
end
|
||||
end
|
||||
|
||||
refresh_runtime_configuration()
|
||||
|
||||
AddEventHandler("sky_phone:configurator:serverUpdated", function()
|
||||
refresh_runtime_configuration()
|
||||
end)
|
||||
|
||||
local function trim(value)
|
||||
if type(value) ~= "string" then return nil end
|
||||
|
||||
Reference in New Issue
Block a user