xframes-project / xframes

GPU-accelerated GUI development for Node.js and the browser
https://xframes.dev
MIT License
7 stars 0 forks source link

NPM modules reorg #76

Closed andreamancuso closed 2 weeks ago

andreamancuso commented 2 weeks ago

https://www.npmjs.com/settings/xframes/packages

image

Summary by CodeRabbit

coderabbitai[bot] commented 2 weeks ago

Walkthrough

This pull request includes significant changes, primarily the deletion of several files related to the @xframes/node and @xframes/wasm packages, including build configuration, license, README, and package metadata files. New files have been added to support a React-based application that integrates WebAssembly (WASM) for GPU-accelerated GUI development. The changes also introduce new components, themes, and TypeScript definitions, enhancing the functionality and modularity of the project.

Changes

File Path Change Summary
packages/dear-imgui/cpp/node/CMakeLists.txt Deleted; previously configured the build system for the C++ project.
packages/dear-imgui/cpp/node/LICENSE Deleted; contained the MIT License text.
packages/dear-imgui/cpp/node/README.md Deleted; provided build instructions for GLFW3.
packages/dear-imgui/cpp/node/build_glfw3.bat Deleted; automated the build process for GLFW3.
packages/dear-imgui/cpp/node/package.json Deleted; contained metadata for the Node.js library.
packages/dear-imgui/cpp/wasm/CMakeLists.txt Modified; updated RUNTIME_OUTPUT_DIRECTORY for the xframes executable.
packages/dear-imgui/examples/cra-example/package.json Updated dependencies; removed @xframes/wasm v0.0.1, added v0.0.3, added @xframes/common v0.0.12.
packages/dear-imgui/examples/cra-example/src/App.tsx Updated imports; changed sources for ImGuiCol and XFramesStyleForPatching.
packages/dear-imgui/examples/electron-example/package.json Updated dependencies; removed @xframes/wasm v0.0.1, added v0.0.3, added @xframes/common v0.0.12.
packages/dear-imgui/examples/electron-example/src/components/Main.tsx Updated imports; changed sources for ImGuiCol and XFramesStyleForPatching.
packages/dear-imgui/examples/grafana-panel-example/package.json Updated dependencies; removed @xframes/wasm v0.0.1, added v0.0.3, added @xframes/common v0.0.12.
packages/dear-imgui/examples/grafana-panel-example/src/components/SimplePanel.tsx Updated imports; changed sources for ImGuiCol and RWStyleSheet.
packages/dear-imgui/npm/common/.prettierrc.json Modified; removed leading and trailing whitespace.
packages/dear-imgui/npm/common/.yarnrc.yml Modified; changed nodeLinker setting (no functional change).
packages/dear-imgui/npm/common/package.json New; introduced for @xframes/common, includes metadata and dependencies.
packages/dear-imgui/npm/common/scripts/convert-fa-yaml-to-json.ts No functional changes; reformatted code.
packages/dear-imgui/npm/common/scripts/extract-rn-fabric-renderer.ts No functional changes; reformatted code.
packages/dear-imgui/npm/common/scripts/tsconfig.json Removed and re-added; no content changes.
packages/dear-imgui/npm/common/src/global.d.ts No functional changes; reformatted code.
packages/dear-imgui/npm/common/src/lib/components/XFrames/Image.tsx Renamed type MapImperativeHandle to ImageImperativeHandle.
packages/dear-imgui/npm/common/src/lib/components/XFrames/types.ts Updated imports for plotting types.
packages/dear-imgui/npm/common/src/lib/contexts/index.ts Reformatted import/export statements.
packages/dear-imgui/npm/common/src/lib/hooks/index.ts Reformatted import/export statements.
packages/dear-imgui/npm/common/src/lib/index.ts Added new hooks, types, and components to exports.
packages/dear-imgui/npm/common/src/lib/react-native/nativeFabricUiManager.ts No functional changes; reformatted code.
packages/dear-imgui/npm/common/src/lib/stylesheet/stylesheet.ts Updated import paths for types.
packages/dear-imgui/npm/common/src/lib/stylesheet/xframes-style.ts Updated import paths for types.
packages/dear-imgui/npm/common/src/lib/types.ts Added new types and enumerations for ImGui.
packages/dear-imgui/npm/node/.yarnrc.yml New; added nodeLinker configuration.
packages/dear-imgui/npm/node/CMakeLists.txt New; establishes build configuration for the xframes project.
packages/dear-imgui/npm/node/README.md New; provides build instructions for Node.js users.
packages/dear-imgui/npm/node/package.json New; metadata for @xframes/node, includes dependencies and scripts.
packages/dear-imgui/npm/node/src/App.tsx New; main application component.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoAssetPanels/CryptoAssetPanels.tsx New; component for displaying cryptocurrency assets.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoAssetsList/CryptoAssetsList.tsx New; component for listing cryptocurrency snapshots.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoPlots/CryptoCandlestickPlot.tsx New; component for rendering candlestick plots.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoPlots/CryptoCandlestickPlots.tsx New; component for displaying multiple candlestick plots.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoPlots/CryptoLinePlot.tsx New; component for rendering line plots.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoPlots/CryptoLinePlots.tsx New; component for displaying multiple line plots.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoQuotePrice/CryptoQuotePrice.tsx New; component for displaying cryptocurrency quote prices.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoSymbolBlock/CryptoSymbolBlock.tsx New; component for displaying cryptocurrency symbols and prices.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/CryptoSymbolPairs/CryptoSymbolPair.tsx New; component for displaying symbol pairs.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/Sidebar/Sidebar.tsx New; sidebar component for navigation.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/Tabs/Tabs.tsx New; component for tabbed navigation.
packages/dear-imgui/npm/node/src/components/TradingGuiDemo/TradingGuiDemo.tsx New; main demo interface for the trading GUI.
packages/dear-imgui/npm/node/src/index.tsx New; entry point for the React application.
packages/dear-imgui/npm/node/src/lib/XFrames.tsx New; defines the main component structure for XFrames.
packages/dear-imgui/npm/node/src/lib/index.ts New; exports components and functions from the library.
packages/dear-imgui/npm/node/src/lib/render.tsx New; rendering mechanism for the widget registration service.
packages/dear-imgui/npm/themes.ts New; introduces new themes for ImGui.
packages/dear-imgui/npm/node/tsconfig.json New; TypeScript configuration for the Node.js package.
packages/dear-imgui/npm/wasm/.yarnrc.yml New; Yarn configuration for the wasm package.
packages/dear-imgui/npm/wasm/package.json Updated; version and dependencies for @xframes/wasm.
packages/dear-imgui/npm/wasm/src/App.tsx New; main application component for the wasm package.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoAssetPanels/CryptoAssetPanels.tsx New; component for displaying cryptocurrency assets.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoAssetsList/CryptoAssetsList.tsx New; component for listing cryptocurrency snapshots.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoPlots/CryptoCandlestickPlot.tsx New; component for rendering candlestick plots.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoPlots/CryptoCandlestickPlots.tsx New; component for displaying multiple candlestick plots.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoPlots/CryptoLinePlot.tsx New; component for rendering line plots.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoPlots/CryptoLinePlots.tsx New; component for displaying multiple line plots.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoQuotePrice/CryptoQuotePrice.tsx New; component for displaying cryptocurrency quote prices.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoSymbolBlock/CryptoSymbolBlock.tsx New; component for displaying cryptocurrency symbols and prices.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/CryptoSymbolPairs/CryptoSymbolPair.tsx New; component for displaying symbol pairs.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/Sidebar/Sidebar.tsx New; sidebar component for navigation.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/Tabs/Tabs.tsx New; component for tabbed navigation.
packages/dear-imgui/npm/wasm/src/components/TradingGuiDemo/TradingGuiDemo.tsx New; main demo interface for the trading GUI.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/ClippedMultiLineTextRenderers/ClippedMultiLineTextRenderers.tsx New; component for rendering multi-line text.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/Icons/Icons.tsx New; component for displaying icon sets.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/Images/Images.tsx New; component for rendering images.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/Maps/Maps.tsx New; component for integrating map interfaces.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/Plots/Plots.tsx New; component for plotting data.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/Sliders/Sliders.tsx New; component for slider controls.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/Tables/Tables.tsx New; component for managing tables.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/TextFields/TextFields.tsx New; component for text input fields.
packages/dear-imgui/npm/wasm/src/components/XFramesDemo/XFramesDemo.tsx New; component for demonstrating various UI components.
packages/dear-imgui/npm/wasm/src/lib/ReactNativeWrapper.tsx New; integrates WASM module with React Native.
packages/dear-imgui/npm/wasm/src/lib/XFrames.tsx New; integrates WASM with React application.
packages/dear-imgui/npm/wasm/src/lib/index.ts New; exports components for the wasm library.
packages/dear-imgui/npm/wasm/src/lib/interface.d.ts New; TypeScript bindings for Emscripten-generated code.
packages/dear-imgui/npm/wasm/src/lib/wasm-app-types.ts New; defines types and interfaces for WASM application.
packages/dear-imgui/npm/wasm/src/themes.ts New; introduces themes for styling UI components.
packages/dear-imgui/npm/wasm/tsconfig.json New; TypeScript configuration for the wasm package.

Possibly related PRs

Poem

In the code where rabbits hop,
New themes and components never stop.
With WASM's might and React's grace,
Our GUI blooms in a vibrant space.
So let us cheer, both near and far,
For xframes shines, our coding star! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
sonarcloud[bot] commented 2 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
17.7% Duplication on New Code (required ≤ 3%)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint