Skip to content
Permalink
Browse files

add h5 blocks demo

  • Loading branch information...
xiaohuoni committed May 15, 2019
1 parent 58de407 commit 713abb697243ca976f052dd21a410e54f072eb39
@@ -0,0 +1,19 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json

# production
/dist

# misc
.DS_Store

# umi
.umi
.umi-production
/src/menus.json
@@ -0,0 +1,16 @@
{
"name": "@alita-block/blockdemo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "alita dev",
"build": "alita build"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"alita": "*"
}
}
@@ -1,6 +1,5 @@

export default {
'GET /api/hello': {
text: 'Alita',
},
text: 'Alita'
}
};
File renamed without changes.
@@ -2,10 +2,10 @@ import { EffectsCommandMap } from 'dva';
import { match } from 'react-router-dom';
import { AnyAction } from 'redux';
import { RouterTypes } from 'umi';
import { AppModelState } from './app';
import { IndexModelState } from './model';

export {
AppModelState
IndexModelState
};

export interface MenuDataItem {
@@ -62,7 +62,7 @@ export interface Loading {
}

export interface ConnectState {
app?: AppModelState;
index?: IndexModelState;
}

/**
File renamed without changes.
@@ -1,7 +1,7 @@
import { connect } from 'dva';
import React, { Component } from 'react';

import { IndexModelState, ConnectProps } from '@/models/connect';
import { IndexModelState, ConnectProps } from './connect';

import styles from './index.less';

@@ -1,6 +1,5 @@
import { query } from '@/services/api';

import { Effect } from '@/models/connect';
import { query } from './service';
import { Effect } from './connect';
import { Reducer } from 'redux';
import { Subscription } from 'dva';
export interface IndexModelState {
File renamed without changes.
@@ -1,3 +1,3 @@
export default {
appType: 'pc',
appType: 'h5',
};
@@ -1,16 +1,17 @@
{
"name": "h5blocks",
"private": true,
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "alita dev",
"start": "cross-env PAGES_PATH='BlockDemo/src' alita dev",
"build": "alita build"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"alita": "*"
"alita": "*",
"cross-env": "^5.2.0"
}
}
@@ -1,7 +1,7 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"baseUrl": ".",
"outDir": "build/dist",
"sourceMap": true,
"jsx": "react",

0 comments on commit 713abb6

Please sign in to comment.
You can’t perform that action at this time.