-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github Actions auto commit: update demo from stdf.
- Loading branch information
GitHub Actions
authored and
GitHub Actions
committed
Aug 12, 2024
0 parents
commit ce3eb89
Showing
281 changed files
with
18,119 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 将静态内容部署到 GitHub Pages 的简易工作流程 | ||
name: RELEASES DEMO | ||
|
||
on: | ||
# 仅在推送到默认分支时触发工作流 | ||
push: | ||
branches: | ||
- main | ||
|
||
# 这个选项可以使你手动在 Action tab 页面触发工作流 | ||
workflow_dispatch: | ||
|
||
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。 | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# 允许一个并发的部署 | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# 单次部署的工作描述 | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'npm' | ||
- name: Install dependencies and build | ||
env: | ||
BASE_PATH: '/${{ github.event.repository.name }}' | ||
run: | | ||
npm i | ||
npm run build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload dist folder | ||
path: 'build/' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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 @@ | ||
demo.stdf.design |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 dufu1991 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,31 @@ | ||
# STDF Demo | ||
|
||
## Introduction | ||
|
||
This is a demo project for [STDF](https://stdf.design). | ||
|
||
It is built with [SvelteKit](https://kit.svelte.dev) + [Tailwind CSS](https://tailwindcss.com) + [STDF](https://stdf.design) . | ||
|
||
## Getting Started | ||
|
||
Install the dependencies... | ||
|
||
```bash | ||
pnpm i | ||
# or | ||
npm i | ||
# or | ||
bun i | ||
``` | ||
|
||
Start the development server... | ||
|
||
```bash | ||
pnpm dev | ||
# or | ||
npm run dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
If you wish to start the development server with different components or in English language, please refer to the scripts section in `package.json`. |
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,102 @@ | ||
{ | ||
"name": "demo-stdf", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"dev_en": "vite --mode english", | ||
"button": "vite --mode button", | ||
"icon": "vite --mode icon", | ||
"navBar": "vite --mode navBar", | ||
"divider": "vite --mode divider", | ||
"cell": "vite --mode cell", | ||
"switch": "vite --mode switch", | ||
"avatar": "vite --mode avatar", | ||
"tabs": "vite --mode tabs", | ||
"tabBar": "vite --mode tabBar", | ||
"steps": "vite --mode steps", | ||
"indexBar": "vite --mode indexBar", | ||
"radio": "vite --mode radio", | ||
"checkbox": "vite --mode checkbox", | ||
"input": "vite --mode input", | ||
"grids": "vite --mode grids", | ||
"swiper": "vite --mode swiper", | ||
"placeholder": "vite --mode placeholder", | ||
"skeleton": "vite --mode skeleton", | ||
"rate": "vite --mode rate", | ||
"slider": "vite --mode slider", | ||
"badge": "vite --mode badge", | ||
"noticeBar": "vite --mode noticeBar", | ||
"progress": "vite --mode progress", | ||
"progressLoop": "vite --mode progressLoop", | ||
"mask": "vite --mode mask", | ||
"toast": "vite --mode toast", | ||
"loading": "vite --mode loading", | ||
"popup": "vite --mode popup", | ||
"bottomSheet": "vite --mode bottomSheet", | ||
"modal": "vite --mode modal", | ||
"dialog": "vite --mode dialog", | ||
"actionSheet": "vite --mode actionSheet", | ||
"picker": "vite --mode picker", | ||
"asyncPicker": "vite --mode asyncPicker", | ||
"timePicker": "vite --mode timePicker", | ||
"calendar": "vite --mode calendar", | ||
"pagination": "vite --mode pagination", | ||
"numKeyboard": "vite --mode numKeyboard", | ||
"button_en": "vite --mode button_en", | ||
"icon_en": "vite --mode icon_en", | ||
"navBar_en": "vite --mode navBar_en", | ||
"divider_en": "vite --mode divider_en", | ||
"cell_en": "vite --mode cell_en", | ||
"switch_en": "vite --mode switch_en", | ||
"avatar_en": "vite --mode avatar_en", | ||
"tabs_en": "vite --mode tabs_en", | ||
"tabBar_en": "vite --mode tabBar_en", | ||
"steps_en": "vite --mode steps_en", | ||
"indexBar_en": "vite --mode indexBar_en", | ||
"radio_en": "vite --mode radio_en", | ||
"checkbox_en": "vite --mode checkbox_en", | ||
"input_en": "vite --mode input_en", | ||
"grids_en": "vite --mode grids_en", | ||
"swiper_en": "vite --mode swiper_en", | ||
"placeholder_en": "vite --mode placeholder_en", | ||
"skeleton_en": "vite --mode skeleton_en", | ||
"rate_en": "vite --mode rate_en", | ||
"slider_en": "vite --mode slider_en", | ||
"badge_en": "vite --mode badge_en", | ||
"noticeBar_en": "vite --mode noticeBar_en", | ||
"progress_en": "vite --mode progress_en", | ||
"progressLoop_en": "vite --mode progressLoop_en", | ||
"mask_en": "vite --mode mask_en", | ||
"toast_en": "vite --mode toast_en", | ||
"loading_en": "vite --mode loading_en", | ||
"popup_en": "vite --mode popup_en", | ||
"bottomSheet_en": "vite --mode bottomSheet_en", | ||
"modal_en": "vite --mode modal_en", | ||
"dialog_en": "vite --mode dialog_en", | ||
"actionSheet_en": "vite --mode actionSheet_en", | ||
"picker_en": "vite --mode picker_en", | ||
"asyncPicker_en": "vite --mode asyncPicker_en", | ||
"timePicker_en": "vite --mode timePicker_en", | ||
"calendar_en": "vite --mode calendar_en", | ||
"pagination_en": "vite --mode pagination_en", | ||
"numKeyboard_en": "vite --mode numKeyboard_en" | ||
}, | ||
"devDependencies": { | ||
"@sveltejs/adapter-static": "^3.0.1", | ||
"@sveltejs/kit": "^2.5.4", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.2", | ||
"autoprefixer": "^10.4.19", | ||
"postcss": "^8.4.38", | ||
"rollup-plugin-stdf-icon": "^0.0.15", | ||
"stdf": "^0.4.7", | ||
"svelte": "^4.2.12", | ||
"tailwindcss": "^3.4.1", | ||
"vite": "^5.2.3" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"svelte-confetti": "^1.3.2" | ||
} | ||
} |
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,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
Oops, something went wrong.