mirror of
https://github.com/Insality/druid.git
synced 2025-11-26 10:50:52 +01:00
Up
This commit is contained in:
@@ -6,8 +6,6 @@ local system = require("druid.editor_scripts.defold_parser.system.parser_interna
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---Replace paths in file content
|
---Replace paths in file content
|
||||||
---@param content string - File content
|
---@param content string - File content
|
||||||
---@param author string - Author name (e.g., "Insality")
|
---@param author string - Author name (e.g., "Insality")
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ local function build_labels(overrides)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function M.create(item, context)
|
function M.create(item, context)
|
||||||
local labels = build_labels(context and context.labels)
|
local labels = build_labels(context and context.labels)
|
||||||
local open_url = context and context.open_url or function(_) end
|
local open_url = context and context.open_url or function(_) end
|
||||||
@@ -164,4 +163,3 @@ end
|
|||||||
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ local function noop(...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local function build_context(overrides)
|
local function build_context(overrides)
|
||||||
return {
|
return {
|
||||||
on_install = overrides.on_install or noop,
|
on_install = overrides.on_install or noop,
|
||||||
@@ -18,7 +17,6 @@ local function build_context(overrides)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function M.create(items, overrides)
|
function M.create(items, overrides)
|
||||||
local card_context = build_context(overrides or {})
|
local card_context = build_context(overrides or {})
|
||||||
local is_installed = overrides and overrides.is_installed or function(_)
|
local is_installed = overrides and overrides.is_installed or function(_)
|
||||||
@@ -48,4 +46,3 @@ end
|
|||||||
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user