Skip to content

Commit

Permalink
react redux
Browse files Browse the repository at this point in the history
  • Loading branch information
刘珅 committed Mar 31, 2017
1 parent bc47f8c commit 4180ef2
Show file tree
Hide file tree
Showing 60 changed files with 907 additions and 1,617 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

4 changes: 0 additions & 4 deletions .env

This file was deleted.

32 changes: 32 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
// Extend existing configuration
// from ESlint and eslint-plugin-react defaults.
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
// Enable ES6 support. If you want to use custom Babel
// features, you will need to enable a custom parser
// as described in a section below.
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
// Enable custom plugin known as eslint-plugin-react
"plugins": [
"react"
],
"rules": {
// Disable `no-console` rule
"no-console": 0,
// Give a warning if identifiers contain underscores
"no-underscore-dangle": 1,
// Default to single quotes and raise an error if something
// else is used
"quotes": [2, "single"]
}
}
77 changes: 0 additions & 77 deletions app.js

This file was deleted.

33 changes: 33 additions & 0 deletions appconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"database": {
"Dialect" : "mysql",
"Database" : "wemall",
"User" : "root",
"Password" : "test1234",
"Charset" : "utf8",
"SQLLog" : true,
"URL" : ""
},
"page": {
"Title" : "微信商城",
"SitePath" : "",
"JSPath" : "/javascripts",
"ImagePath" : "/images",
"CSSPath" : "/styles"
},
"server": {
"Debug" : true,
"URL" : "http://wemall.shen100.com",
"Port" : 8010,
"StaticPort" : 8011,
"MaxOrder" : 10000,
"MinOrder" : 0,
"PageSize" : 20,
"MaxPageSize" : 100,
"MinPageSize" : 20,
"MaxNameLen" : 100,
"MaxRemarkLen" : 500,
"MaxContentLen" : 10000,
"MaxProductCateCount" : 6
}
}
Binary file removed client/images/edit.png
Binary file not shown.
Binary file removed client/images/operation.png
Binary file not shown.
22 changes: 22 additions & 0 deletions client/javascripts/admin/actions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
let nextTodoId = 0
export const addTodo = (text) => {
return {
type: 'ADD_TODO',
id: nextTodoId++,
text
}
}

export const setVisibilityFilter = (filter) => {
return {
type: 'SET_VISIBILITY_FILTER',
filter
}
}

export const toggleTodo = (id) => {
return {
type: 'TOGGLE_TODO',
id
}
}
1 change: 0 additions & 1 deletion client/javascripts/admin/app.js

This file was deleted.

141 changes: 0 additions & 141 deletions client/javascripts/admin/category/components/CreateCategory.vue

This file was deleted.

Loading

0 comments on commit 4180ef2

Please sign in to comment.