-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from biaov/feature/20230908-release
Feature/20230908 release
- Loading branch information
Showing
65 changed files
with
971 additions
and
624 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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
# ecosystem - 未上线 · 开发中 | ||
|
||
一个简单的生态系统,包含 APP,H5,微信小程序,控制台,服务端 😄 | ||
|
||
<h2 align="center"> | ||
<a href="https://github.com/biaov/ecosystem"><img src="https://img.shields.io/badge/version-v1.0.0-blue" /></a> | ||
<a href="https://github.com/biaov/ecosystem/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" /></a> | ||
</h2> | ||
|
||
## 项目结构 | ||
|
||
- `admin`: `vite + react` 控制台 | ||
- `mobile`: `vite + uni-app`,包含 APP, H5, 微信小程序 | ||
- `server`: `vite + node` 服务端,包含控制台和 APP 的接口 | ||
|
||
## 项目启动 | ||
|
||
### 下载项目 | ||
|
||
```sh | ||
git clone https://github.com/biaov/ecosystem.git --depth=1 | ||
``` | ||
|
||
### 项目运行文档 | ||
|
||
- [控制台](https://github.com/biaov/ecosystem/blob/main/admin/README.md) | ||
- [移动端](https://github.com/biaov/ecosystem/blob/main/mobile/README.md) | ||
- [服务端](https://github.com/biaov/ecosystem/blob/main/server/README.md) | ||
|
||
## 演示地址 | ||
|
||
- [控制台](http://ecosystem.biaov.cn/admin/) | ||
- 微信小程序搜索 `ecosystem` | ||
- [H5](http://ecosystem.biaov.cn/) | ||
- [APP](https://github.com/biaov/ecosystem/releases) | ||
- [服务端接口文档](https://www.showdoc.com.cn/2302761390308442/10396968490372348) | ||
|
||
## 贡献者们 | ||
|
||
[![贡献者们](https://contrib.rocks/image?repo=biaov/ecosystem)](https://github.com/biaov/ecosystem/graphs/contributors) | ||
# ecosystem | ||
|
||
一个简单的生态系统,包含 APP,H5,微信小程序,控制台,服务端 😄 | ||
|
||
<h2 align="center"> | ||
<a href="https://github.com/biaov/ecosystem"><img src="https://img.shields.io/badge/version-v1.0.0-blue" /></a> | ||
<a href="https://github.com/biaov/ecosystem/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" /></a> | ||
</h2> | ||
|
||
## 项目结构 | ||
|
||
- `admin`: `vite + react` 控制台 | ||
- `mobile`: `vite + uni-app` 包含 APP, H5, 微信小程序 | ||
- `server`: `vite + node` 服务端,包含控制台和 APP 的接口 | ||
|
||
## 项目启动 | ||
|
||
### 下载项目 | ||
|
||
```sh | ||
git clone https://github.com/biaov/ecosystem.git --depth=1 | ||
``` | ||
|
||
### 项目运行文档 | ||
|
||
- [控制台](https://github.com/biaov/ecosystem/blob/main/admin/README.md) | ||
- [移动端](https://github.com/biaov/ecosystem/blob/main/mobile/README.md) | ||
- [服务端](https://github.com/biaov/ecosystem/blob/main/server/README.md) | ||
|
||
## 演示地址 | ||
|
||
- [控制台](http://ecosystem.biaov.cn/admin/) | ||
- 微信小程序搜索 `ecosystem` | ||
- [H5](http://ecosystem.biaov.cn/) | ||
- [APP](https://github.com/biaov/ecosystem/releases) | ||
- [服务端接口文档](https://www.showdoc.com.cn/2302761390308442/10396968490372348) | ||
|
||
## 贡献者们 | ||
|
||
[![贡献者们](https://contrib.rocks/image?repo=biaov/ecosystem)](https://github.com/biaov/ecosystem/graphs/contributors) |
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,3 +1,3 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
} | ||
{ | ||
"editor.formatOnSave": true | ||
} |
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,16 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh-cn"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/logo.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>生态系统控制台</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<script> | ||
typeof window !== 'undefined' && (window.global = window) | ||
</script> | ||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html lang="zh-cn"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/logo.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>生态系统控制台</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<script> | ||
typeof window !== 'undefined' && (window.global = window) | ||
</script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 +1,17 @@ | ||
import React from 'react' | ||
import { ConfigProvider } from 'antd' | ||
import dayjs from 'dayjs' | ||
import 'dayjs/locale/zh-cn' | ||
import zhCN from 'antd/locale/zh_CN' | ||
import 'antd/dist/reset.css' | ||
import RouterView from '@/router' | ||
|
||
dayjs.locale('zh-cn') | ||
|
||
const App: React.FC = () => ( | ||
<ConfigProvider locale={zhCN}> | ||
<RouterView /> | ||
</ConfigProvider> | ||
) | ||
|
||
export default App | ||
import React from 'react' | ||
import { ConfigProvider } from 'antd' | ||
import dayjs from 'dayjs' | ||
import 'dayjs/locale/zh-cn' | ||
import zhCN from 'antd/locale/zh_CN' | ||
import 'antd/dist/reset.css' | ||
import RouterView from '@/router' | ||
|
||
dayjs.locale('zh-cn') | ||
|
||
const App: React.FC = () => ( | ||
<ConfigProvider locale={zhCN}> | ||
<RouterView /> | ||
</ConfigProvider> | ||
) | ||
|
||
export default App |
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,10 +1,10 @@ | ||
interface Meta { | ||
total: number | ||
current: number | ||
pageSize: number | ||
} | ||
|
||
export interface PagingResponse<T = Record<string, any>> { | ||
meta: Meta | ||
items: T[] | ||
} | ||
interface Meta { | ||
total: number | ||
current: number | ||
pageSize: number | ||
} | ||
|
||
export interface PagingResponse<T = Record<string, any>> { | ||
meta: Meta | ||
items: T[] | ||
} |
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,6 +1,6 @@ | ||
.m-loading { | ||
width: 400px; | ||
margin: 0 auto; | ||
padding: 100px; | ||
text-align: center; | ||
.m-loading { | ||
width: 400px; | ||
margin: 0 auto; | ||
padding: 100px; | ||
text-align: center; | ||
} |
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,13 +1,13 @@ | ||
import { Spin } from 'antd' | ||
import Styles from './index.module.less' | ||
|
||
/** | ||
* 页面加载组件 | ||
*/ | ||
export default function PageLoadingComponent() { | ||
return ( | ||
<div className={Styles['m-loading']}> | ||
<Spin tip="加载中..." spinning={true} /> | ||
</div> | ||
) | ||
} | ||
import { Spin } from 'antd' | ||
import Styles from './index.module.less' | ||
|
||
/** | ||
* 页面加载组件 | ||
*/ | ||
export default function PageLoadingComponent() { | ||
return ( | ||
<div className={Styles['m-loading']}> | ||
<Spin tip="加载中..." spinning={true} /> | ||
</div> | ||
) | ||
} |
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,11 +1,11 @@ | ||
import ReactDOM from 'react-dom/client' | ||
import { Provider } from 'react-redux' | ||
import App from './App' | ||
import store from './store' | ||
import './styles/index.less' | ||
|
||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<Provider store={store}> | ||
<App /> | ||
</Provider> | ||
) | ||
import ReactDOM from 'react-dom/client' | ||
import { Provider } from 'react-redux' | ||
import App from './App' | ||
import store from './store' | ||
import './styles/index.less' | ||
|
||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<Provider store={store}> | ||
<App /> | ||
</Provider> | ||
) |
Oops, something went wrong.