Skip to content

Commit 1173537

Browse files
GitHub ActionsGitHub Actions
GitHub Actions
authored and
GitHub Actions
committed
Github Actions auto commit: update demo from stdf.
0 parents  commit 1173537

File tree

281 files changed

+18118
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+18118
-0
lines changed

.github/workflows/releases-demo.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# 将静态内容部署到 GitHub Pages 的简易工作流程
2+
name: RELEASES DEMO
3+
4+
on:
5+
# 仅在推送到默认分支时触发工作流
6+
push:
7+
branches:
8+
- main
9+
10+
# 这个选项可以使你手动在 Action tab 页面触发工作流
11+
workflow_dispatch:
12+
13+
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# 允许一个并发的部署
20+
concurrency:
21+
group: 'pages'
22+
cancel-in-progress: true
23+
24+
jobs:
25+
# 单次部署的工作描述
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Set up Node
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20.x
38+
- name: Install dependencies and build
39+
env:
40+
BASE_PATH: '/${{ github.event.repository.name }}'
41+
run: |
42+
npm i
43+
npm run build
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v4
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
# Upload dist folder
50+
path: 'build/'
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
demo.stdf.design

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 dufu1991
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# STDF Demo
2+
3+
## Introduction
4+
5+
This is a demo project for [STDF](https://stdf.design).
6+
7+
It is built with [SvelteKit](https://kit.svelte.dev) + [Tailwind CSS](https://tailwindcss.com) + [STDF](https://stdf.design) .
8+
9+
## Getting Started
10+
11+
Install the dependencies...
12+
13+
```sh
14+
pnpm i
15+
# or
16+
npm i
17+
# or
18+
bun i
19+
```
20+
21+
Start the development server...
22+
23+
```sh
24+
pnpm dev
25+
# or
26+
npm run dev
27+
# or
28+
bun dev
29+
```
30+
31+
If you wish to start the development server with different components or in English language, please refer to the scripts section in `package.json`.

package.json

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"name": "demo-stdf",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"dev": "vite dev",
6+
"build": "vite build",
7+
"preview": "vite preview",
8+
"dev_en": "vite --mode english",
9+
"button": "vite --mode button",
10+
"icon": "vite --mode icon",
11+
"navBar": "vite --mode navBar",
12+
"divider": "vite --mode divider",
13+
"cell": "vite --mode cell",
14+
"switch": "vite --mode switch",
15+
"avatar": "vite --mode avatar",
16+
"tabs": "vite --mode tabs",
17+
"tabBar": "vite --mode tabBar",
18+
"steps": "vite --mode steps",
19+
"indexBar": "vite --mode indexBar",
20+
"radio": "vite --mode radio",
21+
"checkbox": "vite --mode checkbox",
22+
"input": "vite --mode input",
23+
"grids": "vite --mode grids",
24+
"swiper": "vite --mode swiper",
25+
"placeholder": "vite --mode placeholder",
26+
"skeleton": "vite --mode skeleton",
27+
"rate": "vite --mode rate",
28+
"slider": "vite --mode slider",
29+
"badge": "vite --mode badge",
30+
"noticeBar": "vite --mode noticeBar",
31+
"progress": "vite --mode progress",
32+
"progressLoop": "vite --mode progressLoop",
33+
"mask": "vite --mode mask",
34+
"toast": "vite --mode toast",
35+
"loading": "vite --mode loading",
36+
"popup": "vite --mode popup",
37+
"bottomSheet": "vite --mode bottomSheet",
38+
"modal": "vite --mode modal",
39+
"dialog": "vite --mode dialog",
40+
"actionSheet": "vite --mode actionSheet",
41+
"picker": "vite --mode picker",
42+
"asyncPicker": "vite --mode asyncPicker",
43+
"timePicker": "vite --mode timePicker",
44+
"calendar": "vite --mode calendar",
45+
"pagination": "vite --mode pagination",
46+
"numKeyboard": "vite --mode numKeyboard",
47+
"button_en": "vite --mode button_en",
48+
"icon_en": "vite --mode icon_en",
49+
"navBar_en": "vite --mode navBar_en",
50+
"divider_en": "vite --mode divider_en",
51+
"cell_en": "vite --mode cell_en",
52+
"switch_en": "vite --mode switch_en",
53+
"avatar_en": "vite --mode avatar_en",
54+
"tabs_en": "vite --mode tabs_en",
55+
"tabBar_en": "vite --mode tabBar_en",
56+
"steps_en": "vite --mode steps_en",
57+
"indexBar_en": "vite --mode indexBar_en",
58+
"radio_en": "vite --mode radio_en",
59+
"checkbox_en": "vite --mode checkbox_en",
60+
"input_en": "vite --mode input_en",
61+
"grids_en": "vite --mode grids_en",
62+
"swiper_en": "vite --mode swiper_en",
63+
"placeholder_en": "vite --mode placeholder_en",
64+
"skeleton_en": "vite --mode skeleton_en",
65+
"rate_en": "vite --mode rate_en",
66+
"slider_en": "vite --mode slider_en",
67+
"badge_en": "vite --mode badge_en",
68+
"noticeBar_en": "vite --mode noticeBar_en",
69+
"progress_en": "vite --mode progress_en",
70+
"progressLoop_en": "vite --mode progressLoop_en",
71+
"mask_en": "vite --mode mask_en",
72+
"toast_en": "vite --mode toast_en",
73+
"loading_en": "vite --mode loading_en",
74+
"popup_en": "vite --mode popup_en",
75+
"bottomSheet_en": "vite --mode bottomSheet_en",
76+
"modal_en": "vite --mode modal_en",
77+
"dialog_en": "vite --mode dialog_en",
78+
"actionSheet_en": "vite --mode actionSheet_en",
79+
"picker_en": "vite --mode picker_en",
80+
"asyncPicker_en": "vite --mode asyncPicker_en",
81+
"timePicker_en": "vite --mode timePicker_en",
82+
"calendar_en": "vite --mode calendar_en",
83+
"pagination_en": "vite --mode pagination_en",
84+
"numKeyboard_en": "vite --mode numKeyboard_en"
85+
},
86+
"devDependencies": {
87+
"@sveltejs/adapter-static": "^3.0.1",
88+
"@sveltejs/kit": "^2.5.4",
89+
"@sveltejs/vite-plugin-svelte": "^3.0.2",
90+
"autoprefixer": "^10.4.19",
91+
"postcss": "^8.4.38",
92+
"rollup-plugin-stdf-icon": "^0.0.15",
93+
"stdf": "^0.4.7",
94+
"svelte": "^4.2.12",
95+
"tailwindcss": "^3.4.1",
96+
"vite": "^5.2.3"
97+
},
98+
"type": "module",
99+
"dependencies": {
100+
"svelte-confetti": "^1.3.2"
101+
}
102+
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

0 commit comments

Comments
 (0)