%- local rowcnt = 1 local uci = require("luci.model.uci").cursor() local fs = require "luci.openclash" function rowstyle() rowcnt = rowcnt + 1 return (rowcnt % 2) + 1 end function width(o) if o.width then if type(o.width) == 'number' then return ' style="width:%dpx"' % o.width end return ' style="width:%s"' % o.width end return '' end local head_width local a={} local e={} for t,o in ipairs(fs.glob("/etc/openclash/config/*"))do a=fs.stat(o) if a then e[t]={} e[t].name=fs.basename(o) end end table.insert(e, 1, {name="ALL"}) if #e > 4 then head_width = (95 / #e).."%" else head_width = "120px" end local sectiontype = "_"..self.config.."_"..string.match(self.sectiontype, "[%w_]+") or "self.sectiontype" -%>