周玉环 0d91f1698e first commit 1 dag sedan
..
.github d906a41c2e first commit 2 dagar sedan
conf d906a41c2e first commit 2 dagar sedan
containers 5a933a9c9f first commit 1 dag sedan
mock d906a41c2e first commit 2 dagar sedan
public d906a41c2e first commit 2 dagar sedan
scope 5a933a9c9f first commit 1 dag sedan
scripts d906a41c2e first commit 2 dagar sedan
src 5a933a9c9f first commit 1 dag sedan
tests d906a41c2e first commit 2 dagar sedan
upload d906a41c2e first commit 2 dagar sedan
.browserslistrc d906a41c2e first commit 2 dagar sedan
.editorconfig d906a41c2e first commit 2 dagar sedan
.env.development d906a41c2e first commit 2 dagar sedan
.env.production d906a41c2e first commit 2 dagar sedan
.eslintrc.js d906a41c2e first commit 2 dagar sedan
.gitignore d906a41c2e first commit 2 dagar sedan
.travis.yml d906a41c2e first commit 2 dagar sedan
Dockerfile d906a41c2e first commit 2 dagar sedan
Dockerfile.node-build d906a41c2e first commit 2 dagar sedan
LICENSE d906a41c2e first commit 2 dagar sedan
Makefile d906a41c2e first commit 2 dagar sedan
OWNERS d906a41c2e first commit 2 dagar sedan
README-CN.md d906a41c2e first commit 2 dagar sedan
README.md d906a41c2e first commit 2 dagar sedan
babel.config.js d906a41c2e first commit 2 dagar sedan
checkdirty.sh d906a41c2e first commit 2 dagar sedan
jest.config.js d906a41c2e first commit 2 dagar sedan
jsconfig.json d906a41c2e first commit 2 dagar sedan
package.json 0d91f1698e first commit 1 dag sedan
pnpm-lock.yaml d906a41c2e first commit 2 dagar sedan
vue.config.js d906a41c2e first commit 2 dagar sedan

README-CN.md

Cloudpods Dashboard

Build Status

Cloudpods Dashboard 是Cloudpods的Web控制台

开发指南

准备

确保已安装以下软件并将其添加到$PATH变量中:

或者

使用NPM安装Yarn:

npm install -g yarn

Fork以下仓库,然后克隆主仓库并安装依赖

  • dashboard

    $ git clone https://github.com/<owner>/dashboard.git
    $ cd dashboard
    # 这里要根据你的环境,切到对应分支,否则可能出现不兼容情况
    $ git checkout release/3.8
    $ yarn
    

根据提示输入仓库的地址前缀, 如: https://github.com/yunionio

注意:如果您在中国大陆,请在运行上面的命令之前执行以下命令,以加快安装速度。

yarn config set registry https://registry.npm.taobao.org

启动开发模式

如果要配置代理,请在项目根目录中创建dev.server.config.js并导出配置

配置请根据需求进行更改,以下只是示例

// dev.server.config.js
module.exports = {
  open: process.platform === 'darwin',
  port: 8080,
  proxy: {
    '/api': {
      // 请务必设为环境的地址, 注意是https
      target: 'https://192.168.1.10',
      ws: true,
      changeOrigin: true,
      secure: false,
    },
  },
}

更多配置

yarn serve

使用浏览器打开http://localhost:8080

如何编译

yarn build

制作 docker 镜像

REGISTRY=registry.cn-beijing.aliyuncs.com/yunionio TAG=your-tag ./scripts/docker-push.sh