-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
v0.4.0
## 变化 - 增加了组件的 CSS 变量补全 - 增加了 CSS 全局变量(颜色变量)补全 - 将 `custom-data/soberjs.html-data.json` 重命名为 [`custom-data/components.html-data.json`](./custom-data/components.html-data.json) - 增加了 [开发指南文档](./docs/dev-guide.md) **Full Changelog**: https://github.com/lingbopro/soberjs-vscode/blob/dev/CHANGELOG.md
Showing
9 changed files
with
871 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.github/** | ||
.vscode/** | ||
.vscode-test/** | ||
out/** | ||
docs/** | ||
.gitignore | ||
.gitattributes | ||
out/** | ||
CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 贡献指南 | ||
|
||
欢迎您的贡献!请遵循以下指南: | ||
|
||
Fork 存储库。 | ||
为您的功能或 bug 修复创建一个新分支。 | ||
为您的更改编写代码。 | ||
使用版本号(或大致内容)作为标题提交您的更改。 | ||
将您的分支推送到您的 fork。 | ||
向主存储库提交拉取请求 **(`dev` 分支)**。 | ||
|
||
另外,您可以参阅 [开发指南](./docs/dev-guide.md)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"version": 1.1, | ||
"properties": [ | ||
{ | ||
"name": "--ripple-color", | ||
"description": { | ||
"kind": "markdown", | ||
"value": "波纹颜色\n\n**组件:**\n\n- `<s-ripple>` 波纹 Ripple" | ||
}, | ||
"references": [ | ||
{ | ||
"name": "文档: 波纹 Ripple", | ||
"url": "https://soberjs.com/component/ripple" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "--ripple-opacity", | ||
"description": { | ||
"kind": "markdown", | ||
"value": "波纹不透明度\n\n**组件:**\n\n- `<s-ripple>` 波纹 Ripple" | ||
}, | ||
"references": [ | ||
{ | ||
"name": "文档: 波纹 Ripple", | ||
"url": "https://soberjs.com/component/ripple" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "--border-radius", | ||
"description": { | ||
"kind": "markdown", | ||
"value": "边框圆角\n\n**组件:**\n\n- `<s-text-field>` 文本框 Text Field\n- `<s-picker>` 选择框 Picker" | ||
}, | ||
"references": [ | ||
{ | ||
"name": "文档: 文本框 Text Field", | ||
"url": "https://soberjs.com/component/text-field" | ||
}, | ||
{ | ||
"name": "文档: 选择框 Picker", | ||
"url": "https://soberjs.com/component/picker" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "--border-width", | ||
"description": { | ||
"kind": "markdown", | ||
"value": "边框宽度\n\n**组件:**\n\n- `<s-text-field>` 文本框 Text Field\n- `<s-picker>` 选择框 Picker" | ||
}, | ||
"references": [ | ||
{ | ||
"name": "文档: 文本框 Text Field", | ||
"url": "https://soberjs.com/component/text-field" | ||
}, | ||
{ | ||
"name": "文档: 选择框 Picker", | ||
"url": "https://soberjs.com/component/picker" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "--border-color", | ||
"description": { | ||
"kind": "markdown", | ||
"value": "边框颜色\n\n**组件:**\n\n- `<s-text-field>` 文本框 Text Field\n- `<s-picker>` 选择框 Picker" | ||
}, | ||
"references": [ | ||
{ | ||
"name": "文档: 文本框 Text Field", | ||
"url": "https://soberjs.com/component/text-field" | ||
}, | ||
{ | ||
"name": "文档: 选择框 Picker", | ||
"url": "https://soberjs.com/component/picker" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "--padding", | ||
"description": { | ||
"kind": "markdown", | ||
"value": "边框内边距\n\n**组件:**\n\n- `<s-text-field>` 文本框 Text Field\n- `<s-picker>` 选择框 Picker" | ||
}, | ||
"references": [ | ||
{ | ||
"name": "文档: 文本框 Text Field", | ||
"url": "https://soberjs.com/component/text-field" | ||
}, | ||
{ | ||
"name": "文档: 选择框 Picker", | ||
"url": "https://soberjs.com/component/picker" | ||
} | ||
] | ||
} | ||
] | ||
} |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 开发指南 | ||
|
||
## 目录 | ||
|
||
- [开发指南](#开发指南) | ||
- [目录](#目录) | ||
- [项目结构](#项目结构) | ||
|
||
## 项目结构 | ||
|
||
- [CHANGELOG.md](./../CHANGELOG.md): 存储版本更新记录 | ||
- [CONTRIBUTING.md](./../CONTRIBUTING.md): 包含贡献指南 | ||
- [custom-data/](./../custom-data/): 包含自定义 HTML 和 CSS 数据 | ||
- [components.css-data.json](./../custom-data/components.css-data.json): 包含组件的 CSS 变量数据 | ||
- [components.html-data.json](./../custom-data/components.html-data.json): 包含组件标签和属性数据 | ||
- [global.css-data.json](./../custom-data/global.css-data.json): 包含全局 CSS 变量数据 | ||
- [docs/](./../docs/): 包含文档 | ||
- [dev-guide.md](./../docs/dev-guide.md): 开发指南(此文件) | ||
- [icon.png](./../icon.png): 此扩展的图标 | ||
- [LICENSE](./../LICENSE): 包含开源许可文件 | ||
- [package.json](./../package.json): 包含项目元数据 | ||
- [README.md](./../README.md): 自述文件 | ||
- [snippets/](./../snippets/): 包含代码片段文件 | ||
- [html.code-snippets](./../snippets/html.code-snippets): 包含 HTML 代码片段 | ||
- [js-ts.code-snippets](./../snippets/js-ts.code-snippets): 包含 JavaScript/Typescript 代码片段 | ||
- [SUPPORT.md](./../SUPPORT.md): 包含支持信息 | ||
|
||
## 贡献 | ||
|
||
见 [贡献指南](./../CONTRIBUTING.md)。 | ||
|
||
<!-- 没做完呢,别动! --> | ||
<!-- | ||
## 提示 | ||
### 生成 SVG 代码片段文件 | ||
<details> | ||
<summary>点击展开</summary> | ||
Sober 图标库中有很多图标,手动编写代码片段非常费时,因此可以使用脚本来生成。 | ||
1. 打开 [Sober.js 图标库](https://soberjs.com/resource/icon) | ||
2. 打开 DevTools,并切换到 Console (控制台) 选项卡 | ||
3. 粘贴以下代码并运行 | ||
**(运行时不要操作网页!!!)** | ||
<details> | ||
<summary>点击展开</summary> | ||
```js | ||
下个版本补充,别动这!!! | ||
--- @lingbopro, 2024/7/12 | ||
``` | ||
(脚本由 [@lingbopro](https://github.com/lingbopro) 制作) | ||
</details> | ||
4. 等待 15-30 秒后,控制台会输出两段长文本,将第一段放入 [snippets/s-icon.code-snippets](./../snippets/s-icon.code-snippets) 中,第二段放入 [snippets/svg-icon.code-snippets](./../snippets/svg-icon.code-snippets) 中,并格式化它们 | ||
</details> | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters