Commit 81fc66a
feat: add functioa (#42)
* feat(ui): integrate devtools plugin and add dark mode support
* Add light and dark mode support using Tailwind CSS
* Fix ThemeToggle component and update vite.config.mts for server configuration
* refactor(ui): remove unused CSS variables and streamline theme configuration
Simplify the global CSS and Tailwind configuration by removing unused variables and consolidating theme-related settings. This improves maintainability and reduces redundancy in the codebase.
* refactor(vite): remove dev server host and port config
* refactor(vite): remove dev server host and port config
The host, port, and allowedHosts configurations were removed from the dev server settings to simplify the configuration and rely on Vite's default behavior. This change reduces unnecessary customization and aligns with standard Vite practices.
* feat(theme): implement theme switching with persistence
- Add theme script for initial theme detection and application
- Update global.css with theme variables and dark mode selector
- Refactor ThemeToggle component to use localStorage for theme persistence
- Modify vite config to handle build-specific alias configuration
- Add type definitions path to package.json
```
The commit message follows the guidelines by:
1. Using "feat" type since it introduces new theme functionality
2. Including "(theme)" scope as it's clearly theme-related
3. Keeping description under 50 chars and starting with lowercase
4. Adding a body that summarizes the key changes without repeating the subject
5. Using imperative mood throughout
6. Focusing on the significant functional changes rather than every detail
* style(ui): standardize code formatting and fix linting issues
- Normalize quotes from single to double quotes
- Fix missing semicolons and newlines
- Reorder tailwind classes consistently
- Remove unused useDark hook
- Update theme script to be more reliable
- Apply prettier formatting across the codebase
* refactor(theme): simplify theme handling and remove unused code
- Remove ThemeScript component and inline theme script logic in devtools
- Remove unused useDark hook from ThemeToggle
- Simplify theme toggle logic by removing dark state check
* fix(devtools): remove unused ThemeScript import and fix panel visibility condition
- Remove unused ThemeScript import to clean up dependencies
- Fix devtools panel visibility to only show when state.isOpen.value is true
* style: enforce single quotes in codebase and update prettier config
Update all double quotes to single quotes across the codebase for consistency. Added 'singleQuote: true' to prettier configuration to enforce this style. This change improves code style consistency and aligns with the project's linting rules.
* refactor(theme): consolidate theme handling and cleanup
- Rename theme storage key for compatibility with vite-plugin-inspect
- Extract theme script logic into separate component
- Remove unused imports and simplify ThemeToggle component
- Replace inline script with ThemeScript component in devtools
* feat(ThemeToggle): add auto theme option and improve theme handling
- Add 'auto' theme option that follows system preference
- Replace button with select dropdown for theme selection
- Improve theme script to handle auto theme case
- Fix extra space in search input styling
* formate
* feat(ui): add ThemeToggle component with persistent theme selection
* fix situation which didn't set default value
* chore: update @qwik.dev/core and @qwik.dev/router to beta versions, upgrade rollup to 4.41.1, and update peer dependencies
* refactor(ThemeToggle): remove console logs and improve type annotation in useTask
* fix
* FIX: add animation when icon switching
* format
* optimize
* refactor(Overview): enhance click handling for navigation and improve code structure
* init render tree function
* layout render interface
* delete redundant code, and
* feat: enhance Tree component with state management and vnode utilities
* feat: refactor Tree and RenderTree components for improved state management and rendering logic
* feat: integrate htmlContainer utility for improved DOM handling in RenderTree and filterVnode
* refactor: clean up imports and improve code formatting across multiple components
* feat: enhance Tree and RenderTree components with improved node handling and rendering logic
* feat: improve code consistency and readability across Tree, filterVnode, and RenderTree components
* feat: add signal management and enhance button interaction in Button and RenderTree components
* feat: enhance Button and Tree components with improved state management, rendering logic, and new signal handling capabilities
* feat: update Button and RenderTree components with enhanced click handling, state management, and improved tree node creation logic
* feat: enhance Button component with new hooks, context management, and improved styling; update RenderTree and filterVnode for better state handling and type detection
* feat: update dependencies to latest versions, including Qwik and Vite; enhance devtools integration in playgrounds and improve code consistency across components
* feat: enhance RenderTree and formatTreeData components with improved signal, task, and computed data handling; refactor vnode and filterVnode for better code clarity
* feat: add isHover prop to Tree and TreeNode components for enhanced hover state management; refactor formatTreeData to improve data handling and naming consistency
* feat: enhance RenderTree and formatTreeData with new props and listen data handling; update type utilities for better type detection
* feat: add qwikDevtools plugin and enhance server functions with new module retrieval capabilities; update .gitignore and Vite configuration for improved development experience
* feat: update ServerFunctions to include getModulesByPathIds for improved module retrieval; refactor RenderTree and formatTreeData for enhanced data handling and integration with new module fetching logic
* refactor: clean up Button component by removing commented code and improving hook usage; streamline context and resource handling for better readability
* refactor: streamline node click handling in RenderTree by utilizing a type map for improved data formatting and clarity; enhance props processing for better readability
* refactor: remove commented code in RenderTree to improve code clarity and maintainability
* refactor: remove commented code in RenderTree to enhance code clarity and maintainability
* refactor: simplify RenderTree component by removing unnecessary return statement and optimizing JSX structure for improved readability
* feat: integrate Shiki for syntax highlighting in RenderTree component; enhance code rendering with dynamic language detection and improved styling
* refactor: optimize data retrieval in formatTreeData by replacing forEach with for...of loop for improved performance and readability
* refactor: update RenderTree and formatTreeData to standardize naming conventions and improve tree node creation logic; enhance signal and task handling for better clarity
---------
Co-authored-by: openhands <[email protected]>1 parent 5b65321 commit 81fc66a
File tree
35 files changed
+2018
-402
lines changed- packages
- devtools
- kit/src
- playgrounds
- src
- components/Button
- routes
- plugin
- src
- inspect
- rpc
- types
- ui
- src
- components
- Tab
- ThemeToggle
- Tree
- features
- Overview
- Packages
- components/InstallButton
- RenderTree
- inspect
- types
- utils
35 files changed
+2018
-402
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
2 | 30 | | |
3 | | - | |
4 | 31 | | |
5 | 32 | | |
6 | 33 | | |
7 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
8 | 148 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
7 | 39 | | |
8 | 40 | | |
9 | 41 | | |
0 commit comments