Skip to content

docs(grid): docs style adjust #3369

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

Merged
merged 1 commit into from
Apr 28, 2025
Merged

docs(grid): docs style adjust #3369

merged 1 commit into from
Apr 28, 2025

Conversation

gimmyhehe
Copy link
Member

@gimmyhehe gimmyhehe commented Apr 28, 2025

PR

文档结构统一

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • Style
    • Improved code style by removing unnecessary quotes around object keys in demo and API configuration files. This change standardizes object key notation without affecting data, structure, or functionality. No impact on user-facing features or documentation.

Copy link

coderabbitai bot commented Apr 28, 2025

Walkthrough

This change refactors multiple JavaScript demo configuration files by removing unnecessary quotes around object keys in exported objects. Keys such as 'name', 'desc', and others are converted from quoted strings to unquoted identifiers, making the object literal syntax more idiomatic. The changes are purely syntactic; no modifications are made to the values, structure, logic, or exported/public entity signatures. All affected files retain their original data and functionality, with only the style of object key declarations updated.

Changes

Files Change Summary
examples/sites/demos/apis/float-button.js Removed quotes from object keys in exported default object; no data or structure changes.
examples/sites/demos/pc/app/grid/webdoc/grid-align.js, .../grid-appearance-settings.js, ... Removed unnecessary quotes from keys like 'name' and 'desc' in demo and API metadata objects across all files.
.../grid-context-menu.js, .../grid-custom-style.js, .../grid-custom.js, .../grid-data-source.js
.../grid-drag.js, .../grid-dynamically-columns.js, .../grid-edit.js, .../grid-editor.js
.../grid-empty.js, .../grid-event.js, .../grid-expand.js, .../grid-faq.js, .../grid-filter.js
.../grid-fixed.js, .../grid-footer.js, .../grid-header.js, .../grid-highlight.js
.../grid-import-export.js, .../grid-large-data.js, .../grid-loading.js, .../grid-mouse-keyboard.js
.../grid-operation-column.js, .../grid-pager.js, .../grid-renderer.js, .../grid-row-grouping.js
.../grid-serial-column.js, .../grid-size.js, .../grid-slot.js, .../grid-sort.js
.../grid-span.js, .../grid-tip.js, .../grid-toolbar.js, .../grid-tree-table.js, .../grid-validation.js

Possibly related PRs

  • docs: optimize grid docs #3215: The main PR and this related PR both focus on removing unnecessary quotes around object keys in exported default objects within demo files, specifically converting quoted keys like 'name', 'desc', and 'demoId' to unquoted identifiers, thus they are related in their syntactic cleanup of object key notation in similar demo metadata files.

Suggested labels

documentation

Suggested reviewers

  • zzcr

Poem

A hop, a skip, a quote removed,
Our keys now stand, unshackled, improved!
No strings attached, just clean and neat,
The code now dances on nimble feet.
With every key now shining bright,
This bunny cheers, "What a tidy sight!"
🐇✨

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

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

examples/sites/demos/apis/float-button.js

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_REQUIRE_ESM]: require() of ES Module /examples/sites/demos/.eslintrc.js from /node_modules/.pnpm/@eslint[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported.
.eslintrc.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename .eslintrc.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /examples/sites/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at module.exports [as default] (/node_modules/.pnpm/[email protected]/node_modules/import-fresh/index.js:33:91)
at loadJSConfigFile (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2583:47)
at loadConfigFile (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2667:20)
at ConfigArrayFactory.loadInDirectory (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2877:34)
examples/sites/demos/pc/app/grid/webdoc/grid-align.js

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_REQUIRE_ESM]: require() of ES Module /examples/sites/demos/.eslintrc.js from /node_modules/.pnpm/@eslint[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported.
.eslintrc.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename .eslintrc.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /examples/sites/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at module.exports [as default] (/node_modules/.pnpm/[email protected]/node_modules/import-fresh/index.js:33:91)
at loadJSConfigFile (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2583:47)
at loadConfigFile (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2667:20)
at ConfigArrayFactory.loadInDirectory (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2877:34)
examples/sites/demos/pc/app/grid/webdoc/grid-context-menu.js

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_REQUIRE_ESM]: require() of ES Module /examples/sites/demos/.eslintrc.js from /node_modules/.pnpm/@eslint[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported.
.eslintrc.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename .eslintrc.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /examples/sites/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).

at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at module.exports [as default] (/node_modules/.pnpm/[email protected]/node_modules/import-fresh/index.js:33:91)
at loadJSConfigFile (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2583:47)
at loadConfigFile (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2667:20)
at ConfigArrayFactory.loadInDirectory (/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2877:34)
  • 34 others
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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 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 for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a 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 (15)
examples/sites/demos/pc/app/grid/webdoc/grid-custom-style.js (1)

47-47: Inconsistent quoting in apis object.
You unquoted name but left quotes around type, props, events, and slots. Consider removing those quotes for full consistency:

- apis: [{ name: 'grid-custom-style', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-custom-style', type: 'component', props: [], events: [], slots: [] }]
examples/sites/demos/pc/app/grid/webdoc/grid-pager.js (1)

54-54: Inconsistent quoting in apis object.
You unquoted name but kept quotes on other keys. For uniformity, remove all unnecessary quotes:

- apis: [{ name: 'grid-pager', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-pager', type: 'component', props: [], events: [], slots: [] }]
examples/sites/demos/pc/app/grid/webdoc/grid-expand.js (1)

56-56: Inconsistent quoting in apis object.
Consider removing quotes around all keys for consistency:

- apis: [{ name: 'grid-expand', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-expand', type: 'component', props: [], events: [], slots: [] }]
examples/sites/demos/pc/app/grid/webdoc/grid-empty.js (1)

37-37: Inconsistent quoting in apis object.
For full consistency, remove all unnecessary quotes:

- apis: [{ name: 'grid-empty', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-empty', type: 'component', props: [], events: [], slots: [] }]
examples/sites/demos/pc/app/grid/webdoc/grid-header.js (2)

7-8: Approve key unquoting in first header demo & note typo.
Unquoting name/desc is correct, but there’s a typo in the documentation: <code>fasle</code> should be <code>false</code>.


55-55: Inconsistent quoting in apis object.
Remove unnecessary quotes on all keys for uniform style:

- apis: [{ name: 'grid-header', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-header', type: 'component', props: [], events: [], slots: [] }]
examples/sites/demos/pc/app/grid/webdoc/grid-drag.js (1)

7-8: Style consistency improvement suggestion

The quotes have been correctly removed from object keys like name and desc, which improves readability and follows modern JavaScript conventions. However, in line 48, while name has quotes removed, the properties 'type', 'props', 'events', and 'slots' still retain their quotes. For complete consistency, consider removing quotes from these properties as well.

- apis: [{ name: 'grid-drag', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-drag', type: 'component', props: [], events: [], slots: [] }]

Also applies to: 17-18, 28-29, 39-40, 48-48

examples/sites/demos/pc/app/grid/webdoc/grid-import-export.js (1)

7-8: Style consistency improvement suggestion

The quotes have been appropriately removed from object keys like name and desc, which aligns with modern JavaScript conventions. However, in line 31, the apis array still contains quoted properties ('type', 'props', 'events', and 'slots'). For consistent styling throughout the file, consider removing quotes from these properties as well.

- apis: [{ name: 'grid-import-export', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-import-export', type: 'component', props: [], events: [], slots: [] }]

Also applies to: 16-17, 31-31

examples/sites/demos/pc/app/grid/webdoc/grid-fixed.js (1)

7-8: Style consistency improvement suggestion

The quotes have been correctly removed from object keys like name and desc throughout the demos array. However, in line 50, while name has had quotes removed, the properties 'type', 'props', 'events', and 'slots' still retain their quotes. For complete style consistency across the file, consider removing quotes from these properties as well.

- apis: [{ name: 'grid-fixed', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-fixed', type: 'component', props: [], events: [], slots: [] }]

Also applies to: 18-19, 29-30, 40-41, 50-50

examples/sites/demos/pc/app/grid/webdoc/grid-span.js (1)

7-8: Style consistency improvement suggestion

The quotes have been appropriately removed from object keys like name and desc in all demo entries. However, in line 37, while name has had quotes removed, the properties 'type', 'props', 'events', and 'slots' still retain their quotes. For complete style consistency, consider removing quotes from these properties as well.

- apis: [{ name: 'grid-span', 'type': 'component', 'props': [], 'events': [], 'slots': [] }]
+ apis: [{ name: 'grid-span', type: 'component', props: [], events: [], slots: [] }]

Also applies to: 18-19, 27-28, 37-37

examples/sites/demos/pc/app/grid/webdoc/grid-context-menu.js (1)

50-50: Optional: Unquote API metadata keys
To fully standardize the style, you could also remove the quotes around type, props, events, and slots in the apis object—these are valid identifiers and don't require quoting.

examples/sites/demos/pc/app/grid/webdoc/grid-editor.js (1)

88-88: Optional: Extend unquoting to API metadata
For consistency with the demos, consider removing quotes around the type, props, events, and slots keys in the apis entry as well.

examples/sites/demos/pc/app/grid/webdoc/grid-data-source.js (1)

67-67: Optional: Clean up API key quoting
You may want to unquote the type, props, events, and slots keys in the apis array for a fully consistent style across all metadata files.

examples/sites/demos/pc/app/grid/webdoc/grid-edit.js (1)

105-105: Optional: Unquote API metadata keys
Consider removing the quotes around type, props, events, and slots in the apis object to maintain uniform key style.

examples/sites/demos/pc/app/grid/webdoc/grid-toolbar.js (1)

159-159: Optional: Remove quotes from API keys
For consistency, you could unquote the type, props, events, and slots keys in the apis entry as well.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 666bb0f and c71ffc1.

📒 Files selected for processing (37)
  • examples/sites/demos/apis/float-button.js (1 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-align.js (4 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-appearance-settings.js (2 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-context-menu.js (5 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-custom-style.js (4 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-custom.js (16 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-data-source.js (5 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-drag.js (4 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-dynamically-columns.js (2 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-edit.js (10 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-editor.js (7 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-empty.js (3 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-event.js (17 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-expand.js (5 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-faq.js (5 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-filter.js (9 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-fixed.js (5 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-footer.js (3 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-header.js (4 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-highlight.js (6 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-import-export.js (2 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-large-data.js (7 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-loading.js (2 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-mouse-keyboard.js (3 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-operation-column.js (7 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-pager.js (2 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-renderer.js (6 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-row-grouping.js (3 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-serial-column.js (4 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-size.js (10 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-slot.js (1 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-sort.js (6 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-span.js (3 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-tip.js (3 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-toolbar.js (12 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-tree-table.js (12 hunks)
  • examples/sites/demos/pc/app/grid/webdoc/grid-validation.js (11 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: PR Unit Test
  • GitHub Check: PR E2E Test (pnpm test:e2e3)
🔇 Additional comments (61)
examples/sites/demos/apis/float-button.js (1)

6-7: Stylistic cleanup of object keys
Unnecessary quotes around valid JavaScript identifiers (e.g., name, type, mode, pcDemo) have been removed throughout the API description object. This change is purely syntactic and does not affect functionality.

Also applies to: 10-12, 18-19, 21-23, 32-33, 40-41, 43-44, 65-66, 75-76, 87-88, 99-100, 110-111, 142-143, 154-155, 165-166, 178-180, 191-192

examples/sites/demos/pc/app/grid/webdoc/grid-appearance-settings.js (2)

7-8: Unquoted valid object keys in demos
Removed quotes from name and desc properties in the demos entries to standardize object literal notation.


26-26: Consistent key formatting in APIs section
The name property in the apis array is now unquoted, aligning with the updated style guide.

examples/sites/demos/pc/app/grid/webdoc/grid-slot.js (2)

7-7: Removed quotes around name in demos
All name keys within the demos array have been unquoted for idiomatic JavaScript syntax.

Also applies to: 16-16, 25-25, 34-34, 43-43


51-51: Unquoted name in apis
The API entry’s name property is now unquoted, matching the style applied to demos.

examples/sites/demos/pc/app/grid/webdoc/grid-sort.js (2)

7-7: Unquoted name in sorting demos
Consistently removed quotes around the name key for each demos entry to improve readability.

Also applies to: 17-17, 27-27, 39-39, 50-50


60-60: Standardized API key formatting
Unquoted the name property in the apis section to adhere to the updated object literal style.

examples/sites/demos/pc/app/grid/webdoc/grid-loading.js (2)

7-7: Removed quotes around name in loading demos
The name keys for loading demos have been unquoted, ensuring consistency across all demo metadata.

Also applies to: 18-18


26-26: Standardized API key formatting
The name property in the apis array is now unquoted, aligning with the overall style update.

examples/sites/demos/pc/app/grid/webdoc/grid-custom-style.js (4)

7-8: Approve removal of quotes around demo metadata keys.
Unquoting name and desc makes the object literal more idiomatic without changing any behavior.


18-19: Approve consistent key unquoting in second demo entry.
Removing quotes around name and desc here aligns with the style change across demo entries.


28-29: Approve key unquoting in third demo entry.
This stylistic update is purely syntactic and maintains existing semantics.


38-39: Approve key unquoting in fourth demo entry.
The change enhances readability and is consistent with other demo objects.

examples/sites/demos/pc/app/grid/webdoc/grid-pager.js (4)

7-8: Approve unquoted name/desc keys in first pager demo.
The syntax cleanup is purely stylistic and consistent with the PR objective.


16-17: Approve unquoted name/desc keys in second pager demo.
This aligns with the idiomatic JavaScript style applied elsewhere.


36-37: Approve unquoted name/desc keys in third pager demo.
No behavior change; the keys remain correctly mapped.


45-47: Approve unquoted name/desc keys in fourth pager demo.
Consistent with other demo entries in this file.

examples/sites/demos/pc/app/grid/webdoc/grid-expand.js (4)

7-8: Approve key unquoting in first expand demo.
Removing quotes around name and desc keys is a safe, purely stylistic change.


20-21: Approve key unquoting in second expand demo.
Matches the refactoring pattern in other demo files.


33-34: Approve key unquoting in third expand demo.
The object still conveys the same metadata, with improved readability.


43-44: Approve key unquoting in fourth expand demo.
Consistent with the rest of the PR’s style adjustments.

examples/sites/demos/pc/app/grid/webdoc/grid-empty.js (3)

7-8: Approve key unquoting in first empty-data demo.
Purely syntactic cleanup; the content remains unaffected.


17-18: Approve key unquoting in default empty-data demo.
Aligns with the PR’s goal of style consistency.


27-28: Approve key unquoting in centered empty-data demo.
No semantic changes—just cleaner syntax.

examples/sites/demos/pc/app/grid/webdoc/grid-header.js (4)

18-19: Approve key unquoting in multi-header config demo.
The stylistic change is valid and consistent.


27-28: Approve key unquoting in custom header demo.
Semantic content is unchanged; readability improved.


37-38: Approve key unquoting in slot-based header demo.
Matches patterns applied elsewhere in the PR.


47-48: Approve key unquoting in dynamic header switching demo.
No logic changes, just cleaner metadata syntax.

examples/sites/demos/pc/app/grid/webdoc/grid-serial-column.js (1)

7-8: Style improvement: Removed unnecessary quotes from object keys

The change properly removes redundant quotes around object property names like name and desc, making the JavaScript object syntax cleaner while maintaining identical functionality.

Also applies to: 17-18, 28-29, 38-38

examples/sites/demos/pc/app/grid/webdoc/grid-tip.js (1)

7-8: Style improvement: Removed unnecessary quotes from object keys

The change properly removes redundant quotes around object property names like name and desc, making the JavaScript object syntax cleaner while maintaining identical functionality.

Also applies to: 25-26, 45-46, 54-54

examples/sites/demos/pc/app/grid/webdoc/grid-mouse-keyboard.js (1)

7-8: Style improvement: Removed unnecessary quotes from object keys

The change properly removes redundant quotes around object property names like name and desc, making the JavaScript object syntax cleaner while maintaining identical functionality.

Also applies to: 37-38, 46-47, 57-57

examples/sites/demos/pc/app/grid/webdoc/grid-filter.js (1)

7-8: Style improvement: Removed unnecessary quotes from object keys

The change properly removes redundant quotes around object property names like name and desc, making the JavaScript object syntax cleaner while maintaining identical functionality.

Also applies to: 32-33, 41-42, 51-52, 62-63, 71-72, 81-82, 91-92, 102-103, 113-114, 123-124, 131-131

examples/sites/demos/pc/app/grid/webdoc/grid-highlight.js (2)

7-8: Consistent style cleanup for demo entries

Removed unnecessary quotes around the name and desc keys in each demo object. This syntactic update standardizes the object literal notation and improves readability without altering any functionality.

Also applies to: 18-19, 27-28, 38-39, 48-49, 58-59


68-68: Unquote the top-level apis key

Removed quotes around the apis key to align with the unquoted object-key convention applied elsewhere.

examples/sites/demos/pc/app/grid/webdoc/grid-row-grouping.js (2)

7-8: Unquoted name and desc keys in demo objects

Standardized the demo metadata by removing quotes from the name and desc keys. This enhances consistency across all demo entries without impacting their content or behavior.

Also applies to: 18-19, 32-33, 42-43


50-50: Remove quotes from the apis key

Aligned the apis key with the updated style by unquoting it at the root object level.

examples/sites/demos/pc/app/grid/webdoc/grid-align.js (2)

7-8: Remove unnecessary quotes from name and desc

Updated the demo entries to use unquoted name and desc keys, improving code consistency and idiomatic JavaScript style.

Also applies to: 18-19, 29-30


39-39: Unquote the apis key

Aligned the key styling by removing the quotes around apis in the exported object.

examples/sites/demos/pc/app/grid/webdoc/grid-renderer.js (2)

7-8: Standardize demo object keys

Removed quotes from the name and desc keys across all renderer demos, enforcing a consistent unquoted key style in object literals.

Also applies to: 38-39, 49-50, 60-61, 71-72


82-82: Unquoted apis key for consistency

Removed the quotes around the apis property at the module level to match the updated style guidelines.

examples/sites/demos/pc/app/grid/webdoc/grid-size.js (2)

7-8: Unified name and desc key formatting

Cleaned up all demo entries by unquoting the name and desc keys, ensuring a uniform object literal syntax throughout the file.

Also applies to: 16-17, 26-27, 36-37, 46-47, 56-57, 64-65, 75-76, 85-86, 96-97, 107-108, 117-118, 128-129


136-136: Remove quotes from the apis key

Updated the top-level apis key to be unquoted, aligning with the style applied to other object keys.

examples/sites/demos/pc/app/grid/webdoc/grid-footer.js (1)

7-8: Style improvement: Unquoted object property keys

The removal of unnecessary quotes around object keys (name, desc) throughout the file makes the code more idiomatic JavaScript. This style adjustment improves readability while maintaining the same functionality.

Also applies to: 16-17, 25-26, 36-37, 46-46

examples/sites/demos/pc/app/grid/webdoc/grid-event.js (1)

7-8: Consistent style update: Removed unnecessary quotes

The change consistently removes quotes around object property keys in the entire file. This follows standard JavaScript conventions where quotes are only needed for keys containing special characters or spaces.

Also applies to: 25-26, 39-40, 53-57, 71-72, 81-82, 92-93, 103-104, 117-118, 127-128, 138-139, 148-149, 159-160, 170-171, 180-181, 190-191, 199-200, 209-209

examples/sites/demos/pc/app/grid/webdoc/grid-operation-column.js (1)

7-8: Style improvement: Using unquoted object keys

Converting quoted property keys ('name', 'desc') to unquoted versions (name, desc) improves code style consistency. This change follows modern JavaScript conventions and makes the code cleaner.

Also applies to: 17-18, 28-29, 45-46, 56-57, 67-68, 76-77, 86-87, 95-95

examples/sites/demos/pc/app/grid/webdoc/grid-faq.js (1)

7-8: Code style standardization: Unquoted object keys

Removing the quotes around object property keys standardizes the code style throughout the grid documentation. This change follows JavaScript best practices while maintaining all functionality.

Also applies to: 18-19, 28-29, 34-35, 44-45, 56-56

examples/sites/demos/pc/app/grid/webdoc/grid-validation.js (2)

7-126: Consistent removal of quotes in demos metadata
All name and desc keys within the demos array have been converted from quoted strings to unquoted identifiers. This change is purely stylistic, aligns with idiomatic JavaScript object notation, and does not affect runtime behavior.


129-129: Consistent removal of quotes in apis metadata
The name key in the apis array is now unquoted, matching the rest of the object literal style. No functional impact.

examples/sites/demos/pc/app/grid/webdoc/grid-dynamically-columns.js (2)

7-58: Consistent removal of quotes in demos metadata
Across all demo entries (name and desc), the quoted keys have been updated to unquoted identifiers. This is valid JavaScript syntax and improves code consistency without changing functionality.


65-65: Consistent removal of quotes in apis metadata
The name key in the apis array has been updated to an unquoted identifier for uniformity. Safe and correct.

examples/sites/demos/pc/app/grid/webdoc/grid-tree-table.js (2)

7-152: Consistent removal of quotes in demos metadata
All name and desc keys in the demos array are now unquoted, standardizing the object literal style. This is a non-functional, stylistic adjustment.


153-153: Consistent removal of quotes in apis metadata
The name key in the apis array has been converted to an unquoted identifier, matching the updated style.

examples/sites/demos/pc/app/grid/webdoc/grid-large-data.js (2)

7-96: Consistent removal of quotes in demos metadata
Keys name and desc across all demo objects have been updated to unquoted identifiers. This change is purely stylistic and safe.


97-97: Consistent removal of quotes in apis metadata
The name key in the apis array is now unquoted, ensuring consistency across the object literal.

examples/sites/demos/pc/app/grid/webdoc/grid-custom.js (2)

7-172: Consistent removal of quotes in demos metadata
All demo entries now use unquoted name and desc keys, improving readability and adhering to standard JS syntax.


174-175: Consistent removal of quotes in apis metadata
The name key in the apis section is unquoted for uniform styling. No changes to behavior.

examples/sites/demos/pc/app/grid/webdoc/grid-context-menu.js (1)

7-46: Remove unnecessary quotes in demo metadata
The changes uniformly unquote the name and desc keys within each demo entry, cleaning up the object literal syntax without altering any values or behavior.

examples/sites/demos/pc/app/grid/webdoc/grid-editor.js (1)

7-87: Approve style cleanup in editor demos
All occurrences of quoted name and desc keys in the demos array have been converted to unquoted identifiers, making the syntax more idiomatic. There are no functional changes.

examples/sites/demos/pc/app/grid/webdoc/grid-data-source.js (1)

7-66: Approve style update in data-source demos
The PR removes unnecessary quotes around name and desc keys in each demo configuration, improving readability while preserving data and functionality.

examples/sites/demos/pc/app/grid/webdoc/grid-edit.js (1)

7-103: Approve syntax-only changes in edit demos
Quoted keys for name and desc have been replaced with unquoted identifiers in all demo entries, standardizing style with no change to content or logic.

examples/sites/demos/pc/app/grid/webdoc/grid-toolbar.js (1)

7-157: Approve cleanup of toolbar demos
All quoted name and desc keys in the toolbar demos have been converted to bare identifiers, improving consistency and readability without affecting functionality.

@zzcr zzcr merged commit c0b9fe3 into dev Apr 28, 2025
9 of 11 checks passed
@zzcr zzcr deleted the cgm/doc-style-adjust branch April 28, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants