pinokiod 3.211.0 → 3.213.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 +5 -3
- package/server/public/common.js +41 -11
- package/server/public/style.css +6 -1
- package/server/views/index.ejs +2 -0
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -3009,14 +3009,16 @@ class Server {
|
|
|
3009
3009
|
|
|
3010
3010
|
if (this.theme === "dark") {
|
|
3011
3011
|
this.colors = {
|
|
3012
|
-
color: "rgb(27, 28, 29)",
|
|
3013
|
-
|
|
3012
|
+
//color: "rgb(27, 28, 29)",
|
|
3013
|
+
color: "#252527",
|
|
3014
|
+
symbolColor: "white",
|
|
3014
3015
|
// color: "rgb(31, 29, 39)",
|
|
3015
3016
|
// symbolColor: "#b7a1ff"
|
|
3016
3017
|
}
|
|
3017
3018
|
} else {
|
|
3018
3019
|
this.colors = {
|
|
3019
|
-
color: "
|
|
3020
|
+
color: "#F4F4F4",
|
|
3021
|
+
//color: "white",
|
|
3020
3022
|
// color: "#F5F4FA",
|
|
3021
3023
|
symbolColor: "black",
|
|
3022
3024
|
}
|
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
|
*/
|
|
@@ -847,9 +847,11 @@ body {
|
|
|
847
847
|
position: relative;
|
|
848
848
|
}
|
|
849
849
|
/* Reserve scrollbar space to prevent header layout shift */
|
|
850
|
+
/*
|
|
850
851
|
html {
|
|
851
852
|
scrollbar-gutter: stable both-edges;
|
|
852
853
|
}
|
|
854
|
+
*/
|
|
853
855
|
body.dark {
|
|
854
856
|
color: var(--dark-color);
|
|
855
857
|
background: var(--dark-bg);
|
|
@@ -2700,6 +2702,9 @@ body.dark .mode-selector .btn2.selected {
|
|
|
2700
2702
|
aside .tab.submenu {
|
|
2701
2703
|
padding: 10px;
|
|
2702
2704
|
}
|
|
2705
|
+
form.search {
|
|
2706
|
+
padding: 10px;
|
|
2707
|
+
}
|
|
2703
2708
|
/*
|
|
2704
2709
|
body[data-agent='electron'] header.navheader {
|
|
2705
2710
|
top: 26px;
|
package/server/views/index.ejs
CHANGED