Skip to content

Commit 2c14171

Browse files
committed
Add more captive portal URL
Fix Marlin filter file settings not working for second SD and isolate normal SD and Direct SD setting to avoid duplicate item and so conflict value Bump version
1 parent 27ba10f commit 2c14171

File tree

6 files changed

+35
-10
lines changed

6 files changed

+35
-10
lines changed

src/components/App/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
import { h } from "preact"
1919
import { webUIbuild } from "../../targets"
20-
export const webUIversion = "3.0.0-a77"
20+
export const webUIversion = "3.0.0-a78"
2121
export const Esp3dVersion = () => (
2222
<span>
2323
{webUIversion}.{webUIbuild}

src/components/Helpers/http.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,30 @@ const espHttpURL = (base = "", args = {}) => {
5050

5151
function isLimitedEnvironment(mode) {
5252
let sitesList = [
53-
"clients3.google.com", //Android Captive Portal Detection
53+
//google / android Captive Portal Detection
54+
"google.com",
5455
"connectivitycheck.",
55-
//Apple iPhone, iPad with iOS 6 Captive Portal Detection
56+
"googleapis.com",
57+
"gstatic.com",
58+
// Apple iPhone, iPad with iOS 6 Captive Portal Detection
5659
"apple.com",
5760
".akamaitechnologies.com",
58-
//Apple iPhone, iPad with iOS 7, 8, 9 and recent versions of OS X
61+
// Apple iPhone, iPad with iOS 7, 8, 9 and recent versions of OS X
5962
"www.appleiphonecell.com",
6063
"www.itools.info",
6164
"www.ibook.info",
6265
"www.airport.us",
6366
"www.thinkdifferent.us",
6467
".akamaiedge.net",
65-
//Windows
68+
// Windows
6669
".msftncsi.com",
6770
"microsoft.com",
71+
".msftconnecttest.com",
72+
// Firefox
73+
"detectportal.firefox.com",
74+
// Linux
75+
"network-test.debian.org",
76+
"nmcheck.gnome.org",
6877
]
6978
if (mode != "AP") return false
7079
for (let i = 0; i < sitesList.length; i++) {

src/targets/Printer3D/Marlin/DIRECTSD-source.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const commands = {
7474
},
7575
formatResult: (resultTxT) => {
7676
const res = JSON.parse(resultTxT)
77-
if (useUiContextFn.getValue("sort_sd_files")){
77+
console.log("direct SD sort", useUiContextFn.getValue("sort_directsd_files"))
78+
if (useUiContextFn.getValue("sort_directsd_files")){
7879
res.files = sortedFilesList(res.files)
7980
}
8081
res.status = formatStatus(res.status)

src/targets/Printer3D/Marlin/SD-source.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ const commands = {
114114
formatResult: (result) => {
115115
const files = formatFileSerialLine(result.content)
116116
const isSorted = useUiContextFn.getValue("sort_sd_files")
117+
console.log("sd is sorted", isSorted)
117118
return {
118119
files: isSorted? sortedFilesList(files, false) : files,
119120
status: formatStatus(result.status),

src/targets/Printer3D/Marlin/SDEXT-source.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ const commands = {
120120
}
121121
},
122122
filterResult: (data, path) => {
123-
//console.log(data)
124-
const isSorted = useUiContextFn.getValue("sort_sd_files")
123+
console.log(data)
124+
const isSorted = useUiContextFn.getValue("sort_sdext_files")
125+
console.log("is sorted ext", isSorted)
125126
const res = {}
126-
res.files = isSorted? sortedFilesList(filterResultFiles(data.files, path), false) : filterResultFiles(data.files, path)
127+
res.files = isSorted? sortedFilesList(filterResultFiles(data.files, path), true) : filterResultFiles(data.files, path)
127128
res.status = formatStatus(data.status)
128129
return res
129130
},

src/targets/Printer3D/Marlin/preferences.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,20 @@
152152
"type": "boolean",
153153
"label": "S224",
154154
"value": true,
155-
"depend": [{ "id": "sd", "value": true }]
155+
"depend": [{ "id": "sd", "value": true },{
156+
"connection_id": "SDConnection",
157+
"value": "=='none'"
158+
} ]
159+
},
160+
{
161+
"id": "sort_directsd_files",
162+
"type": "boolean",
163+
"label": "S224",
164+
"value": true,
165+
"depend": [{ "id": "sd", "value": true },{
166+
"connection_id": "SDConnection",
167+
"value": "!='none'"
168+
} ]
156169
}
157170
]
158171
},

0 commit comments

Comments
 (0)