Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
sayll committed Apr 7, 2017
1 parent 70d567d commit c175998
Show file tree
Hide file tree
Showing 63 changed files with 6,264 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
engines:
csslint:
enabled: true
duplication:
enabled: false
config:
languages:
- javascript
eslint:
enabled: true
checks:
linebreak-style:
enabled: false
global-require:
enabled: false
fixme:
enabled: true
ratings:
paths:
- app/**/*
exclude_paths:
- app/static/tools/**/*
- app/source/font/**/*
- app/source/css/library/**/*
- app/source/css/parts/**/*
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
*.log
*.log.*
.idea
48 changes: 48 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
env:
es6: true
node: true
mocha: true
jest: true

extends:
- eslint:recommended
- airbnb

parserOptions:
ecmaVersion: 7
ecmaFeatures:
experimentalObjectRestSpread: true
jsx : true
sourceType: module

plugins:
- react

rules:
arrow-parens:
- warn
- as-needed
comma-dangle:
- error
- only-multiline
eol-last: off
import/no-unresolved: off
linebreak-style: off
no-console: off
no-plusplus: off
no-underscore-dangle: off
no-unused-vars: warn
quotes:
- error
- single
react/jsx-uses-vars: warn
# 非交互标签无法使用鼠标事件
jsx-a11y/no-static-element-interactions: off
semi:
- error
- always

globals:
document: false
window: false
fetch: true
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
*.log
*.log.*
.idea
.happypack
build
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js
sudo: required
dist: trusty
node_js:
- '7'
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
install:
- npm install
- npm install coveralls
script:
- npm run test
after_script:
- npm run test:coveralls
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Wait

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Todo-react-redux-immutable.js-reselect
使用react,redux,immutable.js,reselect,react-redux等工具库,完成一个Todos案例。
# Todo-react-redux-reselect-immutable
使用react,redux,reselect,react-redux,immutable.js等工具库,完成一个Todos案例。
27 changes: 27 additions & 0 deletions app/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta content="UTF-8">
<!--<script>
!function(N,M){function L(){var a=I.getBoundingClientRect().width;a/F>540&&(a=540*F);var d=a/10;I.style.fontSize=d+"px",D.rem=N.rem=d}var K,J=N.document,I=J.documentElement,H=J.querySelector('meta[name="viewport"]'),G=J.querySelector('meta[name="flexible"]'),F=0,E=0,D=M.flexible||(M.flexible={});if(H){console.warn("将根据已有的meta标签来设置缩放比例");var C=H.getAttribute("content").match(/initial\-scale=([\d\.]+)/);C&&(E=parseFloat(C[1]),F=parseInt(1/E))}else{if(G){var B=G.getAttribute("content");if(B){var A=B.match(/initial\-dpr=([\d\.]+)/),z=B.match(/maximum\-dpr=([\d\.]+)/);A&&(F=parseFloat(A[1]),E=parseFloat((1/F).toFixed(2))),z&&(F=parseFloat(z[1]),E=parseFloat((1/F).toFixed(2)))}}}if(!F&&!E){var y=N.navigator.userAgent,x=(!!y.match(/android/gi),!!y.match(/iphone/gi)),w=x&&!!y.match(/OS 9_3/),v=N.devicePixelRatio;F=x&&!w?v>=3&&(!F||F>=3)?3:v>=2&&(!F||F>=2)?2:1:1,E=1/F}if(I.setAttribute("data-dpr",F),!H){if(H=J.createElement("meta"),H.setAttribute("name","viewport"),H.setAttribute("content","initial-scale="+E+", maximum-scale="+E+", minimum-scale="+E+", user-scalable=no"),I.firstElementChild){I.firstElementChild.appendChild(H)}else{var u=J.createElement("div");u.appendChild(H),J.write(u.innerHTML)}}N.addEventListener("resize",function(){clearTimeout(K),K=setTimeout(L,300)},!1),N.addEventListener("pageshow",function(b){b.persisted&&(clearTimeout(K),K=setTimeout(L,300))},!1),"complete"===J.readyState?J.body.style.fontSize=12*F+"px":J.addEventListener("DOMContentLoaded",function(){J.body.style.fontSize=12*F+"px"},!1),L(),D.dpr=N.dpr=F,D.refreshRem=L,D.rem2px=function(d){var c=parseFloat(d)*this.rem;return"string"==typeof d&&d.match(/rem$/)&&(c+="px"),c},D.px2rem=function(d){var c=parseFloat(d)/this.rem;return"string"==typeof d&&d.match(/px$/)&&(c+="rem"),c}}(window,window.lib||(window.lib={}));
</script>-->
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome">
<meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telphone=no, email=no" />
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<meta name="keyword" content="">
<meta name="description" content="">
<meta name="Sayll" content="[email protected]">
<title>React</title>
</head>
<body>
<div id="root">
</div>
<script src="./dll/vendor.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions app/source/css/index.pcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*@import "../font/icon/iconfont.css";*/
/*@import "./parts/phoneReset.css";*/
@import "./parts/normalize.css";
@import "./parts/class.css";

ol, ul {
padding: 0;
list-style: none;
}

a{
text-decoration: none;
color: #2d2d34;
&:hover{
text-decoration: underline;
}
}

img {
vertical-align: middle;
font-size: 0;
}
Loading

0 comments on commit c175998

Please sign in to comment.