Skip to content

Commit 2c1df61

Browse files
author
Fengyuan Chen
committed
Init
0 parents  commit 2c1df61

38 files changed

+1976
-0
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintrc

+181
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
7+
"globals": {
8+
"jQuery": true
9+
},
10+
11+
"ecmaFeatures": {
12+
"arrowFunctions": true,
13+
"destructuring": true,
14+
"classes": true,
15+
"defaultParams": true,
16+
"blockBindings": true,
17+
"modules": true,
18+
"objectLiteralComputedProperties": true,
19+
"objectLiteralShorthandMethods": true,
20+
"objectLiteralShorthandProperties": true,
21+
"restParams": true,
22+
"spread": true,
23+
"templateStrings": true
24+
},
25+
26+
"rules": {
27+
"accessor-pairs": 2,
28+
"array-bracket-spacing": 0,
29+
"block-scoped-var": 0,
30+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
31+
"camelcase": 0,
32+
"comma-dangle": [2, "never"],
33+
"comma-spacing": [2, { "before": false, "after": true }],
34+
"comma-style": [2, "last"],
35+
"complexity": 0,
36+
"computed-property-spacing": 0,
37+
"consistent-return": 0,
38+
"consistent-this": 0,
39+
"constructor-super": 2,
40+
"curly": [2, "multi-line"],
41+
"default-case": 0,
42+
"dot-location": [2, "property"],
43+
"dot-notation": 0,
44+
"eol-last": 2,
45+
"eqeqeq": [2, "allow-null"],
46+
"func-names": 0,
47+
"func-style": 0,
48+
"generator-star-spacing": [2, { "before": true, "after": true }],
49+
"guard-for-in": 0,
50+
"handle-callback-err": [2, "^(err|error)$" ],
51+
"indent": [2, 2, { "SwitchCase": 1 }],
52+
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
53+
"linebreak-style": 0,
54+
"lines-around-comment": 0,
55+
"max-nested-callbacks": 0,
56+
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
57+
"new-parens": 2,
58+
"newline-after-var": 0,
59+
"no-alert": 0,
60+
"no-array-constructor": 2,
61+
"no-caller": 2,
62+
"no-catch-shadow": 0,
63+
"no-cond-assign": 2,
64+
"no-console": 0,
65+
"no-constant-condition": 0,
66+
"no-continue": 0,
67+
"no-control-regex": 2,
68+
"no-debugger": 2,
69+
"no-delete-var": 2,
70+
"no-div-regex": 0,
71+
"no-dupe-args": 2,
72+
"no-dupe-keys": 2,
73+
"no-duplicate-case": 2,
74+
"no-else-return": 0,
75+
"no-empty": 0,
76+
"no-empty-character-class": 2,
77+
"no-empty-label": 2,
78+
"no-eq-null": 0,
79+
"no-eval": 2,
80+
"no-ex-assign": 2,
81+
"no-extend-native": 2,
82+
"no-extra-bind": 2,
83+
"no-extra-boolean-cast": 2,
84+
"no-extra-parens": 0,
85+
"no-extra-semi": 0,
86+
"no-fallthrough": 2,
87+
"no-floating-decimal": 2,
88+
"no-func-assign": 2,
89+
"no-implied-eval": 2,
90+
"no-inline-comments": 0,
91+
"no-inner-declarations": [2, "functions"],
92+
"no-invalid-regexp": 2,
93+
"no-irregular-whitespace": 2,
94+
"no-iterator": 2,
95+
"no-label-var": 2,
96+
"no-labels": 2,
97+
"no-lone-blocks": 2,
98+
"no-lonely-if": 0,
99+
"no-loop-func": 0,
100+
"no-mixed-requires": 0,
101+
"no-mixed-spaces-and-tabs": 2,
102+
"no-multi-spaces": 2,
103+
"no-multi-str": 2,
104+
"no-multiple-empty-lines": [2, { "max": 1 }],
105+
"no-native-reassign": 2,
106+
"no-negated-in-lhs": 2,
107+
"no-nested-ternary": 0,
108+
"no-new": 2,
109+
"no-new-func": 0,
110+
"no-new-object": 2,
111+
"no-new-require": 2,
112+
"no-new-wrappers": 2,
113+
"no-obj-calls": 2,
114+
"no-octal": 2,
115+
"no-octal-escape": 2,
116+
"no-param-reassign": 0,
117+
"no-path-concat": 0,
118+
"no-process-env": 0,
119+
"no-process-exit": 0,
120+
"no-proto": 0,
121+
"no-redeclare": 2,
122+
"no-regex-spaces": 2,
123+
"no-restricted-modules": 0,
124+
"no-return-assign": 2,
125+
"no-script-url": 0,
126+
"no-self-compare": 2,
127+
"no-sequences": 2,
128+
"no-shadow": 0,
129+
"no-shadow-restricted-names": 2,
130+
"no-spaced-func": 2,
131+
"no-sparse-arrays": 2,
132+
"no-sync": 0,
133+
"no-ternary": 0,
134+
"no-this-before-super": 2,
135+
"no-throw-literal": 2,
136+
"no-trailing-spaces": 2,
137+
"no-undef": 2,
138+
"no-undef-init": 2,
139+
"no-undefined": 0,
140+
"no-underscore-dangle": 0,
141+
"no-unexpected-multiline": 2,
142+
"no-unneeded-ternary": 2,
143+
"no-unreachable": 2,
144+
"no-unused-expressions": 0,
145+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
146+
"no-use-before-define": 0,
147+
"no-var": 0,
148+
"no-void": 0,
149+
"no-warning-comments": 0,
150+
"no-with": 2,
151+
"object-curly-spacing": 0,
152+
"object-shorthand": 0,
153+
"one-var": [2, { "initialized": "never" }],
154+
"operator-assignment": 0,
155+
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
156+
"padded-blocks": 0,
157+
"prefer-const": 0,
158+
"quote-props": 0,
159+
"quotes": [2, "single", "avoid-escape"],
160+
"radix": 2,
161+
"semi": [2, "always"],
162+
"semi-spacing": 0,
163+
"sort-vars": 0,
164+
"space-after-keywords": [2, "always"],
165+
"space-before-blocks": [2, "always"],
166+
"space-before-function-paren": [2, "always"],
167+
"space-in-parens": [2, "never"],
168+
"space-infix-ops": 2,
169+
"space-return-throw-case": 2,
170+
"space-unary-ops": [2, { "words": true, "nonwords": false }],
171+
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
172+
"strict": 0,
173+
"use-isnan": 2,
174+
"valid-jsdoc": 0,
175+
"valid-typeof": 2,
176+
"vars-on-top": 0,
177+
"wrap-iife": [2, "any"],
178+
"wrap-regex": 0,
179+
"yoda": [2, "never"]
180+
}
181+
}

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Automatically normalize line endings for all text-based files
2+
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion
3+
* text=auto
4+
5+
# For the following file types, normalize line endings to LF on
6+
# checkin and prevent conversion to CRLF when they are checked out
7+
# (this is required in order to prevent newline related issues like,
8+
# for example, after the build script is run)
9+
.* text eol=lf
10+
*.css text eol=lf
11+
*.html text eol=lf
12+
*.js text eol=lf
13+
*.json text eol=lf
14+
*.md text eol=lf
15+
*.sh text eol=lf
16+
*.txt text eol=lf
17+
*.xml text eol=lf

.gitignore

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Project
2+
node_modules
3+
/_*
4+
5+
# Windows image file caches
6+
Thumbs.db
7+
ehthumbs.db
8+
9+
# Folder config file
10+
Desktop.ini
11+
12+
# Recycle Bin used on file shares
13+
$RECYCLE.BIN/
14+
15+
# Windows Installer files
16+
*.cab
17+
*.msi
18+
*.msm
19+
*.msp
20+
21+
# Windows shortcuts
22+
*.lnk
23+
24+
# =========================
25+
# Operating System Files
26+
# =========================
27+
28+
# OSX
29+
# =========================
30+
31+
.DS_Store
32+
.AppleDouble
33+
.LSOverride
34+
35+
# Thumbnails
36+
._*
37+
38+
# Files that might appear on external disk
39+
.Spotlight-V100
40+
.Trashes
41+
42+
# Directories potentially created on remote AFP share
43+
.AppleDB
44+
.AppleDesktop
45+
Network Trash Folder
46+
Temporary Items
47+
.apdisk

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Fengyuan Chen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Photo Editor
2+
3+
> A photo editing application based on the [Cropper.js](https://github.com/fengyuanchen/cropperjs).
4+
5+
- [Homepage](http://fengyuanchen.github.io/photo-editor)
6+
7+
8+
9+
## Browser support
10+
11+
- Chrome (latest 2)
12+
- Firefox (latest 2)
13+
- Internet Explorer 9+
14+
- Opera (latest 2)
15+
- Safari (latest 2)
16+
17+
18+
19+
## License
20+
21+
[MIT](http://opensource.org/licenses/MIT) © [Fengyuan Chen](http://chenfengyuan.com)

css/cropper.min.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/font-awesome.min.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/main.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fonts/FontAwesome.otf

107 KB
Binary file not shown.

fonts/fontawesome-webfont.eot

69.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)