Skip to content

Commit

Permalink
[stdf]v0.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Aug 31, 2023
1 parent 873504b commit 5afaa8b
Show file tree
Hide file tree
Showing 163 changed files with 15,138 additions and 15,429 deletions.
4 changes: 2 additions & 2 deletions doc/components/icon/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ STDF 部分组件内使用的图标源自 [Remix Icon 图标库](https://remixic
| ri-error-warning-line | Toast |
| ri-information-line | Toast |

可到 `node_modules/stdf/dist/assets/fonts/stdf.remixicon.symbol.svg` 查看由这些图标组成的 SVG Sprites。
可到 `node_modules/stdf/assets/fonts/stdf.remixicon.symbol.svg` 查看由这些图标组成的 SVG Sprites。

可到 `node_modules/stdf/dist/assets/svg_base/` 查看这些图标的 SVG 源文件。
可到 `node_modules/stdf/assets/svg_base/` 查看这些图标的 SVG 源文件。

## 图标名称

Expand Down
4 changes: 2 additions & 2 deletions doc/components/icon/guide_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Here are the icons and their corresponding components:
| ri-error-warning-line | Toast |
| ri-information-line | Toast |

You can find the SVG Sprites composed of these icons in `node_modules/stdf/dist/assets/fonts/stdf.remixicon.symbol.svg`.
You can find the SVG Sprites composed of these icons in `node_modules/stdf/assets/fonts/stdf.remixicon.symbol.svg`.

You can find the SVG source files for these icons in `node_modules/stdf/dist/assets/svg_base/`.
You can find the SVG source files for these icons in `node_modules/stdf/assets/svg_base/`.

## Icon Name

Expand Down
43 changes: 25 additions & 18 deletions doc/guide/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.2.8

- 删除部分组件无用代码。
- 格式化组件代码,方便后续其他参与成员统一代码风格。
- 考虑到组件代码本身体积也不大,还是决定直接将组件源码放入 NPM 包中,方便用户直接查看源码,避免了需要去 GitHub 上查看源码的麻烦。
- 多语言引入路径改回 `stdf/lang/xx_XX`,详见 [国际化](https://stdf.design/#/guide?nav=internation)

## 0.2.7

- 0.2.6 ~ 0.2.7 STDF package 增加 `svelte`,使其可在 SvelteKit 中直接引入使用,关联 [Issues](https://github.com/dufu1991/stdf/issues/9)[!issue|edhub|]
Expand All @@ -15,66 +22,66 @@

## 0.2.1

- 新增了 `create-stdf`,可以快速创建使用 STDF 的工程。(beta 版本,可能存在问题)
- 新增了 `create-stdf`,可以快速创建使用 STDF 的工程。(beta 版本,可能存在问题)

## 0.2.0

- 适配 Svelte 4 同时也兼容 Svelte 3。目前仅需适配一项,即升级部分组件过渡动画,参考 Svelte 4 migration guide - [Transitions are local by default](https://svelte.dev/docs/v4-migration-guide#transitions-are-local-by-default)
- 增强 Swiper 组件,详见 [Swiper](https://stdf.design/#/components?nav=swiper&tab=4)
- 适配 Svelte 4 同时也兼容 Svelte 3。目前仅需适配一项,即升级部分组件过渡动画,参考 Svelte 4 migration guide - [Transitions are local by default](https://svelte.dev/docs/v4-migration-guide#transitions-are-local-by-default)
- 增强 Swiper 组件,详见 [Swiper](https://stdf.design/#/components?nav=swiper&tab=4)

## 0.1.5

- 修改组件内部的触摸事件为指针事件,使其同时支持鼠标、触控笔和触摸等各种输入方式,包含组件:BottomSheet、IndexBar、Slider、Swiper。关联 [Issues](https://github.com/dufu1991/stdf/issues/5)[!issue|shenliqing|]
- 修改组件内部的触摸事件为指针事件,使其同时支持鼠标、触控笔和触摸等各种输入方式,包含组件:BottomSheet、IndexBar、Slider、Swiper。关联 [Issues](https://github.com/dufu1991/stdf/issues/5)[!issue|shenliqing|]

## 0.1.4

- 更新 NPM README。
- 更新 NPM README。

## 0.1.3

- Pagination 新增 Props。详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=4)
- Pagination 新增 Props。详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=4)

## 0.1.2

- Pagination 细节优化。详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=4)
- Pagination 细节优化。详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=4)

## 0.1.1

- 修复 Pagination。
- 修复 Pagination。

## 0.1.0

- 新增 Pagination 组件,详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=0)
- 新增 Pagination 组件,详见 [Pagination](https://stdf.design/#/components?nav=pagination&tab=0)

## 0.0.27

- 0.0.12 ~ 0.0.27 版本无实质更新,仅用于测试 GitHub Action。
- 0.0.12 ~ 0.0.27 版本无实质更新,仅用于测试 GitHub Action。

## 0.0.11

- 优化 Input,详见 [Input](https://stdf.design/#/components?nav=input&tab=4)
- 优化 Input,详见 [Input](https://stdf.design/#/components?nav=input&tab=4)

## 0.0.10

- 优化 Cell,详见 [Cell](https://stdf.design/#/components?nav=cell&tab=4)
- 优化 Cell,详见 [Cell](https://stdf.design/#/components?nav=cell&tab=4)

## 0.0.9

- 修复 AsyncPicker 文件路径。
- 修复 AsyncPicker 文件路径。

## 0.0.8

- 修复 Calendar,详见 [Calendar](https://stdf.design/#/components?nav=calendar&tab=4)
- 修复 Calendar,详见 [Calendar](https://stdf.design/#/components?nav=calendar&tab=4)

## 0.0.7

- 多语言包 Context 的值由 `lang` 改为 `STDF_lang`,避免与工程内其他语言包名称冲突。
- 完善站点快速上手中配置 Tailwind CSS 的说明,关联 [Issues](https://github.com/dufu1991/stdf/issues/1)[!issue|gavinning|][!contribute|yuedanlabs|]
- 多语言包 Context 的值由 `lang` 改为 `STDF_lang`,避免与工程内其他语言包名称冲突。
- 完善站点快速上手中配置 Tailwind CSS 的说明,关联 [Issues](https://github.com/dufu1991/stdf/issues/1)[!issue|gavinning|][!contribute|yuedanlabs|]

## 0.0.6

- 新增 Loading 类型,详见 [Loading](https://stdf.design/#/components?nav=loading&tab=4)
- 新增 Loading 类型,详见 [Loading](https://stdf.design/#/components?nav=loading&tab=4)

## 0.0.1

- 上线了。
- 上线了。
45 changes: 26 additions & 19 deletions doc/guide/changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
## 0.2.8

- Removed unnecessary code from some components.
- Formatted component code to facilitate consistent code style among other contributors in the future.
- Considering that the size of the component code itself is not large, we decided to directly include the component source code in the NPM package. This makes it easier for users to view the source code directly and avoids the hassle of having to view the source code on GitHub.
- Reverted the language import path back to `stdf/lang/xx_XX`, as described in the [Internationalization](https://stdf.design/#/guide?nav=internation) section.

## 0.2.7

- 0.2.6 ~ 0.2.7 Added `svelte` to STDF package, allowing it to be directly imported and used in SvelteKit. Related [Issues](https://github.com/dufu1991/stdf/issues/9). [!issue|edhub|]
-

## 0.2.5

- The default value of `path` in the Icon component has been modified. Please refer to the [Icon](https://stdf.design/#/components?nav=icon&tab=4) section for more details.
Expand All @@ -15,66 +22,66 @@

## 0.2.1

- Added `create-stdf` to quickly create a project using STDF. (beta version, may have issues)
- Added `create-stdf` to quickly create a project using STDF. (beta version, may have issues)

## 0.2.0

- Adapted for Svelte 4 while remaining compatible with Svelte 3. Currently, only one item needs to be adapted, which is to upgrade the transition animation of some components. Refer to the Svelte 4 migration guide - [Transitions are local by default](https://svelte.dev/docs/v4-migration-guide#transitions-are-local-by-default).
- Enhanced the Swiper component. For details, see [Swiper](https://stdf.design/#/components?nav=swiper&tab=4).
- Adapted for Svelte 4 while remaining compatible with Svelte 3. Currently, only one item needs to be adapted, which is to upgrade the transition animation of some components. Refer to the Svelte 4 migration guide - [Transitions are local by default](https://svelte.dev/docs/v4-migration-guide#transitions-are-local-by-default).
- Enhanced the Swiper component. For details, see [Swiper](https://stdf.design/#/components?nav=swiper&tab=4).

## 0.1.5

- Modify the touch events in the components to pointer events, enabling support for various input methods such as mouse, stylus, and touch. The components include BottomSheet, IndexBar, Slider, and Swiper. Related to [Issues](https://github.com/dufu1991/stdf/issues/5). [!issue|shenliqing|]
- Modify the touch events in the components to pointer events, enabling support for various input methods such as mouse, stylus, and touch. The components include BottomSheet, IndexBar, Slider, and Swiper. Related to [Issues](https://github.com/dufu1991/stdf/issues/5). [!issue|shenliqing|]

## 0.1.4

- Update NPM README.
- Update NPM README.

## 0.1.3

- Pagination add Props. Please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=4).
- Pagination add Props. Please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=4).

## 0.1.2

- Pagination fine-tuning. Please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=4).
- Pagination fine-tuning. Please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=4).

## 0.1.1

- Fix Pagination.
- Fix Pagination.

## 0.1.0

- Add Pagination component, please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=0).
- Add Pagination component, please see [Pagination](https://stdf.design/#/components?nav=pagination&tab=0).

## 0.0.27

- 0.0.12 ~ 0.0.27 versions have no substantial updates, only for testing GitHub Action.
- 0.0.12 ~ 0.0.27 versions have no substantial updates, only for testing GitHub Action.

## 0.0.11

- Optimize Input, please see [Input](https://stdf.design/#/components?nav=input&tab=4).
- Optimize Input, please see [Input](https://stdf.design/#/components?nav=input&tab=4).

## 0.0.10

- Optimize Cell, please see [Cell](https://stdf.design/#/components?nav=cell&tab=4).
- Optimize Cell, please see [Cell](https://stdf.design/#/components?nav=cell&tab=4).

## 0.0.9

- Fix AsyncPicker file path.
- Fix AsyncPicker file path.

## 0.0.8

- Fix Calendar, please see [Calendar](https://stdf.design/#/components?nav=calendar&tab=4).
- Fix Calendar, please see [Calendar](https://stdf.design/#/components?nav=calendar&tab=4).

## 0.0.7

- The value of the Context for the multilingual package has been changed from "lang" to "STDF_lang" to avoid conflicts with the names of other language packages within the project.
- Improve the instructions for quickly configuring Tailwind CSS in the site, link to [Issues](https://github.com/dufu1991/stdf/issues/1).[!issue|gavinning|][!contribute|yuedanlabs|]
- The value of the Context for the multilingual package has been changed from "lang" to "STDF_lang" to avoid conflicts with the names of other language packages within the project.
- Improve the instructions for quickly configuring Tailwind CSS in the site, link to [Issues](https://github.com/dufu1991/stdf/issues/1).[!issue|gavinning|][!contribute|yuedanlabs|]

## 0.0.6

- Add Loading type, For more information, please see [Loading](https://stdf.design/#/components?nav=loading&tab=4).
- Add Loading type, For more information, please see [Loading](https://stdf.design/#/components?nav=loading&tab=4).

## 0.0.1

- Online now.
- Online now.
4 changes: 2 additions & 2 deletions doc/guide/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ STDF 部分组件内使用的图标源自 [Remix Icon 图标库](https://remixic
| ri-error-warning-line | Toast |
| ri-information-line | Toast |

可到 `node_modules/stdf/dist/assets/fonts/stdf.remixicon.symbol.svg` 查看由这些图标组成的 SVG Sprites。
可到 `node_modules/stdf/assets/fonts/stdf.remixicon.symbol.svg` 查看由这些图标组成的 SVG Sprites。

可到 `node_modules/stdf/dist/assets/svg_base/` 查看这些图标的 SVG 源文件。
可到 `node_modules/stdf/assets/svg_base/` 查看这些图标的 SVG 源文件。
4 changes: 2 additions & 2 deletions doc/guide/icon_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ Here are the icons and their corresponding components:
| ri-error-warning-line | Toast |
| ri-information-line | Toast |

You can find the SVG Sprites composed of these icons in `node_modules/stdf/dist/assets/fonts/stdf.remixicon.symbol.svg`.
You can find the SVG Sprites composed of these icons in `node_modules/stdf/assets/fonts/stdf.remixicon.symbol.svg`.

You can find the SVG source files for these icons in `node_modules/stdf/dist/assets/svg_base/`.
You can find the SVG source files for these icons in `node_modules/stdf/assets/svg_base/`.
2 changes: 1 addition & 1 deletion doc/guide/internation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ STDF 组件使用 Svelte 的 [Context](https://svelte.dev/docs#run-time-svelte-s
<!-- App.svelte -->
<script>
import { setContext } from 'svelte'; // 引入 setContext
import en_US from 'stdf/dist/lang/en_US'; // 导入语言文件
import en_US from 'stdf/lang/en_US'; // 导入语言文件
setContext('STDF_lang', en_US); // 设置语言
</script>
Expand Down
2 changes: 1 addition & 1 deletion doc/guide/internation_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The STDF component uses Svelte's [Context](https://svelte.dev/docs#run-time-svel
<!-- App.svelte -->
<script>
import { setContext } from 'svelte'; // import setContext
import en_US from 'stdf/dist/lang/en_US'; // import language file
import en_US from 'stdf/lang/en_US'; // import language file
setContext('STDF_lang', en_US); // set language
</script>
Expand Down
4 changes: 2 additions & 2 deletions doc/guide/quickStart.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
```

2.`tailwind.config.js` 文件内添加模板文件。注意 content 内添加`./node_modules/stdf/dist/**/*.svelte`,这是 STDF 的组件位置。其中 theme 的 colors 可以根据自己的需要进行修改。可参考 [STDF 指南 - 色彩](/#/guide?nav=color)
1.`tailwind.config.js` 文件内添加模板文件。注意 content 内添加`./node_modules/stdf/**/*.svelte`,这是 STDF 的组件位置。其中 theme 的 colors 可以根据自己的需要进行修改。可参考 [STDF 指南 - 色彩](/#/guide?nav=color)

注意:Tailwind 配置文件中的 content 即表示所有可能用到 Tailwind 的文件,请不要遗漏。darkMode 请设置为 'class',这是为了配合 STDF 的暗黑模式。

```javascript
/** @type {import('tailwindcss').Config} */
module.exports = {
// ...
content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/dist/**/*.svelte'],
content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/**/*.svelte'],
theme: {
colors: {
// 主题色
Expand Down
4 changes: 2 additions & 2 deletions doc/guide/quickStart_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
```

2. Add a template file within the `tailwind.config.js` file. Note that `./node_modules/stdf/dist/**/*.svelte` is added in content, which is the component location of STDF.The colors of theme can be modified according to its own needs. Reference [STDF Guide - Color](/#/Guide?nav=color).
1. Add a template file within the `tailwind.config.js` file. Note that `./node_modules/stdf/**/*.svelte` is added in content, which is the component location of STDF.The colors of theme can be modified according to its own needs. Reference [STDF Guide - Color](/#/Guide?nav=color).

Note: The 'content' in the Tailwind configuration file represents all files that may use Tailwind, please do not omit any files. Please set darkMode to 'class' to match STDF's dark mode.

```javascript
/** @type {import('tailwindcss').Config} */
module.exports = {
// ...
content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/dist/**/*.svelte'],
content: ['./index.html', './src/**/*.svelte', './node_modules/stdf/**/*.svelte'],
theme: {
colors: {
// Theme Color
Expand Down

0 comments on commit 5afaa8b

Please sign in to comment.