diff --git a/apps/mx-space-theme-shiro/1.2.3/data.yml b/apps/mx-space-theme-shiro/1.2.3/data.yml new file mode 100644 index 000000000..22300ff45 --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/data.yml @@ -0,0 +1,45 @@ +additionalProperties: + formFields: + - default: "/home/mx-space-shiro" + edit: true + envKey: MX_SERVER_SHIRO_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 2323 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "http://127.0.0.1:2333/api/v2" + edit: true + envKey: NEXT_PUBLIC_API_URL + labelZh: API 地址 + labelEn: API URL + required: true + type: text + - default: "http://127.0.0.1:2333/" + edit: true + envKey: NEXT_PUBLIC_GATEWAY_URL + labelZh: 网关地址 + labelEn: Gateway URL + required: true + type: text + - default: "" + edit: true + envKey: TMDB_API_KEY + labelZh: TMDB API KEY + labelEn: TMDB API KEY + required: false + type: text + - default: "" + edit: true + envKey: GH_TOKEN + labelZh: Github Token + labelEn: Github Token + required: false + type: text diff --git a/apps/mx-space-theme-shiro/1.2.3/docker-compose.yml b/apps/mx-space-theme-shiro/1.2.3/docker-compose.yml new file mode 100644 index 000000000..cbc055e50 --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/docker-compose.yml @@ -0,0 +1,23 @@ +networks: + 1panel-network: + external: true + +services: + mx-server-shiro: + image: innei/shiro:1.2.3 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:2323 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${MX_SERVER_SHIRO_ROOT_PATH}/public:/app/public + environment: + - TZ=Asia/Shanghai + - NEXT_SHARP_PATH=/usr/local/lib/node_modules/sharp diff --git a/apps/mx-space-theme-shiro/1.2.3/envs/default.env b/apps/mx-space-theme-shiro/1.2.3/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/mx-space-theme-shiro/1.2.3/envs/global.env b/apps/mx-space-theme-shiro/1.2.3/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/mx-space-theme-shiro/1.2.3/scripts/init.sh b/apps/mx-space-theme-shiro/1.2.3/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/mx-space-theme-shiro/1.2.3/scripts/uninstall.sh b/apps/mx-space-theme-shiro/1.2.3/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/mx-space-theme-shiro/1.2.3/scripts/upgrade.sh b/apps/mx-space-theme-shiro/1.2.3/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/mx-space-theme-shiro/1.2.3/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/mx-space-theme-shiro/README.md b/apps/mx-space-theme-shiro/README.md new file mode 100644 index 000000000..bd4cf792b --- /dev/null +++ b/apps/mx-space-theme-shiro/README.md @@ -0,0 +1,37 @@ +# MixSpace Shiro (主题) + +Mix Space 是一个现代化的前后端分离个人空间解决方案,也可以作为个人博客使用。 + +![MixSpace](https://file.lifebus.top/imgs/mx-space_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 特性 + +### 基于 Next.js + +内置代码分割和图片优化,服务器端渲染(SSR)支持,性能强劲,速度快,SEO 友好。 + +### 前端轻量快速 + +其前端主题 Shiro 在 LightHouse 中表现优秀,Performance 和 Best practice 指数均大于 90%。 + +### UI 现代化 + +前端后端用户界面设计现代化,简洁而不简单,让你的体验更加流畅。 + +### Markdown 语法支持 + +Mix Space 原生支持 Markdown 语法,也支持自定义 Markdown 内语法,您可以使用自定义语法来丰富您的内容。 + +### 后台云函数配置 + +无限扩展、无限可能,通过 Core 内置的云函数配置功能实现歌单解析,追番列表等功能,还有更多。 + +### 动态化配置前端 + +你可以在后台设置前端的配置,比如网站名称,网站描述,网站图标,以及一些其他配置。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/mx-space-theme-shiro/data.yml b/apps/mx-space-theme-shiro/data.yml new file mode 100644 index 000000000..56c5f8a8d --- /dev/null +++ b/apps/mx-space-theme-shiro/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: mx-space-theme-shiro + name: MixSpace (主题-Shiro) + tags: + - WebSite + - Local + shortDescZh: 前后端分离个人空间解决方案 + shortDescEn: A frontend-backend separation personal space solution + type: website + crossVersionUpdate: true + limit: 0 + website: https://mx-space.js.org/ + github: https://github.com/mx-space/ + document: https://mx-space.js.org/ diff --git a/apps/mx-space-theme-shiro/logo.png b/apps/mx-space-theme-shiro/logo.png new file mode 100644 index 000000000..e25d3a186 Binary files /dev/null and b/apps/mx-space-theme-shiro/logo.png differ