Giter VIP home page Giter VIP logo

k8s-demo-react's Introduction

Setup

$ npm install

Running

$ npm start

Build

$ npm run build

Rules:

全局 css /src/assets/main.css

Router 命名规则

/系统/模块/页面../:id 等前面 3 层要确定,为了左侧导航能够相应变化

路由定义在

/src/app/routers

store 定义

/src/app/stores

  • AppStore 存储应用级别的数据 如 loading
  • RouterStore 针对组件中需要应用路由是注入
  • 其他: 为需要进行组件通信时的页面级别数据

容器类组件

/src/app/containers

  • 不同页面的最外层组件结构 同 系统 -> 模块 -> 页面如 sales -> orders -> List 页面

#layouts 存放大型布局的容器组件

  • SidebarLayout 所有系统内部要展示左侧导航的布局

组件库

/src/app/components

不同模块组件需建立自己的目录 如 Module1 下的 component1 建立 index.tsx 和 style.css

不同模块间通用组件直接放在 Common 目录下

constants

  • stores - store 名字
  • text 所有文字 -便于以后国际化,统一处理
  • api - 所有 api
  • url - 路由地址相关

utils 帮助函数

  • 请求相关
  • loadComponentXXX 异步加载组件

k8s-demo-react's People

Contributors

dreambo8563 avatar

Watchers

James Cloos avatar  avatar

k8s-demo-react's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.