Skip to content

Commit 03296d5

Browse files
authored
Merge pull request #59 from btholt/v3-master
V3 master
2 parents 865811d + 698151b commit 03296d5

File tree

132 files changed

+17405
-3529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+17405
-3529
lines changed

.DS_Store

6 KB
Binary file not shown.

.babelrc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
{
22
"presets": [
33
"react",
4-
["es2015", {modules: false, loose: true}]
4+
["env", {
5+
"targets": {
6+
"browsers": "last 2 versions"
7+
},
8+
"loose": true,
9+
"modules": false
10+
}]
11+
],
12+
"plugins": [
13+
"react-hot-loader/babel",
14+
"babel-plugin-syntax-dynamic-import",
15+
"babel-plugin-dynamic-import-webpack",
16+
"babel-plugin-transform-decorators-legacy",
17+
"babel-plugin-transform-class-properties"
518
],
619
"env": {
720
"server": {
821
"plugins": ["transform-es2015-modules-commonjs"]
922
},
23+
"development": {
24+
"plugins": ["transform-es2015-modules-commonjs"]
25+
},
1026
"test": {
1127
"plugins": ["transform-es2015-modules-commonjs"]
1228
}

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ indent_size = 2
77
end_of_line = lf
88
charset = utf-8
99
insert_final_newline = true
10+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
public/

.eslintrc.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
11
{
2-
"extends": ["standard", "standard-react"]
3-
}
2+
"extends": [
3+
"plugin:flowtype/recommended",
4+
"airbnb",
5+
"prettier",
6+
"prettier/react"
7+
],
8+
"plugins": [
9+
"flowtype",
10+
"prettier"
11+
],
12+
"parser": "babel-eslint",
13+
"parserOptions": {
14+
"ecmaVersion": 2016,
15+
"sourceType": "module",
16+
"ecmaFeatures": {
17+
"jsx": true
18+
}
19+
},
20+
"env": {
21+
"es6": true,
22+
"jest": true,
23+
"browser": true,
24+
"node": true
25+
},
26+
"globals": {
27+
"DEBUG": false
28+
}
29+
}

.flowconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[ignore]
2+
<PROJECT_ROOT>/node_modules/styled-components/*
3+
4+
[include]
5+
6+
[libs]
7+
styled-components
8+
9+
[options]

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
public/bundle.js
22
node_modules/
33
.eslintcache
4-
coverage
4+
coverage/
55
.nyc_output
66
.DS_Store
7+
public/*bundle*
78
*.map
89
*.bundle.js
910
_site/

data.json

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"shows": [
3+
{
4+
"title": "Atlanta",
5+
"year": "2008–2013",
6+
"description": "Two cousins, with different views on art versus commerce, on their way up through the Atlanta rap scene; \"Earnest 'Earn' Marks,\" an ambitious college drop-out and his estranged cousin, who suddenly becomes a star.",
7+
"poster": "a.jpg",
8+
"imdbID": "tt4288182",
9+
"trailer": "MpEdJ-mmTlY"
10+
},
11+
{
12+
"title": "Billions",
13+
"year": "2016–",
14+
"description": "U.S. Attorney Chuck Rhoades goes after hedge fund king, Bobby \"Axe\" Axelrod in a battle between two powerful New York figures.",
15+
"poster": "b.jpg",
16+
"imdbID": "tt4270492",
17+
"trailer": "_raEUMLL-ZI"
18+
},
19+
{
20+
"title": "Black Mirror",
21+
"year": "2011–",
22+
"description": "A television anthology series that shows the dark side of life and technology.",
23+
"poster": "bm.jpg",
24+
"imdbID": "tt2085059",
25+
"trailer": "jDiYGjp5iFg"
26+
},
27+
{
28+
"title": "Breaking Bad",
29+
"year": "2008–2013",
30+
"description": "A high school chemistry teacher diagnosed with inoperable lung cancer turns to manufacturing and selling methamphetamine in order to secure his family's future.",
31+
"poster": "bb.jpg",
32+
"imdbID": "tt0903747",
33+
"trailer": "XZ8daibM3AE"
34+
},
35+
{
36+
"title": "Game of Thrones",
37+
"year": "2011–",
38+
"description": "Nine noble families fight for control over the mythical lands of Westeros, while a forgotten race returns after being dormant for thousands of years.",
39+
"poster": "got.jpg",
40+
"imdbID": "tt0944947",
41+
"trailer": "giYeaKsXnsI"
42+
},
43+
{
44+
"title": "Homeland",
45+
"year": "2011–",
46+
"description": "A bipolar CIA operative becomes convinced a prisoner of war has been turned by al-Qaeda and is planning to carry out a terrorist attack on American soil.",
47+
"poster": "h.jpg",
48+
"imdbID": "tt1796960",
49+
"trailer": "KyFmS3wRPCQ"
50+
},
51+
{
52+
"title": "House of Cards",
53+
"year": "2013–",
54+
"description": "A Congressman works with his equally conniving wife to exact revenge on the people who betrayed him.",
55+
"poster": "hoc.jpg",
56+
"imdbID": "tt1856010",
57+
"trailer": "NTzycsqxYJ0"
58+
},
59+
{
60+
"title": "Master of None",
61+
"year": "2015–",
62+
"description": "The personal and professional life of Dev, a 30-year-old actor in New York.",
63+
"poster": "mon.jpg",
64+
"imdbID": "tt4635276",
65+
"trailer": "6bFvb3WKISk"
66+
},
67+
{
68+
"title": "Narcos",
69+
"year": "2015–",
70+
"description": "A chronicled look at the criminal exploits of Colombian drug lord Pablo Escobar.",
71+
"poster": "n.jpg",
72+
"imdbID": "tt2707408",
73+
"trailer": "U7elNhHwgBU"
74+
},
75+
{
76+
"title": "Orange Is the New Black",
77+
"year": "2013–",
78+
"description": "The story of Piper Chapman, a woman in her thirties who is sentenced to fifteen months in prison after being convicted of a decade-old crime of transporting money for her drug-dealing girlfriend.",
79+
"poster": "oitnb.jpg",
80+
"imdbID": "tt2372162",
81+
"trailer": "th8WT_pxGqg"
82+
},
83+
{
84+
"title": "Silicon Valley",
85+
"year": "2014–",
86+
"description": "Follows the struggle of Richard Hendricks, a silicon valley engineer trying to build his own company called Pied Piper.",
87+
"poster": "sv.jpg",
88+
"imdbID": "tt2575988",
89+
"trailer": "69V__a49xtw"
90+
},
91+
{
92+
"title": "Stranger Things",
93+
"year": "2016–",
94+
"description": "When a young boy disappears, his mother, a police chief, and his friends must confront terrifying forces in order to get him back.",
95+
"poster": "st.jpg",
96+
"imdbID": "tt4574334",
97+
"trailer": "9Egf5U8xLo8"
98+
},
99+
{
100+
"title": "The Americans",
101+
"year": "2013–",
102+
"description": "Two Soviet intelligence agents pose as a married couple to spy on the American government.",
103+
"poster": "ta.jpg",
104+
"imdbID": "tt2149175",
105+
"trailer": "HjuUkbhsI24"
106+
},
107+
{
108+
"title": "Veep",
109+
"year": "2012–",
110+
"description": "Former Senator Selina Meyer finds that being Vice President of the United States is nothing like she hoped and everything that everyone ever warned her about.",
111+
"poster": "v.jpg",
112+
"imdbID": "tt1759761",
113+
"trailer": "I2HoCG_iyhU"
114+
},
115+
{
116+
"title": "Westworld",
117+
"year": "2016–",
118+
"description": "Set at the intersection of the near future and the reimagined past, explore a world in which every human appetite, no matter how noble or depraved, can be indulged without consequence.",
119+
"poster": "ww.jpg",
120+
"imdbID": "tt0475784",
121+
"trailer": "eX3u0IlBBO4"
122+
}
123+
]
124+
}

flow-typed/npm/axios_v0.16.x.js

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// flow-typed signature: b371e1002f7439f9f053dc08186c5375
2+
// flow-typed version: dbaff82b4f/axios_v0.16.x/flow_>=v0.28.x
3+
4+
declare module 'axios' {
5+
declare interface ProxyConfig {
6+
host: string;
7+
port: number;
8+
}
9+
declare interface Cancel {
10+
constructor(message?: string): Cancel;
11+
message: string;
12+
}
13+
declare interface Canceler {
14+
(message?: string): void;
15+
}
16+
declare interface CancelTokenSource {
17+
token: CancelToken;
18+
cancel: Canceler;
19+
}
20+
declare interface CancelToken {
21+
constructor(executor: (cancel: Canceler) => void): CancelToken;
22+
static source(): CancelTokenSource;
23+
promise: Promise<Cancel>;
24+
reason?: Cancel;
25+
throwIfRequested(): void;
26+
}
27+
declare interface AxiosXHRConfigBase<T> {
28+
adapter?: <T>(config: AxiosXHRConfig<T>) => Promise<AxiosXHR<T>>;
29+
auth?: {
30+
username: string,
31+
password: string
32+
};
33+
baseURL?: string,
34+
cancelToken?: CancelToken;
35+
headers?: Object;
36+
httpAgent?: mixed; // Missing the type in the core flow node libdef
37+
httpsAgent?: mixed; // Missing the type in the core flow node libdef
38+
maxContentLength?: number;
39+
maxRedirects?: 5,
40+
params?: Object;
41+
paramsSerializer?: (params: Object) => string;
42+
progress?: (progressEvent: Event) => void | mixed;
43+
proxy?: ProxyConfig;
44+
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
45+
timeout?: number;
46+
transformRequest?: Array<<U>(data: T) => U|Array<<U>(data: T) => U>>;
47+
transformResponse?: Array<<U>(data: T) => U>;
48+
validateStatus?: (status: number) => boolean,
49+
withCredentials?: boolean;
50+
xsrfCookieName?: string;
51+
xsrfHeaderName?: string;
52+
}
53+
declare type $AxiosXHRConfigBase<T> = AxiosXHRConfigBase<T>;
54+
declare interface AxiosXHRConfig<T> extends AxiosXHRConfigBase<T> {
55+
data?: T;
56+
method?: string;
57+
url: string;
58+
}
59+
declare type $AxiosXHRConfig<T> = AxiosXHRConfig<T>;
60+
declare class AxiosXHR<T> {
61+
config: AxiosXHRConfig<T>;
62+
data: T;
63+
headers: Object;
64+
status: number;
65+
statusText: string,
66+
request: http$ClientRequest | XMLHttpRequest
67+
}
68+
declare type $AxiosXHR<T> = $AxiosXHR<T>;
69+
declare class AxiosInterceptorIdent extends String {}
70+
declare class AxiosRequestInterceptor<T> {
71+
use(
72+
successHandler: ?(response: AxiosXHRConfig<T>) => Promise<AxiosXHRConfig<*>> | AxiosXHRConfig<*>,
73+
errorHandler: ?(error: mixed) => mixed,
74+
): AxiosInterceptorIdent;
75+
eject(ident: AxiosInterceptorIdent): void;
76+
}
77+
declare class AxiosResponseInterceptor<T> {
78+
use(
79+
successHandler: ?(response: AxiosXHR<T>) => mixed,
80+
errorHandler: ?(error: mixed) => mixed,
81+
): AxiosInterceptorIdent;
82+
eject(ident: AxiosInterceptorIdent): void;
83+
}
84+
declare type AxiosPromise<T> = Promise<AxiosXHR<T>>;
85+
declare class Axios {
86+
constructor<T>(config?: AxiosXHRConfigBase<T>): void;
87+
$call: <T>(config: AxiosXHRConfig<T> | string, config?: AxiosXHRConfig<T>) => AxiosPromise<T>;
88+
request<T>(config: AxiosXHRConfig<T>): AxiosPromise<T>;
89+
delete<T>(url: string, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>;
90+
get<T>(url: string, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>;
91+
head<T>(url: string, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>;
92+
post<T>(url: string, data?: mixed, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>;
93+
put<T>(url: string, data?: mixed, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>;
94+
patch<T>(url: string, data?: mixed, config?: AxiosXHRConfigBase<T>): AxiosPromise<T>;
95+
interceptors: {
96+
request: AxiosRequestInterceptor<mixed>,
97+
response: AxiosResponseInterceptor<mixed>,
98+
};
99+
defaults: AxiosXHRConfig<*> & { headers: Object };
100+
}
101+
102+
declare class AxiosError<T> extends Error {
103+
config: AxiosXHRConfig<T>;
104+
response: AxiosXHR<T>;
105+
code?: string;
106+
}
107+
108+
declare type $AxiosError<T> = AxiosError<T>;
109+
110+
declare interface AxiosExport extends Axios {
111+
Axios: typeof Axios;
112+
Cancel: Class<Cancel>;
113+
CancelToken: Class<CancelToken>;
114+
isCancel(value: any): boolean;
115+
create(config?: AxiosXHRConfigBase<any>): Axios;
116+
all: typeof Promise.all;
117+
spread(callback: Function): (arr: Array<any>) => Function
118+
}
119+
declare module.exports: AxiosExport;
120+
}

0 commit comments

Comments
 (0)