Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)48k · #5177

markstream-vue2

Skill này làm gì

Công cụ này giúp tích hợp thành phần 'markstream-vue2' vào dự án dùng Vue 2. Nó đảm bảo mọi thứ hoạt động đúng với phiên bản Vue 2 cụ thể, xử lý các chi tiết kỹ thuật để bạn không phải lo lắng.

Khi nào nên dùng

  • ✓Khi bạn dùng Vue 2.6 hoặc 2.7 và cần một thành phần hiển thị văn bản có định dạng (như Markdown).
  • ✓Khi bạn muốn văn bản xuất hiện dần trên màn hình, như trong khung chat.
  • ✓Khi bạn cần đảm bảo tương thích với các phiên bản Vue 2 cũ hơn.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/markstream-vue2/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để thiết lập markstream-vue2 trong dự án Vue 2 của tôi?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kiểm tra phiên bản Vue 2 của bạn và thêm các phụ thuộc cần thiết. Nó cấu hình thành phần để hiển thị văn bản, với các tùy chọn cho hiệu ứng gõ hoặc hiện dần.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Markstream Vue 2

Overview

Handle Vue 2.6/2.7 compatibility decisions that the generic installer cannot resolve safely.

When to Use

Use for Vue 2 integration when no bundler-specific edge case dominates. Use markstream-vue2-cli for Vue CLI/Webpack 4 and markstream-vue2-vite for Vite worker imports.

Workflow

Inspect the existing package manager, installed package version and project conventions. A requested scoped integration already authorizes routine source/dependency edits; seek approval only for a material scope expansion or unresolved beta/alpha adoption decision.

  1. Confirm Vue 2.6 or 2.7 and install markstream-vue2.
  2. Add @vue/composition-api only for Vue 2.6 code that uses Composition API patterns; Vue 2.7 has built-in support.
  3. Import markstream-vue2/index.css after resets.
  4. Start with <MarkdownRender :content="markdown" /> and smooth streaming auto.
  5. For live chat disable fade and opt into the cursor; on completion set final, disable pacing/cursor, and enable fade only if desired.
  6. Use nodes only when another layer owns parsing. Use scoped mappings for overrides.
  7. Keep HTML safe and Mermaid strict; validate with the smallest build or dev command.

Example

<script>
import MarkdownRender from 'markstream-vue2'
import 'markstream-vue2/index.css'

export default {
  components: { MarkdownRender },
  props: { content: String, done: Boolean },
}
</script>

<template>
  <MarkdownRender
    :content="content"
    :final="done"
    :fade="done"
    :typewriter="!done"
  />
</template>

Limitations

  • Vue 2.6 and 2.7 have different Composition API requirements.
  • Legacy bundlers require the dedicated specializations.
  • Optional modern peers may not support every Vue 2 toolchain.

Security & Safety Notes

Review dependency and compatibility changes. Do not relax rendering safety for untrusted content.

Verify props, export paths and peer ranges against the installed package, not a mutable upstream main. Test partial and completed streams, malformed/untrusted Markdown, links and image URLs, cancellation and reduced motion. Safe HTML and strict diagrams reduce exposure but do not alone enforce URL/network privacy or application component permissions.

Vue 2 is end-of-life; preserve a requested legacy integration and document its maintenance/support decision rather than silently upgrading the whole application. Prefer reviewed locally bundled workers over mutable CDN code where feasible.

Câu hỏi thường gặp

“Composition API” là gì?

Đây là cách tổ chức mã hiện đại hơn trong Vue.js. Với Vue 2.6, bạn có thể cần cài thêm một gói để dùng nó; Vue 2.7 đã hỗ trợ sẵn.

“Streaming state” nghĩa là gì?

Nghĩa là văn bản có thể được hiển thị từng phần, như đang được gõ hoặc tải theo thời gian thực, thay vì xuất hiện cùng lúc.

Tôi có thể dùng công cụ này với mọi phiên bản Vue không?

Không, công cụ này dành riêng cho Vue 2.6 và 2.7. Với các phiên bản khác hoặc công cụ build khác (như Vite), có các phiên bản công cụ khác.

Chi tiết

Mô tả gốc của tác giả

Integrate markstream-vue2 into Vue 2.6 or 2.7 with correct Composition API decisions, CSS, streaming state, optional peers, and scoped overrides.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5177
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự