| React$Node,
107 | path?: string,
108 | exact?: boolean,
109 | strict?: boolean,
110 | location?: LocationShape,
111 | sensitive?: boolean
112 | |}> {}
113 |
114 | declare export class Switch extends React$Component<{|
115 | children?: React$Node,
116 | location?: Location
117 | |}> {}
118 |
119 | declare export function withRouter(
120 | Component: React$ComponentType<{| ...ContextRouter, ...P |}>
121 | ): React$ComponentType
;
122 |
123 | declare type MatchPathOptions = {
124 | path?: string,
125 | exact?: boolean,
126 | strict?: boolean,
127 | sensitive?: boolean
128 | };
129 |
130 | declare export function matchPath(
131 | pathname: string,
132 | options?: MatchPathOptions | string
133 | ): null | Match;
134 | }
135 |
--------------------------------------------------------------------------------
/flow-typed/npm/styled-jsx_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 5877d7c28bb255fcce821bbf0f4e0c55
2 | // flow-typed version: <>/styled-jsx_v^2.2.6/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'styled-jsx'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'styled-jsx' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'styled-jsx/babel' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'styled-jsx/css' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'styled-jsx/dist/_constants' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'styled-jsx/dist/_utils' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'styled-jsx/dist/babel-external' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'styled-jsx/dist/babel' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'styled-jsx/dist/lib/style-transform' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'styled-jsx/dist/lib/stylesheet' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'styled-jsx/dist/server' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'styled-jsx/dist/style' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'styled-jsx/dist/stylesheet-registry' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'styled-jsx/lib/style-transform' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'styled-jsx/lib/stylesheet' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'styled-jsx/server' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'styled-jsx/style' {
82 | declare module.exports: any;
83 | }
84 |
85 | // Filename aliases
86 | declare module 'styled-jsx/babel.js' {
87 | declare module.exports: $Exports<'styled-jsx/babel'>;
88 | }
89 | declare module 'styled-jsx/css.js' {
90 | declare module.exports: $Exports<'styled-jsx/css'>;
91 | }
92 | declare module 'styled-jsx/dist/_constants.js' {
93 | declare module.exports: $Exports<'styled-jsx/dist/_constants'>;
94 | }
95 | declare module 'styled-jsx/dist/_utils.js' {
96 | declare module.exports: $Exports<'styled-jsx/dist/_utils'>;
97 | }
98 | declare module 'styled-jsx/dist/babel-external.js' {
99 | declare module.exports: $Exports<'styled-jsx/dist/babel-external'>;
100 | }
101 | declare module 'styled-jsx/dist/babel.js' {
102 | declare module.exports: $Exports<'styled-jsx/dist/babel'>;
103 | }
104 | declare module 'styled-jsx/dist/lib/style-transform.js' {
105 | declare module.exports: $Exports<'styled-jsx/dist/lib/style-transform'>;
106 | }
107 | declare module 'styled-jsx/dist/lib/stylesheet.js' {
108 | declare module.exports: $Exports<'styled-jsx/dist/lib/stylesheet'>;
109 | }
110 | declare module 'styled-jsx/dist/server.js' {
111 | declare module.exports: $Exports<'styled-jsx/dist/server'>;
112 | }
113 | declare module 'styled-jsx/dist/style.js' {
114 | declare module.exports: $Exports<'styled-jsx/dist/style'>;
115 | }
116 | declare module 'styled-jsx/dist/stylesheet-registry.js' {
117 | declare module.exports: $Exports<'styled-jsx/dist/stylesheet-registry'>;
118 | }
119 | declare module 'styled-jsx/lib/style-transform.js' {
120 | declare module.exports: $Exports<'styled-jsx/lib/style-transform'>;
121 | }
122 | declare module 'styled-jsx/lib/stylesheet.js' {
123 | declare module.exports: $Exports<'styled-jsx/lib/stylesheet'>;
124 | }
125 | declare module 'styled-jsx/server.js' {
126 | declare module.exports: $Exports<'styled-jsx/server'>;
127 | }
128 | declare module 'styled-jsx/style.js' {
129 | declare module.exports: $Exports<'styled-jsx/style'>;
130 | }
131 |
--------------------------------------------------------------------------------
/flow-typed/npm/moment-timezone_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: b58299c3e1c10e8d75f67d2859a7276f
2 | // flow-typed version: <>/moment-timezone_v^0.5.26/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'moment-timezone'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'moment-timezone' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'moment-timezone/builds/moment-timezone-with-data-10-year-range' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'moment-timezone/builds/moment-timezone-with-data-10-year-range.min' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'moment-timezone/builds/moment-timezone-with-data-1970-2030' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'moment-timezone/builds/moment-timezone-with-data-1970-2030.min' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'moment-timezone/builds/moment-timezone-with-data-2012-2022' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'moment-timezone/builds/moment-timezone-with-data-2012-2022.min' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'moment-timezone/builds/moment-timezone-with-data' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'moment-timezone/builds/moment-timezone-with-data.min' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'moment-timezone/builds/moment-timezone.min' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'moment-timezone/moment-timezone-utils' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'moment-timezone/moment-timezone' {
66 | declare module.exports: any;
67 | }
68 |
69 | // Filename aliases
70 | declare module 'moment-timezone/builds/moment-timezone-with-data-10-year-range.js' {
71 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data-10-year-range'>;
72 | }
73 | declare module 'moment-timezone/builds/moment-timezone-with-data-10-year-range.min.js' {
74 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data-10-year-range.min'>;
75 | }
76 | declare module 'moment-timezone/builds/moment-timezone-with-data-1970-2030.js' {
77 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data-1970-2030'>;
78 | }
79 | declare module 'moment-timezone/builds/moment-timezone-with-data-1970-2030.min.js' {
80 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data-1970-2030.min'>;
81 | }
82 | declare module 'moment-timezone/builds/moment-timezone-with-data-2012-2022.js' {
83 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data-2012-2022'>;
84 | }
85 | declare module 'moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js' {
86 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data-2012-2022.min'>;
87 | }
88 | declare module 'moment-timezone/builds/moment-timezone-with-data.js' {
89 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data'>;
90 | }
91 | declare module 'moment-timezone/builds/moment-timezone-with-data.min.js' {
92 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone-with-data.min'>;
93 | }
94 | declare module 'moment-timezone/builds/moment-timezone.min.js' {
95 | declare module.exports: $Exports<'moment-timezone/builds/moment-timezone.min'>;
96 | }
97 | declare module 'moment-timezone/index' {
98 | declare module.exports: $Exports<'moment-timezone'>;
99 | }
100 | declare module 'moment-timezone/index.js' {
101 | declare module.exports: $Exports<'moment-timezone'>;
102 | }
103 | declare module 'moment-timezone/moment-timezone-utils.js' {
104 | declare module.exports: $Exports<'moment-timezone/moment-timezone-utils'>;
105 | }
106 | declare module 'moment-timezone/moment-timezone.js' {
107 | declare module.exports: $Exports<'moment-timezone/moment-timezone'>;
108 | }
109 |
--------------------------------------------------------------------------------
/flow-typed/npm/babel-eslint_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 898adc4a329d56f57a2bab4a4ab1a460
2 | // flow-typed version: <>/babel-eslint_v^8.0.0/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'babel-eslint'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'babel-eslint' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'babel-eslint/lib/analyze-scope' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'babel-eslint/lib/babylon-to-espree/attachComments' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'babel-eslint/lib/babylon-to-espree/convertComments' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'babel-eslint/lib/babylon-to-espree/index' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'babel-eslint/lib/babylon-to-espree/toAST' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'babel-eslint/lib/babylon-to-espree/toToken' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'babel-eslint/lib/babylon-to-espree/toTokens' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'babel-eslint/lib/index' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'babel-eslint/lib/parse-with-patch' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'babel-eslint/lib/parse-with-scope' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'babel-eslint/lib/parse' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'babel-eslint/lib/patch-eslint-scope' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'babel-eslint/lib/visitor-keys' {
78 | declare module.exports: any;
79 | }
80 |
81 | // Filename aliases
82 | declare module 'babel-eslint/lib/analyze-scope.js' {
83 | declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'>;
84 | }
85 | declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' {
86 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'>;
87 | }
88 | declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' {
89 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'>;
90 | }
91 | declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' {
92 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'>;
93 | }
94 | declare module 'babel-eslint/lib/babylon-to-espree/index.js' {
95 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/index'>;
96 | }
97 | declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' {
98 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'>;
99 | }
100 | declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' {
101 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'>;
102 | }
103 | declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' {
104 | declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'>;
105 | }
106 | declare module 'babel-eslint/lib/index.js' {
107 | declare module.exports: $Exports<'babel-eslint/lib/index'>;
108 | }
109 | declare module 'babel-eslint/lib/parse-with-patch.js' {
110 | declare module.exports: $Exports<'babel-eslint/lib/parse-with-patch'>;
111 | }
112 | declare module 'babel-eslint/lib/parse-with-scope.js' {
113 | declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'>;
114 | }
115 | declare module 'babel-eslint/lib/parse.js' {
116 | declare module.exports: $Exports<'babel-eslint/lib/parse'>;
117 | }
118 | declare module 'babel-eslint/lib/patch-eslint-scope.js' {
119 | declare module.exports: $Exports<'babel-eslint/lib/patch-eslint-scope'>;
120 | }
121 | declare module 'babel-eslint/lib/visitor-keys.js' {
122 | declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>;
123 | }
124 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Calendar merger
2 |
3 | Suite of tools to merge multiple external calendars into a single view or a single file for importing.
4 |
5 | ## Components
6 |
7 | ### Package
8 |
9 | `dist/ical-merger*.js`
10 |
11 | Default export is a relatively simple function that merges multiple .ics files into one.
12 |
13 | ```javascript
14 | merge(inputs, options);
15 | ```
16 |
17 | ```javascript
18 | icals = [
19 | fs.readFileSync('cal.ics', 'utf8'),
20 | fs.readFileSync('another.ics', 'utf8')
21 | ];
22 | merge(icals, {
23 | calname: 'Merged Calendar',
24 | timezone: 'America/Chicago',
25 | caldesc: 'Two calendars put together'
26 | })
27 | ```
28 |
29 | Calendar name, description, and timezone default to their respective values in the first calendar encountered (`inputs[0]`);
30 |
31 | ### CLI tool
32 |
33 | `cli.js`
34 |
35 | A small wrapper for the underlying package.
36 |
37 | ```sh
38 | ical-merge
39 | ```
40 |
41 | ```sh
42 | CALNAME="Merged Calendar"\
43 | TIMEZONE="America/Chicago"\
44 | CALDESC="Two calendars put together"\
45 | ical-merge cal.ics another.ics
46 | ```
47 |
48 | Accepts filenames, options are set by environment variables. Output is sent to stdout.
49 |
50 | ### Web service
51 |
52 | `dist/server.js`
53 |
54 | Web service that serves the calendar webapp and serves merged .ics files.
55 |
56 | `/combine.ics` accepts an array of URLs to externally-hosted .ics files, and responds with the merged file. URLs are specified with PHP-style array syntax: `?urls[]=…`.
57 |
58 | Other `/[ID].ics` merged files are returned, based on the [`.env.json`][env] configuration file.
59 |
60 | ### Webapp
61 |
62 | `public/**/*`
63 |
64 | Webapp that displays public calendars from Google Calendar in a single view. Uses [FullCalendar][fullcalendar] heavily.
65 |
66 | 
67 |
68 | ## Requirements
69 |
70 | ### `.env.json`
71 |
72 | The web service and the webapp require configuration via `.env.json` in the project's root
73 |
74 | ```json
75 | {
76 | "GOOGLE_CALENDAR_API_KEY": "[API KEY]",
77 | "GOOGLE_ANALYTICS_TRACKING_ID": "[ID]",
78 | "calendars": {
79 | "cal1": {
80 | "calname": "Calendar 1",
81 | "caldesc": "Calendar 1 desc",
82 | "timezone": "America/Chicago",
83 | "color": "#462aa3",
84 | "googleCalendarId": "[ID]@group.calendar.google.com",
85 | "url": "https://calendar.google.com/calendar/ical/[ID]%40group.calendar.google.com/public/basic.ics"
86 | },
87 | "cal2": {
88 | "calname": "Calendar 2",
89 | "caldesc": "Calendar 2 desc",
90 | "timezone": "America/Chicago",
91 | "color": "#001f3f",
92 | "subCalendars": [
93 | {
94 | "calname": "Subcalendar 1",
95 | "caldesc": "Subcalendar 1 desc",
96 | "timezone": "America/Chicago",
97 | "color": "#0074D9",
98 | "googleCalendarId": "[ID]@group.calendar.google.com",
99 | "url": "https://calendar.google.com/calendar/ical/[ID]%40group.calendar.google.com/public/basic.ics"
100 | },
101 | {
102 | "calname": "Subcalendar 2",
103 | "caldesc": "Subcalendar 2 desc",
104 | "timezone": "America/Chicago",
105 | "color": "#7FDBFF",
106 | "googleCalendarId": "[ID]@group.calendar.google.com",
107 | "url": "https://calendar.google.com/calendar/ical/[ID]%40group.calendar.google.com/public/basic.ics"
108 | }
109 | ]
110 | }
111 | },
112 | "calendarGroups": {
113 | "basic": {
114 | "calname": "Group Name",
115 | "caldesc": "Main calendar group",
116 | "timezone": "America/Chicago",
117 | "color": "#36a2eb",
118 | "calendars": [
119 | "cal1",
120 | "cal2"
121 | ]
122 | }
123 | },
124 | "combine": {
125 | "calname": "Combined Calendar",
126 | "caldesc": "Combined calendar desc",
127 | "timezone": "America/Chicago"
128 | }
129 | }
130 | ```
131 | Webapp uses `googleCalendarId`s, web service uses `url`s.
132 |
133 |
134 | [FullCalendar instructions for Google Calendar API key and calendar IDs][fullcalendar-gcal]
135 |
136 | ## Docker
137 |
138 | ### Build
139 | To build the Docker container run the following command in `./Docker`:
140 |
141 | 1. `cd Docker`
142 | 2. `cp example.env.json env.json`
143 | 3. _(Edit `env.json` to your needs)_
144 | 4. `docker build . -t ics-merger`
145 |
146 | ### Run
147 | To run the tool in a Docker-container build it first then run:
148 |
149 | `docker run -p 80:3000 -d -v $PWD/env.json:/ics-merger/env.json:ro ics-merger`
150 |
151 | Where `env.json` is your configured file.
152 |
153 | [env]: #envjson
154 | [fullcalendar]: https://fullcalendar.io
155 | [fullcalendar-gcal]: https://fullcalendar.io/docs/google_calendar/
156 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@jacobmischka/ical-merger",
3 | "version": "6.0.2",
4 | "description": "Merges multiple ical .ics files into one for importing elsewhere",
5 | "main": "dist/ical-merger.cjs.js",
6 | "bundle": "dist/ical-merger.bundle.js",
7 | "module": "dist/ical-merger.js",
8 | "scripts": {
9 | "start": "NODE_ENV=production node dist/server.js",
10 | "serve": "PORT=4444 nodemon --watch ./dist dist/server.js",
11 | "build": "npm-run-all clean --parallel build:*",
12 | "now-build": "NODE_ENV=production webpack --mode production",
13 | "build:webpack": "NODE_ENV=production webpack --mode production",
14 | "build:rollup": "run-p rollup:*",
15 | "build:components": "NODE_ENV=production babel ./src/components --out-dir ./dist/components",
16 | "build:helpers": "NODE_ENV=production babel ./src/constants.js -o ./dist/constants.js && NODE_ENV=production babel ./src/utils.js -o ./dist/utils.js && NODE_ENV=production babel ./src/server-utils.js -o ./dist/server-utils.js && NODE_ENV=production babel ./src/fullcalendar-to-ics.js -o ./dist/fullcalendar-to-ics.js",
17 | "rollup:node": "rollup -c",
18 | "rollup:bundle": "rollup -c rollup.config.bundle.js",
19 | "rollup:server": "rollup -c rollup.config.server.js",
20 | "watch": "npm-run-all clean --parallel watch:*",
21 | "watch:webpack": "webpack --progress --color --watch --mode development",
22 | "watch:rollup": "run-p rollup-watch:*",
23 | "watch:components": "NODE_ENV=production babel ./src/components --watch --out-dir ./dist/components",
24 | "watch:constants": "NODE_ENV=production babel ./src/constants.js --watch -o ./dist/constants.js",
25 | "watch:utils": "NODE_ENV=production babel ./src/utils.js --watch -o ./dist/utils.js",
26 | "rollup-watch:node": "rollup -cw",
27 | "rollup-watch:bundle": "rollup -c rollup.config.bundle.js -w",
28 | "rollup-watch:server": "rollup -c rollup.config.server.js -w",
29 | "clean": "rm -rf ./dist ./public ; mkdir -p dist",
30 | "lint": "eslint src",
31 | "analyze:bundle": "webpack-bundle-analyzer ./public/js/stats.json",
32 | "deploy": "echo '!env.json' >> .npmignore ; now ; sed -i '$ d' .npmignore",
33 | "prepublish": "in-publish && npm-run-all lint && npm-run-all build || not-in-publish"
34 | },
35 | "bin": {
36 | "ical-merge": "./cli.js"
37 | },
38 | "repository": {
39 | "url": "git@github.com:jacobmischka/ics-merger.git",
40 | "type": "git"
41 | },
42 | "engines": {
43 | "node": ">6.8.1"
44 | },
45 | "browserslist": [
46 | "> 1%",
47 | "last 2 versions",
48 | "IE 9"
49 | ],
50 | "author": "Jacob Mischka ",
51 | "license": "MIT",
52 | "dependencies": {
53 | "clipboard": "^2.0.1",
54 | "color": "^3.0.0",
55 | "color-string": "^1.4.0",
56 | "express": "^4.14.0",
57 | "fullcalendar": "^3.10.1",
58 | "ical.js": "^1.2.2",
59 | "iframe-resizer": "^3.5.14",
60 | "jquery": "^3.4.1",
61 | "linkifyjs": "^2.1.9",
62 | "localforage": "^1.5.6",
63 | "lodash": "^4.17.4",
64 | "moment-timezone": "^0.5.26",
65 | "node-fetch": "^2.1.2",
66 | "prop-types": "^15.5.6",
67 | "react": "^17.0.0",
68 | "react-dom": "^17.0.0",
69 | "react-feather": "^1.1.0",
70 | "react-router": "^4.0.0",
71 | "react-router-dom": "^4.0.0",
72 | "striptags": "^3.1.1",
73 | "styled-jsx": "3.3.2",
74 | "typeface-noto-sans": "^0.0.54"
75 | },
76 | "devDependencies": {
77 | "@babel/cli": "^7.12.10",
78 | "@babel/core": "^7.12.10",
79 | "@babel/plugin-external-helpers": "^7.12.1",
80 | "@babel/plugin-proposal-class-properties": "^7.12.1",
81 | "@babel/preset-env": "^7.12.11",
82 | "@babel/preset-flow": "^7.12.1",
83 | "@babel/preset-react": "^7.12.10",
84 | "apply-loader": "^2.0.0",
85 | "autoprefixer": "^8.6.3",
86 | "babel-eslint": "^10.1.0",
87 | "babel-loader": "^8.2.2",
88 | "babel-plugin-transform-class-properties": "^6.24.1",
89 | "classlist-polyfill": "^1.0.3",
90 | "core-js": "^3.8.3",
91 | "css-loader": "^0.28.0",
92 | "element-dataset": "^2.2.2",
93 | "es6-promise": "^4.0.5",
94 | "eslint": "^4.4.1",
95 | "eslint-plugin-react": "^7.2.1",
96 | "file-loader": "^1.1.5",
97 | "flow-bin": "^0.75.0",
98 | "flow-typed": "^2.1.5",
99 | "html-webpack-plugin": "^3.2.0",
100 | "in-publish": "^2.0.0",
101 | "mini-css-extract-plugin": "^0.4.0",
102 | "nodemon": "^1.11.0",
103 | "npm-run-all": "^4.0.1",
104 | "raf": "^3.3.2",
105 | "regenerator-runtime": "^0.13.7",
106 | "rollup": "^2.38.0",
107 | "rollup-plugin-babel": "^4.4.0",
108 | "rollup-plugin-buble": "^0.19.2",
109 | "rollup-plugin-commonjs": "^10.1.0",
110 | "rollup-plugin-json": "^4.0.0",
111 | "rollup-plugin-node-resolve": "^5.2.0",
112 | "style-loader": "^0.21.0",
113 | "url-search-params-polyfill": "^4.0.0",
114 | "webpack": "^4.12.0",
115 | "webpack-bundle-analyzer": "^2.1.1",
116 | "webpack-cli": "^3.0.8",
117 | "webpack-dev-server": "^3.1.4",
118 | "whatwg-fetch": "^2.0.0"
119 | },
120 | "icalMerger": {
121 | "prodid": "-//Jacob Mischka//iCal Merger//EN",
122 | "version": "2.0"
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/flow-typed/npm/es6-promise_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: fc3dc133725f4fd2bfcc21b53149b6ec
2 | // flow-typed version: <>/es6-promise_v^4.0.5/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'es6-promise'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'es6-promise' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'es6-promise/auto' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'es6-promise/dist/es6-promise.auto' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'es6-promise/dist/es6-promise.auto.min' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'es6-promise/dist/es6-promise' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'es6-promise/dist/es6-promise.min' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'es6-promise/lib/es6-promise.auto' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'es6-promise/lib/es6-promise' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'es6-promise/lib/es6-promise/-internal' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'es6-promise/lib/es6-promise/asap' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'es6-promise/lib/es6-promise/enumerator' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'es6-promise/lib/es6-promise/polyfill' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'es6-promise/lib/es6-promise/promise' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'es6-promise/lib/es6-promise/promise/all' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'es6-promise/lib/es6-promise/promise/race' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'es6-promise/lib/es6-promise/promise/reject' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'es6-promise/lib/es6-promise/promise/resolve' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'es6-promise/lib/es6-promise/then' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'es6-promise/lib/es6-promise/utils' {
94 | declare module.exports: any;
95 | }
96 |
97 | // Filename aliases
98 | declare module 'es6-promise/auto.js' {
99 | declare module.exports: $Exports<'es6-promise/auto'>;
100 | }
101 | declare module 'es6-promise/dist/es6-promise.auto.js' {
102 | declare module.exports: $Exports<'es6-promise/dist/es6-promise.auto'>;
103 | }
104 | declare module 'es6-promise/dist/es6-promise.auto.min.js' {
105 | declare module.exports: $Exports<'es6-promise/dist/es6-promise.auto.min'>;
106 | }
107 | declare module 'es6-promise/dist/es6-promise.js' {
108 | declare module.exports: $Exports<'es6-promise/dist/es6-promise'>;
109 | }
110 | declare module 'es6-promise/dist/es6-promise.min.js' {
111 | declare module.exports: $Exports<'es6-promise/dist/es6-promise.min'>;
112 | }
113 | declare module 'es6-promise/lib/es6-promise.auto.js' {
114 | declare module.exports: $Exports<'es6-promise/lib/es6-promise.auto'>;
115 | }
116 | declare module 'es6-promise/lib/es6-promise.js' {
117 | declare module.exports: $Exports<'es6-promise/lib/es6-promise'>;
118 | }
119 | declare module 'es6-promise/lib/es6-promise/-internal.js' {
120 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/-internal'>;
121 | }
122 | declare module 'es6-promise/lib/es6-promise/asap.js' {
123 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/asap'>;
124 | }
125 | declare module 'es6-promise/lib/es6-promise/enumerator.js' {
126 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/enumerator'>;
127 | }
128 | declare module 'es6-promise/lib/es6-promise/polyfill.js' {
129 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/polyfill'>;
130 | }
131 | declare module 'es6-promise/lib/es6-promise/promise.js' {
132 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/promise'>;
133 | }
134 | declare module 'es6-promise/lib/es6-promise/promise/all.js' {
135 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/promise/all'>;
136 | }
137 | declare module 'es6-promise/lib/es6-promise/promise/race.js' {
138 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/promise/race'>;
139 | }
140 | declare module 'es6-promise/lib/es6-promise/promise/reject.js' {
141 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/promise/reject'>;
142 | }
143 | declare module 'es6-promise/lib/es6-promise/promise/resolve.js' {
144 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/promise/resolve'>;
145 | }
146 | declare module 'es6-promise/lib/es6-promise/then.js' {
147 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/then'>;
148 | }
149 | declare module 'es6-promise/lib/es6-promise/utils.js' {
150 | declare module.exports: $Exports<'es6-promise/lib/es6-promise/utils'>;
151 | }
152 |
--------------------------------------------------------------------------------
/flow-typed/npm/react-router-dom_v4.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: e17b8456b4440f2ec927d930e61db55f
2 | // flow-typed version: 2973a15489/react-router-dom_v4.x.x/flow_>=v0.63.x <=v0.97.x
3 |
4 | declare module "react-router-dom" {
5 | declare export var BrowserRouter: React$ComponentType<{|
6 | basename?: string,
7 | forceRefresh?: boolean,
8 | getUserConfirmation?: GetUserConfirmation,
9 | keyLength?: number,
10 | children?: React$Node
11 | |}>
12 |
13 | declare export var HashRouter: React$ComponentType<{|
14 | basename?: string,
15 | getUserConfirmation?: GetUserConfirmation,
16 | hashType?: "slash" | "noslash" | "hashbang",
17 | children?: React$Node
18 | |}>
19 |
20 | declare export var Link: React$ComponentType<{
21 | className?: string,
22 | to: string | LocationShape,
23 | replace?: boolean,
24 | children?: React$Node
25 | }>
26 |
27 | declare export var NavLink: React$ComponentType<{
28 | to: string | LocationShape,
29 | activeClassName?: string,
30 | className?: string,
31 | activeStyle?: Object,
32 | style?: Object,
33 | isActive?: (match: Match, location: Location) => boolean,
34 | children?: React$Node,
35 | exact?: boolean,
36 | strict?: boolean
37 | }>
38 |
39 | // NOTE: Below are duplicated from react-router. If updating these, please
40 | // update the react-router and react-router-native types as well.
41 | declare export type Location = {
42 | pathname: string,
43 | search: string,
44 | hash: string,
45 | state?: any,
46 | key?: string
47 | };
48 |
49 | declare export type LocationShape = {
50 | pathname?: string,
51 | search?: string,
52 | hash?: string,
53 | state?: any
54 | };
55 |
56 | declare export type HistoryAction = "PUSH" | "REPLACE" | "POP";
57 |
58 | declare export type RouterHistory = {
59 | length: number,
60 | location: Location,
61 | action: HistoryAction,
62 | listen(
63 | callback: (location: Location, action: HistoryAction) => void
64 | ): () => void,
65 | push(path: string | LocationShape, state?: any): void,
66 | replace(path: string | LocationShape, state?: any): void,
67 | go(n: number): void,
68 | goBack(): void,
69 | goForward(): void,
70 | canGo?: (n: number) => boolean,
71 | block(
72 | callback: string | (location: Location, action: HistoryAction) => ?string
73 | ): () => void,
74 | // createMemoryHistory
75 | index?: number,
76 | entries?: Array
77 | };
78 |
79 | declare export type Match = {
80 | params: { [key: string]: ?string },
81 | isExact: boolean,
82 | path: string,
83 | url: string
84 | };
85 |
86 | declare export type ContextRouter = {|
87 | history: RouterHistory,
88 | location: Location,
89 | match: Match,
90 | staticContext?: StaticRouterContext
91 | |};
92 |
93 | declare type ContextRouterVoid = {
94 | history: RouterHistory | void,
95 | location: Location | void,
96 | match: Match | void,
97 | staticContext?: StaticRouterContext | void
98 | };
99 |
100 | declare export type GetUserConfirmation = (
101 | message: string,
102 | callback: (confirmed: boolean) => void
103 | ) => void;
104 |
105 | declare export type StaticRouterContext = {
106 | url?: string
107 | };
108 |
109 | declare export var StaticRouter: React$ComponentType<{|
110 | basename?: string,
111 | location?: string | Location,
112 | context: StaticRouterContext,
113 | children?: React$Node
114 | |}>
115 |
116 | declare export var MemoryRouter: React$ComponentType<{|
117 | initialEntries?: Array,
118 | initialIndex?: number,
119 | getUserConfirmation?: GetUserConfirmation,
120 | keyLength?: number,
121 | children?: React$Node
122 | |}>
123 |
124 | declare export var Router: React$ComponentType<{|
125 | history: RouterHistory,
126 | children?: React$Node
127 | |}>
128 |
129 | declare export var Prompt: React$ComponentType<{|
130 | message: string | ((location: Location) => string | boolean),
131 | when?: boolean
132 | |}>
133 |
134 | declare export var Redirect: React$ComponentType<{|
135 | to: string | LocationShape,
136 | push?: boolean,
137 | from?: string,
138 | exact?: boolean,
139 | strict?: boolean
140 | |}>
141 |
142 | declare export var Route: React$ComponentType<{|
143 | component?: React$ComponentType<*>,
144 | render?: (router: ContextRouter) => React$Node,
145 | children?: React$ComponentType | React$Node,
146 | path?: string | Array,
147 | exact?: boolean,
148 | strict?: boolean,
149 | location?: LocationShape,
150 | sensitive?: boolean
151 | |}>
152 |
153 | declare export var Switch: React$ComponentType<{|
154 | children?: React$Node,
155 | location?: Location
156 | |}>
157 |
158 | declare export function withRouter>(WrappedComponent: Component) : React$ComponentType<$Diff>, ContextRouterVoid>>;
159 |
160 | declare type MatchPathOptions = {
161 | path?: string,
162 | exact?: boolean,
163 | sensitive?: boolean,
164 | strict?: boolean
165 | };
166 |
167 | declare export function matchPath(
168 | pathname: string,
169 | options?: MatchPathOptions | string,
170 | parent?: Match
171 | ): null | Match;
172 |
173 | declare export function generatePath(pattern?: string, params?: Object): string;
174 | }
175 |
--------------------------------------------------------------------------------
/flow-typed/npm/ical.js_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 4746ab353c5c3ca127e6611d9bcc471d
2 | // flow-typed version: <>/ical.js_v^1.2.2/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'ical.js'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'ical.js' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'ical.js/build/ical' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'ical.js/build/ical.min' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'ical.js/lib/ical/binary' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'ical.js/lib/ical/component_parser' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'ical.js/lib/ical/component' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'ical.js/lib/ical/design' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'ical.js/lib/ical/duration' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'ical.js/lib/ical/event' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'ical.js/lib/ical/helpers' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'ical.js/lib/ical/parse' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'ical.js/lib/ical/period' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'ical.js/lib/ical/property' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'ical.js/lib/ical/recur_expansion' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'ical.js/lib/ical/recur_iterator' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'ical.js/lib/ical/recur' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'ical.js/lib/ical/stringify' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'ical.js/lib/ical/time' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'ical.js/lib/ical/timezone_service' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'ical.js/lib/ical/timezone' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'ical.js/lib/ical/utc_offset' {
102 | declare module.exports: any;
103 | }
104 |
105 | declare module 'ical.js/lib/ical/vcard_time' {
106 | declare module.exports: any;
107 | }
108 |
109 | // Filename aliases
110 | declare module 'ical.js/build/ical.js' {
111 | declare module.exports: $Exports<'ical.js/build/ical'>;
112 | }
113 | declare module 'ical.js/build/ical.min.js' {
114 | declare module.exports: $Exports<'ical.js/build/ical.min'>;
115 | }
116 | declare module 'ical.js/lib/ical/binary.js' {
117 | declare module.exports: $Exports<'ical.js/lib/ical/binary'>;
118 | }
119 | declare module 'ical.js/lib/ical/component_parser.js' {
120 | declare module.exports: $Exports<'ical.js/lib/ical/component_parser'>;
121 | }
122 | declare module 'ical.js/lib/ical/component.js' {
123 | declare module.exports: $Exports<'ical.js/lib/ical/component'>;
124 | }
125 | declare module 'ical.js/lib/ical/design.js' {
126 | declare module.exports: $Exports<'ical.js/lib/ical/design'>;
127 | }
128 | declare module 'ical.js/lib/ical/duration.js' {
129 | declare module.exports: $Exports<'ical.js/lib/ical/duration'>;
130 | }
131 | declare module 'ical.js/lib/ical/event.js' {
132 | declare module.exports: $Exports<'ical.js/lib/ical/event'>;
133 | }
134 | declare module 'ical.js/lib/ical/helpers.js' {
135 | declare module.exports: $Exports<'ical.js/lib/ical/helpers'>;
136 | }
137 | declare module 'ical.js/lib/ical/parse.js' {
138 | declare module.exports: $Exports<'ical.js/lib/ical/parse'>;
139 | }
140 | declare module 'ical.js/lib/ical/period.js' {
141 | declare module.exports: $Exports<'ical.js/lib/ical/period'>;
142 | }
143 | declare module 'ical.js/lib/ical/property.js' {
144 | declare module.exports: $Exports<'ical.js/lib/ical/property'>;
145 | }
146 | declare module 'ical.js/lib/ical/recur_expansion.js' {
147 | declare module.exports: $Exports<'ical.js/lib/ical/recur_expansion'>;
148 | }
149 | declare module 'ical.js/lib/ical/recur_iterator.js' {
150 | declare module.exports: $Exports<'ical.js/lib/ical/recur_iterator'>;
151 | }
152 | declare module 'ical.js/lib/ical/recur.js' {
153 | declare module.exports: $Exports<'ical.js/lib/ical/recur'>;
154 | }
155 | declare module 'ical.js/lib/ical/stringify.js' {
156 | declare module.exports: $Exports<'ical.js/lib/ical/stringify'>;
157 | }
158 | declare module 'ical.js/lib/ical/time.js' {
159 | declare module.exports: $Exports<'ical.js/lib/ical/time'>;
160 | }
161 | declare module 'ical.js/lib/ical/timezone_service.js' {
162 | declare module.exports: $Exports<'ical.js/lib/ical/timezone_service'>;
163 | }
164 | declare module 'ical.js/lib/ical/timezone.js' {
165 | declare module.exports: $Exports<'ical.js/lib/ical/timezone'>;
166 | }
167 | declare module 'ical.js/lib/ical/utc_offset.js' {
168 | declare module.exports: $Exports<'ical.js/lib/ical/utc_offset'>;
169 | }
170 | declare module 'ical.js/lib/ical/vcard_time.js' {
171 | declare module.exports: $Exports<'ical.js/lib/ical/vcard_time'>;
172 | }
173 |
--------------------------------------------------------------------------------
/flow-typed/npm/webpack-dev-server_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: ba854619dd7ef4162238e115c439c167
2 | // flow-typed version: <>/webpack-dev-server_v^3.1.4/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'webpack-dev-server'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'webpack-dev-server' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'webpack-dev-server/bin/options' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'webpack-dev-server/bin/webpack-dev-server' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'webpack-dev-server/client/index.bundle' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'webpack-dev-server/client/index' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'webpack-dev-server/client/live.bundle' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'webpack-dev-server/client/overlay' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'webpack-dev-server/client/socket' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'webpack-dev-server/client/sockjs.bundle' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'webpack-dev-server/client/webpack.config' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'webpack-dev-server/lib/Server' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'webpack-dev-server/lib/utils/addEntries' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'webpack-dev-server/lib/utils/colors' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'webpack-dev-server/lib/utils/createCertificate' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'webpack-dev-server/lib/utils/createConfig' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'webpack-dev-server/lib/utils/createDomain' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'webpack-dev-server/lib/utils/createLogger' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'webpack-dev-server/lib/utils/defaultTo' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'webpack-dev-server/lib/utils/getVersions' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'webpack-dev-server/lib/utils/runBonjour' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'webpack-dev-server/lib/utils/status' {
102 | declare module.exports: any;
103 | }
104 |
105 | // Filename aliases
106 | declare module 'webpack-dev-server/bin/options.js' {
107 | declare module.exports: $Exports<'webpack-dev-server/bin/options'>;
108 | }
109 | declare module 'webpack-dev-server/bin/webpack-dev-server.js' {
110 | declare module.exports: $Exports<'webpack-dev-server/bin/webpack-dev-server'>;
111 | }
112 | declare module 'webpack-dev-server/client/index.bundle.js' {
113 | declare module.exports: $Exports<'webpack-dev-server/client/index.bundle'>;
114 | }
115 | declare module 'webpack-dev-server/client/index.js' {
116 | declare module.exports: $Exports<'webpack-dev-server/client/index'>;
117 | }
118 | declare module 'webpack-dev-server/client/live.bundle.js' {
119 | declare module.exports: $Exports<'webpack-dev-server/client/live.bundle'>;
120 | }
121 | declare module 'webpack-dev-server/client/overlay.js' {
122 | declare module.exports: $Exports<'webpack-dev-server/client/overlay'>;
123 | }
124 | declare module 'webpack-dev-server/client/socket.js' {
125 | declare module.exports: $Exports<'webpack-dev-server/client/socket'>;
126 | }
127 | declare module 'webpack-dev-server/client/sockjs.bundle.js' {
128 | declare module.exports: $Exports<'webpack-dev-server/client/sockjs.bundle'>;
129 | }
130 | declare module 'webpack-dev-server/client/webpack.config.js' {
131 | declare module.exports: $Exports<'webpack-dev-server/client/webpack.config'>;
132 | }
133 | declare module 'webpack-dev-server/lib/Server.js' {
134 | declare module.exports: $Exports<'webpack-dev-server/lib/Server'>;
135 | }
136 | declare module 'webpack-dev-server/lib/utils/addEntries.js' {
137 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/addEntries'>;
138 | }
139 | declare module 'webpack-dev-server/lib/utils/colors.js' {
140 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/colors'>;
141 | }
142 | declare module 'webpack-dev-server/lib/utils/createCertificate.js' {
143 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createCertificate'>;
144 | }
145 | declare module 'webpack-dev-server/lib/utils/createConfig.js' {
146 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createConfig'>;
147 | }
148 | declare module 'webpack-dev-server/lib/utils/createDomain.js' {
149 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createDomain'>;
150 | }
151 | declare module 'webpack-dev-server/lib/utils/createLogger.js' {
152 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/createLogger'>;
153 | }
154 | declare module 'webpack-dev-server/lib/utils/defaultTo.js' {
155 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/defaultTo'>;
156 | }
157 | declare module 'webpack-dev-server/lib/utils/getVersions.js' {
158 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/getVersions'>;
159 | }
160 | declare module 'webpack-dev-server/lib/utils/runBonjour.js' {
161 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/runBonjour'>;
162 | }
163 | declare module 'webpack-dev-server/lib/utils/status.js' {
164 | declare module.exports: $Exports<'webpack-dev-server/lib/utils/status'>;
165 | }
166 |
--------------------------------------------------------------------------------
/flow-typed/npm/npm-run-all_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 1ba79a9dce5f8e423807e5031216169c
2 | // flow-typed version: <>/npm-run-all_v^4.0.1/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'npm-run-all'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'npm-run-all' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'npm-run-all/bin/common/bootstrap' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'npm-run-all/bin/common/parse-cli-args' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'npm-run-all/bin/common/version' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'npm-run-all/bin/npm-run-all/help' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'npm-run-all/bin/npm-run-all/index' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'npm-run-all/bin/npm-run-all/main' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'npm-run-all/bin/run-p/help' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'npm-run-all/bin/run-p/index' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'npm-run-all/bin/run-p/main' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'npm-run-all/bin/run-s/help' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'npm-run-all/bin/run-s/index' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'npm-run-all/bin/run-s/main' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'npm-run-all/lib/create-header' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'npm-run-all/lib/create-prefix-transform-stream' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'npm-run-all/lib/index' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'npm-run-all/lib/match-tasks' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'npm-run-all/lib/npm-run-all-error' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'npm-run-all/lib/read-package-json' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'npm-run-all/lib/run-task' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'npm-run-all/lib/run-tasks' {
102 | declare module.exports: any;
103 | }
104 |
105 | declare module 'npm-run-all/lib/spawn-posix' {
106 | declare module.exports: any;
107 | }
108 |
109 | declare module 'npm-run-all/lib/spawn-win32' {
110 | declare module.exports: any;
111 | }
112 |
113 | declare module 'npm-run-all/lib/spawn' {
114 | declare module.exports: any;
115 | }
116 |
117 | // Filename aliases
118 | declare module 'npm-run-all/bin/common/bootstrap.js' {
119 | declare module.exports: $Exports<'npm-run-all/bin/common/bootstrap'>;
120 | }
121 | declare module 'npm-run-all/bin/common/parse-cli-args.js' {
122 | declare module.exports: $Exports<'npm-run-all/bin/common/parse-cli-args'>;
123 | }
124 | declare module 'npm-run-all/bin/common/version.js' {
125 | declare module.exports: $Exports<'npm-run-all/bin/common/version'>;
126 | }
127 | declare module 'npm-run-all/bin/npm-run-all/help.js' {
128 | declare module.exports: $Exports<'npm-run-all/bin/npm-run-all/help'>;
129 | }
130 | declare module 'npm-run-all/bin/npm-run-all/index.js' {
131 | declare module.exports: $Exports<'npm-run-all/bin/npm-run-all/index'>;
132 | }
133 | declare module 'npm-run-all/bin/npm-run-all/main.js' {
134 | declare module.exports: $Exports<'npm-run-all/bin/npm-run-all/main'>;
135 | }
136 | declare module 'npm-run-all/bin/run-p/help.js' {
137 | declare module.exports: $Exports<'npm-run-all/bin/run-p/help'>;
138 | }
139 | declare module 'npm-run-all/bin/run-p/index.js' {
140 | declare module.exports: $Exports<'npm-run-all/bin/run-p/index'>;
141 | }
142 | declare module 'npm-run-all/bin/run-p/main.js' {
143 | declare module.exports: $Exports<'npm-run-all/bin/run-p/main'>;
144 | }
145 | declare module 'npm-run-all/bin/run-s/help.js' {
146 | declare module.exports: $Exports<'npm-run-all/bin/run-s/help'>;
147 | }
148 | declare module 'npm-run-all/bin/run-s/index.js' {
149 | declare module.exports: $Exports<'npm-run-all/bin/run-s/index'>;
150 | }
151 | declare module 'npm-run-all/bin/run-s/main.js' {
152 | declare module.exports: $Exports<'npm-run-all/bin/run-s/main'>;
153 | }
154 | declare module 'npm-run-all/lib/create-header.js' {
155 | declare module.exports: $Exports<'npm-run-all/lib/create-header'>;
156 | }
157 | declare module 'npm-run-all/lib/create-prefix-transform-stream.js' {
158 | declare module.exports: $Exports<'npm-run-all/lib/create-prefix-transform-stream'>;
159 | }
160 | declare module 'npm-run-all/lib/index.js' {
161 | declare module.exports: $Exports<'npm-run-all/lib/index'>;
162 | }
163 | declare module 'npm-run-all/lib/match-tasks.js' {
164 | declare module.exports: $Exports<'npm-run-all/lib/match-tasks'>;
165 | }
166 | declare module 'npm-run-all/lib/npm-run-all-error.js' {
167 | declare module.exports: $Exports<'npm-run-all/lib/npm-run-all-error'>;
168 | }
169 | declare module 'npm-run-all/lib/read-package-json.js' {
170 | declare module.exports: $Exports<'npm-run-all/lib/read-package-json'>;
171 | }
172 | declare module 'npm-run-all/lib/run-task.js' {
173 | declare module.exports: $Exports<'npm-run-all/lib/run-task'>;
174 | }
175 | declare module 'npm-run-all/lib/run-tasks.js' {
176 | declare module.exports: $Exports<'npm-run-all/lib/run-tasks'>;
177 | }
178 | declare module 'npm-run-all/lib/spawn-posix.js' {
179 | declare module.exports: $Exports<'npm-run-all/lib/spawn-posix'>;
180 | }
181 | declare module 'npm-run-all/lib/spawn-win32.js' {
182 | declare module.exports: $Exports<'npm-run-all/lib/spawn-win32'>;
183 | }
184 | declare module 'npm-run-all/lib/spawn.js' {
185 | declare module.exports: $Exports<'npm-run-all/lib/spawn'>;
186 | }
187 |
--------------------------------------------------------------------------------
/src/components/Subscription.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import PropTypes from 'prop-types';
3 | import Clipboard from 'clipboard';
4 | import Color from 'color';
5 |
6 | import { COLORS, OPACITIES } from '../constants.js';
7 |
8 | const buttonHoverBackgroundColor = new Color(COLORS.PRIMARY).alpha(OPACITIES.SECONDARY);
9 | const secondaryText = new Color(COLORS.TEXT).alpha(OPACITIES.TEXT.SECONDARY);
10 |
11 | export default class Subscription extends Component {
12 | constructor(props){
13 | super(props);
14 | this.state = {
15 | showSub: false,
16 | copyButtonHovered: false,
17 | showUrl: false,
18 | copied: false
19 | };
20 |
21 | this.handleShowSub = this.handleShowSub.bind(this);
22 | this.handleHideSub = this.handleHideSub.bind(this);
23 | this.toggleShowUrl = this.toggleShowUrl.bind(this);
24 | this.handleCopyButtonMouseDown = this.handleCopyButtonMouseDown.bind(this);
25 | this.handleCopyButtonMouseUp = this.handleCopyButtonMouseUp.bind(this);
26 | }
27 |
28 | UNSAFE_componentWillUpdate(nextProps, nextState){
29 | if((this.state.showSub && !nextState.showSub)
30 | || (this.state.showUrl && !nextState.showUrl))
31 | this.clipboard.destroy();
32 | }
33 |
34 | render(){
35 | const { url } = this.props;
36 |
37 | let dirs = url.split('?')[0].split('/');
38 | const filename = dirs[dirs.length - 1];
39 | const webcalUrl = `webcal://${url.substring(url.indexOf('://') + 3)}`;
40 |
41 | return (
42 |
43 | {
44 | this.state.showSub
45 | ? (
46 |
89 | )
90 | : (
91 |
92 |
95 |
96 | )
97 | }
98 |
99 |
178 |
179 | );
180 | }
181 |
182 | componentDidUpdate(){
183 | if(this.state.showSub){
184 | this.clipboard = new Clipboard('#copy-button');
185 | this.clipboard.on('success', () => {
186 | this.setState({copied: true}, () => {
187 | window.setTimeout(() => {
188 | this.setState({copied: false});
189 | }, 2000);
190 | });
191 | });
192 | }
193 | }
194 |
195 | handleShowSub(event){
196 | event.preventDefault();
197 | this.setState({showSub: true});
198 | }
199 |
200 | handleHideSub(event){
201 | event.preventDefault();
202 | this.setState({showSub: false});
203 | }
204 |
205 | toggleShowUrl(){
206 | this.setState(state => {
207 | return {showUrl: !state.showUrl};
208 | });
209 | }
210 |
211 | handleCopyButtonMouseDown(){
212 | this.copyButtonPressTimeout = window.setTimeout(() => {
213 | this.toggleShowUrl();
214 | }, 1000);
215 | }
216 |
217 | handleCopyButtonMouseUp(){
218 | if(this.copyButtonPressTimeout)
219 | window.clearTimeout(this.copyButtonPressTimeout);
220 | }
221 | }
222 |
223 | Subscription.propTypes = {
224 | url: PropTypes.string
225 | };
226 |
--------------------------------------------------------------------------------
/flow-typed/npm/flow-typed_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 688acd36c2ecfd8ec0a92bd7873aba8e
2 | // flow-typed version: <>/flow-typed_v^2.1.5/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'flow-typed'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'flow-typed' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'flow-typed/dist/cli' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'flow-typed/dist/commands/create-stub' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'flow-typed/dist/commands/install' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'flow-typed/dist/commands/runTests' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'flow-typed/dist/commands/search' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'flow-typed/dist/commands/update-cache' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'flow-typed/dist/commands/update' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'flow-typed/dist/commands/validateDefs' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'flow-typed/dist/commands/version' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'flow-typed/dist/lib/cacheRepoUtils' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'flow-typed/dist/lib/codeSign' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'flow-typed/dist/lib/fileUtils' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'flow-typed/dist/lib/flowProjectUtils' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'flow-typed/dist/lib/flowVersion' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'flow-typed/dist/lib/git' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'flow-typed/dist/lib/github' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'flow-typed/dist/lib/isInFlowTypedRepo' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'flow-typed/dist/lib/libDefs' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'flow-typed/dist/lib/node' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'flow-typed/dist/lib/npm/npmLibDefs' {
102 | declare module.exports: any;
103 | }
104 |
105 | declare module 'flow-typed/dist/lib/npm/npmProjectUtils' {
106 | declare module.exports: any;
107 | }
108 |
109 | declare module 'flow-typed/dist/lib/semver' {
110 | declare module.exports: any;
111 | }
112 |
113 | declare module 'flow-typed/dist/lib/stubUtils' {
114 | declare module.exports: any;
115 | }
116 |
117 | declare module 'flow-typed/dist/lib/validationErrors' {
118 | declare module.exports: any;
119 | }
120 |
121 | // Filename aliases
122 | declare module 'flow-typed/dist/cli.js' {
123 | declare module.exports: $Exports<'flow-typed/dist/cli'>;
124 | }
125 | declare module 'flow-typed/dist/commands/create-stub.js' {
126 | declare module.exports: $Exports<'flow-typed/dist/commands/create-stub'>;
127 | }
128 | declare module 'flow-typed/dist/commands/install.js' {
129 | declare module.exports: $Exports<'flow-typed/dist/commands/install'>;
130 | }
131 | declare module 'flow-typed/dist/commands/runTests.js' {
132 | declare module.exports: $Exports<'flow-typed/dist/commands/runTests'>;
133 | }
134 | declare module 'flow-typed/dist/commands/search.js' {
135 | declare module.exports: $Exports<'flow-typed/dist/commands/search'>;
136 | }
137 | declare module 'flow-typed/dist/commands/update-cache.js' {
138 | declare module.exports: $Exports<'flow-typed/dist/commands/update-cache'>;
139 | }
140 | declare module 'flow-typed/dist/commands/update.js' {
141 | declare module.exports: $Exports<'flow-typed/dist/commands/update'>;
142 | }
143 | declare module 'flow-typed/dist/commands/validateDefs.js' {
144 | declare module.exports: $Exports<'flow-typed/dist/commands/validateDefs'>;
145 | }
146 | declare module 'flow-typed/dist/commands/version.js' {
147 | declare module.exports: $Exports<'flow-typed/dist/commands/version'>;
148 | }
149 | declare module 'flow-typed/dist/lib/cacheRepoUtils.js' {
150 | declare module.exports: $Exports<'flow-typed/dist/lib/cacheRepoUtils'>;
151 | }
152 | declare module 'flow-typed/dist/lib/codeSign.js' {
153 | declare module.exports: $Exports<'flow-typed/dist/lib/codeSign'>;
154 | }
155 | declare module 'flow-typed/dist/lib/fileUtils.js' {
156 | declare module.exports: $Exports<'flow-typed/dist/lib/fileUtils'>;
157 | }
158 | declare module 'flow-typed/dist/lib/flowProjectUtils.js' {
159 | declare module.exports: $Exports<'flow-typed/dist/lib/flowProjectUtils'>;
160 | }
161 | declare module 'flow-typed/dist/lib/flowVersion.js' {
162 | declare module.exports: $Exports<'flow-typed/dist/lib/flowVersion'>;
163 | }
164 | declare module 'flow-typed/dist/lib/git.js' {
165 | declare module.exports: $Exports<'flow-typed/dist/lib/git'>;
166 | }
167 | declare module 'flow-typed/dist/lib/github.js' {
168 | declare module.exports: $Exports<'flow-typed/dist/lib/github'>;
169 | }
170 | declare module 'flow-typed/dist/lib/isInFlowTypedRepo.js' {
171 | declare module.exports: $Exports<'flow-typed/dist/lib/isInFlowTypedRepo'>;
172 | }
173 | declare module 'flow-typed/dist/lib/libDefs.js' {
174 | declare module.exports: $Exports<'flow-typed/dist/lib/libDefs'>;
175 | }
176 | declare module 'flow-typed/dist/lib/node.js' {
177 | declare module.exports: $Exports<'flow-typed/dist/lib/node'>;
178 | }
179 | declare module 'flow-typed/dist/lib/npm/npmLibDefs.js' {
180 | declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmLibDefs'>;
181 | }
182 | declare module 'flow-typed/dist/lib/npm/npmProjectUtils.js' {
183 | declare module.exports: $Exports<'flow-typed/dist/lib/npm/npmProjectUtils'>;
184 | }
185 | declare module 'flow-typed/dist/lib/semver.js' {
186 | declare module.exports: $Exports<'flow-typed/dist/lib/semver'>;
187 | }
188 | declare module 'flow-typed/dist/lib/stubUtils.js' {
189 | declare module.exports: $Exports<'flow-typed/dist/lib/stubUtils'>;
190 | }
191 | declare module 'flow-typed/dist/lib/validationErrors.js' {
192 | declare module.exports: $Exports<'flow-typed/dist/lib/validationErrors'>;
193 | }
194 |
--------------------------------------------------------------------------------
/src/components/CalendarEvent.js:
--------------------------------------------------------------------------------
1 | /** @format */
2 |
3 | import React, { Component } from "react";
4 | import PropTypes from "prop-types";
5 | import Color from "color";
6 | import striptags from "striptags";
7 | import linkifyHtml from 'linkifyjs/html';
8 |
9 | import MapPin from "react-feather/dist/icons/map-pin.js";
10 | import User from "react-feather/dist/icons/user.js";
11 | import Users from "react-feather/dist/icons/users.js";
12 |
13 | import { OPACITIES } from "../constants.js";
14 |
15 | export default class CalendarEvent extends Component {
16 | constructor(props) {
17 | super(props);
18 |
19 | this.handleClick = this.handleClick.bind(this);
20 | this.getEventTime = this.getEventTime.bind(this);
21 | this.getClassName = this.getClassName.bind(this);
22 | }
23 |
24 | markupDescription(description) {
25 | description = linkifyHtml(striptags(description, ["a", "i", "b", "br", "p"]));
26 |
27 | return { __html: description };
28 | }
29 |
30 | renderEventLocation(location) {
31 | if (!location) return;
32 |
33 | if (typeof location === "string") return location;
34 | if (location.name) return location.name;
35 | }
36 |
37 | render() {
38 | const {
39 | event,
40 | showLocation,
41 | showCalendarName,
42 | showDescription,
43 | showPresenters
44 | } = this.props;
45 |
46 | let eventTime = this.getEventTime();
47 | let className = this.getClassName();
48 |
49 | let color = Color(event.color);
50 |
51 | let style = {
52 | border: `1px solid ${color.rgb().string()}`,
53 | backgroundColor: color
54 | .alpha(0.3)
55 | .rgb()
56 | .string()
57 | };
58 |
59 | const ContainerElement = this.props.containerElement || "div";
60 |
61 | return (
62 | (this.container = container)}
68 | >
69 | {eventTime}
70 |
71 | {showCalendarName && (
72 | {event.calendar.calname}
73 | )}
74 | {event.title}
75 |
76 | {showLocation && event.location && (
77 |
78 |
79 | {this.renderEventLocation(event.location)}
80 |
81 | )}
82 | {showPresenters && event.presenters && event.presenters.length > 0 && (
83 |
84 | {event.presenters.length === 1 ? : }
85 | {event.presenters.map(presenter => presenter.name).join(", ")}
86 |
87 | )}
88 | {showDescription && event.description && (
89 |
93 | )}
94 |
165 |
166 | );
167 | }
168 |
169 | getEventTime() {
170 | let eventTime;
171 |
172 | try {
173 | const { event } = this.props;
174 | if (event.allDay) {
175 | eventTime = All day;
176 | } else {
177 | const { start, end } = event;
178 | let startTime = start.format("h");
179 | if (start.get("minute") !== 0) startTime += `:${start.format("mm")}`;
180 | if (start.format("A") !== end.format("A"))
181 | startTime += ` ${start.format("A")}`;
182 | let endTime =
183 | end.get("minute") === 0 ? end.format("h A") : end.format("LT");
184 |
185 | eventTime = (
186 |
187 |
190 | {` – `}
191 |
194 |
195 | );
196 | }
197 | } catch (err) {
198 | console.error(err);
199 | }
200 |
201 | return eventTime;
202 | }
203 |
204 | getClassName() {
205 | let className = "event";
206 | if (this.props.event.allDay) className += " all-day";
207 |
208 | return className;
209 | }
210 |
211 | handleClick(clickEvent) {
212 | clickEvent.preventDefault();
213 |
214 | const { event, setActiveEvent, setActiveEventId } = this.props;
215 |
216 | setActiveEventId(event.id, this.container);
217 | setActiveEvent(event);
218 | }
219 | }
220 |
221 | CalendarEvent.propTypes = {
222 | setActiveEvent: PropTypes.func.isRequired,
223 | setActiveEventId: PropTypes.func.isRequired,
224 | event: PropTypes.object.isRequired,
225 | view: PropTypes.object,
226 | containerElement: PropTypes.string,
227 | showLocation: PropTypes.bool,
228 | showCalendarName: PropTypes.bool,
229 | showDescription: PropTypes.bool,
230 | showPresenters: PropTypes.bool
231 | };
232 |
233 | CalendarEvent.defaultProps = {
234 | showLocation: false,
235 | showCalendarName: false,
236 | showDescription: false,
237 | showPresenters: false
238 | };
239 |
--------------------------------------------------------------------------------
/flow-typed/npm/nodemon_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: a9f7edc9b0d11dedd4e7050990d64aa9
2 | // flow-typed version: <>/nodemon_v^1.11.0/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'nodemon'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'nodemon' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'nodemon/bin/nodemon' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'nodemon/bin/postinstall' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'nodemon/commitlint.config' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'nodemon/lib/cli/index' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'nodemon/lib/cli/parse' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'nodemon/lib/config/command' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'nodemon/lib/config/defaults' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'nodemon/lib/config/exec' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'nodemon/lib/config/index' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'nodemon/lib/config/load' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'nodemon/lib/help/index' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'nodemon/lib/index' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'nodemon/lib/monitor/index' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'nodemon/lib/monitor/match' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'nodemon/lib/monitor/run' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'nodemon/lib/monitor/signals' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'nodemon/lib/monitor/watch' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'nodemon/lib/nodemon' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'nodemon/lib/rules/add' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'nodemon/lib/rules/index' {
102 | declare module.exports: any;
103 | }
104 |
105 | declare module 'nodemon/lib/rules/parse' {
106 | declare module.exports: any;
107 | }
108 |
109 | declare module 'nodemon/lib/spawn' {
110 | declare module.exports: any;
111 | }
112 |
113 | declare module 'nodemon/lib/utils/bus' {
114 | declare module.exports: any;
115 | }
116 |
117 | declare module 'nodemon/lib/utils/clone' {
118 | declare module.exports: any;
119 | }
120 |
121 | declare module 'nodemon/lib/utils/colour' {
122 | declare module.exports: any;
123 | }
124 |
125 | declare module 'nodemon/lib/utils/index' {
126 | declare module.exports: any;
127 | }
128 |
129 | declare module 'nodemon/lib/utils/log' {
130 | declare module.exports: any;
131 | }
132 |
133 | declare module 'nodemon/lib/utils/merge' {
134 | declare module.exports: any;
135 | }
136 |
137 | declare module 'nodemon/lib/version' {
138 | declare module.exports: any;
139 | }
140 |
141 | // Filename aliases
142 | declare module 'nodemon/bin/nodemon.js' {
143 | declare module.exports: $Exports<'nodemon/bin/nodemon'>;
144 | }
145 | declare module 'nodemon/bin/postinstall.js' {
146 | declare module.exports: $Exports<'nodemon/bin/postinstall'>;
147 | }
148 | declare module 'nodemon/commitlint.config.js' {
149 | declare module.exports: $Exports<'nodemon/commitlint.config'>;
150 | }
151 | declare module 'nodemon/lib/cli/index.js' {
152 | declare module.exports: $Exports<'nodemon/lib/cli/index'>;
153 | }
154 | declare module 'nodemon/lib/cli/parse.js' {
155 | declare module.exports: $Exports<'nodemon/lib/cli/parse'>;
156 | }
157 | declare module 'nodemon/lib/config/command.js' {
158 | declare module.exports: $Exports<'nodemon/lib/config/command'>;
159 | }
160 | declare module 'nodemon/lib/config/defaults.js' {
161 | declare module.exports: $Exports<'nodemon/lib/config/defaults'>;
162 | }
163 | declare module 'nodemon/lib/config/exec.js' {
164 | declare module.exports: $Exports<'nodemon/lib/config/exec'>;
165 | }
166 | declare module 'nodemon/lib/config/index.js' {
167 | declare module.exports: $Exports<'nodemon/lib/config/index'>;
168 | }
169 | declare module 'nodemon/lib/config/load.js' {
170 | declare module.exports: $Exports<'nodemon/lib/config/load'>;
171 | }
172 | declare module 'nodemon/lib/help/index.js' {
173 | declare module.exports: $Exports<'nodemon/lib/help/index'>;
174 | }
175 | declare module 'nodemon/lib/index.js' {
176 | declare module.exports: $Exports<'nodemon/lib/index'>;
177 | }
178 | declare module 'nodemon/lib/monitor/index.js' {
179 | declare module.exports: $Exports<'nodemon/lib/monitor/index'>;
180 | }
181 | declare module 'nodemon/lib/monitor/match.js' {
182 | declare module.exports: $Exports<'nodemon/lib/monitor/match'>;
183 | }
184 | declare module 'nodemon/lib/monitor/run.js' {
185 | declare module.exports: $Exports<'nodemon/lib/monitor/run'>;
186 | }
187 | declare module 'nodemon/lib/monitor/signals.js' {
188 | declare module.exports: $Exports<'nodemon/lib/monitor/signals'>;
189 | }
190 | declare module 'nodemon/lib/monitor/watch.js' {
191 | declare module.exports: $Exports<'nodemon/lib/monitor/watch'>;
192 | }
193 | declare module 'nodemon/lib/nodemon.js' {
194 | declare module.exports: $Exports<'nodemon/lib/nodemon'>;
195 | }
196 | declare module 'nodemon/lib/rules/add.js' {
197 | declare module.exports: $Exports<'nodemon/lib/rules/add'>;
198 | }
199 | declare module 'nodemon/lib/rules/index.js' {
200 | declare module.exports: $Exports<'nodemon/lib/rules/index'>;
201 | }
202 | declare module 'nodemon/lib/rules/parse.js' {
203 | declare module.exports: $Exports<'nodemon/lib/rules/parse'>;
204 | }
205 | declare module 'nodemon/lib/spawn.js' {
206 | declare module.exports: $Exports<'nodemon/lib/spawn'>;
207 | }
208 | declare module 'nodemon/lib/utils/bus.js' {
209 | declare module.exports: $Exports<'nodemon/lib/utils/bus'>;
210 | }
211 | declare module 'nodemon/lib/utils/clone.js' {
212 | declare module.exports: $Exports<'nodemon/lib/utils/clone'>;
213 | }
214 | declare module 'nodemon/lib/utils/colour.js' {
215 | declare module.exports: $Exports<'nodemon/lib/utils/colour'>;
216 | }
217 | declare module 'nodemon/lib/utils/index.js' {
218 | declare module.exports: $Exports<'nodemon/lib/utils/index'>;
219 | }
220 | declare module 'nodemon/lib/utils/log.js' {
221 | declare module.exports: $Exports<'nodemon/lib/utils/log'>;
222 | }
223 | declare module 'nodemon/lib/utils/merge.js' {
224 | declare module.exports: $Exports<'nodemon/lib/utils/merge'>;
225 | }
226 | declare module 'nodemon/lib/version.js' {
227 | declare module.exports: $Exports<'nodemon/lib/version'>;
228 | }
229 |
--------------------------------------------------------------------------------
/flow-typed/npm/babel-core_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: db4f9c5cf54f9510856e7e0e9c06f50b
2 | // flow-typed version: <>/babel-core_v^6.18.2/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'babel-core'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'babel-core' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'babel-core/lib/api/browser' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'babel-core/lib/api/node' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'babel-core/lib/helpers/get-possible-plugin-names' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'babel-core/lib/helpers/get-possible-preset-names' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'babel-core/lib/helpers/merge' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'babel-core/lib/helpers/normalize-ast' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'babel-core/lib/helpers/resolve-from-possible-names' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'babel-core/lib/helpers/resolve-plugin' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'babel-core/lib/helpers/resolve-preset' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'babel-core/lib/helpers/resolve' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'babel-core/lib/store' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'babel-core/lib/tools/build-external-helpers' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'babel-core/lib/transformation/file/index' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'babel-core/lib/transformation/file/logger' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'babel-core/lib/transformation/file/merge-map' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'babel-core/lib/transformation/file/metadata' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'babel-core/lib/transformation/file/options/build-config-chain' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'babel-core/lib/transformation/file/options/config' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'babel-core/lib/transformation/file/options/index' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'babel-core/lib/transformation/file/options/option-manager' {
102 | declare module.exports: any;
103 | }
104 |
105 | declare module 'babel-core/lib/transformation/file/options/parsers' {
106 | declare module.exports: any;
107 | }
108 |
109 | declare module 'babel-core/lib/transformation/file/options/removed' {
110 | declare module.exports: any;
111 | }
112 |
113 | declare module 'babel-core/lib/transformation/internal-plugins/block-hoist' {
114 | declare module.exports: any;
115 | }
116 |
117 | declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions' {
118 | declare module.exports: any;
119 | }
120 |
121 | declare module 'babel-core/lib/transformation/pipeline' {
122 | declare module.exports: any;
123 | }
124 |
125 | declare module 'babel-core/lib/transformation/plugin-pass' {
126 | declare module.exports: any;
127 | }
128 |
129 | declare module 'babel-core/lib/transformation/plugin' {
130 | declare module.exports: any;
131 | }
132 |
133 | declare module 'babel-core/lib/util' {
134 | declare module.exports: any;
135 | }
136 |
137 | declare module 'babel-core/register' {
138 | declare module.exports: any;
139 | }
140 |
141 | // Filename aliases
142 | declare module 'babel-core/index' {
143 | declare module.exports: $Exports<'babel-core'>;
144 | }
145 | declare module 'babel-core/index.js' {
146 | declare module.exports: $Exports<'babel-core'>;
147 | }
148 | declare module 'babel-core/lib/api/browser.js' {
149 | declare module.exports: $Exports<'babel-core/lib/api/browser'>;
150 | }
151 | declare module 'babel-core/lib/api/node.js' {
152 | declare module.exports: $Exports<'babel-core/lib/api/node'>;
153 | }
154 | declare module 'babel-core/lib/helpers/get-possible-plugin-names.js' {
155 | declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-plugin-names'>;
156 | }
157 | declare module 'babel-core/lib/helpers/get-possible-preset-names.js' {
158 | declare module.exports: $Exports<'babel-core/lib/helpers/get-possible-preset-names'>;
159 | }
160 | declare module 'babel-core/lib/helpers/merge.js' {
161 | declare module.exports: $Exports<'babel-core/lib/helpers/merge'>;
162 | }
163 | declare module 'babel-core/lib/helpers/normalize-ast.js' {
164 | declare module.exports: $Exports<'babel-core/lib/helpers/normalize-ast'>;
165 | }
166 | declare module 'babel-core/lib/helpers/resolve-from-possible-names.js' {
167 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-from-possible-names'>;
168 | }
169 | declare module 'babel-core/lib/helpers/resolve-plugin.js' {
170 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-plugin'>;
171 | }
172 | declare module 'babel-core/lib/helpers/resolve-preset.js' {
173 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve-preset'>;
174 | }
175 | declare module 'babel-core/lib/helpers/resolve.js' {
176 | declare module.exports: $Exports<'babel-core/lib/helpers/resolve'>;
177 | }
178 | declare module 'babel-core/lib/store.js' {
179 | declare module.exports: $Exports<'babel-core/lib/store'>;
180 | }
181 | declare module 'babel-core/lib/tools/build-external-helpers.js' {
182 | declare module.exports: $Exports<'babel-core/lib/tools/build-external-helpers'>;
183 | }
184 | declare module 'babel-core/lib/transformation/file/index.js' {
185 | declare module.exports: $Exports<'babel-core/lib/transformation/file/index'>;
186 | }
187 | declare module 'babel-core/lib/transformation/file/logger.js' {
188 | declare module.exports: $Exports<'babel-core/lib/transformation/file/logger'>;
189 | }
190 | declare module 'babel-core/lib/transformation/file/merge-map.js' {
191 | declare module.exports: $Exports<'babel-core/lib/transformation/file/merge-map'>;
192 | }
193 | declare module 'babel-core/lib/transformation/file/metadata.js' {
194 | declare module.exports: $Exports<'babel-core/lib/transformation/file/metadata'>;
195 | }
196 | declare module 'babel-core/lib/transformation/file/options/build-config-chain.js' {
197 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/build-config-chain'>;
198 | }
199 | declare module 'babel-core/lib/transformation/file/options/config.js' {
200 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/config'>;
201 | }
202 | declare module 'babel-core/lib/transformation/file/options/index.js' {
203 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/index'>;
204 | }
205 | declare module 'babel-core/lib/transformation/file/options/option-manager.js' {
206 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/option-manager'>;
207 | }
208 | declare module 'babel-core/lib/transformation/file/options/parsers.js' {
209 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/parsers'>;
210 | }
211 | declare module 'babel-core/lib/transformation/file/options/removed.js' {
212 | declare module.exports: $Exports<'babel-core/lib/transformation/file/options/removed'>;
213 | }
214 | declare module 'babel-core/lib/transformation/internal-plugins/block-hoist.js' {
215 | declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/block-hoist'>;
216 | }
217 | declare module 'babel-core/lib/transformation/internal-plugins/shadow-functions.js' {
218 | declare module.exports: $Exports<'babel-core/lib/transformation/internal-plugins/shadow-functions'>;
219 | }
220 | declare module 'babel-core/lib/transformation/pipeline.js' {
221 | declare module.exports: $Exports<'babel-core/lib/transformation/pipeline'>;
222 | }
223 | declare module 'babel-core/lib/transformation/plugin-pass.js' {
224 | declare module.exports: $Exports<'babel-core/lib/transformation/plugin-pass'>;
225 | }
226 | declare module 'babel-core/lib/transformation/plugin.js' {
227 | declare module.exports: $Exports<'babel-core/lib/transformation/plugin'>;
228 | }
229 | declare module 'babel-core/lib/util.js' {
230 | declare module.exports: $Exports<'babel-core/lib/util'>;
231 | }
232 | declare module 'babel-core/register.js' {
233 | declare module.exports: $Exports<'babel-core/register'>;
234 | }
235 |
--------------------------------------------------------------------------------
/flow-typed/npm/express_v4.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: 3981cb29b9fff6abc7f33fd4095e2b25
2 | // flow-typed version: def1ce6bf5/express_v4.x.x/flow_>=v0.32.x <=v0.92.x
3 |
4 | import * as http from "http";
5 |
6 | declare type express$RouterOptions = {
7 | caseSensitive?: boolean,
8 | mergeParams?: boolean,
9 | strict?: boolean
10 | };
11 |
12 | declare class express$RequestResponseBase {
13 | app: express$Application;
14 | get(field: string): string | void;
15 | }
16 |
17 | declare type express$RequestParams = {
18 | [param: string]: string
19 | }
20 |
21 | declare class express$Request extends http$IncomingMessage mixins express$RequestResponseBase {
22 | baseUrl: string;
23 | body: mixed;
24 | cookies: {[cookie: string]: string};
25 | connection: net$Socket;
26 | fresh: boolean;
27 | hostname: string;
28 | ip: string;
29 | ips: Array;
30 | method: string;
31 | originalUrl: string;
32 | params: express$RequestParams;
33 | path: string;
34 | protocol: 'https' | 'http';
35 | query: {[name: string]: string | Array};
36 | route: string;
37 | secure: boolean;
38 | signedCookies: {[signedCookie: string]: string};
39 | stale: boolean;
40 | subdomains: Array;
41 | xhr: boolean;
42 | accepts(types: string): string | false;
43 | accepts(types: Array): string | false;
44 | acceptsCharsets(...charsets: Array): string | false;
45 | acceptsEncodings(...encoding: Array): string | false;
46 | acceptsLanguages(...lang: Array): string | false;
47 | header(field: string): string | void;
48 | is(type: string): string | false;
49 | param(name: string, defaultValue?: string): string | void;
50 | }
51 |
52 | declare type express$CookieOptions = {
53 | domain?: string,
54 | encode?: (value: string) => string,
55 | expires?: Date,
56 | httpOnly?: boolean,
57 | maxAge?: number,
58 | path?: string,
59 | secure?: boolean,
60 | signed?: boolean
61 | };
62 |
63 | declare type express$Path = string | RegExp;
64 |
65 | declare type express$RenderCallback = (err: Error | null, html?: string) => mixed;
66 |
67 | declare type express$SendFileOptions = {
68 | maxAge?: number,
69 | root?: string,
70 | lastModified?: boolean,
71 | headers?: {[name: string]: string},
72 | dotfiles?: 'allow' | 'deny' | 'ignore'
73 | };
74 |
75 | declare class express$Response extends http$ServerResponse mixins express$RequestResponseBase {
76 | headersSent: boolean;
77 | locals: {[name: string]: mixed};
78 | append(field: string, value?: string): this;
79 | attachment(filename?: string): this;
80 | cookie(name: string, value: string, options?: express$CookieOptions): this;
81 | clearCookie(name: string, options?: express$CookieOptions): this;
82 | download(path: string, filename?: string, callback?: (err?: ?Error) => void): this;
83 | format(typesObject: {[type: string]: Function}): this;
84 | json(body?: mixed): this;
85 | jsonp(body?: mixed): this;
86 | links(links: {[name: string]: string}): this;
87 | location(path: string): this;
88 | redirect(url: string, ...args: Array): this;
89 | redirect(status: number, url: string, ...args: Array): this;
90 | render(view: string, locals?: {[name: string]: mixed}, callback?: express$RenderCallback): this;
91 | send(body?: mixed): this;
92 | sendFile(path: string, options?: express$SendFileOptions, callback?: (err?: ?Error) => mixed): this;
93 | sendStatus(statusCode: number): this;
94 | header(field: string, value?: string): this;
95 | header(headers: {[name: string]: string}): this;
96 | set(field: string, value?: string|string[]): this;
97 | set(headers: {[name: string]: string}): this;
98 | status(statusCode: number): this;
99 | type(type: string): this;
100 | vary(field: string): this;
101 | req: express$Request;
102 | }
103 |
104 | declare type express$NextFunction = (err?: ?Error | 'route') => mixed;
105 | declare type express$Middleware =
106 | ((req: $Subtype, res: express$Response, next: express$NextFunction) => mixed) |
107 | ((error: Error, req: $Subtype, res: express$Response, next: express$NextFunction) => mixed);
108 | declare interface express$RouteMethodType {
109 | (middleware: express$Middleware): T;
110 | (...middleware: Array): T;
111 | (path: express$Path|express$Path[], ...middleware: Array): T;
112 | }
113 | declare class express$Route {
114 | all: express$RouteMethodType;
115 | get: express$RouteMethodType;
116 | post: express$RouteMethodType;
117 | put: express$RouteMethodType;
118 | head: express$RouteMethodType;
119 | delete: express$RouteMethodType;
120 | options: express$RouteMethodType;
121 | trace: express$RouteMethodType;
122 | copy: express$RouteMethodType;
123 | lock: express$RouteMethodType;
124 | mkcol: express$RouteMethodType;
125 | move: express$RouteMethodType;
126 | purge: express$RouteMethodType;
127 | propfind: express$RouteMethodType;
128 | proppatch: express$RouteMethodType;
129 | unlock: express$RouteMethodType;
130 | report: express$RouteMethodType;
131 | mkactivity: express$RouteMethodType;
132 | checkout: express$RouteMethodType;
133 | merge: express$RouteMethodType;
134 |
135 | // @TODO Missing 'm-search' but get flow illegal name error.
136 |
137 | notify: express$RouteMethodType;
138 | subscribe: express$RouteMethodType;
139 | unsubscribe: express$RouteMethodType;
140 | patch: express$RouteMethodType;
141 | search: express$RouteMethodType;
142 | connect: express$RouteMethodType;
143 | }
144 |
145 | declare class express$Router extends express$Route {
146 | constructor(options?: express$RouterOptions): void;
147 | route(path: string): express$Route;
148 | static (options?: express$RouterOptions): express$Router;
149 | use(middleware: express$Middleware): this;
150 | use(...middleware: Array): this;
151 | use(path: express$Path|express$Path[], ...middleware: Array): this;
152 | use(path: string, router: express$Router): this;
153 | handle(req: http$IncomingMessage, res: http$ServerResponse, next: express$NextFunction): void;
154 | param(
155 | param: string,
156 | callback: (
157 | req: $Subtype,
158 | res: express$Response,
159 | next: express$NextFunction,
160 | id: string
161 | ) => mixed
162 | ): void;
163 | (req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
164 | }
165 |
166 | declare class express$Application extends express$Router mixins events$EventEmitter {
167 | constructor(): void;
168 | locals: {[name: string]: mixed};
169 | mountpath: string;
170 | listen(port: number, hostname?: string, backlog?: number, callback?: (err?: ?Error) => mixed): ?http.Server;
171 | listen(port: number, hostname?: string, callback?: (err?: ?Error) => mixed): ?http.Server;
172 | listen(port: number, callback?: (err?: ?Error) => mixed): ?http.Server;
173 | listen(path: string, callback?: (err?: ?Error) => mixed): ?http.Server;
174 | listen(handle: Object, callback?: (err?: ?Error) => mixed): ?http.Server;
175 | disable(name: string): void;
176 | disabled(name: string): boolean;
177 | enable(name: string): express$Application;
178 | enabled(name: string): boolean;
179 | engine(name: string, callback: Function): void;
180 | /**
181 | * Mixed will not be taken as a value option. Issue around using the GET http method name and the get for settings.
182 | */
183 | // get(name: string): mixed;
184 | set(name: string, value: mixed): mixed;
185 | render(name: string, optionsOrFunction: {[name: string]: mixed}, callback: express$RenderCallback): void;
186 | handle(req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
187 | // callable signature is not inherited
188 | (req: http$IncomingMessage, res: http$ServerResponse, next?: ?express$NextFunction): void;
189 | }
190 |
191 | declare module 'express' {
192 | declare export type RouterOptions = express$RouterOptions;
193 | declare export type CookieOptions = express$CookieOptions;
194 | declare export type Middleware = express$Middleware;
195 | declare export type NextFunction = express$NextFunction;
196 | declare export type RequestParams = express$RequestParams;
197 | declare export type $Response = express$Response;
198 | declare export type $Request = express$Request;
199 | declare export type $Application = express$Application;
200 |
201 | declare module.exports: {
202 | (): express$Application, // If you try to call like a function, it will use this signature
203 | static: (root: string, options?: Object) => express$Middleware, // `static` property on the function
204 | Router: typeof express$Router, // `Router` property on the function
205 | };
206 | }
207 |
--------------------------------------------------------------------------------
/flow-typed/npm/webpack-bundle-analyzer_vx.x.x.js:
--------------------------------------------------------------------------------
1 | // flow-typed signature: b03be77ce72c71f8e1deea283ed2ccab
2 | // flow-typed version: <>/webpack-bundle-analyzer_v^2.1.1/flow_v0.75.0
3 |
4 | /**
5 | * This is an autogenerated libdef stub for:
6 | *
7 | * 'webpack-bundle-analyzer'
8 | *
9 | * Fill this stub out by replacing all the `any` types.
10 | *
11 | * Once filled out, we encourage you to share your work with the
12 | * community by sending a pull request to:
13 | * https://github.com/flowtype/flow-typed
14 | */
15 |
16 | declare module 'webpack-bundle-analyzer' {
17 | declare module.exports: any;
18 | }
19 |
20 | /**
21 | * We include stubs for each file inside this npm package in case you need to
22 | * require those files directly. Feel free to delete any files that aren't
23 | * needed.
24 | */
25 | declare module 'webpack-bundle-analyzer/lib/analyzer' {
26 | declare module.exports: any;
27 | }
28 |
29 | declare module 'webpack-bundle-analyzer/lib/bin/analyzer' {
30 | declare module.exports: any;
31 | }
32 |
33 | declare module 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin' {
34 | declare module.exports: any;
35 | }
36 |
37 | declare module 'webpack-bundle-analyzer/lib/index' {
38 | declare module.exports: any;
39 | }
40 |
41 | declare module 'webpack-bundle-analyzer/lib/Logger' {
42 | declare module.exports: any;
43 | }
44 |
45 | declare module 'webpack-bundle-analyzer/lib/parseUtils' {
46 | declare module.exports: any;
47 | }
48 |
49 | declare module 'webpack-bundle-analyzer/lib/tree/BaseFolder' {
50 | declare module.exports: any;
51 | }
52 |
53 | declare module 'webpack-bundle-analyzer/lib/tree/ConcatenatedModule' {
54 | declare module.exports: any;
55 | }
56 |
57 | declare module 'webpack-bundle-analyzer/lib/tree/ContentFolder' {
58 | declare module.exports: any;
59 | }
60 |
61 | declare module 'webpack-bundle-analyzer/lib/tree/ContentModule' {
62 | declare module.exports: any;
63 | }
64 |
65 | declare module 'webpack-bundle-analyzer/lib/tree/Folder' {
66 | declare module.exports: any;
67 | }
68 |
69 | declare module 'webpack-bundle-analyzer/lib/tree/Module' {
70 | declare module.exports: any;
71 | }
72 |
73 | declare module 'webpack-bundle-analyzer/lib/tree/Node' {
74 | declare module.exports: any;
75 | }
76 |
77 | declare module 'webpack-bundle-analyzer/lib/tree/utils' {
78 | declare module.exports: any;
79 | }
80 |
81 | declare module 'webpack-bundle-analyzer/lib/utils' {
82 | declare module.exports: any;
83 | }
84 |
85 | declare module 'webpack-bundle-analyzer/lib/viewer' {
86 | declare module.exports: any;
87 | }
88 |
89 | declare module 'webpack-bundle-analyzer/public/viewer' {
90 | declare module.exports: any;
91 | }
92 |
93 | declare module 'webpack-bundle-analyzer/src/analyzer' {
94 | declare module.exports: any;
95 | }
96 |
97 | declare module 'webpack-bundle-analyzer/src/bin/analyzer' {
98 | declare module.exports: any;
99 | }
100 |
101 | declare module 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin' {
102 | declare module.exports: any;
103 | }
104 |
105 | declare module 'webpack-bundle-analyzer/src/index' {
106 | declare module.exports: any;
107 | }
108 |
109 | declare module 'webpack-bundle-analyzer/src/Logger' {
110 | declare module.exports: any;
111 | }
112 |
113 | declare module 'webpack-bundle-analyzer/src/parseUtils' {
114 | declare module.exports: any;
115 | }
116 |
117 | declare module 'webpack-bundle-analyzer/src/tree/BaseFolder' {
118 | declare module.exports: any;
119 | }
120 |
121 | declare module 'webpack-bundle-analyzer/src/tree/ConcatenatedModule' {
122 | declare module.exports: any;
123 | }
124 |
125 | declare module 'webpack-bundle-analyzer/src/tree/ContentFolder' {
126 | declare module.exports: any;
127 | }
128 |
129 | declare module 'webpack-bundle-analyzer/src/tree/ContentModule' {
130 | declare module.exports: any;
131 | }
132 |
133 | declare module 'webpack-bundle-analyzer/src/tree/Folder' {
134 | declare module.exports: any;
135 | }
136 |
137 | declare module 'webpack-bundle-analyzer/src/tree/Module' {
138 | declare module.exports: any;
139 | }
140 |
141 | declare module 'webpack-bundle-analyzer/src/tree/Node' {
142 | declare module.exports: any;
143 | }
144 |
145 | declare module 'webpack-bundle-analyzer/src/tree/utils' {
146 | declare module.exports: any;
147 | }
148 |
149 | declare module 'webpack-bundle-analyzer/src/utils' {
150 | declare module.exports: any;
151 | }
152 |
153 | declare module 'webpack-bundle-analyzer/src/viewer' {
154 | declare module.exports: any;
155 | }
156 |
157 | // Filename aliases
158 | declare module 'webpack-bundle-analyzer/lib/analyzer.js' {
159 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/analyzer'>;
160 | }
161 | declare module 'webpack-bundle-analyzer/lib/bin/analyzer.js' {
162 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/bin/analyzer'>;
163 | }
164 | declare module 'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin.js' {
165 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/BundleAnalyzerPlugin'>;
166 | }
167 | declare module 'webpack-bundle-analyzer/lib/index.js' {
168 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/index'>;
169 | }
170 | declare module 'webpack-bundle-analyzer/lib/Logger.js' {
171 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/Logger'>;
172 | }
173 | declare module 'webpack-bundle-analyzer/lib/parseUtils.js' {
174 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/parseUtils'>;
175 | }
176 | declare module 'webpack-bundle-analyzer/lib/tree/BaseFolder.js' {
177 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/BaseFolder'>;
178 | }
179 | declare module 'webpack-bundle-analyzer/lib/tree/ConcatenatedModule.js' {
180 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/ConcatenatedModule'>;
181 | }
182 | declare module 'webpack-bundle-analyzer/lib/tree/ContentFolder.js' {
183 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/ContentFolder'>;
184 | }
185 | declare module 'webpack-bundle-analyzer/lib/tree/ContentModule.js' {
186 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/ContentModule'>;
187 | }
188 | declare module 'webpack-bundle-analyzer/lib/tree/Folder.js' {
189 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/Folder'>;
190 | }
191 | declare module 'webpack-bundle-analyzer/lib/tree/Module.js' {
192 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/Module'>;
193 | }
194 | declare module 'webpack-bundle-analyzer/lib/tree/Node.js' {
195 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/Node'>;
196 | }
197 | declare module 'webpack-bundle-analyzer/lib/tree/utils.js' {
198 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/tree/utils'>;
199 | }
200 | declare module 'webpack-bundle-analyzer/lib/utils.js' {
201 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/utils'>;
202 | }
203 | declare module 'webpack-bundle-analyzer/lib/viewer.js' {
204 | declare module.exports: $Exports<'webpack-bundle-analyzer/lib/viewer'>;
205 | }
206 | declare module 'webpack-bundle-analyzer/public/viewer.js' {
207 | declare module.exports: $Exports<'webpack-bundle-analyzer/public/viewer'>;
208 | }
209 | declare module 'webpack-bundle-analyzer/src/analyzer.js' {
210 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/analyzer'>;
211 | }
212 | declare module 'webpack-bundle-analyzer/src/bin/analyzer.js' {
213 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/bin/analyzer'>;
214 | }
215 | declare module 'webpack-bundle-analyzer/src/BundleAnalyzerPlugin.js' {
216 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/BundleAnalyzerPlugin'>;
217 | }
218 | declare module 'webpack-bundle-analyzer/src/index.js' {
219 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/index'>;
220 | }
221 | declare module 'webpack-bundle-analyzer/src/Logger.js' {
222 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/Logger'>;
223 | }
224 | declare module 'webpack-bundle-analyzer/src/parseUtils.js' {
225 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/parseUtils'>;
226 | }
227 | declare module 'webpack-bundle-analyzer/src/tree/BaseFolder.js' {
228 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/BaseFolder'>;
229 | }
230 | declare module 'webpack-bundle-analyzer/src/tree/ConcatenatedModule.js' {
231 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/ConcatenatedModule'>;
232 | }
233 | declare module 'webpack-bundle-analyzer/src/tree/ContentFolder.js' {
234 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/ContentFolder'>;
235 | }
236 | declare module 'webpack-bundle-analyzer/src/tree/ContentModule.js' {
237 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/ContentModule'>;
238 | }
239 | declare module 'webpack-bundle-analyzer/src/tree/Folder.js' {
240 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/Folder'>;
241 | }
242 | declare module 'webpack-bundle-analyzer/src/tree/Module.js' {
243 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/Module'>;
244 | }
245 | declare module 'webpack-bundle-analyzer/src/tree/Node.js' {
246 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/Node'>;
247 | }
248 | declare module 'webpack-bundle-analyzer/src/tree/utils.js' {
249 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/tree/utils'>;
250 | }
251 | declare module 'webpack-bundle-analyzer/src/utils.js' {
252 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/utils'>;
253 | }
254 | declare module 'webpack-bundle-analyzer/src/viewer.js' {
255 | declare module.exports: $Exports<'webpack-bundle-analyzer/src/viewer'>;
256 | }
257 |
--------------------------------------------------------------------------------