Skip to content

Commit 9755934

Browse files
committed
Add initial batch of resources
Add skeleton classes as well as various config files and docs
1 parent d6327dd commit 9755934

16 files changed

+725
-0
lines changed

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
12+
[*.{html,xml,svg,js,css,php}]
13+
indent_style = tab
14+
trim_trailing_whitespace = true
15+
max_line_length = 80
16+
17+
[*.{md,markdown,yml,json}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.{yml,json}]
22+
trim_trailing_whitespace = true
23+
24+
[*.{md,markdown}]
25+
trim_trailing_whitespace = false
26+
27+
[*.{js,php}]
28+
quote_type = single
29+
spaces_around_operators = true
30+
spaces_around_brackets = true
31+
32+
[*.{html,xml,svg,css}]
33+
quote_type = double

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/node_modules/
2+
/_site/
3+
/img/
4+
/css/
5+
/fonts/
6+
/js/std-js/
7+
*.min.js
8+
*.config.js

.eslintrc

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"extends": "eslint:recommended",
7+
"parserOptions": {
8+
"sourceType": "module",
9+
"ecmaVersion": 2017
10+
},
11+
"plugins": ["async-await"],
12+
"rules": {
13+
"indent": [
14+
2,
15+
"tab"
16+
],
17+
"quotes": [
18+
2,
19+
"single"
20+
],
21+
"semi": [
22+
2,
23+
"always"
24+
],
25+
"no-console": 0,
26+
"async-await/space-after-async": 2,
27+
"async-await/space-after-await": 2
28+
},
29+
"globals": {
30+
"URLSearchParams": false
31+
}
32+
}

.gitignore

+226
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
/patches/
2+
*.patch
3+
/node_modules/
4+
/_site/
5+
/npm-debug.log
6+
/img/icons.svg
7+
/_site/
8+
*.min*
9+
*.map
10+
11+
#################
12+
## Eclipse
13+
#################
14+
15+
*.pydevproject
16+
.project
17+
.metadata
18+
bin/
19+
tmp/
20+
*.tmp
21+
*.bak
22+
*.swp
23+
*~.nib
24+
local.properties
25+
.classpath
26+
.settings/
27+
.loadpath
28+
29+
# External tool builders
30+
.externalToolBuilders/
31+
32+
# Locally stored "Eclipse launch configurations"
33+
*.launch
34+
35+
# CDT-specific
36+
.cproject
37+
38+
# PDT-specific
39+
.buildpath
40+
41+
42+
#################
43+
## Visual Studio
44+
#################
45+
46+
## Ignore Visual Studio temporary files, build results, and
47+
## files generated by popular Visual Studio add-ons.
48+
49+
# User-specific files
50+
*.suo
51+
*.user
52+
*.sln.docstates
53+
54+
# Build results
55+
56+
[Dd]ebug/
57+
[Rr]elease/
58+
x64/
59+
build/
60+
[Bb]in/
61+
[Oo]bj/
62+
63+
# MSTest test Results
64+
[Tt]est[Rr]esult*/
65+
[Bb]uild[Ll]og.*
66+
67+
*_i.c
68+
*_p.c
69+
*.ilk
70+
*.meta
71+
*.obj
72+
*.pch
73+
*.pdb
74+
*.pgc
75+
*.pgd
76+
*.rsp
77+
*.sbr
78+
*.tlb
79+
*.tli
80+
*.tlh
81+
*.tmp
82+
*.tmp_proj
83+
*.log
84+
*.vspscc
85+
*.vssscc
86+
.builds
87+
*.pidb
88+
*.log
89+
*.scc
90+
91+
# Visual C++ cache files
92+
ipch/
93+
*.aps
94+
*.ncb
95+
*.opensdf
96+
*.sdf
97+
*.cachefile
98+
99+
# Visual Studio profiler
100+
*.psess
101+
*.vsp
102+
*.vspx
103+
104+
# Guidance Automation Toolkit
105+
*.gpState
106+
107+
# ReSharper is a .NET coding add-in
108+
_ReSharper*/
109+
*.[Rr]e[Ss]harper
110+
111+
# TeamCity is a build add-in
112+
_TeamCity*
113+
114+
# DotCover is a Code Coverage Tool
115+
*.dotCover
116+
117+
# NCrunch
118+
*.ncrunch*
119+
.*crunch*.local.xml
120+
121+
# Installshield output folder
122+
[Ee]xpress/
123+
124+
# DocProject is a documentation generator add-in
125+
DocProject/buildhelp/
126+
DocProject/Help/*.HxT
127+
DocProject/Help/*.HxC
128+
DocProject/Help/*.hhc
129+
DocProject/Help/*.hhk
130+
DocProject/Help/*.hhp
131+
DocProject/Help/Html2
132+
DocProject/Help/html
133+
134+
# Click-Once directory
135+
publish/
136+
137+
# Publish Web Output
138+
*.Publish.xml
139+
*.pubxml
140+
*.publishproj
141+
142+
# NuGet Packages Directory
143+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
144+
#packages/
145+
146+
# Windows Azure Build Output
147+
csx
148+
*.build.csdef
149+
150+
# Windows Store app package directory
151+
AppPackages/
152+
153+
# Others
154+
sql/
155+
*.Cache
156+
ClientBin/
157+
[Ss]tyle[Cc]op.*
158+
~$*
159+
*~
160+
*.dbmdl
161+
*.[Pp]ublish.xml
162+
*.pfx
163+
*.publishsettings
164+
165+
# RIA/Silverlight projects
166+
Generated_Code/
167+
168+
# Backup & report files from converting an old project file to a newer
169+
# Visual Studio version. Backup files are not needed, because we have git ;-)
170+
_UpgradeReport_Files/
171+
Backup*/
172+
UpgradeLog*.XML
173+
UpgradeLog*.htm
174+
175+
# SQL Server files
176+
App_Data/*.mdf
177+
App_Data/*.ldf
178+
179+
#############
180+
## Windows detritus
181+
#############
182+
183+
# Windows image file caches
184+
Thumbs.db
185+
ehthumbs.db
186+
187+
# Folder config file
188+
Desktop.ini
189+
190+
# Recycle Bin used on file shares
191+
$RECYCLE.BIN/
192+
193+
# Mac crap
194+
.DS_Store
195+
196+
197+
#############
198+
## Python
199+
#############
200+
201+
*.py[cod]
202+
203+
# Packages
204+
*.egg
205+
*.egg-info
206+
dist/
207+
build/
208+
eggs/
209+
parts/
210+
var/
211+
sdist/
212+
develop-eggs/
213+
.installed.cfg
214+
215+
# Installer logs
216+
pip-log.txt
217+
218+
# Unit test / coverage reports
219+
.coverage
220+
.tox
221+
222+
#Translations
223+
*.mo
224+
225+
#Mr Developer
226+
.mr.developer.cfg

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
cache: bundler
5+
script: npm test

BasicCardRequest.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @see https://developer.mozilla.org/en-US/docs/Web/API/BasicCardRequest
3+
*/
4+
export default class BasicCardRequest {
5+
constructor() {
6+
//
7+
}
8+
9+
get supportedNetworks() {
10+
//
11+
}
12+
13+
get supportedTypes() {
14+
//
15+
}
16+
}

BasicCardResponse.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* @see https://developer.mozilla.org/en-US/docs/Web/API/BasicCardResponse
3+
*/
4+
export default class BasicCardResponse {
5+
constructor(card) {
6+
this._card = card;
7+
}
8+
9+
/**
10+
* @see https://developer.mozilla.org/en-US/docs/Web/API/BasicCardResponse/cardNumber
11+
*/
12+
get cardNumber() {
13+
//
14+
}
15+
16+
get cardholderName() {
17+
//
18+
}
19+
20+
get cardSecurityCode() {
21+
//
22+
}
23+
24+
get expiryMonth() {
25+
//
26+
}
27+
28+
get expiryYear() {
29+
//
30+
}
31+
32+
get billingAddress() {
33+
//
34+
}
35+
}

0 commit comments

Comments
 (0)