mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Compare commits
3
Commits
main
...
consoleLogPane
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91ab79bb39 | ||
|
|
8f148e48c0 | ||
|
|
3e230d425f |
No files matched your search
Generated
+31
-11
@@ -195,6 +195,7 @@
|
|||||||
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
|
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.27.1",
|
"@babel/code-frame": "^7.27.1",
|
||||||
"@babel/generator": "^7.28.5",
|
"@babel/generator": "^7.28.5",
|
||||||
@@ -1830,6 +1831,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
@@ -1853,6 +1855,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
@@ -1874,6 +1877,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz",
|
||||||
"integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==",
|
"integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dnd-kit/accessibility": "^3.1.1",
|
"@dnd-kit/accessibility": "^3.1.1",
|
||||||
"@dnd-kit/utilities": "^3.2.2",
|
"@dnd-kit/utilities": "^3.2.2",
|
||||||
@@ -5404,8 +5408,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
|
||||||
"integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",
|
"integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT"
|
||||||
"peer": true
|
|
||||||
},
|
},
|
||||||
"node_modules/@types/cacheable-request": {
|
"node_modules/@types/cacheable-request": {
|
||||||
"version": "6.0.3",
|
"version": "6.0.3",
|
||||||
@@ -5647,6 +5650,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.20.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.20.tgz",
|
||||||
"integrity": "sha512-IPaCZN7PShZK/3t6Q87pfTkRm6oLTd4vztyoj+cbHUF1g3FfVb2tFIL79uCRKEfv16AhqDMBywP2VW3KIZUvcg==",
|
"integrity": "sha512-IPaCZN7PShZK/3t6Q87pfTkRm6oLTd4vztyoj+cbHUF1g3FfVb2tFIL79uCRKEfv16AhqDMBywP2VW3KIZUvcg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/prop-types": "*",
|
"@types/prop-types": "*",
|
||||||
"csstype": "^3.0.2"
|
"csstype": "^3.0.2"
|
||||||
@@ -5658,6 +5662,7 @@
|
|||||||
"integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
|
"integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
|
||||||
"devOptional": true,
|
"devOptional": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "^18.0.0"
|
"@types/react": "^18.0.0"
|
||||||
}
|
}
|
||||||
@@ -5762,6 +5767,7 @@
|
|||||||
"integrity": "sha512-oU/OtYVydhXnumd0BobL9rkJg7wFJ9bFFPmSmB/bf/XWN85hlViji59ko6bSKBXyseT9V8l+CN1nwmlbiN0G7Q==",
|
"integrity": "sha512-oU/OtYVydhXnumd0BobL9rkJg7wFJ9bFFPmSmB/bf/XWN85hlViji59ko6bSKBXyseT9V8l+CN1nwmlbiN0G7Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "8.31.1",
|
"@typescript-eslint/scope-manager": "8.31.1",
|
||||||
"@typescript-eslint/types": "8.31.1",
|
"@typescript-eslint/types": "8.31.1",
|
||||||
@@ -6108,6 +6114,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
||||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"acorn": "bin/acorn"
|
"acorn": "bin/acorn"
|
||||||
},
|
},
|
||||||
@@ -6552,6 +6559,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"baseline-browser-mapping": "^2.8.19",
|
"baseline-browser-mapping": "^2.8.19",
|
||||||
"caniuse-lite": "^1.0.30001751",
|
"caniuse-lite": "^1.0.30001751",
|
||||||
@@ -6811,6 +6819,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
||||||
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"anymatch": "~3.1.2",
|
"anymatch": "~3.1.2",
|
||||||
"braces": "~3.0.2",
|
"braces": "~3.0.2",
|
||||||
@@ -7549,8 +7558,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
|
"resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
|
||||||
"integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",
|
"integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT"
|
||||||
"peer": true
|
|
||||||
},
|
},
|
||||||
"node_modules/dom-helpers": {
|
"node_modules/dom-helpers": {
|
||||||
"version": "5.2.1",
|
"version": "5.2.1",
|
||||||
@@ -7628,7 +7636,8 @@
|
|||||||
"version": "8.6.0",
|
"version": "8.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-8.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-8.6.0.tgz",
|
||||||
"integrity": "sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==",
|
"integrity": "sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==",
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"peer": true
|
||||||
},
|
},
|
||||||
"node_modules/embla-carousel-react": {
|
"node_modules/embla-carousel-react": {
|
||||||
"version": "8.6.0",
|
"version": "8.6.0",
|
||||||
@@ -7927,6 +7936,7 @@
|
|||||||
"integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==",
|
"integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.2.0",
|
"@eslint-community/eslint-utils": "^4.2.0",
|
||||||
"@eslint-community/regexpp": "^4.12.1",
|
"@eslint-community/regexpp": "^4.12.1",
|
||||||
@@ -9274,6 +9284,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.27.6"
|
"@babel/runtime": "^7.27.6"
|
||||||
},
|
},
|
||||||
@@ -10043,6 +10054,7 @@
|
|||||||
"integrity": "sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==",
|
"integrity": "sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cssstyle": "^4.2.1",
|
"cssstyle": "^4.2.1",
|
||||||
"data-urls": "^5.0.0",
|
"data-urls": "^5.0.0",
|
||||||
@@ -10439,7 +10451,6 @@
|
|||||||
"integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",
|
"integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"lz-string": "bin/bin.js"
|
"lz-string": "bin/bin.js"
|
||||||
}
|
}
|
||||||
@@ -12143,6 +12154,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nanoid": "^3.3.8",
|
"nanoid": "^3.3.8",
|
||||||
"picocolors": "^1.1.1",
|
"picocolors": "^1.1.1",
|
||||||
@@ -12310,7 +12322,6 @@
|
|||||||
"integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",
|
"integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-regex": "^5.0.1",
|
"ansi-regex": "^5.0.1",
|
||||||
"ansi-styles": "^5.0.0",
|
"ansi-styles": "^5.0.0",
|
||||||
@@ -12326,7 +12337,6 @@
|
|||||||
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
@@ -12337,7 +12347,6 @@
|
|||||||
"integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
|
"integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
},
|
},
|
||||||
@@ -12350,8 +12359,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
|
||||||
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
|
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT"
|
||||||
"peer": true
|
|
||||||
},
|
},
|
||||||
"node_modules/prismjs": {
|
"node_modules/prismjs": {
|
||||||
"version": "1.30.0",
|
"version": "1.30.0",
|
||||||
@@ -12491,6 +12499,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
||||||
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0"
|
"loose-envify": "^1.1.0"
|
||||||
},
|
},
|
||||||
@@ -12517,6 +12526,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
|
||||||
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
"integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loose-envify": "^1.1.0",
|
"loose-envify": "^1.1.0",
|
||||||
"scheduler": "^0.23.2"
|
"scheduler": "^0.23.2"
|
||||||
@@ -12542,6 +12552,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.1.tgz",
|
||||||
"integrity": "sha512-qWAVokhSpshhcEuQDSANHx3jiAEFzu2HAaaQIzi/r9FNPm1ioAvuJSD4EuZzWd7Al7nTRKcKPnBKO7sRn+zavQ==",
|
"integrity": "sha512-qWAVokhSpshhcEuQDSANHx3jiAEFzu2HAaaQIzi/r9FNPm1ioAvuJSD4EuZzWd7Al7nTRKcKPnBKO7sRn+zavQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
},
|
},
|
||||||
@@ -12590,6 +12601,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
|
||||||
"integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
|
"integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/hast": "^3.0.0",
|
"@types/hast": "^3.0.0",
|
||||||
"@types/mdast": "^4.0.0",
|
"@types/mdast": "^4.0.0",
|
||||||
@@ -13172,6 +13184,7 @@
|
|||||||
"integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==",
|
"integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==",
|
||||||
"devOptional": true,
|
"devOptional": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/estree": "1.0.7"
|
"@types/estree": "1.0.7"
|
||||||
},
|
},
|
||||||
@@ -14223,6 +14236,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz",
|
||||||
"integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==",
|
"integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
"arg": "^5.0.2",
|
"arg": "^5.0.2",
|
||||||
@@ -14426,6 +14440,7 @@
|
|||||||
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
@@ -14698,6 +14713,7 @@
|
|||||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
||||||
"devOptional": true,
|
"devOptional": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
@@ -15207,6 +15223,7 @@
|
|||||||
"integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==",
|
"integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"fdir": "^6.4.4",
|
"fdir": "^6.4.4",
|
||||||
@@ -15351,6 +15368,7 @@
|
|||||||
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
@@ -15821,6 +15839,7 @@
|
|||||||
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
"fast-uri": "^3.0.1",
|
"fast-uri": "^3.0.1",
|
||||||
@@ -15897,6 +15916,7 @@
|
|||||||
"integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==",
|
"integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"rollup": "dist/bin/rollup"
|
"rollup": "dist/bin/rollup"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
import { encodeBase64 } from '@std/encoding/base64';
|
import { encodeBase64 } from '@std/encoding/base64';
|
||||||
import { useState, useEffect, useCallback, useRef } from 'react';
|
import { useState, useEffect, useCallback, useRef, useMemo, memo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useProjectsManager } from '@/hooks/useProjectsManager';
|
import { useProjectsManager } from '@/hooks/useProjectsManager';
|
||||||
import { useFS } from '@/hooks/useFS';
|
import { useFS } from '@/hooks/useFS';
|
||||||
import { useFSPaths } from '@/hooks/useFSPaths';
|
import { useFSPaths } from '@/hooks/useFSPaths';
|
||||||
import { addConsoleMessage, getConsoleMessages, type ConsoleMessage } from '@/lib/consoleMessages';
|
import { addConsoleMessage, getConsoleMessages, addConsoleMessageListener, removeConsoleMessageListener, type ConsoleMessage } from '@/lib/consoleMessages';
|
||||||
import { useConsoleError } from '@/hooks/useConsoleError';
|
import { useConsoleError } from '@/hooks/useConsoleError';
|
||||||
import { useBuildProject } from '@/hooks/useBuildProject';
|
import { useBuildProject } from '@/hooks/useBuildProject';
|
||||||
import { Tabs, TabsContent } from '@/components/ui/tabs';
|
import { Tabs, TabsContent } from '@/components/ui/tabs';
|
||||||
import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area';
|
import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import { FolderOpen, ArrowLeft, Bug, Copy, Check, Play, Loader2, MenuIcon, Code, Rocket, X, Terminal } from 'lucide-react';
|
import { FolderOpen, ArrowLeft, Bug, Copy, Check, Play, Loader2, MenuIcon, Code, Rocket, Terminal, Trash2, ChevronRight } from 'lucide-react';
|
||||||
import { useIsMobile } from '@/hooks/useIsMobile';
|
import { useIsMobile } from '@/hooks/useIsMobile';
|
||||||
import { GitStatusIndicator } from '@/components/GitStatusIndicator';
|
import { GitStatusIndicator } from '@/components/GitStatusIndicator';
|
||||||
import { BrowserAddressBar } from '@/components/ui/browser-address-bar';
|
import { BrowserAddressBar } from '@/components/ui/browser-address-bar';
|
||||||
@@ -20,11 +20,6 @@ import {
|
|||||||
DropdownMenuItem,
|
DropdownMenuItem,
|
||||||
DropdownMenuTrigger,
|
DropdownMenuTrigger,
|
||||||
} from '@/components/ui/dropdown-menu';
|
} from '@/components/ui/dropdown-menu';
|
||||||
import {
|
|
||||||
Popover,
|
|
||||||
PopoverContent,
|
|
||||||
PopoverTrigger,
|
|
||||||
} from '@/components/ui/popover';
|
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { FileTree } from './FileTree';
|
import { FileTree } from './FileTree';
|
||||||
import { FileEditor } from './FileEditor';
|
import { FileEditor } from './FileEditor';
|
||||||
@@ -88,6 +83,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
const [historyIndex, setHistoryIndex] = useState(0);
|
const [historyIndex, setHistoryIndex] = useState(0);
|
||||||
|
|
||||||
const [deployDialogOpen, setDeployDialogOpen] = useState(false);
|
const [deployDialogOpen, setDeployDialogOpen] = useState(false);
|
||||||
|
const [showConsoleView, setShowConsoleView] = useState(false);
|
||||||
const iframeRef = useRef<HTMLIFrameElement>(null);
|
const iframeRef = useRef<HTMLIFrameElement>(null);
|
||||||
const { fs } = useFS();
|
const { fs } = useFS();
|
||||||
const { projectsPath } = useFSPaths();
|
const { projectsPath } = useFSPaths();
|
||||||
@@ -465,6 +461,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
setFileContent('');
|
setFileContent('');
|
||||||
setMobileCodeView('explorer');
|
setMobileCodeView('explorer');
|
||||||
setDesktopCodeView('files');
|
setDesktopCodeView('files');
|
||||||
|
setShowConsoleView(false);
|
||||||
|
|
||||||
// Reset navigation history and state
|
// Reset navigation history and state
|
||||||
setCurrentPath('/');
|
setCurrentPath('/');
|
||||||
@@ -521,68 +518,56 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const ConsoleDropdown = () => {
|
// Constants
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const CONSOLE_SORT_ORDER_KEY = 'consoleSortOrder';
|
||||||
const [copiedMessageIndex, setCopiedMessageIndex] = useState<number | null>(null);
|
const COPY_FEEDBACK_DURATION = 2000;
|
||||||
|
const MAX_CONSOLE_MESSAGES = 500; // Limit displayed messages for performance
|
||||||
|
|
||||||
const messages = isOpen ? getConsoleMessages() : [];
|
// Helper function to get message level color
|
||||||
|
const getMessageLevelColor = (level: ConsoleMessage['level']): string => {
|
||||||
const copyMessageToClipboard = async (msg: ConsoleMessage, index: number) => {
|
switch (level) {
|
||||||
try {
|
case 'error': return 'text-destructive';
|
||||||
await navigator.clipboard.writeText(msg.message);
|
case 'warn': return 'text-warning';
|
||||||
setCopiedMessageIndex(index);
|
case 'info': return 'text-primary';
|
||||||
setTimeout(() => setCopiedMessageIndex(null), 2000);
|
default: return 'text-muted-foreground';
|
||||||
} catch (error) {
|
|
||||||
console.error('Failed to copy message to clipboard:', error);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const messageCount = messages.length;
|
const ConsoleToggleButton = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover open={isOpen} onOpenChange={setIsOpen}>
|
|
||||||
<PopoverTrigger asChild>
|
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant={showConsoleView ? "secondary" : "ghost"}
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-8 w-8 p-0 relative"
|
className="h-8 w-8 p-0 relative"
|
||||||
|
onClick={() => setShowConsoleView(!showConsoleView)}
|
||||||
|
title={showConsoleView ? "Show preview" : "Show console"}
|
||||||
>
|
>
|
||||||
<Bug className="h-4 w-4" />
|
<Bug className="h-4 w-4" />
|
||||||
{hasConsoleErrors && (
|
{hasConsoleErrors && (
|
||||||
<span className="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-background bg-red-500" />
|
<span className="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-background bg-red-500" />
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
</PopoverTrigger>
|
);
|
||||||
<PopoverContent
|
};
|
||||||
align="end"
|
|
||||||
className="w-[calc(100vw-1rem)] max-w-[480px] max-h-[512px] overflow-hidden shadow-lg border rounded-lg bg-background p-0"
|
|
||||||
sideOffset={4}
|
|
||||||
>
|
|
||||||
|
|
||||||
{/* Messages */}
|
// Individual console message component - memoized for performance
|
||||||
<div className="h-[60vh] max-h-[512px] w-full bg-background text-foreground font-mono text-xs relative overflow-y-auto overflow-x-hidden [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]">
|
const ConsoleMessage = memo(({ msg, index, copiedMessageIndex, onCopy }: {
|
||||||
<div className="py-2 px-1 space-y-0">
|
msg: ConsoleMessage;
|
||||||
{messageCount === 0 ? (
|
index: number;
|
||||||
<div className="flex flex-col items-center justify-center py-12 text-center">
|
copiedMessageIndex: number | null;
|
||||||
<p className="text-sm text-muted-foreground font-medium">No console messages</p>
|
onCopy: (msg: ConsoleMessage, index: number) => void;
|
||||||
<p className="text-xs text-muted-foreground mt-1">Messages from your project will appear here</p>
|
}) => {
|
||||||
</div>
|
return (
|
||||||
) : (
|
|
||||||
messages.map((msg, index) => (
|
|
||||||
<div
|
<div
|
||||||
key={index}
|
|
||||||
className="group relative py-0.5 px-1 hover:bg-muted/50 transition-colors duration-150 rounded cursor-pointer"
|
className="group relative py-0.5 px-1 hover:bg-muted/50 transition-colors duration-150 rounded cursor-pointer"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
copyMessageToClipboard(msg, index);
|
onCopy(msg, index);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
"text-xs font-mono leading-tight whitespace-pre-wrap break-words",
|
"text-xs font-mono leading-tight whitespace-pre-wrap break-words",
|
||||||
msg.level === 'error' ? "text-destructive" :
|
getMessageLevelColor(msg.level)
|
||||||
msg.level === 'warn' ? "text-warning" :
|
|
||||||
msg.level === 'info' ? "text-primary" :
|
|
||||||
"text-muted-foreground"
|
|
||||||
)}>
|
)}>
|
||||||
{msg.message}
|
{msg.message}
|
||||||
</div>
|
</div>
|
||||||
@@ -592,7 +577,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
copyMessageToClipboard(msg, index);
|
onCopy(msg, index);
|
||||||
}}
|
}}
|
||||||
className="h-3 w-3 p-0 opacity-0 group-hover:opacity-100 transition-all duration-200 absolute right-1 top-1 hover:bg-muted/70 text-muted-foreground hover:text-foreground bg-background/80 rounded border"
|
className="h-3 w-3 p-0 opacity-0 group-hover:opacity-100 transition-all duration-200 absolute right-1 top-1 hover:bg-muted/70 text-muted-foreground hover:text-foreground bg-background/80 rounded border"
|
||||||
>
|
>
|
||||||
@@ -603,20 +588,212 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
))
|
);
|
||||||
|
});
|
||||||
|
ConsoleMessage.displayName = 'ConsoleMessage';
|
||||||
|
|
||||||
|
const ConsoleView = () => {
|
||||||
|
const [copiedMessageIndex, setCopiedMessageIndex] = useState<number | null>(null);
|
||||||
|
const [isInitialLoad, setIsInitialLoad] = useState(true);
|
||||||
|
const [rawMessages, setRawMessages] = useState<ConsoleMessage[]>([]);
|
||||||
|
const [totalMessageCount, setTotalMessageCount] = useState(0);
|
||||||
|
|
||||||
|
// Load sort order from localStorage, default to 'newest-first'
|
||||||
|
const [sortOrder, setSortOrder] = useState<'newest-first' | 'oldest-first'>(() => {
|
||||||
|
const saved = localStorage.getItem(CONSOLE_SORT_ORDER_KEY);
|
||||||
|
return (saved === 'oldest-first' || saved === 'newest-first') ? saved : 'newest-first';
|
||||||
|
});
|
||||||
|
|
||||||
|
// Save sort order to localStorage whenever it changes
|
||||||
|
useEffect(() => {
|
||||||
|
localStorage.setItem(CONSOLE_SORT_ORDER_KEY, sortOrder);
|
||||||
|
}, [sortOrder]);
|
||||||
|
|
||||||
|
// Track rapid message bursts for intelligent batching
|
||||||
|
const lastMessageTimeRef = useRef<number>(0);
|
||||||
|
const pendingUpdateRef = useRef<number>();
|
||||||
|
const messageCountSinceUpdateRef = useRef<number>(0);
|
||||||
|
|
||||||
|
// Update messages from the global store - optimized for immediate updates
|
||||||
|
const updateMessages = useCallback(() => {
|
||||||
|
const allMessages = getConsoleMessages();
|
||||||
|
setTotalMessageCount(allMessages.length);
|
||||||
|
|
||||||
|
// Limit messages for performance (keep most recent)
|
||||||
|
const limitedMessages = allMessages.length > MAX_CONSOLE_MESSAGES
|
||||||
|
? allMessages.slice(-MAX_CONSOLE_MESSAGES)
|
||||||
|
: allMessages;
|
||||||
|
|
||||||
|
setRawMessages(limitedMessages);
|
||||||
|
setIsInitialLoad(false);
|
||||||
|
messageCountSinceUpdateRef.current = 0;
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// Smart update handler: immediate for single messages, batched for rapid bursts
|
||||||
|
const handleMessageUpdate = useCallback(() => {
|
||||||
|
const now = Date.now();
|
||||||
|
const timeSinceLastMessage = now - lastMessageTimeRef.current;
|
||||||
|
lastMessageTimeRef.current = now;
|
||||||
|
messageCountSinceUpdateRef.current += 1;
|
||||||
|
|
||||||
|
// Detect rapid bursts: if we get more than 3 messages within 50ms, batch them
|
||||||
|
const isRapidBurst = messageCountSinceUpdateRef.current > 3 && timeSinceLastMessage < 50;
|
||||||
|
|
||||||
|
// Clear any pending update
|
||||||
|
if (pendingUpdateRef.current) {
|
||||||
|
cancelAnimationFrame(pendingUpdateRef.current);
|
||||||
|
pendingUpdateRef.current = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isRapidBurst) {
|
||||||
|
// Batch rapid updates using requestAnimationFrame for smooth rendering
|
||||||
|
// This prevents UI blocking during loops that log many messages
|
||||||
|
pendingUpdateRef.current = requestAnimationFrame(() => {
|
||||||
|
updateMessages();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// Immediate update for normal console.log calls (like browser console)
|
||||||
|
// Single messages appear instantly, just like native browser console
|
||||||
|
updateMessages();
|
||||||
|
}
|
||||||
|
}, [updateMessages]);
|
||||||
|
|
||||||
|
// Initial load and listener setup
|
||||||
|
useEffect(() => {
|
||||||
|
// Initial load - check if we have many messages
|
||||||
|
const allMessages = getConsoleMessages();
|
||||||
|
if (allMessages.length > 500) {
|
||||||
|
setIsInitialLoad(true);
|
||||||
|
// Use requestIdleCallback for non-blocking initial render, fallback to setTimeout
|
||||||
|
const scheduleUpdate = () => {
|
||||||
|
if ('requestIdleCallback' in window) {
|
||||||
|
requestIdleCallback(() => {
|
||||||
|
updateMessages();
|
||||||
|
}, { timeout: 100 });
|
||||||
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
updateMessages();
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
scheduleUpdate();
|
||||||
|
} else {
|
||||||
|
updateMessages();
|
||||||
|
}
|
||||||
|
|
||||||
|
addConsoleMessageListener(handleMessageUpdate);
|
||||||
|
return () => {
|
||||||
|
removeConsoleMessageListener(handleMessageUpdate);
|
||||||
|
if (pendingUpdateRef.current) {
|
||||||
|
cancelAnimationFrame(pendingUpdateRef.current);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, [handleMessageUpdate, updateMessages]);
|
||||||
|
|
||||||
|
// Memoize sorted messages to avoid recalculation on every render
|
||||||
|
const messages = useMemo(() => {
|
||||||
|
if (sortOrder === 'newest-first') {
|
||||||
|
// For newest-first, reverse the array (messages are stored oldest-first)
|
||||||
|
return [...rawMessages].reverse();
|
||||||
|
}
|
||||||
|
return rawMessages;
|
||||||
|
}, [rawMessages, sortOrder]);
|
||||||
|
|
||||||
|
const copyMessageToClipboard = async (msg: ConsoleMessage, index: number) => {
|
||||||
|
try {
|
||||||
|
await navigator.clipboard.writeText(msg.message);
|
||||||
|
setCopiedMessageIndex(index);
|
||||||
|
setTimeout(() => setCopiedMessageIndex(null), COPY_FEEDBACK_DURATION);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to copy message to clipboard:', error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleClearMessages = () => {
|
||||||
|
clearErrors();
|
||||||
|
setCopiedMessageIndex(null);
|
||||||
|
};
|
||||||
|
|
||||||
|
const messageCount = messages.length;
|
||||||
|
const hasMoreMessages = rawMessages.length >= MAX_CONSOLE_MESSAGES;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="h-full w-full flex flex-col bg-background">
|
||||||
|
{/* Header */}
|
||||||
|
<div className="h-12 flex-shrink-0 flex items-center justify-between px-4 border-b">
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
|
onClick={() => setShowConsoleView(false)}
|
||||||
|
className="h-8 gap-2 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
<ArrowLeft className="h-4 w-4" />
|
||||||
|
Back
|
||||||
|
</Button>
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
{messageCount > 0 && (
|
||||||
|
<>
|
||||||
|
{hasMoreMessages && (
|
||||||
|
<span className="text-xs text-muted-foreground">
|
||||||
|
Showing last {MAX_CONSOLE_MESSAGES.toLocaleString()} of {totalMessageCount.toLocaleString()}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
|
onClick={() => setSortOrder(sortOrder === 'newest-first' ? 'oldest-first' : 'newest-first')}
|
||||||
|
className="h-8 text-muted-foreground hover:text-foreground"
|
||||||
|
>
|
||||||
|
{sortOrder === 'newest-first' ? t('latestFirst') : t('oldestFirst')}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
|
onClick={handleClearMessages}
|
||||||
|
className="h-8 w-8 p-0 text-destructive/80 hover:text-destructive"
|
||||||
|
>
|
||||||
|
<Trash2 className="h-4 w-4" />
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Close button */}
|
{/* Messages */}
|
||||||
<button
|
<div className="flex-1 min-h-0 overflow-y-auto overflow-x-hidden [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] bg-background text-foreground font-mono text-xs relative">
|
||||||
onClick={() => setIsOpen(false)}
|
{isInitialLoad ? (
|
||||||
className="absolute top-2 right-2 h-8 w-8 p-0 bg-muted/50 hover:bg-muted/70 rounded-md z-10 flex items-center justify-center border"
|
<div className="absolute inset-0 flex items-center justify-center z-10 bg-background">
|
||||||
>
|
<div className="flex flex-col items-center gap-2">
|
||||||
<X className="h-5 w-5 text-muted-foreground" />
|
<Loader2 className="h-5 w-5 animate-spin text-primary" />
|
||||||
</button>
|
<span className="text-sm text-muted-foreground">Loading console messages...</span>
|
||||||
</PopoverContent>
|
</div>
|
||||||
</Popover>
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="py-2 px-1 space-y-0">
|
||||||
|
{/* Console prompt indicator - at top for newest-first, bottom for oldest-first */}
|
||||||
|
{sortOrder === 'newest-first' && (
|
||||||
|
<div className="py-0.5 px-1 flex items-center">
|
||||||
|
<ChevronRight className="h-3 w-3 text-muted-foreground" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{messages.map((msg, index) => (
|
||||||
|
<ConsoleMessage
|
||||||
|
key={`${index}-${msg.message.slice(0, 20)}`}
|
||||||
|
msg={msg}
|
||||||
|
index={index}
|
||||||
|
copiedMessageIndex={copiedMessageIndex}
|
||||||
|
onCopy={copyMessageToClipboard}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
{sortOrder === 'oldest-first' && (
|
||||||
|
<div className="py-0.5 px-1 flex items-center">
|
||||||
|
<ChevronRight className="h-3 w-3 text-muted-foreground" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -689,7 +866,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
<Code className="h-4 w-4" />
|
<Code className="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<ConsoleDropdown />
|
<ConsoleToggleButton />
|
||||||
<Menu />
|
<Menu />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -697,16 +874,25 @@ export function PreviewPane({ projectId, activeTab, onToggleView, projectName, o
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Content area */}
|
{/* Content area */}
|
||||||
<div className="flex-1">
|
<div className="flex-1 min-h-0 relative">
|
||||||
{hasBuiltProject ? (
|
{/* Console View */}
|
||||||
|
<div className={cn("absolute inset-0", showConsoleView ? "block" : "hidden")}>
|
||||||
|
<ConsoleView />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Preview iframe */}
|
||||||
|
{hasBuiltProject && (
|
||||||
<iframe
|
<iframe
|
||||||
ref={iframeRef}
|
ref={iframeRef}
|
||||||
src={`https://${projectId}.${previewDomain}/`}
|
src={`https://${projectId}.${previewDomain}/`}
|
||||||
className="w-full h-full border-0"
|
className={cn("w-full h-full border-0", showConsoleView ? "hidden" : "block")}
|
||||||
title="Project Preview"
|
title="Project Preview"
|
||||||
sandbox="allow-scripts allow-same-origin"
|
sandbox="allow-scripts allow-same-origin"
|
||||||
/>
|
/>
|
||||||
) : (
|
)}
|
||||||
|
|
||||||
|
{/* Build prompt */}
|
||||||
|
{!hasBuiltProject && !showConsoleView && (
|
||||||
<div className="h-full flex items-center justify-center bg-muted">
|
<div className="h-full flex items-center justify-center bg-muted">
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<h3 className="text-lg font-semibold mb-2">{t('projectPreview')}</h3>
|
<h3 className="text-lg font-semibold mb-2">{t('projectPreview')}</h3>
|
||||||
|
|||||||
@@ -87,6 +87,8 @@
|
|||||||
"add": "Add",
|
"add": "Add",
|
||||||
"remove": "Remove",
|
"remove": "Remove",
|
||||||
"retry": "Retry",
|
"retry": "Retry",
|
||||||
|
"latestFirst": "Latest First",
|
||||||
|
"oldestFirst": "Oldest First",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"buildNostrApps": "Build apps with AI",
|
"buildNostrApps": "Build apps with AI",
|
||||||
|
|||||||
@@ -83,6 +83,8 @@
|
|||||||
"add": "Ƙara",
|
"add": "Ƙara",
|
||||||
"remove": "Cire",
|
"remove": "Cire",
|
||||||
"retry": "Sake gwadawa",
|
"retry": "Sake gwadawa",
|
||||||
|
"latestFirst": "Na Baya-bayan nan Da farko",
|
||||||
|
"oldestFirst": "Na Dā Da farko",
|
||||||
"name": "Suna",
|
"name": "Suna",
|
||||||
"email": "Imel",
|
"email": "Imel",
|
||||||
"buildNostrApps": "Gina aikace-aikace da AI",
|
"buildNostrApps": "Gina aikace-aikace da AI",
|
||||||
|
|||||||
@@ -83,6 +83,8 @@
|
|||||||
"add": "Tinye",
|
"add": "Tinye",
|
||||||
"remove": "Wepụ",
|
"remove": "Wepụ",
|
||||||
"retry": "Nwaa ọzọ",
|
"retry": "Nwaa ọzọ",
|
||||||
|
"latestFirst": "Nke Ọhụrụ Mbụ",
|
||||||
|
"oldestFirst": "Nke Ochie Mbụ",
|
||||||
"name": "Aha",
|
"name": "Aha",
|
||||||
"email": "Ozi-eletrọniki",
|
"email": "Ozi-eletrọniki",
|
||||||
"buildNostrApps": "Wuo ngwa na AI",
|
"buildNostrApps": "Wuo ngwa na AI",
|
||||||
|
|||||||
@@ -83,6 +83,8 @@
|
|||||||
"add": "Adicionar",
|
"add": "Adicionar",
|
||||||
"remove": "Remover",
|
"remove": "Remover",
|
||||||
"retry": "Tentar novamente",
|
"retry": "Tentar novamente",
|
||||||
|
"latestFirst": "Mais Recentes Primeiro",
|
||||||
|
"oldestFirst": "Mais Antigos Primeiro",
|
||||||
"name": "Nome",
|
"name": "Nome",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"buildNostrApps": "Construa aplicativos com IA",
|
"buildNostrApps": "Construa aplicativos com IA",
|
||||||
|
|||||||
@@ -83,6 +83,8 @@
|
|||||||
"add": "Fi kun",
|
"add": "Fi kun",
|
||||||
"remove": "Yọ kuro",
|
"remove": "Yọ kuro",
|
||||||
"retry": "Tun gbiyanju",
|
"retry": "Tun gbiyanju",
|
||||||
|
"latestFirst": "Tuntun Akọkọ",
|
||||||
|
"oldestFirst": "Atijọ Akọkọ",
|
||||||
"name": "Orukọ",
|
"name": "Orukọ",
|
||||||
"email": "Imeeli",
|
"email": "Imeeli",
|
||||||
"buildNostrApps": "Kọ awọn ohun elo pẹlu AI",
|
"buildNostrApps": "Kọ awọn ohun elo pẹlu AI",
|
||||||
|
|||||||
@@ -83,6 +83,8 @@
|
|||||||
"add": "添加",
|
"add": "添加",
|
||||||
"remove": "移除",
|
"remove": "移除",
|
||||||
"retry": "重试",
|
"retry": "重试",
|
||||||
|
"latestFirst": "最新优先",
|
||||||
|
"oldestFirst": "最旧优先",
|
||||||
"name": "名称",
|
"name": "名称",
|
||||||
"email": "邮箱",
|
"email": "邮箱",
|
||||||
"buildNostrApps": "使用AI构建应用",
|
"buildNostrApps": "使用AI构建应用",
|
||||||
|
|||||||
Reference in new issue
Block a user