-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (29 loc) · 7.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>前言 | FS-Context</title>
<meta name="generator" content="VuePress 1.9.10">
<meta name="description" content="A simple TypeScript context library for ScratchExtension">
<link rel="preload" href="/assets/css/0.styles.43da2e96.css" as="style"><link rel="preload" href="/assets/js/app.b063e9e7.js" as="script"><link rel="preload" href="/assets/js/2.c04b84cd.js" as="script"><link rel="preload" href="/assets/js/1.80ebd793.js" as="script"><link rel="preload" href="/assets/js/25.431c435d.js" as="script"><link rel="prefetch" href="/assets/js/10.36036b6d.js"><link rel="prefetch" href="/assets/js/11.57ccf3f4.js"><link rel="prefetch" href="/assets/js/12.60948677.js"><link rel="prefetch" href="/assets/js/13.d57d7ad3.js"><link rel="prefetch" href="/assets/js/14.33108af5.js"><link rel="prefetch" href="/assets/js/15.8717fcbc.js"><link rel="prefetch" href="/assets/js/16.563e56b9.js"><link rel="prefetch" href="/assets/js/17.dd7c2df3.js"><link rel="prefetch" href="/assets/js/18.fb2653ea.js"><link rel="prefetch" href="/assets/js/19.92f65d53.js"><link rel="prefetch" href="/assets/js/20.276fbe3c.js"><link rel="prefetch" href="/assets/js/21.3949a5e7.js"><link rel="prefetch" href="/assets/js/22.d5c90243.js"><link rel="prefetch" href="/assets/js/23.58080b37.js"><link rel="prefetch" href="/assets/js/24.76723dd5.js"><link rel="prefetch" href="/assets/js/3.9d857868.js"><link rel="prefetch" href="/assets/js/4.7e61f99f.js"><link rel="prefetch" href="/assets/js/5.77bce915.js"><link rel="prefetch" href="/assets/js/6.95af27cc.js"><link rel="prefetch" href="/assets/js/7.f7e44e64.js"><link rel="prefetch" href="/assets/js/vendors~docsearch.3e337192.js">
<link rel="stylesheet" href="/assets/css/0.styles.43da2e96.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" aria-current="page" class="home-link router-link-exact-active router-link-active"><!----> <span class="site-name">FS-Context</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><!----> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>前言</span> <!----></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="前言"><a href="#前言" class="header-anchor">#</a> 前言</h1> <h3 id="项目简介"><a href="#项目简介" class="header-anchor">#</a> 项目简介</h3> <p><strong>FS-Context</strong>是 <s>一个名叫<strong>FallingShrimp</strong>的Furry觉得做拓展简直就是种折磨于是闲着没事研究的</s> 一个易用的<strong>TypeScript</strong>上下文,用于开发通用于<code>TurboWarp/GandiIDE</code>等ScratchMod的积木拓展。提供了一些拓展开发中较常用的工具/脚手架。</p> <p>本项目仅仅由于个人兴趣而完成,开发目的仅为探索,也许代码也有优化空间,欢迎各位大佬提出建议。</p> <h3 id="项目初衷"><a href="#项目初衷" class="header-anchor">#</a> 项目初衷</h3> <p>不管在什么平台下,开发拓展都非常的折磨,缺少类型提示/自动补全/代码不易读,以及不同平台对<code>runtime</code>和<code>vm</code>的沙盒机制都有严重差异。通用拓展需要编写非常多的并不必要的冗余代码。</p> <p>因此,本项目旨在提供一些<code>TS类型提示</code>与<code>工具集</code>,同时将不同平台加载拓展/获取vm等频繁且常用的操作封装,开发者不需要重复制造轮子,可以专注于<strong>积木逻辑</strong>的开发。</p> <h3 id="项目结构"><a href="#项目结构" class="header-anchor">#</a> 项目结构</h3> <div class="language-plaintext extra-class"><pre class="language-plaintext"><code>root
- node_modules/
| - ...
- src/
| - extension.ts
| - fs-context/
||| - ...
- package.json
- tsconfig.json
</code></pre></div><p><strong>文件/夹 解释</strong></p> <ul><li><code>extension.ts</code>:拓展入口文件,定义了l10n、积木、菜单等内容</li> <li><code>fs-context</code>:项目核心</li> <li><code>package.json</code>:项目配置文件</li> <li><code>tsconfig.json</code>:TypeScript配置文件</li></ul> <h3 id="快速上手"><a href="#快速上手" class="header-anchor">#</a> 快速上手</h3> <details class="custom-block details"><summary>只需三步</summary> <ol><li>安装依赖</li></ol> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">npm</span> <span class="token function">install</span>
</code></pre></div><ol start="2"><li>启动开发服务器</li></ol> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">npm</span> run dev
</code></pre></div><ol start="3"><li>编译生产环境代码</li></ol> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">npm</span> run dist
</code></pre></div></details> <p>对于新的拓展API文档,访问<a href="/quickstart.html">概念和API</a></p> <h3 id="贡献"><a href="#贡献" class="header-anchor">#</a> 贡献</h3> <p><a href="https://github.com/Rundll86/fs-context" target="_blank" rel="noopener noreferrer">Github<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a><br>
欢迎提交<code>Issue</code>或<code>Pull Request</code>,欢迎<code>Star</code>。</p> <h4 id="项目贡献者"><a href="#项目贡献者" class="header-anchor">#</a> 项目贡献者</h4> <div class="container" data-v-1cb3b608><img src="https://avatars.githubusercontent.com/u/108387605" alt="FallingShrimp的头像" class="avatar" data-v-1cb3b608> <span class="name" data-v-1cb3b608>FallingShrimp</span> <!----></div> <div class="container" data-v-1cb3b608><img src="https://avatars.githubusercontent.com/u/55276797" alt="FurryR/熊谷 凌的头像" class="avatar" data-v-1cb3b608> <span class="name" data-v-1cb3b608>FurryR/熊谷 凌</span> <!----></div> <div class="container" data-v-1cb3b608><img src="https://avatars.githubusercontent.com/u/177754635" alt="Cyberexplorer的头像" class="avatar" data-v-1cb3b608> <span class="name" data-v-1cb3b608>Cyberexplorer</span> <!----></div></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"></div></div>
<script src="/assets/js/app.b063e9e7.js" defer></script><script src="/assets/js/2.c04b84cd.js" defer></script><script src="/assets/js/1.80ebd793.js" defer></script><script src="/assets/js/25.431c435d.js" defer></script>
</body>
</html>