Skip to content

Commit

Permalink
move link prio groups to data module (#3366)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Oct 12, 2023
1 parent 656ed06 commit e67e1fa
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 89 deletions.
90 changes: 1 addition & 89 deletions components/infobox/commons/infobox_widget_links.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,95 +25,7 @@ local Links = Class.new(
end
)

local PRIORITY_GROUPS = {
core = {
'home',
'site',
'website'
},
league = {
'5ewin',
'abiosgaming',
'aligulac',
'apexlegendsstatus',
'battlefy',
'b5csgo',
'challengermode',
'challonge',
'cybergamer',
'datdota',
'dotabuff',
'esea',
'esea-d',
'esl',
'esportal',
'faceit',
'faceit-c',
'faceit-hub',
'faceit-org',
'factor',
'gamersclub',
'halodatahive',
'letsplaylive',
'matcherino',
'matcherinolink',
'nwc3l',
'royaleapi',
'siege-gg',
'sk',
'smashboards',
'sostronk',
'start-gg',
'stratz',
'tonamel',
'toornament',
'trackmania-io',
'vlr',
'bracket',
'rules',
'rulebook',
},
social = {
'discord',
'facebook',
'instagram',
'privsteam',
'pubsteam',
'reddit',
'snapchat',
'steam',
'steamalternative',
'telegram',
'tiktok',
'twitter',
'vk',
'weibo'
},
streams = {
'twitch',
'youtube',
'stream',
'afreeca',
'dlive',
'facebook-gaming',
'vidio',
'booyah',
'douyin',
'douyu',
'huyatv',
'zhangyutv',
'bilibili-stream',
'kuaishou',
'kick',
'cc',
'niconico',
'nimotv',
'openrec',
'steamtv',
'yandexefir',
'zhanqitv',
}
}
local PRIORITY_GROUPS = Lua.import('Module:Links/PriorityGroups', {requireDevIfEnabled = true, loadData = true})

---@return {[1]: Html}
function Links:make()
Expand Down
89 changes: 89 additions & 0 deletions standard/links/commons/links_priority_groups.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
return {
core = {
'home',
'site',
'website'
},
league = {
'5ewin',
'abiosgaming',
'aligulac',
'apexlegendsstatus',
'battlefy',
'b5csgo',
'challengermode',
'challonge',
'cybergamer',
'datdota',
'dotabuff',
'esea',
'esea-d',
'esl',
'esportal',
'faceit',
'faceit-c',
'faceit-hub',
'faceit-org',
'factor',
'gamersclub',
'halodatahive',
'letsplaylive',
'matcherino',
'matcherinolink',
'nwc3l',
'royaleapi',
'siege-gg',
'sk',
'smashboards',
'sostronk',
'start-gg',
'stratz',
'tonamel',
'toornament',
'trackmania-io',
'vlr',
'bracket',
'rules',
'rulebook',
},
social = {
'discord',
'facebook',
'instagram',
'privsteam',
'pubsteam',
'reddit',
'snapchat',
'steam',
'steamalternative',
'telegram',
'tiktok',
'twitter',
'vk',
'weibo'
},
streams = {
'twitch',
'youtube',
'stream',
'afreeca',
'dlive',
'facebook-gaming',
'vidio',
'booyah',
'douyin',
'douyu',
'huyatv',
'zhangyutv',
'bilibili-stream',
'kuaishou',
'kick',
'cc',
'niconico',
'nimotv',
'openrec',
'steamtv',
'yandexefir',
'zhanqitv',
},
}

0 comments on commit e67e1fa

Please sign in to comment.