Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
## 变化

- 优化了组件的悬停提示
- 增加了 Page 组件
- 增加了 Drawer 组件
- 增加了 Scroll View 组件
- 增加了 Card 组件
- 增加了 Search 组件
- 增加了 Carousel 组件
- 增加了 Tab 组件
- 增加了 Navigation 组件
- 增加了 Appbar 组件
- 增加了 Dialog 组件
- 增加了 Popup 组件
- 增加了 Popup Menu 组件
- 增加了 Snackbar 组件
- 增加了 Tooltip 组件
- 增加了 Badge 组件
- 增加了 Chip 组件
- 增加了 Table 组件
- 修正了工作流无法打包的问题

### 新的合作者
* @Minemetero made their first contribution in
#4

**Full Changelog**:
https://github.com/lingbopro/soberjs-vscode/blob/dev/CHANGELOG.md

---------

Co-authored-by: Minemetero <[email protected]>
Co-authored-by: Minemetero <[email protected]>
  • Loading branch information
3 people authored Jul 11, 2024
1 parent d77b556 commit c988ad8
Show file tree
Hide file tree
Showing 9 changed files with 594 additions and 88 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/CI.yaml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches:
- master
- dev

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['22.x']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get Extension Version
shell: bash
run: |
echo "extensionVersion=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Package VS Code extension
id: package
uses: nhedger/package-vscode-extension@main #放心版本号是和打包是你写的版本号一致 路径都是一样版本号变一下就行

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: soberjs-vscode-${{ env.extensionVersion }}.vsix
path: /home/runner/work/soberjs-vscode/soberjs-vscode/soberjs-vscode-${{ env.extensionVersion }}.vsix
compression-level: 0
if-no-files-found: error

# 既然发布不了就别发布了
# - name: Release #这里有些问题发布不了,不过你可以从artifact下载
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# tag_name: ${{ env.extensionVersion }}
# name: ${{ env.extensionVersion }}
# body_path: CHANGELOG.md
# draft: false
# prerelease: false
# files: | #注意!!!每次更新必须手动更新版本号
# /home/runner/work/soberjs-vscode/soberjs-vscode/soberjs-vscode-${{ env.extensionVersion }}.vsix
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"version": "0.3.0",
"configurations": [
{
"name": "Extension",
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
"Appbar",
"apprat",
"horiz",
"onclick",
"oninput",
"showalign",
"soberjs",
"tbody",
"thead",
"VSIX"
],
"editor.wordWrap": "on",
Expand All @@ -23,7 +27,7 @@
},
"files.eol": "\n",
"files.autoGuessEncoding": true,
"[yaml]": {
"[yml]": {
"editor.tabSize": 2,
"prettier.tabWidth": 2
}
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# 版本记录

## v0.3.0

- 优化了组件的悬停提示
- 增加了 Page 组件
- 增加了 Drawer 组件
- 增加了 Scroll View 组件
- 增加了 Card 组件
- 增加了 Search 组件
- 增加了 Carousel 组件
- 增加了 Tab 组件
- 增加了 Navigation 组件
- 增加了 Appbar 组件
- 增加了 Dialog 组件
- 增加了 Popup 组件
- 增加了 Popup Menu 组件
- 增加了 Snackbar 组件
- 增加了 Tooltip 组件
- 增加了 Badge 组件
- 增加了 Chip 组件
- 增加了 Table 组件
- 修正了工作流无法打包的问题

## v0.2.0

- 根据更新 `v0.2.15` 后的文档修改了一些提示内容和属性
Expand Down
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<img src="https://img.shields.io/github/v/release/lingbopro/soberjs-vscode.svg?style=for-the-badge" alt="Release"/>
</a>
<a href="https://github.com/lingbopro/soberjs-vscode/actions?query=workflow:CI" target="_blank">
<img src="https://img.shields.io/github/actions/workflow/status/lingbopro/soberjs-vscode/CI.yaml?style=for-the-badge" alt="Build status"/>
<img src="https://img.shields.io/github/actions/workflow/status/lingbopro/soberjs-vscode/CI.yml?style=for-the-badge" alt="Build Status"/>
</a>
<a href="https://marketplace.visualstudio.com/items?itemName=lingbopro.soberjs-vscode" target="_blank">
<img src="https://img.shields.io/visual-studio-marketplace/i/lingbopro.soberjs-vscode?style=for-the-badge&logo=visualstudiocode&label=Installs" alt="Visual Studio Marketplace Installs" />
Expand Down Expand Up @@ -44,7 +44,7 @@
- _~~CSS 变量名和枚举值(尚未完成)~~_
- 一点 HTML 代码片段

目前已支持 16 个组件(见下表)
目前已支持 Sober.js 0.2.15 的所有组件(见下表)

<details>
<summary>支持的组件(点击展开)</summary>
Expand All @@ -66,27 +66,27 @@
- [x] 评分 Rate
- [x] 选择框 Picker
- [x] 分割线 Divider
- [ ] 容器
- [ ] 页面 Page
- [ ] 抽屉 Drawer
- [ ] 滚动 Scroll View
- [ ] 卡片 Card
- [ ] 搜索栏 Search
- [ ] 轮播图 Carousel
- [ ] 导航
- [ ] 选项卡 Tab
- [ ] 导航栏 Navigation
- [ ] 应用栏 Appbar
- [ ] 部件
- [ ] 对话框 Dialog
- [ ] 弹出框 Popup
- [ ] 弹出式菜单 Popup Menu
- [ ] 提示框 Snackbar
- [ ] 工具提示 Tooltip
- [ ] 徽章 Badge
- [ ] 纸片 Chip
- [ ] 数据
- [ ] 表格 Table
- [x] 容器
- [x] 页面 Page
- [x] 抽屉 Drawer
- [x] 滚动 Scroll View
- [x] 卡片 Card
- [x] 搜索栏 Search
- [x] 轮播图 Carousel
- [x] 导航
- [x] 选项卡 Tab
- [x] 导航栏 Navigation
- [x] 应用栏 Appbar
- [x] 部件
- [x] 对话框 Dialog
- [x] 弹出框 Popup
- [x] 弹出式菜单 Popup Menu
- [x] 提示框 Snackbar
- [x] 工具提示 Tooltip
- [x] 徽章 Badge
- [x] 纸片 Chip
- [x] 数据
- [x] 表格 Table

</details>

Expand All @@ -100,7 +100,7 @@

## To-do

- [ ] 支持更多组件
- [x] 支持更多组件
- [ ] 完善悬停提示
- [ ] 完成 CSS 变量名和枚举值补全
- [ ] 增加 SVG 图标补全
Expand Down
Loading

0 comments on commit c988ad8

Please sign in to comment.