pinokiod 3.211.0 → 3.212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/index.js +2 -1
- package/server/public/common.js +41 -11
- package/server/public/style.css +4 -1
- package/server/views/index.ejs +2 -0
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -3010,7 +3010,8 @@ class Server {
|
|
|
3010
3010
|
if (this.theme === "dark") {
|
|
3011
3011
|
this.colors = {
|
|
3012
3012
|
color: "rgb(27, 28, 29)",
|
|
3013
|
-
symbolColor: "white"
|
|
3013
|
+
// symbolColor: "white"
|
|
3014
|
+
symbolColor: "#F4F4F4"
|
|
3014
3015
|
// color: "rgb(31, 29, 39)",
|
|
3015
3016
|
// symbolColor: "#b7a1ff"
|
|
3016
3017
|
}
|
package/server/public/common.js
CHANGED
|
@@ -1911,25 +1911,55 @@ if (typeof hotkeys === 'function') {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
1913
|
const isLikelyMobile = () => {
|
|
1914
|
+
const getUserAgent = () => {
|
|
1915
|
+
try { return (navigator.userAgent || '').toLowerCase(); } catch (_) { return ''; }
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
const ua = getUserAgent();
|
|
1919
|
+
const isElectron = (() => {
|
|
1920
|
+
try {
|
|
1921
|
+
if (ua && ua.includes('electron')) {
|
|
1922
|
+
return true;
|
|
1923
|
+
}
|
|
1924
|
+
} catch (_) {}
|
|
1925
|
+
try {
|
|
1926
|
+
if (typeof window !== 'undefined' && window.process && window.process.versions && window.process.versions.electron) {
|
|
1927
|
+
return true;
|
|
1928
|
+
}
|
|
1929
|
+
} catch (_) {}
|
|
1930
|
+
return false;
|
|
1931
|
+
})();
|
|
1932
|
+
|
|
1914
1933
|
try {
|
|
1915
1934
|
if (navigator.userAgentData && typeof navigator.userAgentData.mobile === 'boolean') {
|
|
1916
|
-
if (navigator.userAgentData.mobile)
|
|
1935
|
+
if (navigator.userAgentData.mobile) {
|
|
1936
|
+
return !isElectron;
|
|
1937
|
+
}
|
|
1917
1938
|
}
|
|
1918
1939
|
} catch (_) {}
|
|
1940
|
+
|
|
1941
|
+
if (!ua) {
|
|
1942
|
+
return false;
|
|
1943
|
+
}
|
|
1944
|
+
if (isElectron) {
|
|
1945
|
+
return false;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
const uaMobile = /iphone|ipad|ipod|android|mobile/.test(ua);
|
|
1949
|
+
if (!uaMobile) {
|
|
1950
|
+
return false;
|
|
1951
|
+
}
|
|
1919
1952
|
try {
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
try {
|
|
1924
|
-
if (navigator.maxTouchPoints && navigator.maxTouchPoints > 1) return true;
|
|
1925
|
-
} catch (_) {}
|
|
1926
|
-
try {
|
|
1927
|
-
if (window.matchMedia && window.matchMedia('(pointer: coarse)').matches) return true;
|
|
1953
|
+
if (navigator.maxTouchPoints && navigator.maxTouchPoints > 0) {
|
|
1954
|
+
return true;
|
|
1955
|
+
}
|
|
1928
1956
|
} catch (_) {}
|
|
1929
1957
|
try {
|
|
1930
|
-
if (window.matchMedia && window.matchMedia('(
|
|
1958
|
+
if (window.matchMedia && window.matchMedia('(pointer: coarse)').matches) {
|
|
1959
|
+
return true;
|
|
1960
|
+
}
|
|
1931
1961
|
} catch (_) {}
|
|
1932
|
-
return
|
|
1962
|
+
return uaMobile;
|
|
1933
1963
|
};
|
|
1934
1964
|
|
|
1935
1965
|
const createCurtain = () => {
|
package/server/public/style.css
CHANGED
|
@@ -703,7 +703,7 @@ form.search {
|
|
|
703
703
|
margin: 0;
|
|
704
704
|
display: flex;
|
|
705
705
|
flex-grow: 1;
|
|
706
|
-
padding: 10px
|
|
706
|
+
padding: 10px;
|
|
707
707
|
/*
|
|
708
708
|
padding: 0 10px 20px;
|
|
709
709
|
*/
|
|
@@ -2700,6 +2700,9 @@ body.dark .mode-selector .btn2.selected {
|
|
|
2700
2700
|
aside .tab.submenu {
|
|
2701
2701
|
padding: 10px;
|
|
2702
2702
|
}
|
|
2703
|
+
form.search {
|
|
2704
|
+
padding: 10px;
|
|
2705
|
+
}
|
|
2703
2706
|
/*
|
|
2704
2707
|
body[data-agent='electron'] header.navheader {
|
|
2705
2708
|
top: 26px;
|
package/server/views/index.ejs
CHANGED