Skip to content

Commit

Permalink
update some places to fetch widgets via Widget/All
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Sep 6, 2024
1 parent 32f6d33 commit c4d35af
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
10 changes: 5 additions & 5 deletions components/infobox/wikis/apexlegends/infobox_map_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ local Logic = require('Module:Logic')
local Lua = require('Module:Lua')
local String = require('Module:StringUtils')

local Injector = Lua.import('Module:Infobox/Widget/Injector', {requireDevIfEnabled = true})
local Map = Lua.import('Module:Infobox/Map', {requireDevIfEnabled = true})
local TableCell = Lua.import('Module:Widget/Table/Cell', {requireDevIfEnabled = true})
local TableRow = Lua.import('Module:Widget/Table/Row', {requireDevIfEnabled = true})
local WidgetTable = Lua.import('Module:Widget/Table', {requireDevIfEnabled = true})
local Injector = Lua.import('Module:Infobox/Widget/Injector')
local Map = Lua.import('Module:Infobox/Map')

local Widgets = require('Module:Infobox/Widget/All')
local Cell = Widgets.Cell
local Title = Widgets.Title
local TableCell = Widgets.TableCell
local TableRow = Widgets.TableRow
local WidgetTable = Widgets.Table

---@class ApexMapInfobox: MapInfobox
local CustomMap = Class.new(Map)
Expand Down
5 changes: 3 additions & 2 deletions components/prize_pool/commons/prize_pool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ local Placement = Lua.import('Module:PrizePool/Placement')
local OpponentLibrary = require('Module:OpponentLibraries')
local Opponent = OpponentLibrary.Opponent

local TableCell = require('Module:Widget/Table/Cell')
local TableRow = require('Module:Widget/Table/Row')
local Widgets = require('Module:Infobox/Widget/All')
local TableRow = Widgets.TableRow
local TableCell = Widgets.TableCell

---@class PrizePool: BasePrizePool
---@field options table
Expand Down
5 changes: 3 additions & 2 deletions components/prize_pool/commons/prize_pool_award.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ local Placement = Lua.import('Module:PrizePool/Award/Placement')
local OpponentLibrary = require('Module:OpponentLibraries')
local Opponent = OpponentLibrary.Opponent

local TableRow = require('Module:Widget/Table/Row')
local TableCell = require('Module:Widget/Table/Cell')
local Widgets = require('Module:Infobox/Widget/All')
local TableRow = Widgets.TableRow
local TableCell = Widgets.TableCell

--- @class AwardPrizePool
--- @field options table
Expand Down
9 changes: 5 additions & 4 deletions components/prize_pool/commons/prize_pool_base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ local OpponentLibraries = require('Module:OpponentLibraries')
local Opponent = OpponentLibraries.Opponent
local OpponentDisplay = OpponentLibraries.OpponentDisplay

local WidgetFactory = require('Module:Infobox/Widget/Factory')
local WidgetTable = require('Module:Widget/Table')
local TableRow = require('Module:Widget/Table/Row')
local TableCell = require('Module:Widget/Table/Cell')
local Widgets = require('Module:Infobox/Widget/All')
local WidgetFactory = Widgets.Factory
local WidgetTable = Widgets.Table
local TableRow = Widgets.TableRow
local TableCell = Widgets.TableCell

local pageVars = PageVariableNamespace('PrizePool')

Expand Down

0 comments on commit c4d35af

Please sign in to comment.