Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
付登荣 committed Sep 13, 2017
1 parent eff1d2e commit e43614e
Show file tree
Hide file tree
Showing 16 changed files with 2,180 additions and 103 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/*
.build/*
dist/*
86 changes: 86 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"env": {
"browser": false,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"globals": {
"App": true,
"Page": true,
"getApp": true,
"getCurrentPages": true,
"wx": true
},
"root": true,
"rules": {
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"eol-last": [
"error",
"always"
],
"keyword-spacing": [
"error",
{
"after": true,
"before": true
}
],
"no-console": [
"warn",
{
}
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": [
"error",
"always",
{
"omitLastInOneLineBlock": false
}
],
"space-before-blocks": [
"error",
"always"
],
"space-infix-ops": [
"error"
],
"spaced-comment": [
"error",
"always"
],
"strict": [
"error",
"safe"
],
"valid-jsdoc": [
"error",
{
"requireReturn": false
}
]
}
}
19 changes: 19 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
registry=https://registry.npm.taobao.org/
chromedriver_cdnurl = "http://npm.taobao.org/mirrors/chromedriver"
disturl = "http://npm.taobao.org/dist"
electron_mirror = "http://npm.taobao.org/mirrors/electron/"
git4win_mirror = "http://npm.taobao.org/mirrors/git-for-windows"
iojs_org_mirror = "http://npm.taobao.org/mirrors/iojs"
nodejs_org_mirror = "http://npm.taobao.org/mirrors/node"
nodist_iojs_mirror = "http://npm.taobao.org/mirrors/iojs"
nodist_node_mirror = "http://npm.taobao.org/mirrors/node"
nvm_iojs_org_mirror = "http://npm.taobao.org/mirrors/iojs"
nvm_nodejs_org_mirror = "http://npm.taobao.org/mirrors/node"
nvmw_iojs_org_mirror = "http://npm.taobao.org/mirrors/iojs"
nvmw_nodejs_org_mirror = "http://npm.taobao.org/mirrors/node"
nvmw_npm_mirror = "http://npm.taobao.org/mirrors/npm"
operadriver_cdnurl = "http://npm.taobao.org/mirrors/operadriver"
phantomjs_cdnurl = "http://npm.taobao.org/mirrors/phantomjs"
python_mirror = "http://npm.taobao.org/mirrors/python"
sass_binary_site = "http://npm.taobao.org/mirrors/node-sass"
sqlite3_binary_site = "http://npm.taobao.org/mirrors/sqlite3"
45 changes: 45 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"defaultSeverity": "error",
"extends": "stylelint-config-wxss",
"plugins": [
"stylelint-no-z-index"
],
"rules": {
"at-rule-no-vendor-prefix": [
true
],
"indentation": "tab",
"media-feature-name-no-vendor-prefix": [
true
],
"no-missing-end-of-source-newline": null,
"plugin/no-z-index": 2,
"property-no-vendor-prefix": [
true
],
"selector-max-compound-selectors": 1,
"selector-no-vendor-prefix": [
true
],
"selector-type-no-unknown": [
true,
{
"ignoreTypes": [
"page",
"navigator"
]
}
],
"unit-no-unknown": [
true,
{
"ignoreUnits": [
"rpx"
]
}
],
"value-no-vendor-prefix": [
true
]
}
}
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# 小程序日历

### 诞生背景
小程序很火,但是现有的很多web插件都是操作DOM的,导致不能直接使用,最近需要弄个小程序日历,故而分享出来,大家相互交流。

### 思路分析

要实现一个日历,就需要先知道几个值:
Expand All @@ -18,6 +15,6 @@
#### 效果图

![](https://ooo.0o0.ooo/2017/06/17/59447d1d12c04.gif)
![](https://ws1.sinaimg.cn/large/9274759egy1fjhx2haqexg208t0fptb1.jpg)

欢迎反馈...
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wx_calendar",
"version": "0.0.1",
"version": "1.0.1",
"description": "one small calendar demo",
"main": "app.js",
"devDependencies": {
Expand All @@ -26,5 +26,9 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"eslint": "^3.19.0",
"stylelint": "^7.10.1"
}
}
Empty file added pages/datepicker/index.js
Empty file.
3 changes: 3 additions & 0 deletions pages/datepicker/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"navigationBarTitleText": "时间选择器"
}
Empty file added pages/datepicker/index.wxml
Empty file.
Empty file added pages/datepicker/index.wxss
Empty file.
Loading

0 comments on commit e43614e

Please sign in to comment.