-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:Upgrade the dependency and optimize the theme. #250
base: dev
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request updates dependency version specifications from fixed to caret versions in the package configuration. It also renames CSS variables throughout the codebase—from the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant ST as SearchTable Component
U->>ST: Click on collapse/expand icon
ST-->>ST: Toggle `setCollapse` state
ST-->>U: Re-render component with updated layout
Suggested labels
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
packages/toolkits/pro/template/tinyvue/src/components/navbar/index.vueOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct. The config "airbnb-base" was referenced from the config file in "/packages/toolkits/pro/template/tinyvue/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. packages/toolkits/pro/template/tinyvue/src/components/footer/index.vueOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct. The config "airbnb-base" was referenced from the config file in "/packages/toolkits/pro/template/tinyvue/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. packages/toolkits/pro/template/tinyvue/src/components/theme/index.vueOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct. The config "airbnb-base" was referenced from the config file in "/packages/toolkits/pro/template/tinyvue/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (4)
packages/toolkits/pro/template/tinyvue/src/views/form/step/components/head.vue (1)
142-143
: Margin values reduced but responsive styles not updated.The vertical margins have been reduced from 30px to 15px, which is consistent with the theme optimization. However, the responsive styles in the media queries (lines 154-163) still have different values that weren't adjusted to maintain the same proportion with these new base values.
Consider updating the responsive styles to maintain consistency with the new base margins:
@media (max-width: @screen-lg) { .margin-bottom { - margin-top: 10px; - margin-bottom: 12px; + margin-top: 5px; + margin-bottom: 6px; } } @media (max-width: @screen-ml) { .margin-bottom { - margin-top: 10px; - margin-bottom: 12px; + margin-top: 5px; + margin-bottom: 6px; } }packages/toolkits/pro/template/tinyvue/src/views/list/search-table/index.vue (1)
427-434
: Remove unused functions.The
collapse()
andextend()
functions are now unused since the click handling has been moved directly to the template with@click="setCollapse = !setCollapse"
. Consider removing these unused functions to keep the code clean.-function collapse() { - setCollapse.value = false; -} - -function extend() { - setCollapse.value = true; -}packages/toolkits/pro/template/tinyvue/src/views/list/search-table/search-table.less (1)
85-85
: Confirm margin specificity.Switching to
margin-top: 30px;
instead of the previous shorthand could affect spacing below. Ensure no unintended layout shifts occur.packages/toolkits/pro/template/tinyvue/src/components/theme/type.ts (1)
189-256
: PeachesTheme definitions.The pastel/pinkish palette may require additional contrast checks. Consider verifying text readability on lighter backgrounds.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (37)
packages/toolkits/pro/template/tinyvue/package.json
(1 hunks)packages/toolkits/pro/template/tinyvue/src/assets/style/menu.less
(1 hunks)packages/toolkits/pro/template/tinyvue/src/components/footer/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/components/navbar/index.vue
(5 hunks)packages/toolkits/pro/template/tinyvue/src/components/theme/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/components/theme/type.ts
(4 hunks)packages/toolkits/pro/template/tinyvue/src/env.d.ts
(0 hunks)packages/toolkits/pro/template/tinyvue/src/hooks/useTheme.ts
(2 hunks)packages/toolkits/pro/template/tinyvue/src/layout/default-layout.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/layout/general-layout.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/create/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/edit/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/evaluation-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/home-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/mentor-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/objective-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/people-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/plan-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/reminder-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/index.vue
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/coach-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/director-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/head.vue
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/summation-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/index.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/list/search-table/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/list/search-table/search-table.less
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/login/components/login-lang.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/login/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/permission/info/components/info-tab.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/profile/detail/components/evaluation-detail.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/profile/detail/index.vue
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/user/info/components/info-tab.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/user/setting/components/set-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/userManager/info/components/info-tab.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/userManager/setting/index.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/userManager/useradd/index.vue
(0 hunks)
💤 Files with no reviewable changes (16)
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/people-from.vue
- packages/toolkits/pro/template/tinyvue/src/env.d.ts
- packages/toolkits/pro/template/tinyvue/src/views/userManager/setting/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/home-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/userManager/useradd/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/plan-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/user/setting/components/set-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/director-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/summation-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/evaluation-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/coach-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/reminder-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/mentor-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/userManager/info/components/info-tab.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/objective-from.vue
🔇 Additional comments (54)
packages/toolkits/pro/template/tinyvue/src/views/form/step/components/head.vue (1)
122-122
: Theme variable updated correctly.The CSS variable has been properly renamed from
--ti-common-color-line-active
to--tv-common-color-line-active
, which aligns with the PR objective to optimize the theme system and standardize the CSS variable naming convention across the codebase.packages/toolkits/pro/template/tinyvue/src/views/user/info/components/info-tab.vue (1)
223-223
: Theme variable updatedThe CSS variable has been updated from
--ti-common-color-bg-normal
to--tv-common-color-bg-normal
which aligns with the theme upgrade mentioned in the PR objectives.packages/toolkits/pro/template/tinyvue/src/views/form/base/index.vue (2)
217-217
: Reduced padding for better UI consistencyThe left padding has been reduced from 40px to 23px, which likely improves the visual consistency with other elements.
247-247
: Theme variables updatedThe CSS variables have been updated from
--ti-common-color-text-highlight
to--tv-common-color-text-highlight
, consistent with the theme upgrade mentioned in the PR objectives.Also applies to: 251-251
packages/toolkits/pro/template/tinyvue/src/views/profile/detail/index.vue (1)
179-179
: Theme variables updatedThe CSS variables have been updated from
--ti-common-color-text-highlight
to--tv-common-color-text-highlight
, consistent with the theme upgrade mentioned in the PR objectives.Also applies to: 183-183
packages/toolkits/pro/template/tinyvue/package.json (2)
38-61
: Dependencies upgraded with caret versioningDependencies have been updated to use caret versioning (^) rather than fixed versions, allowing for automatic minor version updates while maintaining backward compatibility. Key updates include:
- @opentiny/vue to ^3.21.0
- @opentiny/vue-theme to ^3.21.0
- vue to ^3.5.10
- vue-i18n to ^11.0.0
This change aligns with modern dependency management best practices.
64-125
: DevDependencies upgraded with caret versioningSimilar to the production dependencies, development dependencies have also been updated to use caret versioning. This provides more flexibility for future updates while maintaining compatibility.
packages/toolkits/pro/template/tinyvue/src/views/profile/detail/components/evaluation-detail.vue (1)
64-65
: CSS Margin Update: Establish Consistent Vertical Spacing
The margins for the.margin-bottom
class have been adjusted to15px
for both the top and bottom, which helps create a more compact layout. Please verify on various screen sizes to ensure the reduced spacing maintains good visual balance.packages/toolkits/pro/template/tinyvue/src/views/login/components/login-lang.vue (1)
38-44
: Theming Update: Box-Shadow Variable Revision
The change from usingvar(--ti-common-color-bg-normal)
tovar(--tv-common-color-bg-normal)
for thebox-shadow
property aligns the component with the new theming conventions. This update improves design consistency across the application.packages/toolkits/pro/template/tinyvue/src/layout/general-layout.vue (1)
22-24
: Layout Theming Adjustment: Updated Height Calculation
The container’s height calculation now usescalc(100% - var(--tv-common-size-12x))
, which is consistent with the new theme. Please double-check that this change does not inadvertently affect responsiveness, especially on smaller displays.packages/toolkits/pro/template/tinyvue/src/views/permission/info/components/info-tab.vue (1)
151-154
: Form Sizing Update: Removal of Explicit Size Attribute
The explicitsize="small"
attribute appears to have been removed from the<tiny-form>
component (as indicated around line 153) to likely rely on default sizing. Ensure that this change is consistent with the intended design system and that all forms render at the desired size.packages/toolkits/pro/template/tinyvue/src/views/login/index.vue (1)
71-75
: CSS Variable Update: Login Page Styling Enhancements
The modifications in the.login
class—switching tofont-size: var(--tv-common-font-size-1)
and adjusting thebox-shadow
to usevar(--tv-common-color-bg-normal)
—ensure that the login page adheres to the new theming standards. Please verify these changes across various browsers and screen resolutions to confirm a consistent appearance.packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/create/index.vue (2)
183-185
: CSS variable prefix updated correctly.The CSS variables have been updated from
--ti-
to--tv-
prefix, which aligns with the theme optimization mentioned in the PR objectives.
189-189
: CSS variable prefix updated correctly.The font-size variable has been updated from
--ti-common-font-size-base
to--tv-common-font-size-base
, consistent with the theme changes throughout the codebase.packages/toolkits/pro/template/tinyvue/src/layout/default-layout.vue (1)
85-85
: Import statement simplified correctly.Removed the
.js
extension from the import statement. This is good practice as bundlers can automatically resolve file extensions, and it improves maintainability.packages/toolkits/pro/template/tinyvue/src/components/footer/index.vue (1)
21-23
: CSS variable prefix updated correctly.The CSS variables for the footer component have been updated from
--ti-
to--tv-
prefix, which aligns with the theme optimization mentioned in the PR objectives.packages/toolkits/pro/template/tinyvue/src/views/list/search-table/index.vue (2)
8-26
: Event handling simplified and template structure improved.The click event handling has been simplified by using a direct toggle expression
@click="setCollapse = !setCollapse"
instead of calling separate functions. Also, the template structure has been improved by usingv-else
for conditional rendering and properly nesting the content text.
28-33
: Form size attribute removed.The
size="small"
attribute has been removed from thetiny-form
component, which aligns with similar changes across other components in this PR, suggesting a move toward using default theme-based sizing.packages/toolkits/pro/template/tinyvue/src/hooks/useTheme.ts (3)
4-4
: Correct import refactoring for TinyThemeTool.The import has been properly updated to explicitly import TinyThemeTool from @opentiny/vue-theme, which follows good practices for module imports.
10-10
: Improved error handling with optional chaining.The addition of optional chaining operator (
?.
) enhances code robustness by safely accessing thelength
property even ifthemelist
is null or undefined, preventing potential runtime errors.
20-20
:❓ Verification inconclusive
Removed dependency on tinySmbTheme.
The code now uses an empty string instead of what was likely a reference to
tinySmbTheme
. This change is part of the theme optimization effort mentioned in the PR objectives.
🏁 Script executed:
#!/bin/bash # Check if tinySmbTheme is still referenced elsewhere in the codebase rg "tinySmbTheme" -lLength of output: 20
Action: Verify Removal of
tinySmbTheme
ReferenceThe change in file
packages/toolkits/pro/template/tinyvue/src/hooks/useTheme.ts
(line 20) replaces what was once a reference totinySmbTheme
with an empty string. A ripgrep search for"tinySmbTheme"
did not return any matches, which suggests that there are no lingering references in the codebase. However, given that the command output was minimal, please ensure a manual verification to confirm that all dependencies ontinySmbTheme
have indeed been removed.packages/toolkits/pro/template/tinyvue/src/assets/style/menu.less (2)
30-30
: Updated CSS variable naming from ti- to tv- prefix.The CSS variable has been updated from
--ti-tree-menu-node-current-color
to--tv-tree-menu-node-current-color
as part of the theme optimization.
34-35
: Consistent CSS variable prefix update.Both color-related CSS variables have been properly updated from the
--ti-
prefix to the--tv-
prefix, maintaining consistency with the theming system update.packages/toolkits/pro/template/tinyvue/src/components/navbar/index.vue (3)
368-368
: Updated title color variables for consistency.The title color variables for both h5 and h4 elements have been updated from
--ti-base-common-title-color
to--tv-base-common-title-color
, which aligns with the theme variable renaming pattern.Also applies to: 379-379
427-427
: Updated fill color variable for user image.The fill property now uses
--tv-common-color-line-active
instead of the previous--ti-
prefixed variable, maintaining consistency with the theming system update.
467-467
: Updated box-shadow color variables.The box-shadow color variables for both trigger-user and trigger-lan sections have been updated to use the
--tv-
prefix instead of--ti-
, enhancing consistency across the codebase.Also applies to: 485-485
packages/toolkits/pro/template/tinyvue/src/components/theme/index.vue (1)
349-349
: Updated default theme gradient colors.The background gradient for the default theme has been changed to a grayscale gradient, shifting from what was likely a blue gradient to a light-to-dark gradient. This change is part of the theme optimization mentioned in the PR objectives.
packages/toolkits/pro/template/tinyvue/src/views/list/search-table/search-table.less (2)
53-53
: Enhance alignment.Adding
align-items: center;
nicely improves the vertical alignment of flex items in this container.
56-58
: Check cross-browser compatibility.Using
height: fit-content;
may not be supported in certain older browsers. Verify that this won’t cause layout issues or consider a fallback rule if wide compatibility is required.packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/edit/index.vue (2)
193-195
: Adopt modern theming variables.Transitioning to
--tv-
variables aligns with the updated theming approach. The usage here appears consistent and straightforward.
199-199
: Maintain consistent base font sizing.Good usage of
var(--tv-common-font-size-base);
for the.tip
element. Keep an eye on any other leftover references to ensure uniform typography.packages/toolkits/pro/template/tinyvue/src/components/theme/type.ts (23)
5-88
: Extensive color additions for DefaultTheme.These new
tv-
prefixed variables increase granularity and clarity in the theme. Validate that each color is used appropriately and that names remain self-explanatory.
94-185
: DarkTheme color palette rework.This is a thorough set of color definitions suited for dark mode. Ensure UI elements meet accessibility contrasts with these values.
262-351
: VioletTheme expansions.Consistent naming across this new purple-based palette. Double-check for any trailing semicolons in variable declarations (e.g.,
tv-base-color-brand-7
).
357-369
: DeepnessTheme enhancements.Adopting a darker brand range. Validate that the naming convention matches other themes for maintainability.
376-390
: Theme6 color set.Looks consistent with the general theming approach. No immediate issues found.
396-409
: Theme7 additions.Extended color definitions follow the same naming strategy. Ensure no overlap of hex codes with existing themes if uniqueness is desired.
416-429
: Theme8 brand colors.Straightforward adoption of
tv-
variables. No concerns here.
436-449
: Theme9 brand colors.The new variables look properly aligned to the theming design.
456-469
: Theme10 definitions.Colors appear consistent and integrated.
476-489
: Theme11 brand colors.Transition from
--ti-
to--tv-
remains systematic.
496-509
: Theme12 orange palette.Adheres to the new theming style. Looks good.
516-529
: Theme13 pink palette.Consistent with the rest of the refactoring.
536-550
: Theme14 brand and button colors.Please confirm the interplay between
tv-button-primary-text-color
and the background color for adequate contrast.
557-571
: Theme15 brand colors.Additional expansions match the naming pattern.
578-593
: Theme16 brand colors.No discrepancy identified.
600-615
: Theme17 expansions.Looks cohesive with other themes.
622-637
: Theme18 color scheme.Includes a green-based approach. All good.
644-659
: Theme19 brand colors.Green shades are aligned with the theming patterns.
666-681
: Theme20 brand colors.No issues spotted.
688-703
: Theme21 brand colors.Ensures a pinkish palette while maintaining consistent naming.
754-754
: No functional difference.This bracket line simply closes the SwitchlightColor array.
805-805
: No functional difference.This bracket line simply closes the SwitchdarkColor array.
823-823
: No functional difference.This closing bracket finalizes the export block.
packages/toolkits/pro/template/tinyvue/src/views/profile/detail/index.vue
Outdated
Show resolved
Hide resolved
packages/toolkits/pro/template/tinyvue/src/views/profile/detail/index.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/toolkits/pro/template/tinyvue/package.json (1)
37-62
: Dependency Versions Upgrade Consistency
The dependency versions have been updated from fixed versions to caret versions as outlined in the PR objectives. This approach allows for minor version upgrades while maintaining compatibility, which is beneficial for keeping the dependencies up-to-date automatically.
However, note that a few dependencies (e.g.,"pinia": "2.1.7"
,"style-resources-loader": "1.5.0"
, and"vue-eslint-parser": "9.4.3"
) remain with fixed version specifications. If these are intentionally pinned due to stability or compatibility reasons, that’s fine; otherwise, you may want to consider updating them to caret versions for consistency.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (37)
packages/toolkits/pro/template/tinyvue/package.json
(1 hunks)packages/toolkits/pro/template/tinyvue/src/assets/style/menu.less
(1 hunks)packages/toolkits/pro/template/tinyvue/src/components/footer/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/components/navbar/index.vue
(5 hunks)packages/toolkits/pro/template/tinyvue/src/components/theme/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/components/theme/type.ts
(4 hunks)packages/toolkits/pro/template/tinyvue/src/env.d.ts
(0 hunks)packages/toolkits/pro/template/tinyvue/src/hooks/useTheme.ts
(2 hunks)packages/toolkits/pro/template/tinyvue/src/layout/default-layout.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/layout/general-layout.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/create/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/edit/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/evaluation-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/home-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/mentor-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/objective-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/people-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/plan-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/components/reminder-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/base/index.vue
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/coach-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/director-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/head.vue
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/components/summation-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/form/step/index.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/list/search-table/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/list/search-table/search-table.less
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/login/components/login-lang.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/login/index.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/permission/info/components/info-tab.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/profile/detail/components/evaluation-detail.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/profile/detail/index.vue
(2 hunks)packages/toolkits/pro/template/tinyvue/src/views/user/info/components/info-tab.vue
(1 hunks)packages/toolkits/pro/template/tinyvue/src/views/user/setting/components/set-from.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/userManager/info/components/info-tab.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/userManager/setting/index.vue
(0 hunks)packages/toolkits/pro/template/tinyvue/src/views/userManager/useradd/index.vue
(0 hunks)
💤 Files with no reviewable changes (16)
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/reminder-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/userManager/useradd/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/evaluation-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/objective-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/mentor-from.vue
- packages/toolkits/pro/template/tinyvue/src/env.d.ts
- packages/toolkits/pro/template/tinyvue/src/views/user/setting/components/set-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/userManager/setting/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/people-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/userManager/info/components/info-tab.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/coach-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/home-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/summation-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/components/plan-from.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/director-from.vue
🚧 Files skipped from review as they are similar to previous changes (19)
- packages/toolkits/pro/template/tinyvue/src/layout/general-layout.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/step/components/head.vue
- packages/toolkits/pro/template/tinyvue/src/views/profile/detail/components/evaluation-detail.vue
- packages/toolkits/pro/template/tinyvue/src/views/permission/info/components/info-tab.vue
- packages/toolkits/pro/template/tinyvue/src/views/login/components/login-lang.vue
- packages/toolkits/pro/template/tinyvue/src/views/form/base/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/create/index.vue
- packages/toolkits/pro/template/tinyvue/src/components/footer/index.vue
- packages/toolkits/pro/template/tinyvue/src/layout/default-layout.vue
- packages/toolkits/pro/template/tinyvue/src/views/user/info/components/info-tab.vue
- packages/toolkits/pro/template/tinyvue/src/hooks/useTheme.ts
- packages/toolkits/pro/template/tinyvue/src/views/profile/detail/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/list/search-table/search-table.less
- packages/toolkits/pro/template/tinyvue/src/views/list/search-table/index.vue
- packages/toolkits/pro/template/tinyvue/src/components/navbar/index.vue
- packages/toolkits/pro/template/tinyvue/src/assets/style/menu.less
- packages/toolkits/pro/template/tinyvue/src/views/cloud/contracts/components/edit/index.vue
- packages/toolkits/pro/template/tinyvue/src/components/theme/index.vue
- packages/toolkits/pro/template/tinyvue/src/views/login/index.vue
🔇 Additional comments (9)
packages/toolkits/pro/template/tinyvue/src/components/theme/type.ts (8)
1-89
: CSS variable naming convention updated fromti-
totv-
prefixThe DefaultTheme object has been updated to use the new
tv-
prefix for all CSS variables, replacing the previousti-
prefix. This change is part of a broader effort to standardize variable naming across the codebase.
94-105
: CSS variable naming aligned and comments added for clarityThe DarkTheme object now includes helpful Chinese comments explaining the purpose of various color variables, making the code more maintainable. The prefix change from
ti-
totv-
has been correctly implemented here as well.
189-255
: PeachesTheme updated with consistent variable namingThe PeachesTheme object has been properly updated to use the new
tv-
prefix, with appropriate color values maintained. The structure follows the established pattern across themes.
262-349
: VioletTheme enhanced with comprehensive color scaleThe VioletTheme now includes a more extensive color palette with specifically defined variables for tree menu components. All variables correctly use the
tv-
prefix, replacing the previousti-
prefix.
357-368
: DeepnessTheme updated with consistent naming conventionThe DeepnessTheme object has been correctly updated to use the
tv-
prefix for all CSS variables, maintaining consistency with other themes in the file.
376-703
: Additional themes consistently updated with new naming conventionAll numbered themes (Theme6 through Theme21) have been properly updated to use the new
tv-
prefix for CSS variables. The structure remains consistent across all themes, making the codebase more maintainable.
754-805
: Switch color arrays maintained with consistent theme referencesThe SwitchlightColor and SwitchdarkColor arrays continue to reference the theme objects correctly, ensuring that the theme switching functionality will work as expected with the renamed CSS variables.
807-823
: Complete set of themes exported consistentlyAll theme objects are properly exported, ensuring they're available for use throughout the application. This maintains the expected API of the module.
packages/toolkits/pro/template/tinyvue/package.json (1)
63-126
: DevDependencies Version Upgrade Review
The devDependencies have similarly been updated to caret versions. These updates help ensure that minor improvements, bug fixes, and non-breaking changes are automatically incorporated. All updated package versions (for instance,@babel/preset-env
,eslint
,vite
, etc.) reflect the intended modernization effort without any apparent issues.
Great work on this, as it aligns well with maintaining an up-to-date and flexible dependency management strategy.
感谢您的pr 该pr将会于四月初合并,届时会将您添加到贡献者名单 |
Thank you for your PR The PR will be merged in early April and you will be added to the contributor list by then |
PR
相关依赖升级,以及主题优化
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit