Skip to content

docs(changelog): update changelog and runtime doc #1749

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 2 commits into from
Jul 17, 2024
Merged

Conversation

zzcr
Copy link
Member

@zzcr zzcr commented Jul 17, 2024

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

  • New Features

    • Added auto-tip directive.
    • Introduced fluent-editor component.
    • Included base-select with panel slot.
    • Updated mobile-first template.
    • Breadcrumb now adapts to xdesign theme.
    • Drawer component now has an open event.
  • Bug Fixes

    • Fixed I18n in button-group.
    • Added vertical description to node description slot in the timeline.
    • Resolved highlighting issue in nav-menu.
    • Updated scrollbar width to 8px in theme.
    • Consistent SVG usage for dots in pager across themes.
  • Documentation

    • Enhanced documentation for using TinyVue via CDN.
    • Added runtime options and resource URLs for TinyVue.
  • Other Changes

    • Updated the webpage title to "OpenTinyVue 演练场".
    • Updated versions array in the application to include '3.17'.

Copy link

coderabbitai bot commented Jul 17, 2024

Warning

Rate limit exceeded

@zzcr has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 40 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 55d5d57 and 9b397f2.

Walkthrough

The recent updates introduce exciting new features, including auto-tip directives, fluent-editor components, and mobile-first templates. Several bug fixes enhance stability and usability, addressing issues in button groups, timelines, and nav-menus. Documentation improvements and new CDN options for TinyVue streamline user experience, while updates to playground elements and versioning logic ensure the latest features are easily accessible.

Changes

File Path Change Summary
examples/sites/demos/pc/webdoc/changelog.md Added new features, bug fixes, and other updates summary.
examples/sites/demos/pc/webdoc/installation.md Updated documentation to include CDN usage for TinyVue and new runtime options.
examples/sites/playground.html Changed webpage title and updated cdnHost variable.
examples/sites/playground/App.vue Updated versions array and related assignment logic to include version 3.17.

Poem

In codes and lines, new features arise,
Auto-tips and themes, a sweet surprise.
Bugs fixed, and docs refined,
With CDN ease, now all aligned.
Version 3.17, our latest pride,
OpenTinyVue, on this joyous ride.
🌟✨🚀


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
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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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.

@zzcr zzcr added the documentation 对文档的改进或补充 label Jul 17, 2024
Copy link

[e2e-test-warn]
The component to be tested is missing.

The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug".

Please make sure you've read our contributing guide

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: 1

Outside diff range, codebase verification and nitpick comments (1)
examples/sites/playground.html (1)

7-7: CDN Host Update Incomplete

The update to the cdnHost variable to 'https://registry.npmmirror.com' has not been consistently applied across the codebase. Multiple other CDN URLs are still present:

  • examples/react-site/index.html
  • examples/sites/index.html
  • examples/sites/demos/pc/app/watermark/image.vue
  • examples/sites/demos/pc/app/watermark/image-composition-api.vue
  • examples/sites/demos/pc/app/tree-menu/default-expanded-keys-highlight.vue
  • examples/sites/demos/pc/app/qr-code/icon.vue
  • examples/sites/demos/pc/app/qr-code/icon-composition-api.vue
  • examples/sites/demos/mobile-first/app/file-upload/multi-media-native.vue
  • examples/sites/demos/mobile-first/app/file-upload/multi-media.vue
  • examples/sites/demos/mobile-first/app/file-upload/display-only-video-audio.vue
  • examples/sites/demos/mobile-first/app/file-upload/audio.vue
  • examples/sites/demos/pc/app/nav-menu/allow-full-url-composition-api.vue
  • examples/sites/demos/pc/app/nav-menu/allow-full-url.vue
  • examples/sites/demos/pc/app/chart/webdoc/chart-heatmap.js
  • examples/sites/demos/pc/app/chart/webdoc/chart-map.js
  • examples/sites/demos/pc/app/chart/bmap/base.vue
  • examples/sites/demos/pc/app/chart/bmap/base-composition-api.vue
  • examples/sites/demos/pc/app/chart/amap/base-composition-api.vue
  • examples/sites/demos/pc/app/chart/amap/base.vue

Please manually verify and update all CDN URLs to ensure they are correctly loaded from 'https://registry.npmmirror.com'.

Analysis chain

CDN Host Update

The cdnHost variable has been updated to 'https://registry.npmmirror.com'. This change should be verified across the application to ensure that all resources are correctly loaded from this new CDN. Additionally, verify that this CDN provides all necessary files with acceptable latency and uptime.

Also applies to: 10-10

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that all resources are loaded from the new CDN and check for latency and uptime.

# Test: Search for CDN usage in HTML and JavaScript files. Expect: Only occurrences of the new CDN.
rg --type html,js 'https://registry.npmmirror.com'

Length of output: 82


Script:

#!/bin/bash
# Description: Verify that all resources are loaded from the new CDN.

# Test: Search for CDN usage in HTML files. Expect: Only occurrences of the new CDN.
rg --type html 'https://registry.npmmirror.com'

# Test: Search for CDN usage in JavaScript files. Expect: Only occurrences of the new CDN.
rg --type js 'https://registry.npmmirror.com'

Length of output: 179


Script:

#!/bin/bash
# Description: Verify that no other CDN URLs are present in the codebase.

# Test: Search for any other CDN URLs in HTML files.
rg --type html 'https://'

# Test: Search for any other CDN URLs in JavaScript files.
rg --type js 'https://'

Length of output: 5242

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f19e3f1 and 55d5d57.

Files selected for processing (4)
  • examples/sites/demos/pc/webdoc/changelog.md (1 hunks)
  • examples/sites/demos/pc/webdoc/installation.md (2 hunks)
  • examples/sites/playground.html (1 hunks)
  • examples/sites/playground/App.vue (1 hunks)
Additional context used
Markdownlint
examples/sites/demos/pc/webdoc/changelog.md

15-15: null
Bare URL used

(MD034, no-bare-urls)


16-16: null
Bare URL used

(MD034, no-bare-urls)


17-17: null
Bare URL used

(MD034, no-bare-urls)


18-18: null
Bare URL used

(MD034, no-bare-urls)


19-19: null
Bare URL used

(MD034, no-bare-urls)


20-20: null
Bare URL used

(MD034, no-bare-urls)


24-24: null
Bare URL used

(MD034, no-bare-urls)


25-25: null
Bare URL used

(MD034, no-bare-urls)


26-26: null
Bare URL used

(MD034, no-bare-urls)


27-27: null
Bare URL used

(MD034, no-bare-urls)


28-28: null
Bare URL used

(MD034, no-bare-urls)


29-29: null
Bare URL used

(MD034, no-bare-urls)


30-30: null
Bare URL used

(MD034, no-bare-urls)


34-34: null
Bare URL used

(MD034, no-bare-urls)


35-35: null
Bare URL used

(MD034, no-bare-urls)


36-36: null
Bare URL used

(MD034, no-bare-urls)


37-37: null
Bare URL used

(MD034, no-bare-urls)


38-38: null
Bare URL used

(MD034, no-bare-urls)


42-42: null
Bare URL used

(MD034, no-bare-urls)


44-44: null
Bare URL used

(MD034, no-bare-urls)

Additional comments not posted (4)
examples/sites/playground.html (1)

7-7: Title Updated to Reflect Branding

The title change to "OpenTinyVue 演练场" aligns with a branding or localization update. Ensure that this change is consistent across all related documentation and interfaces to maintain uniformity.

examples/sites/demos/pc/webdoc/installation.md (2)

83-111: New CDN Instructions for v3.17.0 and Beyond

The documentation now includes a detailed section for CDN usage starting from version 3.17.0, which introduces various runtime options. This is a significant update that should be highlighted in release notes and other relevant communications to ensure users are aware of these new options.


60-60: Updated CDN Instructions for Previous Versions

The documentation now includes updated CDN instructions for versions up to 3.16.0. Ensure that these instructions are tested to confirm that they work as expected and that the URLs are correct and active.

Also applies to: 62-62

Verification successful

Updated CDN Instructions for Previous Versions

The CDN URLs mentioned in the documentation are active and redirect to the correct resources. Here are the final URLs after following the redirections:

The URLs are correct and active, ensuring that the documentation is accurate.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the availability and correctness of the CDN URLs mentioned for versions up to 3.16.0.

# Test: Check the availability of the URLs. Expect: Successful HTTP responses.
rg --type md 'https://unpkg.com'

Length of output: 1678


Script:

#!/bin/bash
# Description: Verify the availability and correctness of the CDN URLs mentioned for versions up to 3.16.0 by checking their HTTP responses.

# List of URLs to check
urls=(
  "https://unpkg.com/[email protected]/dist/vue.esm-browser.js"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue.mjs"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue-common.mjs"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue-icon.mjs"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue-locale.mjs"
  "https://unpkg.com/@opentiny/vue-theme/index.css"
)

# Check each URL and print the HTTP status code
for url in "${urls[@]}"; do
  http_status=$(curl -o /dev/null -s -w "%{http_code}\n" "$url")
  echo "URL: $url - HTTP Status: $http_status"
done

Length of output: 2286


Script:

#!/bin/bash
# Description: Verify the final destination of the CDN URLs by following the redirections.

# List of URLs to check
urls=(
  "https://unpkg.com/[email protected]/dist/vue.esm-browser.js"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue.mjs"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue-common.mjs"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue-icon.mjs"
  "https://unpkg.com/@opentiny/[email protected]/runtime/tiny-vue-locale.mjs"
  "https://unpkg.com/@opentiny/vue-theme/index.css"
)

# Check each URL and print the final URL after following redirections
for url in "${urls[@]}"; do
  final_url=$(curl -Ls -o /dev/null -w "%{url_effective}" "$url")
  echo "Original URL: $url - Final URL: $final_url"
done

Length of output: 3405

examples/sites/playground/App.vue (1)

31-31: Version Array Updated

The version array has been updated to include '3.17' at the beginning. This change affects the latestVersion logic. Ensure that this update is reflected wherever the version is used in the application to prevent any inconsistencies.

@kagol kagol merged commit 88734cb into dev Jul 17, 2024
3 checks passed
@zzcr zzcr deleted the update-docs-0717 branch August 7, 2024 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 对文档的改进或补充
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants