MCPcopy Create free account
hub / github.com/acking-you/static_flow / sample_markdowns

Function sample_markdowns

crates/frontend/src/models.rs:123–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122#[cfg(feature = "mock")]
123fn sample_markdowns() -> Vec<&'static str> {
124 vec![
125 // 1
126 r#"# 用 Rust + Yew 构建本地优先博客
127
128StaticFlow 是一个本地优先(Local-first)、自动化驱动的博客样板项目。
129
130## 亮点
131
132- 无后端依赖,纯静态部署
133- 使用 `Yew` 构建前端组件
134- 基于 `Trunk` 与 `wasm-pack` 的开发体验
135
136```rust
137fn main() {
138 println!("Hello StaticFlow!");
139}
140```
141```mermaid
142graph TD
143 A[编写代码] --> B[构建 WASM]
144 B --> C[部署静态文件]
145 C --> D[用户访问]
146 D --> A
147```
148你好,世界!
149
150$$E = mc^2$$
151
152
153```mermaid
154classDiagram
155 class Article {
156 +String id
157 +String title
158 +String content
159 +Vec~String~ tags
160 +String category
161 +DateTime created_at
162 +render() Html
163 +to_json() String
164 }
165
166 class ArticleListItem {
167 +String id
168 +String title
169 +String summary
170 +Vec~String~ tags
171 +from(Article) ArticleListItem
172 }
173
174 class Tag {
175 +String name
176 +String slug
177 +count() usize
178 }
179
180 Article "1" --> "*" Tag : has

Callers 1

mock_articles_fullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected