mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-06 23:08:07 +08:00
update 2025-02-10 00:21:15
This commit is contained in:
@@ -9,7 +9,8 @@ OS=linux
|
||||
ARCH=amd64
|
||||
JQVERSION=1.7.1
|
||||
DOCNAME=Ruleset-URI-Scheme
|
||||
SHARKNAME=shark-taiko.gif
|
||||
SHARKIMG='img/shark-taiko.gif'
|
||||
SHARKAUDIO='audio/A!.mp3'
|
||||
|
||||
mkdir -p "$PKG_BUILD_BIN"
|
||||
curl -L "https://github.com/jqlang/jq/releases/download/jq-${JQVERSION}/jq-${OS}-${ARCH}" -o "$PKG_BUILD_BIN"/jq
|
||||
@@ -34,9 +35,13 @@ tail -n +$(( $p +1 )) $DOCNAME.html
|
||||
popd
|
||||
minify "$PKG_BUILD_DIR"/buildin.html | base64 | tr -d '\n' > "$PKG_BUILD_DIR"/base64
|
||||
sed -i "s|'cmxzdHBsYWNlaG9sZGVy'|'$(cat "$PKG_BUILD_DIR"/base64)'|" "$PKG_BUILD_DIR"/htdocs/luci-static/resources/fchomo.js
|
||||
# shaka
|
||||
# shaka audio
|
||||
sed -i "s|audio/x-wav|audio/mpeg|;
|
||||
s|'UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA='|'$(base64 "$CURDIR/docs/$SHARKAUDIO" | tr -d '\n')'|" \
|
||||
"$PKG_BUILD_DIR"/htdocs/luci-static/resources/fchomo.js
|
||||
# shaka gif
|
||||
echo -n "'" > "$PKG_BUILD_DIR"/base64
|
||||
base64 "$CURDIR"/docs/img/$SHARKNAME | tr -d '\n' >> "$PKG_BUILD_DIR"/base64
|
||||
base64 "$CURDIR/docs/$SHARKIMG" | tr -d '\n' >> "$PKG_BUILD_DIR"/base64
|
||||
echo "'" >> "$PKG_BUILD_DIR"/base64
|
||||
p=$(sed -n "/'c2hhcmstdGFpa28uZ2lm'/=" "$PKG_BUILD_DIR"/htdocs/luci-static/resources/fchomo.js)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=FullCombo Mihomo supplies maximum customization on OpenWrt.
|
||||
LUCI_TITLE:=FullCombo Shark! supplies maximum customization on OpenWrt.
|
||||
LUCI_PKGARCH:=all
|
||||
LUCI_DEPENDS:= \
|
||||
+mihomo \
|
||||
|
||||
BIN
luci-app-fchomo/docs/audio/A!.mp3
Normal file
BIN
luci-app-fchomo/docs/audio/A!.mp3
Normal file
Binary file not shown.
@@ -10,6 +10,11 @@
|
||||
/* Member */
|
||||
const rulesetdoc = 'data:text/html;base64,' + 'cmxzdHBsYWNlaG9sZGVy';
|
||||
|
||||
const sharkaudio = function() {
|
||||
return 'data:audio/x-wav;base64,' +
|
||||
'UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA='
|
||||
}()
|
||||
|
||||
const sharktaikogif = function() {
|
||||
return 'data:image/gif;base64,' +
|
||||
'c2hhcmstdGFpa28uZ2lm'
|
||||
@@ -1126,6 +1131,7 @@ function uploadInitialPack(ev, section_id) {
|
||||
return baseclass.extend({
|
||||
/* Member */
|
||||
rulesetdoc,
|
||||
sharkaudio,
|
||||
sharktaikogif,
|
||||
less_24_10,
|
||||
pr7558_merged,
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
'require uci';
|
||||
'require ui';
|
||||
'require view';
|
||||
'require dom';
|
||||
|
||||
'require fchomo as hm';
|
||||
'require tools.firewall as fwtool';
|
||||
@@ -135,8 +136,24 @@ return view.extend({
|
||||
|
||||
let m, s, o, ss, so;
|
||||
|
||||
m = new form.Map('fchomo', _('FullCombo Mihomo'),
|
||||
'<img src="' + hm.sharktaikogif + '" title="Ciallo~(∠・ω< )⌒☆" height="52"></img>');
|
||||
m = new form.Map('fchomo', _('FullCombo Shark!'),
|
||||
'<img src="' + hm.sharktaikogif + '" title="A!" alt="Ciallo~(∠・ω< )⌒☆" height="52"></img>' +
|
||||
'<audio src="' + hm.sharkaudio + '" preload="auto" hidden=""></audio>');
|
||||
m.renderContents = function(/* ... */) {
|
||||
let node = form.Map.prototype.renderContents.apply(this, arguments);
|
||||
|
||||
return node.then((mapEl) => {
|
||||
const playButton = mapEl.querySelector('.cbi-map-descr > img');
|
||||
const audio = mapEl.querySelector('.cbi-map-descr > audio');
|
||||
|
||||
playButton.addEventListener('click', function() {
|
||||
if (audio.paused)
|
||||
audio.play();
|
||||
});
|
||||
|
||||
return mapEl;
|
||||
});
|
||||
}
|
||||
|
||||
s = m.section(form.NamedSection, 'config', 'fchomo');
|
||||
|
||||
|
||||
@@ -93,14 +93,14 @@ return view.extend({
|
||||
|
||||
s = m.section(form.NamedSection, 'config', 'fchomo');
|
||||
|
||||
/* FullCombo Mihomo START */
|
||||
s.tab('fchomo', _('FullCombo Mihomo'));
|
||||
/* FullCombo Shark! START */
|
||||
s.tab('fchomo', _('FullCombo Shark!'));
|
||||
o = s.taboption('fchomo', form.SectionValue, '_fchomo', form.NamedSection, 'config', null);
|
||||
ss = o.subsection;
|
||||
|
||||
so = ss.option(form.DummyValue, '_fchomo_logview');
|
||||
so.render = L.bind(getRuntimeLog, so, _('FullCombo Mihomo'), 'fchomo');
|
||||
/* FullCombo Mihomo END */
|
||||
so.render = L.bind(getRuntimeLog, so, _('FullCombo Shark!'), 'fchomo');
|
||||
/* FullCombo Shark! END */
|
||||
|
||||
/* Mihomo client START */
|
||||
s.tab('mihomo_c', _('Mihomo client'));
|
||||
|
||||
@@ -830,7 +830,7 @@ msgstr ""
|
||||
#: htdocs/luci-static/resources/view/fchomo/log.js:97
|
||||
#: htdocs/luci-static/resources/view/fchomo/log.js:102
|
||||
#: root/usr/share/luci/menu.d/luci-app-fchomo.json:3
|
||||
msgid "FullCombo Mihomo"
|
||||
msgid "FullCombo Shark!"
|
||||
msgstr ""
|
||||
|
||||
#: htdocs/luci-static/resources/view/fchomo/node.js:620
|
||||
|
||||
@@ -848,7 +848,7 @@ msgstr "格式"
|
||||
#: htdocs/luci-static/resources/view/fchomo/log.js:97
|
||||
#: htdocs/luci-static/resources/view/fchomo/log.js:102
|
||||
#: root/usr/share/luci/menu.d/luci-app-fchomo.json:3
|
||||
msgid "FullCombo Mihomo"
|
||||
msgid "FullCombo Shark!"
|
||||
msgstr ""
|
||||
|
||||
#: htdocs/luci-static/resources/view/fchomo/node.js:620
|
||||
|
||||
@@ -848,7 +848,7 @@ msgstr "格式"
|
||||
#: htdocs/luci-static/resources/view/fchomo/log.js:97
|
||||
#: htdocs/luci-static/resources/view/fchomo/log.js:102
|
||||
#: root/usr/share/luci/menu.d/luci-app-fchomo.json:3
|
||||
msgid "FullCombo Mihomo"
|
||||
msgid "FullCombo Shark!"
|
||||
msgstr ""
|
||||
|
||||
#: htdocs/luci-static/resources/view/fchomo/node.js:620
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"admin/services/fchomo": {
|
||||
"title": "FullCombo Mihomo",
|
||||
"title": "FullCombo Shark!",
|
||||
"order": 12,
|
||||
"action": {
|
||||
"type": "firstchild"
|
||||
|
||||
@@ -24,7 +24,7 @@ function wGET(url, header, filepath) {
|
||||
if (!url || type(url) !== 'string')
|
||||
return null;
|
||||
|
||||
let ua = 'Wget/1.21 (FullCombo Mihomo)';
|
||||
let ua = 'Wget/1.21 (FullCombo Shark!)';
|
||||
|
||||
if (header) {
|
||||
header = json(trim(header) || {});
|
||||
|
||||
@@ -11,7 +11,7 @@ PKG_NAME:=luci-theme-$(THEME_NAME)
|
||||
LUCI_TITLE:=Kucat Theme by sirpdboy
|
||||
LUCI_DEPENDS:=
|
||||
PKG_VERSION:=2.4.9
|
||||
PKG_RELEASE:=20250114
|
||||
PKG_RELEASE:=20250209
|
||||
|
||||
define Package/luci-theme-$(THEME_NAME)/postinst
|
||||
#!/bin/sh
|
||||
|
||||
@@ -352,7 +352,7 @@ input[type='radio']:checked {
|
||||
|
||||
}
|
||||
select:not([multiple="multiple"]):focus, input:not(.cbi-button):focus, .cbi-dropdown:focus {
|
||||
background-color: var(--input-hover-bgcolor);
|
||||
background-color: rgba(var(--primary-rgbm),1);
|
||||
box-shadow: 0 0 6px rgba(0, 0, 0, 0.22);
|
||||
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.22);
|
||||
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.22)
|
||||
@@ -993,7 +993,7 @@ text-decoration: none!important;
|
||||
padding: 1rem 1.25rem 3rem 1.25rem;
|
||||
}
|
||||
ul {
|
||||
line-height: inherit;
|
||||
line-height: normal;
|
||||
}
|
||||
li {
|
||||
list-style-type: none;
|
||||
@@ -1710,8 +1710,11 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
background-color: rgba(var(--primary-rgbm), 0.9);
|
||||
border: 1px solid rgba(var(--primary-rgbm), 1);
|
||||
}
|
||||
|
||||
.cbi-dropdown {
|
||||
padding: .2rem .2rem;
|
||||
}
|
||||
.cbi-dynlist, .cbi-dropdown {
|
||||
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
min-height: 2.1875rem;
|
||||
@@ -1742,9 +1745,19 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
.cbi-dropdown > .open, .cbi-dropdown > .more {
|
||||
font-weight: bolder;
|
||||
background-color: rgba(255,255,255,0)!important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
line-height: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
justify-content: center;
|
||||
padding: 0 .25em;
|
||||
cursor: default;
|
||||
text-align: center;
|
||||
outline: 0;
|
||||
}
|
||||
.cbi-dropdown > .more {
|
||||
font-size: var(--font-z);
|
||||
@@ -1756,23 +1769,7 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
.cbi-dropdown.btn > div {
|
||||
margin: 0px;
|
||||
}
|
||||
.cbi-dropdown > .more, .cbi-dropdown > ul > li[placeholder] {
|
||||
font-weight: bold;
|
||||
display: none;
|
||||
color: #777;
|
||||
}
|
||||
.cbi-dropdown > ul > li {
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
align-self: center;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
min-height: 30px;
|
||||
/* padding: 0.125rem 0.25em; */
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.cbi-dropdown > ul > li .hide-open {
|
||||
display: initial;
|
||||
}
|
||||
@@ -1805,18 +1802,28 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
background: rgba(var(--primary-rgbbody), 1);
|
||||
color: var(--inputtext-color);
|
||||
}
|
||||
|
||||
.cbi-dropdown[open] > ul.dropdown {
|
||||
/* position: revert; */
|
||||
z-index: 1100;
|
||||
display: table;
|
||||
width: auto;
|
||||
|
||||
min-width: 100%;
|
||||
max-height: 200px !important;
|
||||
border: 1px solid var(--inputborder-color);
|
||||
background: rgba(var(--primary-rgbbody), 1);
|
||||
/* box-shadow: 0 0 4px #918e8c; */
|
||||
color: var(--inputtext-color);
|
||||
margin-left: 0 !important;
|
||||
position: absolute;
|
||||
z-index: 1100;
|
||||
display: block;
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
max-width: none;
|
||||
max-height: 200px;
|
||||
border-bottom-left-radius: .35rem;
|
||||
border-bottom-right-radius: .35rem;
|
||||
color: var(--main-menu-color);
|
||||
margin-left: -0.2rem !important;
|
||||
left: initial !important;
|
||||
right: initial !important;
|
||||
}
|
||||
|
||||
.cbi-dropdown > ul > li[display], .cbi-dropdown[open] > ul.preview, .cbi-dropdown[open] > ul.dropdown > li, .cbi-dropdown[multiple] > ul > li > label, .cbi-dropdown[multiple][open] > ul.dropdown > li, .cbi-dropdown[multiple][more] > .more, .cbi-dropdown[multiple][empty] > .more {
|
||||
@@ -1825,9 +1832,7 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
padding: 0 10px 0 10px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.cbi-dropdown[open]>ul.dropdown>li {
|
||||
border-bottom: thin solid #ccc;
|
||||
}
|
||||
|
||||
.btn:not(button) ul:not(.dropdown) li {
|
||||
padding: 0;
|
||||
}
|
||||
@@ -1844,12 +1849,12 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
.cbi-dropdown[open] > ul.dropdown > li .hide-close {
|
||||
display: initial;
|
||||
}
|
||||
.cbi-dropdown[open] > ul.dropdown > li[selected] {
|
||||
.cbi-dropdown[open]>ul.dropdown>li[selected] {
|
||||
background: rgba(var(--primary-rgbm), 1);
|
||||
color:#f8f8f8;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.cbi-dropdown[open] > ul.dropdown > li.focus {
|
||||
.cbi-dropdown[open]>ul.dropdown>li.focus {
|
||||
background: rgba(var(--primary-rgbm), 1);
|
||||
color:#f8f8f8;
|
||||
}
|
||||
@@ -1865,6 +1870,32 @@ button:hover, .btn:hover, .cbi-button:hover ,.item:hover{
|
||||
.cbi-dropdown:not(.btn):not(.cbi-button) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.cbi-dropdown > ul > li {
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
align-self: center;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
min-height: 30px;
|
||||
padding: 0.25em;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.cbi-dropdown > .more, .cbi-dropdown > ul > li[placeholder] {
|
||||
font-weight: bold;
|
||||
display: none;
|
||||
color: #777;
|
||||
}
|
||||
.cbi-dropdown[empty]>ul>li, .cbi-dropdown[optional][open]>ul.dropdown>li[placeholder], .cbi-dropdown[multiple][open]>ul.dropdown>li>form {
|
||||
display: block;
|
||||
}
|
||||
.cbi-dropdown[open]>ul.dropdown>li {
|
||||
border-bottom: thin solid #ccc;
|
||||
padding: .5rem .8rem;
|
||||
color: #222;
|
||||
}
|
||||
.cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mihomo
|
||||
PKG_VERSION:=1.19.1
|
||||
PKG_VERSION:=1.19.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/metacubex/mihomo/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=cf32a96bea6caeb2769e86e3001da67d332a673fc6db703b5bc1a5d14754daa1
|
||||
PKG_HASH:=8afa33b5eb9fc20e521a986be5e21908b53858e4b2350b56e0bf3495b740c4dc
|
||||
|
||||
PKG_MAINTAINER:=Anya Lin <hukk1996@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tailscale
|
||||
PKG_VERSION:=1.78.1
|
||||
PKG_VERSION:=1.80.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/tailscale/tailscale/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=dbc25cc241bb233f183475f003d5508af7b45add1ca548b35a6a6fea91fb91af
|
||||
PKG_HASH:=3dc0e5f903912ba5ada04c807501550b2d434111d1080b11099672d3dfd5c3f3
|
||||
|
||||
PKG_MAINTAINER:=Zephyr Lykos <self@mochaa.ws>, \
|
||||
Sandro Jäckel <sandro.jaeckel@gmail.com>
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=v2rayA
|
||||
PKG_VERSION:=2.2.6.4
|
||||
PKG_VERSION:=2.2.6.6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)?
|
||||
PKG_HASH:=801873bb5d8f3fe3d27b26b8b9b4876d7dbd4ffee433344169cc5ebf8070499d
|
||||
PKG_HASH:=9ca40d9a19ffc46e6c27ad4214e958f3430d03e87352dbcaf4f15a8f65bdaac0
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/service
|
||||
|
||||
PKG_LICENSE:=AGPL-3.0-only
|
||||
@@ -60,7 +60,7 @@ define Download/v2raya-web
|
||||
URL:=https://github.com/v2rayA/v2rayA/releases/download/v$(PKG_VERSION)/
|
||||
URL_FILE:=web.tar.gz
|
||||
FILE:=$(WEB_FILE)
|
||||
HASH:=7625e71d9592855dc283b28eabd740d2c2851c7755e893005fc57aca03f9760f
|
||||
HASH:=a30bd587b607e168cd6b34f71630418a09d88491349300e69bfcd39dc46f68f3
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
|
||||
Reference in New Issue
Block a user