power-playground / app Goto Github PK
View Code? Open in Web Editor NEWCode. Share. Empower.
Home Page: https://pplay.vercel.app
License: MIT License
Code. Share. Empower.
Home Page: https://pplay.vercel.app
License: MIT License
Customize the jump of CMD/Ctrl + mouse click so that it supports jumping to a certain document, or display an Iframe-like space in ViewZone to display the content in the corresponding document.
自定义 CMD/Ctrl + 鼠标点击的跳转,使其支持跳转展示到某个文档,或者是在 ViewZone 中展示一个类似 Iframe 的空间展示对应文档中的内容。
When run yarn serve
, I get some errors in my terminal, but the url http://localhost:5174/app/ can be access normally.
Is there any additional operation need to do after install node_modules?
yarn run v1.22.19
$ vite
Adding plugin: ./core/src/plugins/urlCache.ts
Adding plugin: ./core/src/plugins/about/index.ts
Adding plugin: ./core/src/plugins/comment-queries/index.ts
Adding plugin: ./core/src/plugins/copilot/index.ts
Adding plugin: ./core/src/plugins/edit-utils/index.ts
Adding plugin: ./core/src/plugins/history-for-local/index.ts
Adding plugin: ./core/src/plugins/outputs/index.ts
Adding plugin: ./core/src/plugins/typescript/index.ts
Adding plugin: ./src/plugins/remove-left-toolbar-items.ts
Adding plugin: ./src/plugins/dock-mode-switcher/index.ts
Port 5173 is in use, trying another one...
VITE v4.4.8 ready in 965 ms
➜ Local: http://localhost:5174/app/
➜ Network: use --host to expose
➜ press h to show help
Error: Failed to scan for dependencies from entries:
/Users/zsk/code/github.com/Power-Playground/app/index.html
/Users/zsk/code/github.com/Power-Playground/app/eval-logs.html
/Users/zsk/code/github.com/Power-Playground/app/core/src/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/urlCache.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/about/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/comment-queries/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/copilot/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/edit-utils/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/history-for-local/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/outputs/index.ts
/Users/zsk/code/github.com/Power-Playground/app/core/src/plugins/typescript/index.ts
/Users/zsk/code/github.com/Power-Playground/app/src/plugins/remove-left-toolbar-items.ts
/Users/zsk/code/github.com/Power-Playground/app/src/plugins/dock-mode-switcher/index.ts
✘ [ERROR] Invalid glob import syntax: Could only use literals [plugin vite:dep-scan]
node_modules/esbuild/lib/main.js:1434:21:
1434 │ let result = await callback({
╵ ^
at err (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:40846:23)
at validateLiteral (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:40907:23)
at file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:40916:13
at Array.map (<anonymous>)
at parseImportGlob (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:40842:27)
at transformGlobImport (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:40960:27)
at doTransformGlobImport (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:44490:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:44731:35
at async requestCallbacks.on-load (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1434:22)
This error came from the "onLoad" callback registered here:
node_modules/esbuild/lib/main.js:1292:20:
1292 │ let promise = setup({
╵ ^
at setup (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:44718:19)
at handlePlugins (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1292:21)
at buildOrContextImpl (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:978:5)
at Object.buildOrContext (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:786:5)
at /Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:2185:68
at new Promise (<anonymous>)
at Object.context (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:2185:27)
at Object.context (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:2025:58)
at prepareEsbuildScanner (file:///Users/zsk/code/github.com/Power-Playground/app/node_modules/vite/dist/node/chunks/dep-75f53616.js:44413:26)
The plugin "vite:dep-scan" was triggered by this import
src/init.ts:7:22:
7 │ import configure from './configure'
╵ ~~~~~~~~~~~~~
at failureErrorWithLog (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1649:15)
at /Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1058:25
at runOnEndCallbacks (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1484:45)
at buildResponseToResult (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1056:7)
at /Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1068:9
at new Promise (<anonymous>)
at requestCallbacks.on-end (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:1067:54)
at handleRequest (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:729:19)
at handleIncomingPacket (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:755:7)
at Socket.readFromStdout (/Users/zsk/code/github.com/Power-Playground/app/node_modules/esbuild/lib/main.js:679:7)
System:
OS: macOS 12.5
CPU: (8) arm64 Apple M2
Memory: 392.64 MB / 24.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/Library/Caches/fnm_multishells/79657_1692950877120/bin/node
Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/79657_1692950877120/bin/yarn
npm: 9.5.1 - ~/Library/Caches/fnm_multishells/79657_1692950877120/bin/npm
懒得写英语了
TypeScript 插件在版本选择的逻辑上出现了一些问题,导致某些版本的获取上无法处理。
移除现在过于复杂的版本处理逻辑,附加单测进行优化逻辑
it is useful for explore typescript type
https://github.com/mxsdev/ts-type-explorer
#code/PRA
- A base64 and zipped version of the code which should live in the editor#src=The%20code
- URLEncoded way to have the code for the editor#example/generic-functions
- Grab the code from an example with the id generic-functions虽然该项目是一个相对轻量化的在线 IDE,但是在实际开发过程以及引入插件系统的情况。
我们需要考虑对用户快捷键的统一注册管理机制,解决可能存在的快捷键冲突、快捷键优先级、快捷键判定机制与提示。
Display the code preview image by get url and analysis it render to meta og:image.
RT
RT.
https://github.com/microsoft/TypeScript-Website/tree/v2/packages/playground
?ts=3.9.2 - Sets the TypeScript version, the list of supported versions is in these two json files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.