纯静态 macOS 桌面模拟器:原生 HTML/CSS/JavaScript,无构建链。
+git clone https://example.com/macos-web +cd macos-web +# 双击 index.html 即可运行+
· 完整窗口管理器
· localStorage 虚拟文件系统
· 20+ 内置应用
· 离线优先,优雅回退
$1')
- if (line.startsWith('# ')) pv.append(el('h1', { html: escd.slice(2) }))
- else if (line.startsWith('## ')) pv.append(el('h2', { html: escd.slice(3) }))
- else if (line.startsWith('### ')) pv.append(el('h3', { html: escd.slice(4) }))
- else if (line.startsWith('- ')) pv.append(el('p', { html: '• ' + escd.slice(2), class: 'ty-li' }))
- else if (line.trim() === '') pv.append(el('div', { style: { height: '10px' } }))
- else pv.append(el('p', { html: escd }))
- })
- }
- ta.value = '# Typora\n\n**所见即所得** 的 Markdown 编辑体验。\n\n- 左侧输入\n- 右侧实时预览\n\n`console.log("hello")`\n'
- ta.addEventListener('input', debounce(() => renderMd(ta.value), 150))
- renderMd(ta.value)
+ const vnode = h(TyporaComponent, { win })
+ render(vnode, win.body)
}
}
Apps.register(TyporaApp)
diff --git a/src/apps/vscode/VSCode.vue b/src/apps/vscode/VSCode.vue
new file mode 100644
index 0000000..b921b12
--- /dev/null
+++ b/src/apps/vscode/VSCode.vue
@@ -0,0 +1,65 @@
+
+