Skip to content

Commit

Permalink
chore: refine
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Dec 8, 2024
1 parent 28de0ad commit d49f3b3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
2 changes: 0 additions & 2 deletions luci-app-openclash/luasrc/model/cbi/openclash/servers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ o = s:option(ListValue, "rule_sources", translate("Choose Template For Create Co
o.description = translate("Use Other Rules To Create Config")
o:depends("create_config", 1)
o:value("lhie1", translate("lhie1 Rules"))
o:value("ConnersHua", translate("ConnersHua(Provider-type) Rules"))
o:value("ConnersHua_return", translate("ConnersHua Return Rules"))

o = s:option(Flag, "mix_proxies", translate("Mix Proxies"))
o.description = font_red .. bold_on .. translate("Mix This Page's Proxies") .. bold_off .. font_off
Expand Down
14 changes: 12 additions & 2 deletions luci-app-openclash/luasrc/view/openclash/tblsection.htm
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
ul{
list-style: none;
}

h3{
margin-top: 0;
}

.cbi-value-field .cbi-dropdown, .cbi-value-field .cbi-input-select, .cbi-value input[type="text"], .cbi-value input[type="password"] {
min-width: auto;
}

#tab-header-<%=self.config%>-<%=self.sectiontype%>{
min-height: 35px;
Expand Down Expand Up @@ -123,7 +131,7 @@
<!-- tblsection -->
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
<% if self.title and #self.title > 0 then -%>
<legend><%=self.title%></legend>
<h3><%=self.title%></h3>
<%- end %>
<%- if self.sortable then -%>
<input type="hidden" id="cbi.sts.<%=self.config%>.<%=self.sectiontype%>" name="cbi.sts.<%=self.config%>.<%=self.sectiontype%>" value="" />
Expand Down Expand Up @@ -184,7 +192,7 @@
<%- count = count + 1; end; end; if self.sortable then -%>
<th class="cbi-section-table-cell"><%:Sort%></th>
<%- end; if self.extedit or self.addremove then -%>
<th class="cbi-section-table-cell">&#160;</th>
<th class="cbi-section-table-cell"><%:Edit%></th>
<%- count = count + 1; end -%>
</tr>
<tr class="cbi-section-table-descr">
Expand All @@ -194,6 +202,8 @@
<%- else -%>
<th></th>
<%- end -%>
<%- end; if self.extedit or self.addremove then -%>
<th></th>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"<%=width(k)%>><%=k.description%></th>
Expand Down
14 changes: 12 additions & 2 deletions luci-app-openclash/luasrc/view/openclash/tblsection_dns.htm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
ul{
list-style: none;
}

h3{
margin-top: 0;
}

.cbi-value-field .cbi-dropdown, .cbi-value-field .cbi-input-select, .cbi-value input[type="text"], .cbi-value input[type="password"] {
min-width: auto;
}

#tab-header-<%=self.config%>-<%=self.sectiontype%>{
min-height: 35px;
Expand Down Expand Up @@ -90,7 +98,7 @@
<!-- tblsection -->
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
<% if self.title and #self.title > 0 then -%>
<legend><%=self.title%></legend>
<h3><%=self.title%></h3>
<%- end %>
<%- if self.sortable then -%>
<input type="hidden" id="cbi.sts.<%=self.config%>.<%=self.sectiontype%>" name="cbi.sts.<%=self.config%>.<%=self.sectiontype%>" value="" />
Expand Down Expand Up @@ -133,7 +141,7 @@
<%- count = count + 1; end; end; if self.sortable then -%>
<th class="cbi-section-table-cell"><%:Sort%></th>
<%- end; if self.extedit or self.addremove then -%>
<th class="cbi-section-table-cell">&#160;</th>
<th class="cbi-section-table-cell"><%:Edit%></th>
<%- count = count + 1; end -%>
</tr>
<tr class="cbi-section-table-descr">
Expand All @@ -143,6 +151,8 @@
<%- else -%>
<th></th>
<%- end -%>
<%- end; if self.extedit or self.addremove then -%>
<th></th>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"<%=width(k)%>><%=k.description%></th>
Expand Down
5 changes: 4 additions & 1 deletion luci-app-openclash/po/zh-cn/openclash.zh-cn.po
Original file line number Diff line number Diff line change
Expand Up @@ -3430,4 +3430,7 @@ msgid "Direct"
msgstr "直连"

msgid "Error: Config File Overwrite Failed,"
msgstr "错误:配置文件覆写失败,"
msgstr "错误:配置文件覆写失败,"

msgid "Edit"
msgstr "编辑"

0 comments on commit d49f3b3

Please sign in to comment.