mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-21 18:40:20 +10:00
@@ -1762,45 +1762,17 @@
|
|||||||
""
|
""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"removertl-cssmin": {
|
"cssmin": {
|
||||||
"version": {
|
"version": {
|
||||||
"fr": "1.1.70",
|
"fr": "1.1.70",
|
||||||
"to": ""
|
"to": ""
|
||||||
},
|
},
|
||||||
"match": [
|
"match": [
|
||||||
"}\\[dir=ltr\\]\\s?([.a-zA-Z\\d[_]+?,\\[dir=ltr\\])",
|
|
||||||
"}\\[dir=ltr\\]\\s?",
|
|
||||||
"html\\[dir=ltr\\]",
|
|
||||||
",\\s?\\[dir=rtl\\].+?(\\{.+?\\})",
|
|
||||||
"[\\w\\-\\.]+\\[dir=rtl\\].+?\\{.+?\\}",
|
|
||||||
"\\}\\[lang=ar\\].+?\\{.+?\\}",
|
|
||||||
"\\}\\[dir=rtl\\].+?\\{.+?\\}",
|
|
||||||
"\\}html\\[dir=rtl\\].+?\\{.+?\\}",
|
|
||||||
"\\}html\\[lang=ar\\].+?\\{.+?\\}",
|
|
||||||
"\\[lang=ar\\].+?\\{.+?\\}",
|
|
||||||
"html\\[dir=rtl\\].+?\\{.+?\\}",
|
|
||||||
"html\\[lang=ar\\].+?\\{.+?\\}",
|
|
||||||
"\\[dir=rtl\\].+?\\{.+?\\}",
|
|
||||||
"\\[dir=str\\]",
|
|
||||||
"[/]\\*([^*]|[\r\n]|(\\*([^/]|[\r\n])))*\\*[/]",
|
"[/]\\*([^*]|[\r\n]|(\\*([^/]|[\r\n])))*\\*[/]",
|
||||||
"[/][/]#\\s.*",
|
"[/][/]#\\s.*",
|
||||||
"\r?\n(?!\\(1|\\d)"
|
"\r?\n(?!\\(1|\\d)"
|
||||||
],
|
],
|
||||||
"replace": [
|
"replace": [
|
||||||
"}[dir=str] $1",
|
|
||||||
"} ",
|
|
||||||
"html",
|
|
||||||
"$1",
|
|
||||||
"",
|
|
||||||
"}",
|
|
||||||
"}",
|
|
||||||
"}",
|
|
||||||
"}",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"[dir=ltr]",
|
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
""
|
""
|
||||||
|
|||||||
10
run.ps1
10
run.ps1
@@ -1070,9 +1070,9 @@ function Helper($paramname) {
|
|||||||
$n = "xpui.css"
|
$n = "xpui.css"
|
||||||
$json = $webjson.others
|
$json = $webjson.others
|
||||||
}
|
}
|
||||||
"RemovertlCssmin" {
|
"Cssmin" {
|
||||||
# Remove RTL and minification of all *.css
|
# Minification of all *.css
|
||||||
$contents = "removertl-cssmin"
|
$contents = "cssmin"
|
||||||
$json = $webjson.others
|
$json = $webjson.others
|
||||||
}
|
}
|
||||||
"DisableSentry" {
|
"DisableSentry" {
|
||||||
@@ -1403,7 +1403,7 @@ function Helper($paramname) {
|
|||||||
$paramdata = $paramdata -replace $json.$PSItem.match[$numbers], $json.$PSItem.replace[$numbers]
|
$paramdata = $paramdata -replace $json.$PSItem.match[$numbers], $json.$PSItem.replace[$numbers]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$notlog = "MinJs", "MinJson", "Removertl", "RemovertlCssmin"
|
$notlog = "MinJs", "MinJson", "Cssmin"
|
||||||
if ($paramname -notin $notlog) {
|
if ($paramname -notin $notlog) {
|
||||||
|
|
||||||
Write-Host $novariable -ForegroundColor red -NoNewline
|
Write-Host $novariable -ForegroundColor red -NoNewline
|
||||||
@@ -1772,7 +1772,7 @@ If ($test_spa) {
|
|||||||
extract -counts 'one' -method 'zip' -name 'xpui.css' -helper "FixCss"
|
extract -counts 'one' -method 'zip' -name 'xpui.css' -helper "FixCss"
|
||||||
|
|
||||||
# Remove RTL and minification of all *.css
|
# Remove RTL and minification of all *.css
|
||||||
extract -counts 'more' -name '*.css' -helper 'RemovertlCssmin'
|
extract -counts 'more' -name '*.css' -helper 'Cssmin'
|
||||||
|
|
||||||
# licenses.html minification
|
# licenses.html minification
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user