pinokiod 3.210.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.
@@ -615,6 +615,7 @@ const init = async (options, kernel) => {
615
615
  "ENVIRONMENT",
616
616
  // ".*",
617
617
  // "~*",
618
+ "/.pinokio-temp/",
618
619
  "/logs/",
619
620
  "/cache/",
620
621
  "/AGENTS.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.210.0",
3
+ "version": "3.212.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
  }
@@ -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) return true;
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
- const ua = (navigator.userAgent || '').toLowerCase();
1921
- if (/iphone|ipad|ipod|android|mobile/.test(ua)) return true;
1922
- } catch (_) {}
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('(max-width: 900px)').matches) return true;
1958
+ if (window.matchMedia && window.matchMedia('(pointer: coarse)').matches) {
1959
+ return true;
1960
+ }
1931
1961
  } catch (_) {}
1932
- return false;
1962
+ return uaMobile;
1933
1963
  };
1934
1964
 
1935
1965
  const createCurtain = () => {
@@ -703,7 +703,7 @@ form.search {
703
703
  margin: 0;
704
704
  display: flex;
705
705
  flex-grow: 1;
706
- padding: 10px 0;
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;
@@ -314,9 +314,11 @@ body.dark aside .current.selected {
314
314
  border-left: 10px solid white;
315
315
  */
316
316
  }
317
+ /*
317
318
  .container {
318
319
  margin-left: 20px;
319
320
  }
321
+ */
320
322
  /*
321
323
  @media only screen and (max-width: 800px) {
322
324
  body {