-
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 branch information
Showing
105 changed files
with
272 additions
and
79 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,45 @@ | ||
name: demo-sl-nuxt | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'v-demo/demo-sl/sl-nuxt/**' | ||
|
||
env: | ||
WORKSPACE: 'v-demo/demo-sl/sl-nuxt' | ||
IMAGE_NAME: 'ghcr.io/lkzc19/demo-sl-nuxt' | ||
|
||
jobs: | ||
sl-nuxt-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
- name: NPM | ||
run: | | ||
cd ${{ env.WORKSPACE }} | ||
npm install | ||
npm run build | ||
- name: 'Set up Docker Buildx' | ||
uses: docker/setup-buildx-action@v2 | ||
- name: 'Login to GitHub Container Registry' | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: 'Build and push docker image' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ${{ env.WORKSPACE }} | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64 | ||
push: true | ||
tags: | | ||
${{ env.IMAGE_NAME }}:latest |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
# demo-fhm | ||
|
||
fhm(Five Hundred Miles) 离歌 |
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,75 +1,19 @@ | ||
# Nuxt 3 Minimal Starter | ||
# fs-nuxt | ||
|
||
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. | ||
|
||
## Setup | ||
|
||
Make sure to install the dependencies: | ||
# 项目所需的一些命令 | ||
|
||
```bash | ||
# npm | ||
# 依赖 | ||
npm install | ||
|
||
# pnpm | ||
pnpm install | ||
|
||
# yarn | ||
yarn install | ||
|
||
# bun | ||
bun install | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on `http://localhost:3000`: | ||
|
||
```bash | ||
# npm | ||
# 开发 | ||
npm run dev | ||
|
||
# pnpm | ||
pnpm run dev | ||
|
||
# yarn | ||
yarn dev | ||
|
||
# bun | ||
bun run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
# npm | ||
# 打包 | ||
npm run build | ||
|
||
# pnpm | ||
pnpm run build | ||
|
||
# yarn | ||
yarn build | ||
|
||
# bun | ||
bun run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
# npm | ||
# 打包后预览 | ||
npm run preview | ||
|
||
# pnpm | ||
pnpm run preview | ||
|
||
# yarn | ||
yarn preview | ||
|
||
# bun | ||
bun run preview | ||
``` | ||
|
||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. | ||
# 文档 | ||
|
||
- [nuxt3](https://nuxt.com/) | ||
- [tailwind](https://tailwind.nodejs.cn/) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
v-demo/demo-fs/fs-spring/src/main/kotlin/org/example/config/WebMvcConfig.kt
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,17 @@ | ||
package org.example.config | ||
|
||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.web.servlet.config.annotation.CorsRegistry | ||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer | ||
|
||
@Configuration | ||
class WebMvcConfig : WebMvcConfigurer { | ||
|
||
override fun addCorsMappings(registry: CorsRegistry) { | ||
registry | ||
.addMapping("/**") | ||
.allowedOrigins("*") | ||
.allowedMethods("*") | ||
.allowedHeaders("*") | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
v-demo/demo-fs/fs-spring/src/main/kotlin/org/example/controller/TestController.kt
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,13 @@ | ||
package org.example.controller | ||
|
||
import org.springframework.web.bind.annotation.GetMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@RestController | ||
class TestController { | ||
|
||
@GetMapping("/ping") | ||
fun ping(): String { | ||
return "pong..." | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
v-demo/demo-fs/fs-spring/src/main/kotlin/org/example/service/FileService.kt
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,4 @@ | ||
package org.example.service | ||
|
||
interface FileService { | ||
} |
6 changes: 6 additions & 0 deletions
6
v-demo/demo-fs/fs-spring/src/main/kotlin/org/example/service/impl/FileServiceImpl.kt
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 @@ | ||
package org.example.service.impl | ||
|
||
import org.example.service.FileService | ||
|
||
class FileServiceImpl : FileService { | ||
} |
1 change: 0 additions & 1 deletion
1
v-demo/demo-fs/fs-spring/src/main/resources/application.properties
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
v-demo/demo-fs/fs-spring/src/main/resources/application.yml
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,19 @@ | ||
server: | ||
port: 3000 | ||
|
||
spring: | ||
application: | ||
name: fs-spring | ||
profiles: | ||
active: win | ||
servlet: | ||
multipart: | ||
max-file-size: 50MB # 设置单个文件的最大大小。如果上传的文件超过这个大小,将会抛出异常。 | ||
max-request-size: 50MB # 设置整个请求的最大大小。这包括所有的文件和其他表单数据。如果整个请求的大小超过这个值,将会抛出异常。 | ||
# file-size-threshold: 10MB # 这个属性用于设置写入磁盘的文件的大小阈值。如果上传的文件大小超过这个阈值,那么文件将会被写入到磁盘,而不是保存在内存中。这可以防止大文件上传消耗过多的内存。 | ||
# location: C:/tmp/tmp # 这个属性用于设置临时文件的存储位置。当文件大小超过 file-size-threshold 时,文件将会被写入到这个位置。 | ||
mvc: | ||
static-path-pattern: /file/** | ||
web: | ||
resources: | ||
static-locations: file:${vitamin.upload-path} |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Oops, something went wrong.