Skip to content

Commit

Permalink
Merge pull request #7 from biaov/feature/20230908-release
Browse files Browse the repository at this point in the history
Feature/20230908 release
  • Loading branch information
biaov authored Sep 8, 2023
2 parents 803882d + ac6b03a commit ee7371e
Show file tree
Hide file tree
Showing 65 changed files with 971 additions and 624 deletions.
80 changes: 40 additions & 40 deletions README.md
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)
6 changes: 3 additions & 3 deletions admin/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"editor.formatOnSave": true
}
{
"editor.formatOnSave": true
}
32 changes: 16 additions & 16 deletions admin/index.html
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>
20 changes: 10 additions & 10 deletions admin/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions admin/public/logo3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 17 additions & 17 deletions admin/src/App.tsx
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
20 changes: 10 additions & 10 deletions admin/src/api/types.ts
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[]
}
10 changes: 5 additions & 5 deletions admin/src/components/page-loading/index.module.less
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;
}
26 changes: 13 additions & 13 deletions admin/src/components/page-loading/index.tsx
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>
)
}
22 changes: 11 additions & 11 deletions admin/src/main.tsx
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>
)
Loading

0 comments on commit ee7371e

Please sign in to comment.